examples/hip.rb in music-transcription-0.20.0 vs examples/hip.rb in music-transcription-0.21.0

- old
+ new

@@ -3,13 +3,12 @@ include Music::Transcription include Pitches include Articulations include Meters -include Parsing -score = Score.new(FOUR_FOUR,120) do |s| +score = MeasureScore.new(FOUR_FOUR,Tempo::BPM.new(120)) do |s| s.program = Program.new([0...2, 0...2,2...4,0...2]) s.parts["lead"] = Part.new(Dynamics::MF) do |p| riff = "/6Bb3 /4 /12Db4= /6Db4= /36Db4 /36Eb4 /36Db4 /6Ab3 /12Db4 \ /6Bb3 /4 /12Db4= /4Db4= /8=Db4 /8C4".to_notes p.notes = riff + riff.map {|n| n.transpose(2) } @@ -27,7 +26,7 @@ File.open("#{name}.yml", "w") do |file| file.write score.to_yaml end File.open("#{name}_packed.yml", "w") do |file| - file.write score.pack.to_yaml + file.write pack_score(score).to_yaml end