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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: music-transcription
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Tunnell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-18 00:00:00.000000000 Z
11
+ date: 2014-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -128,13 +128,23 @@ files:
128
128
  - README.rdoc
129
129
  - Rakefile
130
130
  - bin/transcribe
131
+ - examples/hip.yml
132
+ - examples/make_hip.rb
133
+ - examples/make_missed_connection.rb
134
+ - examples/make_song1.rb
135
+ - examples/make_song2.rb
136
+ - examples/missed_connection.yml
137
+ - examples/song1.yml
138
+ - examples/song2.yml
131
139
  - lib/music-transcription.rb
132
140
  - lib/music-transcription/accent.rb
141
+ - lib/music-transcription/accents.rb
133
142
  - lib/music-transcription/change.rb
134
143
  - lib/music-transcription/dynamic.rb
135
144
  - lib/music-transcription/dynamics.rb
136
145
  - lib/music-transcription/errors.rb
137
146
  - lib/music-transcription/link.rb
147
+ - lib/music-transcription/meter.rb
138
148
  - lib/music-transcription/note.rb
139
149
  - lib/music-transcription/part.rb
140
150
  - lib/music-transcription/pitch.rb
@@ -145,26 +155,9 @@ files:
145
155
  - lib/music-transcription/tempo.rb
146
156
  - lib/music-transcription/version.rb
147
157
  - music-transcription.gemspec
148
- - samples/arrangements/glissando_test.yml
149
- - samples/arrangements/hip.yml
150
- - samples/arrangements/instrument_test.yml
151
- - samples/arrangements/legato_test.yml
152
- - samples/arrangements/make_glissando_test.rb
153
- - samples/arrangements/make_hip.rb
154
- - samples/arrangements/make_instrument_test.rb
155
- - samples/arrangements/make_legato_test.rb
156
- - samples/arrangements/make_missed_connection.rb
157
- - samples/arrangements/make_portamento_test.rb
158
- - samples/arrangements/make_slur_test.rb
159
- - samples/arrangements/make_song1.rb
160
- - samples/arrangements/make_song2.rb
161
- - samples/arrangements/missed_connection.yml
162
- - samples/arrangements/portamento_test.yml
163
- - samples/arrangements/slur_test.yml
164
- - samples/arrangements/song1.yml
165
- - samples/arrangements/song2.yml
166
158
  - spec/change_spec.rb
167
159
  - spec/link_spec.rb
160
+ - spec/meter_spec.rb
168
161
  - spec/music-transcription_spec.rb
169
162
  - spec/note_spec.rb
170
163
  - spec/part_spec.rb
@@ -202,6 +195,7 @@ summary: Classes for representing music notational features like pitch, note, lo
202
195
  test_files:
203
196
  - spec/change_spec.rb
204
197
  - spec/link_spec.rb
198
+ - spec/meter_spec.rb
205
199
  - spec/music-transcription_spec.rb
206
200
  - spec/note_spec.rb
207
201
  - spec/part_spec.rb
@@ -1,71 +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.75
19
- intervals:
20
- - !ruby/object:Music::Transcription::Interval
21
- pitch: &12545940 !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: &12543700 !ruby/object:Music::Transcription::Pitch
29
- cents_per_octave: 1200
30
- octave: 3
31
- semitone: 5
32
- cent: 0
33
- base_freq: 16.351597831287414
34
- relationship: :glissando
35
- sustain: 0.5
36
- attack: 0.5
37
- separation: 0.5
38
- - !ruby/object:Music::Transcription::Note
39
- duration: 0.75
40
- intervals:
41
- - !ruby/object:Music::Transcription::Interval
42
- pitch: *12543700
43
- link: !ruby/object:Music::Transcription::Link
44
- target_pitch: *12545940
45
- relationship: :glissando
46
- sustain: 0.5
47
- attack: 0.5
48
- separation: 0.5
49
- - !ruby/object:Music::Transcription::Note
50
- duration: 0.5
51
- intervals:
52
- - !ruby/object:Music::Transcription::Interval
53
- pitch: *12545940
54
- link: !ruby/object:Music::Transcription::Link
55
- target_pitch: !ruby/object:Music::Transcription::Pitch
56
- cents_per_octave: 1200
57
- octave: 0
58
- semitone: 0
59
- cent: 0
60
- base_freq: 16.351597831287414
61
- relationship: :none
62
- sustain: 0.5
63
- attack: 0.5
64
- separation: 0.5
65
- program: !ruby/object:Music::Transcription::Program
66
- segments:
67
- - !ruby/range
68
- begin: 0
69
- end: 4.0
70
- excl: true
71
- instrument_configs: {}