examples/hip.yml in music-transcription-0.8.1 vs examples/hip.yml in music-transcription-0.9.0
- old
+ new
@@ -5,10 +5,13 @@
denominator: 4
numerator: 1
measure_duration: !ruby/object:Rational
denominator: 1
numerator: 1
+ check_methods:
+ - :check_beats_per_measure
+ - :check_beat_duration
start_tempo: 120
meter_changes: {}
tempo_changes: {}
parts:
lead: !ruby/object:Music::Transcription::Part
@@ -16,488 +19,587 @@
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 6
numerator: 1
pitches:
- - &3 !ruby/object:Music::Transcription::Pitch
+ - &2 !ruby/object:Music::Transcription::Pitch
octave: 3
semitone: 10
+ articulation: :normal
+ accented: false
links: {}
- accent: &1 !ruby/class 'Music::Transcription::Accent::None'
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 4
numerator: 1
pitches: []
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 12
numerator: 1
pitches:
- - &2 !ruby/object:Music::Transcription::Pitch
+ - &1 !ruby/object:Music::Transcription::Pitch
octave: 4
semitone: 1
- links:
- *2: !ruby/object:Music::Transcription::Link::Slur
- target_pitch: *2
- accent: *1
+ articulation: :slur
+ accented: false
+ links: {}
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 6
numerator: 1
pitches:
- - *2
- links:
- *2: !ruby/object:Music::Transcription::Link::Slur
- target_pitch: *2
- accent: *1
+ - *1
+ articulation: :slur
+ accented: false
+ links: {}
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 36
numerator: 1
pitches:
- - *2
+ - *1
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 36
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 4
semitone: 3
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 36
numerator: 1
pitches:
- - *2
+ - *1
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 6
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 3
semitone: 8
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 12
numerator: 1
pitches:
- - *2
+ - *1
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 6
numerator: 1
pitches:
- - *3
+ - *2
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 4
numerator: 1
pitches: []
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 12
numerator: 1
pitches:
- - *2
- links:
- *2: !ruby/object:Music::Transcription::Link::Slur
- target_pitch: *2
- accent: *1
- - !ruby/object:Music::Transcription::Note::Quarter
- duration: !ruby/object:Rational
+ - *1
+ articulation: :slur
+ accented: false
+ links: {}
+ check_methods:
+ - :ensure_positive_duration
+ - !ruby/object:Music::Transcription::Note
+ duration: &6 !ruby/object:Rational
denominator: 4
numerator: 1
pitches:
- - *2
- links:
- *2: !ruby/object:Music::Transcription::Link::Slur
- target_pitch: *2
- accent: *1
- - !ruby/object:Music::Transcription::Note::Eighth
- duration: !ruby/object:Rational
+ - *1
+ articulation: :slur
+ accented: false
+ links: {}
+ check_methods:
+ - :ensure_positive_duration
+ - !ruby/object:Music::Transcription::Note
+ duration: &3 !ruby/object:Rational
denominator: 8
numerator: 1
pitches:
- - *2
- links:
- *2: !ruby/object:Music::Transcription::Link::Portamento
- target_pitch: &4 !ruby/object:Music::Transcription::Pitch
- octave: 4
- semitone: 0
- accent: *1
- - !ruby/object:Music::Transcription::Note::Eighth
- duration: !ruby/object:Rational
- denominator: 8
- numerator: 1
+ - *1
+ articulation: :slur
+ accented: false
+ links: {}
+ check_methods:
+ - :ensure_positive_duration
+ - !ruby/object:Music::Transcription::Note
+ duration: *3
pitches:
- - *4
+ - !ruby/object:Music::Transcription::Pitch
+ octave: 4
+ semitone: 0
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 6
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 4
semitone: 0
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 4
numerator: 1
pitches: []
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 12
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 4
semitone: 3
- links:
- ? !ruby/object:Music::Transcription::Pitch
- octave: 4
- semitone: 3
- : !ruby/object:Music::Transcription::Link::Slur
- target_pitch: !ruby/object:Music::Transcription::Pitch
- octave: 4
- semitone: 3
- accent: *1
+ articulation: :slur
+ accented: false
+ links: {}
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 6
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 4
semitone: 3
- links:
- ? !ruby/object:Music::Transcription::Pitch
- octave: 4
- semitone: 3
- : !ruby/object:Music::Transcription::Link::Slur
- target_pitch: !ruby/object:Music::Transcription::Pitch
- octave: 4
- semitone: 3
- accent: *1
+ articulation: :slur
+ accented: false
+ links: {}
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 36
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 4
semitone: 3
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 36
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 4
semitone: 5
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 36
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 4
semitone: 3
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 6
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 3
semitone: 10
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 12
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 4
semitone: 3
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 6
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 4
semitone: 0
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 4
numerator: 1
pitches: []
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 12
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 4
semitone: 3
- links:
- ? !ruby/object:Music::Transcription::Pitch
- octave: 4
- semitone: 3
- : !ruby/object:Music::Transcription::Link::Slur
- target_pitch: !ruby/object:Music::Transcription::Pitch
- octave: 4
- semitone: 3
- accent: *1
- - !ruby/object:Music::Transcription::Note::Quarter
+ articulation: :slur
+ accented: false
+ links: {}
+ check_methods:
+ - :ensure_positive_duration
+ - !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 4
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 4
semitone: 3
- links:
- ? !ruby/object:Music::Transcription::Pitch
- octave: 4
- semitone: 3
- : !ruby/object:Music::Transcription::Link::Slur
- target_pitch: !ruby/object:Music::Transcription::Pitch
- octave: 4
- semitone: 3
- accent: *1
- - !ruby/object:Music::Transcription::Note::Eighth
+ articulation: :slur
+ accented: false
+ links: {}
+ check_methods:
+ - :ensure_positive_duration
+ - !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 8
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 4
semitone: 3
- links:
- ? !ruby/object:Music::Transcription::Pitch
- octave: 4
- semitone: 3
- : !ruby/object:Music::Transcription::Link::Portamento
- target_pitch: !ruby/object:Music::Transcription::Pitch
- octave: 4
- semitone: 2
- accent: *1
- - !ruby/object:Music::Transcription::Note::Eighth
+ articulation: :slur
+ accented: false
+ links: {}
+ check_methods:
+ - :ensure_positive_duration
+ - !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 8
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 4
semitone: 2
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
- start_dynamic: !ruby/object:Music::Transcription::Dynamic::MezzoForte {}
+ check_methods:
+ - :ensure_positive_duration
+ start_dynamic: 0.625
dynamic_changes: {}
+ check_methods:
+ - :ensure_start_dynamic
+ - :ensure_dynamic_change_values_range
bass: !ruby/object:Music::Transcription::Part
notes:
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 6
numerator: 1
pitches:
- - &6 !ruby/object:Music::Transcription::Pitch
+ - &5 !ruby/object:Music::Transcription::Pitch
octave: 2
semitone: 10
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 4
numerator: 1
pitches: []
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 3
numerator: 1
pitches:
- - &5 !ruby/object:Music::Transcription::Pitch
+ - &4 !ruby/object:Music::Transcription::Pitch
octave: 2
semitone: 8
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 6
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 2
semitone: 5
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 12
numerator: 1
pitches:
- - *5
+ - *4
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 6
numerator: 1
pitches:
- - *6
+ - *5
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
- - !ruby/object:Music::Transcription::Note::Quarter
- duration: !ruby/object:Rational
- denominator: 4
- numerator: 1
+ check_methods:
+ - :ensure_positive_duration
+ - !ruby/object:Music::Transcription::Note
+ duration: *6
pitches: []
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 3
numerator: 1
pitches:
- - *5
+ - *4
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
- - !ruby/object:Music::Transcription::Note::Quarter
- duration: !ruby/object:Rational
- denominator: 4
- numerator: 1
+ check_methods:
+ - :ensure_positive_duration
+ - !ruby/object:Music::Transcription::Note
+ duration: *6
pitches:
- - *5
+ - *4
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 6
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 3
semitone: 0
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 4
numerator: 1
pitches: []
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 3
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 2
semitone: 10
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 6
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 2
semitone: 7
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 12
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 2
semitone: 10
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 6
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 3
semitone: 0
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
- - !ruby/object:Music::Transcription::Note::Quarter
+ check_methods:
+ - :ensure_positive_duration
+ - !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 4
numerator: 1
pitches: []
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
+ check_methods:
+ - :ensure_positive_duration
- !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 3
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 2
semitone: 10
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
- - !ruby/object:Music::Transcription::Note::Quarter
+ check_methods:
+ - :ensure_positive_duration
+ - !ruby/object:Music::Transcription::Note
duration: !ruby/object:Rational
denominator: 4
numerator: 1
pitches:
- !ruby/object:Music::Transcription::Pitch
octave: 2
semitone: 10
+ articulation: :normal
+ accented: false
links: {}
- accent: *1
- start_dynamic: !ruby/object:Music::Transcription::Dynamic::MezzoPiano {}
+ check_methods:
+ - :ensure_positive_duration
+ start_dynamic: 0.5
dynamic_changes: {}
+ check_methods:
+ - :ensure_start_dynamic
+ - :ensure_dynamic_change_values_range
program: !ruby/object:Music::Transcription::Program
segments:
- !ruby/range
begin: 0
end: 2
@@ -512,5 +614,12 @@
excl: true
- !ruby/range
begin: 0
end: 2
excl: true
+ check_methods:
+ - :ensure_increasing_segments
+ - :ensure_nonnegative_segments
+check_methods:
+- :check_start_tempo
+- :check_tempo_changes
+- :check_meter_changes