spec/spec_helper.rb in music-transcription-0.4.3 vs spec/spec_helper.rb in music-transcription-0.5.2
- old
+ new
@@ -1,11 +1,12 @@
require 'rspec'
require 'music-transcription'
include Music::Transcription
+include Music::Transcription::Pitches
class Samples
SAMPLE_PART = Part.new(
- :notes => [ Note.new(0.25, [ C1, D1 ]) ],
- :loudness_profile => Profile.new(0.5, 1.0 => linear_change(1.0, 2.0))
+ notes: [ Note::Quarter.new([ C1, D1 ]), Note::Quarter.new([ C2, D2 ]), Note::Whole.new([ C3, D3 ]) ],
+ dynamic_profile: Profile.new(Dynamics::P, {1.0 => Change::Immediate.new(Dynamics::MP)})
)
end
\ No newline at end of file