katsuma/musical — pull request #6 by katsuma (2013-09-08 04:05:51+00:00)
Title: Next version of musical 

I'm re-developing `musical` v1.0.0 from scratch.

The plans are

- more simple API
- support iTunes 11
- support Ruby 1.9 and 2.0 (not 1.8)

Main code will be like this,

```ruby
Musical.setup

dvd_options = {
title: Musical.configuration.title,
artist: Musical.configuration.artist,
path: Musical.configuration.path
}

DVD.load(dvd_options) do |dvd|
chapters = dvd.rip

chapters.each do |chapter|
wav = chapter.to_wav
track = Itunes::Player.add(wav.path)

# with `itunes-client` gem
converted_track = track.convert
converted_track.update_attributes(
name: chapter.name,
album: dvd.title,
artist: dvd.artist,
track_count: chapters.size,
track_number: chapter.chapter_number,
)

wav.delete
track.delete
end
end
```

I'm updating it on [`v1.0.0`](https://github.com/katsuma/musical/tree/v1.0.0) branch. (These codes don't work yet :smiling_imp:)
Any opinions are welcome.