music-transcription 0.6.3 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/examples/hip.yml +516 -0
  3. data/examples/make_hip.rb +63 -0
  4. data/examples/make_missed_connection.rb +65 -0
  5. data/examples/make_song1.rb +71 -0
  6. data/examples/make_song2.rb +58 -0
  7. data/examples/missed_connection.yml +305 -0
  8. data/examples/song1.yml +367 -0
  9. data/examples/song2.yml +236 -0
  10. data/lib/music-transcription/accent.rb +4 -15
  11. data/lib/music-transcription/accents.rb +12 -0
  12. data/lib/music-transcription/dynamic.rb +6 -15
  13. data/lib/music-transcription/meter.rb +15 -0
  14. data/lib/music-transcription/note.rb +28 -91
  15. data/lib/music-transcription/part.rb +9 -65
  16. data/lib/music-transcription/score.rb +14 -43
  17. data/lib/music-transcription/version.rb +1 -1
  18. data/lib/music-transcription.rb +2 -0
  19. data/spec/meter_spec.rb +25 -0
  20. data/spec/note_spec.rb +20 -33
  21. data/spec/part_spec.rb +13 -82
  22. data/spec/score_spec.rb +28 -16
  23. data/spec/spec_helper.rb +7 -2
  24. metadata +14 -20
  25. data/samples/arrangements/glissando_test.yml +0 -71
  26. data/samples/arrangements/hip.yml +0 -952
  27. data/samples/arrangements/instrument_test.yml +0 -119
  28. data/samples/arrangements/legato_test.yml +0 -237
  29. data/samples/arrangements/make_glissando_test.rb +0 -27
  30. data/samples/arrangements/make_hip.rb +0 -75
  31. data/samples/arrangements/make_instrument_test.rb +0 -34
  32. data/samples/arrangements/make_legato_test.rb +0 -37
  33. data/samples/arrangements/make_missed_connection.rb +0 -72
  34. data/samples/arrangements/make_portamento_test.rb +0 -27
  35. data/samples/arrangements/make_slur_test.rb +0 -37
  36. data/samples/arrangements/make_song1.rb +0 -84
  37. data/samples/arrangements/make_song2.rb +0 -69
  38. data/samples/arrangements/missed_connection.yml +0 -481
  39. data/samples/arrangements/portamento_test.yml +0 -71
  40. data/samples/arrangements/slur_test.yml +0 -237
  41. data/samples/arrangements/song1.yml +0 -640
  42. data/samples/arrangements/song2.yml +0 -429
@@ -1,237 +0,0 @@
1
- --- !ruby/object:Music::Transcription::Arrangement
2
- score: !ruby/object:Music::Transcription::TempoScore
3
- tempo_profile: !ruby/object:Music::Transcription::Profile
4
- start_value: !ruby/object:Music::Transcription::Tempo
5
- beats_per_minute: 120
6
- beat_duration: !ruby/object:Rational
7
- denominator: 4
8
- numerator: 1
9
- value_changes: {}
10
- parts:
11
- 1: !ruby/object:Music::Transcription::Part
12
- offset: 0
13
- loudness_profile: !ruby/object:Music::Transcription::Profile
14
- start_value: 0.5
15
- value_changes: {}
16
- notes:
17
- - !ruby/object:Music::Transcription::Note
18
- duration: 0.25
19
- intervals:
20
- - !ruby/object:Music::Transcription::Interval
21
- pitch: &20566040 !ruby/object:Music::Transcription::Pitch
22
- cents_per_octave: 1200
23
- octave: 3
24
- semitone: 0
25
- cent: 0
26
- base_freq: 16.351597831287414
27
- link: !ruby/object:Music::Transcription::Link
28
- target_pitch: !ruby/object:Music::Transcription::Pitch
29
- cents_per_octave: 1200
30
- octave: 0
31
- semitone: 0
32
- cent: 0
33
- base_freq: 16.351597831287414
34
- relationship: :none
35
- sustain: 0.5
36
- attack: 0.5
37
- separation: 0.5
38
- - !ruby/object:Music::Transcription::Note
39
- duration: 0.25
40
- intervals:
41
- - !ruby/object:Music::Transcription::Interval
42
- pitch: &20564940 !ruby/object:Music::Transcription::Pitch
43
- cents_per_octave: 1200
44
- octave: 3
45
- semitone: 2
46
- cent: 0
47
- base_freq: 16.351597831287414
48
- link: !ruby/object:Music::Transcription::Link
49
- target_pitch: !ruby/object:Music::Transcription::Pitch
50
- cents_per_octave: 1200
51
- octave: 0
52
- semitone: 0
53
- cent: 0
54
- base_freq: 16.351597831287414
55
- relationship: :none
56
- sustain: 0.5
57
- attack: 0.5
58
- separation: 0.5
59
- - !ruby/object:Music::Transcription::Note
60
- duration: 0.25
61
- intervals:
62
- - !ruby/object:Music::Transcription::Interval
63
- pitch: &20564040 !ruby/object:Music::Transcription::Pitch
64
- cents_per_octave: 1200
65
- octave: 3
66
- semitone: 4
67
- cent: 0
68
- base_freq: 16.351597831287414
69
- link: !ruby/object:Music::Transcription::Link
70
- target_pitch: !ruby/object:Music::Transcription::Pitch
71
- cents_per_octave: 1200
72
- octave: 0
73
- semitone: 0
74
- cent: 0
75
- base_freq: 16.351597831287414
76
- relationship: :none
77
- sustain: 0.5
78
- attack: 0.5
79
- separation: 0.5
80
- - !ruby/object:Music::Transcription::Note
81
- duration: 0.25
82
- intervals:
83
- - !ruby/object:Music::Transcription::Interval
84
- pitch: &20563520 !ruby/object:Music::Transcription::Pitch
85
- cents_per_octave: 1200
86
- octave: 3
87
- semitone: 5
88
- cent: 0
89
- base_freq: 16.351597831287414
90
- link: !ruby/object:Music::Transcription::Link
91
- target_pitch: !ruby/object:Music::Transcription::Pitch
92
- cents_per_octave: 1200
93
- octave: 0
94
- semitone: 0
95
- cent: 0
96
- base_freq: 16.351597831287414
97
- relationship: :none
98
- sustain: 0.5
99
- attack: 0.5
100
- separation: 0.5
101
- - !ruby/object:Music::Transcription::Note
102
- duration: 0.25
103
- intervals:
104
- - !ruby/object:Music::Transcription::Interval
105
- pitch: *20564040
106
- link: !ruby/object:Music::Transcription::Link
107
- target_pitch: !ruby/object:Music::Transcription::Pitch
108
- cents_per_octave: 1200
109
- octave: 0
110
- semitone: 0
111
- cent: 0
112
- base_freq: 16.351597831287414
113
- relationship: :none
114
- sustain: 0.5
115
- attack: 0.5
116
- separation: 0.5
117
- - !ruby/object:Music::Transcription::Note
118
- duration: 0.25
119
- intervals:
120
- - !ruby/object:Music::Transcription::Interval
121
- pitch: *20564940
122
- link: !ruby/object:Music::Transcription::Link
123
- target_pitch: !ruby/object:Music::Transcription::Pitch
124
- cents_per_octave: 1200
125
- octave: 0
126
- semitone: 0
127
- cent: 0
128
- base_freq: 16.351597831287414
129
- relationship: :none
130
- sustain: 0.5
131
- attack: 0.5
132
- separation: 0.5
133
- - !ruby/object:Music::Transcription::Note
134
- duration: 0.5
135
- intervals:
136
- - !ruby/object:Music::Transcription::Interval
137
- pitch: *20566040
138
- link: !ruby/object:Music::Transcription::Link
139
- target_pitch: !ruby/object:Music::Transcription::Pitch
140
- cents_per_octave: 1200
141
- octave: 0
142
- semitone: 0
143
- cent: 0
144
- base_freq: 16.351597831287414
145
- relationship: :none
146
- sustain: 0.5
147
- attack: 0.5
148
- separation: 0.5
149
- - !ruby/object:Music::Transcription::Note
150
- duration: 0.25
151
- intervals:
152
- - !ruby/object:Music::Transcription::Interval
153
- pitch: *20566040
154
- link: !ruby/object:Music::Transcription::Link
155
- target_pitch: *20564940
156
- relationship: :slur
157
- sustain: 0.5
158
- attack: 0.5
159
- separation: 0.5
160
- - !ruby/object:Music::Transcription::Note
161
- duration: 0.25
162
- intervals:
163
- - !ruby/object:Music::Transcription::Interval
164
- pitch: *20564940
165
- link: !ruby/object:Music::Transcription::Link
166
- target_pitch: *20564040
167
- relationship: :slur
168
- sustain: 0.5
169
- attack: 0.5
170
- separation: 0.5
171
- - !ruby/object:Music::Transcription::Note
172
- duration: 0.25
173
- intervals:
174
- - !ruby/object:Music::Transcription::Interval
175
- pitch: *20564040
176
- link: !ruby/object:Music::Transcription::Link
177
- target_pitch: *20563520
178
- relationship: :slur
179
- sustain: 0.5
180
- attack: 0.5
181
- separation: 0.5
182
- - !ruby/object:Music::Transcription::Note
183
- duration: 0.25
184
- intervals:
185
- - !ruby/object:Music::Transcription::Interval
186
- pitch: *20563520
187
- link: !ruby/object:Music::Transcription::Link
188
- target_pitch: *20564040
189
- relationship: :slur
190
- sustain: 0.5
191
- attack: 0.5
192
- separation: 0.5
193
- - !ruby/object:Music::Transcription::Note
194
- duration: 0.25
195
- intervals:
196
- - !ruby/object:Music::Transcription::Interval
197
- pitch: *20564040
198
- link: !ruby/object:Music::Transcription::Link
199
- target_pitch: *20564940
200
- relationship: :slur
201
- sustain: 0.5
202
- attack: 0.5
203
- separation: 0.5
204
- - !ruby/object:Music::Transcription::Note
205
- duration: 0.25
206
- intervals:
207
- - !ruby/object:Music::Transcription::Interval
208
- pitch: *20564940
209
- link: !ruby/object:Music::Transcription::Link
210
- target_pitch: *20566040
211
- relationship: :slur
212
- sustain: 0.5
213
- attack: 0.5
214
- separation: 0.5
215
- - !ruby/object:Music::Transcription::Note
216
- duration: 0.5
217
- intervals:
218
- - !ruby/object:Music::Transcription::Interval
219
- pitch: *20566040
220
- link: !ruby/object:Music::Transcription::Link
221
- target_pitch: !ruby/object:Music::Transcription::Pitch
222
- cents_per_octave: 1200
223
- octave: 0
224
- semitone: 0
225
- cent: 0
226
- base_freq: 16.351597831287414
227
- relationship: :none
228
- sustain: 0.5
229
- attack: 0.5
230
- separation: 0.5
231
- program: !ruby/object:Music::Transcription::Program
232
- segments:
233
- - !ruby/range
234
- begin: 0
235
- end: 4.0
236
- excl: true
237
- instrument_configs: {}