brevity 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +3 -0
- data/.gitignore +7 -0
- data/.rspec +1 -0
- data/.ruby-version +1 -0
- data/.yardopts +1 -0
- data/ChangeLog.rdoc +4 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +27 -0
- data/Rakefile +67 -0
- data/bin/debrief +56 -0
- data/brevity.gemspec +28 -0
- data/examples/alley_cat.br +50 -0
- data/examples/hip.br +15 -0
- data/examples/missed_connection.br +6 -0
- data/examples/song1.br +11 -0
- data/examples/song2.br +10 -0
- data/examples/twinkle.br +18 -0
- data/lib/brevity/commands/constants.rb +18 -0
- data/lib/brevity/commands/expr.rb +17 -0
- data/lib/brevity/commands/meter.rb +20 -0
- data/lib/brevity/commands/part.rb +47 -0
- data/lib/brevity/commands/tempo.rb +13 -0
- data/lib/brevity/itemization.rb +73 -0
- data/lib/brevity/parsing/expression/dynamic.rb +280 -0
- data/lib/brevity/parsing/expression/dynamic.treetop +41 -0
- data/lib/brevity/parsing/expression/dynamic_nodes.rb +55 -0
- data/lib/brevity/parsing/expression/expression.rb +429 -0
- data/lib/brevity/parsing/expression/expression.treetop +39 -0
- data/lib/brevity/parsing/expression/expression_nodes.rb +26 -0
- data/lib/brevity/parsing/expression/gradual.rb +44 -0
- data/lib/brevity/parsing/expression/gradual.treetop +9 -0
- data/lib/brevity/parsing/expression/gradual_node.rb +11 -0
- data/lib/brevity/parsing/expression/label.rb +75 -0
- data/lib/brevity/parsing/expression/label.treetop +9 -0
- data/lib/brevity/parsing/expression/label_node.rb +15 -0
- data/lib/brevity/parsing/expression/sequence.rb +130 -0
- data/lib/brevity/parsing/expression/sequence.treetop +12 -0
- data/lib/brevity/parsing/expression/sequence_node.rb +14 -0
- data/lib/brevity/parsing/file/command.rb +216 -0
- data/lib/brevity/parsing/file/command.treetop +17 -0
- data/lib/brevity/parsing/file/command_node.rb +11 -0
- data/lib/brevity/parsing/file/comment.rb +178 -0
- data/lib/brevity/parsing/file/comment.treetop +21 -0
- data/lib/brevity/parsing/file/comment_node.rb +3 -0
- data/lib/brevity/parsing/file/file.rb +152 -0
- data/lib/brevity/parsing/file/file.treetop +16 -0
- data/lib/brevity/parsing/file/file_node.rb +7 -0
- data/lib/brevity/parsing/file/path.rb +235 -0
- data/lib/brevity/parsing/file/path.treetop +12 -0
- data/lib/brevity/parsing/modifiers/duplicate_modifier.rb +65 -0
- data/lib/brevity/parsing/modifiers/duplicate_modifier.treetop +11 -0
- data/lib/brevity/parsing/modifiers/duplicate_modifier_node.rb +8 -0
- data/lib/brevity/parsing/modifiers/modifier.rb +64 -0
- data/lib/brevity/parsing/modifiers/modifier.treetop +13 -0
- data/lib/brevity/parsing/modifiers/stretch_modifier.rb +69 -0
- data/lib/brevity/parsing/modifiers/stretch_modifier.treetop +11 -0
- data/lib/brevity/parsing/modifiers/stretch_modifier_node.rb +21 -0
- data/lib/brevity/parsing/modifiers/transpose_modifier.rb +69 -0
- data/lib/brevity/parsing/modifiers/transpose_modifier.treetop +11 -0
- data/lib/brevity/parsing/modifiers/transpose_modifier_node.rb +13 -0
- data/lib/brevity/parsing/note/accent.rb +44 -0
- data/lib/brevity/parsing/note/accent.treetop +9 -0
- data/lib/brevity/parsing/note/duration.rb +203 -0
- data/lib/brevity/parsing/note/duration.treetop +23 -0
- data/lib/brevity/parsing/note/duration_nodes.rb +19 -0
- data/lib/brevity/parsing/note/link.rb +69 -0
- data/lib/brevity/parsing/note/link.treetop +11 -0
- data/lib/brevity/parsing/note/link_node.rb +19 -0
- data/lib/brevity/parsing/note/note.rb +300 -0
- data/lib/brevity/parsing/note/note.treetop +30 -0
- data/lib/brevity/parsing/note/note_nodes.rb +77 -0
- data/lib/brevity/parsing/note/pitch.rb +81 -0
- data/lib/brevity/parsing/note/pitch.treetop +9 -0
- data/lib/brevity/parsing/note/pitch_node.rb +50 -0
- data/lib/brevity/parsing/numbers/nonnegative_integer.rb +53 -0
- data/lib/brevity/parsing/numbers/nonnegative_integer.treetop +9 -0
- data/lib/brevity/parsing/numbers/positive_integer.rb +91 -0
- data/lib/brevity/parsing/numbers/positive_integer.treetop +15 -0
- data/lib/brevity/read_file.rb +18 -0
- data/lib/brevity/score_maker.rb +64 -0
- data/lib/brevity/version.rb +4 -0
- data/lib/brevity.rb +53 -0
- data/manuals/brevity.pdf +0 -0
- data/manuals/brevity.tex +273 -0
- data/spec/brevity_spec.rb +8 -0
- data/spec/commands/expr_spec.rb +15 -0
- data/spec/commands/meter_spec.rb +21 -0
- data/spec/commands/part_spec.rb +16 -0
- data/spec/commands/tempo_spec.rb +20 -0
- data/spec/itemization_spec.rb +46 -0
- data/spec/parsing/expression/dynamic_nodes_spec.rb +32 -0
- data/spec/parsing/expression/dynamic_spec.rb +23 -0
- data/spec/parsing/expression/expression_nodes_spec.rb +87 -0
- data/spec/parsing/expression/expression_spec.rb +85 -0
- data/spec/parsing/expression/gradual_spec.rb +10 -0
- data/spec/parsing/expression/label_node_spec.rb +13 -0
- data/spec/parsing/expression/label_spec.rb +35 -0
- data/spec/parsing/file/command_node_spec.rb +29 -0
- data/spec/parsing/file/command_spec.rb +18 -0
- data/spec/parsing/file/comment_spec.rb +14 -0
- data/spec/parsing/file/file_node_spec.rb +19 -0
- data/spec/parsing/file/file_spec.rb +30 -0
- data/spec/parsing/modifiers/modifier_nodes_spec.rb +25 -0
- data/spec/parsing/modifiers/modifier_parsers_spec.rb +20 -0
- data/spec/parsing/note/accent_spec.rb +27 -0
- data/spec/parsing/note/duration_nodes_spec.rb +79 -0
- data/spec/parsing/note/duration_spec.rb +69 -0
- data/spec/parsing/note/link_node_spec.rb +30 -0
- data/spec/parsing/note/link_spec.rb +23 -0
- data/spec/parsing/note/note_nodes_spec.rb +82 -0
- data/spec/parsing/note/note_spec.rb +188 -0
- data/spec/parsing/note/pitch_node_spec.rb +48 -0
- data/spec/parsing/note/pitch_spec.rb +23 -0
- data/spec/parsing/numbers/nonnegative_integer_spec.rb +11 -0
- data/spec/parsing/numbers/positive_integer_spec.rb +17 -0
- data/spec/spec_helper.rb +112 -0
- metadata +293 -0
metadata
ADDED
@@ -0,0 +1,293 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: brevity
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- James Tunnell
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-09-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.8'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.8'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.4'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.4'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: yard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.8'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.8'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: treetop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: music-transcription
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.7'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.7'
|
111
|
+
description: Parse and process brevity files, used for music notation. Convert them
|
112
|
+
to other formats.
|
113
|
+
email: jamestunnell@gmail.com
|
114
|
+
executables:
|
115
|
+
- debrief
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- .document
|
120
|
+
- .gitignore
|
121
|
+
- .rspec
|
122
|
+
- .ruby-version
|
123
|
+
- .yardopts
|
124
|
+
- ChangeLog.rdoc
|
125
|
+
- Gemfile
|
126
|
+
- LICENSE.txt
|
127
|
+
- README.rdoc
|
128
|
+
- Rakefile
|
129
|
+
- bin/debrief
|
130
|
+
- brevity.gemspec
|
131
|
+
- examples/alley_cat.br
|
132
|
+
- examples/hip.br
|
133
|
+
- examples/missed_connection.br
|
134
|
+
- examples/song1.br
|
135
|
+
- examples/song2.br
|
136
|
+
- examples/twinkle.br
|
137
|
+
- lib/brevity.rb
|
138
|
+
- lib/brevity/commands/constants.rb
|
139
|
+
- lib/brevity/commands/expr.rb
|
140
|
+
- lib/brevity/commands/meter.rb
|
141
|
+
- lib/brevity/commands/part.rb
|
142
|
+
- lib/brevity/commands/tempo.rb
|
143
|
+
- lib/brevity/itemization.rb
|
144
|
+
- lib/brevity/parsing/expression/dynamic.rb
|
145
|
+
- lib/brevity/parsing/expression/dynamic.treetop
|
146
|
+
- lib/brevity/parsing/expression/dynamic_nodes.rb
|
147
|
+
- lib/brevity/parsing/expression/expression.rb
|
148
|
+
- lib/brevity/parsing/expression/expression.treetop
|
149
|
+
- lib/brevity/parsing/expression/expression_nodes.rb
|
150
|
+
- lib/brevity/parsing/expression/gradual.rb
|
151
|
+
- lib/brevity/parsing/expression/gradual.treetop
|
152
|
+
- lib/brevity/parsing/expression/gradual_node.rb
|
153
|
+
- lib/brevity/parsing/expression/label.rb
|
154
|
+
- lib/brevity/parsing/expression/label.treetop
|
155
|
+
- lib/brevity/parsing/expression/label_node.rb
|
156
|
+
- lib/brevity/parsing/expression/sequence.rb
|
157
|
+
- lib/brevity/parsing/expression/sequence.treetop
|
158
|
+
- lib/brevity/parsing/expression/sequence_node.rb
|
159
|
+
- lib/brevity/parsing/file/command.rb
|
160
|
+
- lib/brevity/parsing/file/command.treetop
|
161
|
+
- lib/brevity/parsing/file/command_node.rb
|
162
|
+
- lib/brevity/parsing/file/comment.rb
|
163
|
+
- lib/brevity/parsing/file/comment.treetop
|
164
|
+
- lib/brevity/parsing/file/comment_node.rb
|
165
|
+
- lib/brevity/parsing/file/file.rb
|
166
|
+
- lib/brevity/parsing/file/file.treetop
|
167
|
+
- lib/brevity/parsing/file/file_node.rb
|
168
|
+
- lib/brevity/parsing/file/path.rb
|
169
|
+
- lib/brevity/parsing/file/path.treetop
|
170
|
+
- lib/brevity/parsing/modifiers/duplicate_modifier.rb
|
171
|
+
- lib/brevity/parsing/modifiers/duplicate_modifier.treetop
|
172
|
+
- lib/brevity/parsing/modifiers/duplicate_modifier_node.rb
|
173
|
+
- lib/brevity/parsing/modifiers/modifier.rb
|
174
|
+
- lib/brevity/parsing/modifiers/modifier.treetop
|
175
|
+
- lib/brevity/parsing/modifiers/stretch_modifier.rb
|
176
|
+
- lib/brevity/parsing/modifiers/stretch_modifier.treetop
|
177
|
+
- lib/brevity/parsing/modifiers/stretch_modifier_node.rb
|
178
|
+
- lib/brevity/parsing/modifiers/transpose_modifier.rb
|
179
|
+
- lib/brevity/parsing/modifiers/transpose_modifier.treetop
|
180
|
+
- lib/brevity/parsing/modifiers/transpose_modifier_node.rb
|
181
|
+
- lib/brevity/parsing/note/accent.rb
|
182
|
+
- lib/brevity/parsing/note/accent.treetop
|
183
|
+
- lib/brevity/parsing/note/duration.rb
|
184
|
+
- lib/brevity/parsing/note/duration.treetop
|
185
|
+
- lib/brevity/parsing/note/duration_nodes.rb
|
186
|
+
- lib/brevity/parsing/note/link.rb
|
187
|
+
- lib/brevity/parsing/note/link.treetop
|
188
|
+
- lib/brevity/parsing/note/link_node.rb
|
189
|
+
- lib/brevity/parsing/note/note.rb
|
190
|
+
- lib/brevity/parsing/note/note.treetop
|
191
|
+
- lib/brevity/parsing/note/note_nodes.rb
|
192
|
+
- lib/brevity/parsing/note/pitch.rb
|
193
|
+
- lib/brevity/parsing/note/pitch.treetop
|
194
|
+
- lib/brevity/parsing/note/pitch_node.rb
|
195
|
+
- lib/brevity/parsing/numbers/nonnegative_integer.rb
|
196
|
+
- lib/brevity/parsing/numbers/nonnegative_integer.treetop
|
197
|
+
- lib/brevity/parsing/numbers/positive_integer.rb
|
198
|
+
- lib/brevity/parsing/numbers/positive_integer.treetop
|
199
|
+
- lib/brevity/read_file.rb
|
200
|
+
- lib/brevity/score_maker.rb
|
201
|
+
- lib/brevity/version.rb
|
202
|
+
- manuals/brevity.pdf
|
203
|
+
- manuals/brevity.tex
|
204
|
+
- spec/brevity_spec.rb
|
205
|
+
- spec/commands/expr_spec.rb
|
206
|
+
- spec/commands/meter_spec.rb
|
207
|
+
- spec/commands/part_spec.rb
|
208
|
+
- spec/commands/tempo_spec.rb
|
209
|
+
- spec/itemization_spec.rb
|
210
|
+
- spec/parsing/expression/dynamic_nodes_spec.rb
|
211
|
+
- spec/parsing/expression/dynamic_spec.rb
|
212
|
+
- spec/parsing/expression/expression_nodes_spec.rb
|
213
|
+
- spec/parsing/expression/expression_spec.rb
|
214
|
+
- spec/parsing/expression/gradual_spec.rb
|
215
|
+
- spec/parsing/expression/label_node_spec.rb
|
216
|
+
- spec/parsing/expression/label_spec.rb
|
217
|
+
- spec/parsing/file/command_node_spec.rb
|
218
|
+
- spec/parsing/file/command_spec.rb
|
219
|
+
- spec/parsing/file/comment_spec.rb
|
220
|
+
- spec/parsing/file/file_node_spec.rb
|
221
|
+
- spec/parsing/file/file_spec.rb
|
222
|
+
- spec/parsing/modifiers/modifier_nodes_spec.rb
|
223
|
+
- spec/parsing/modifiers/modifier_parsers_spec.rb
|
224
|
+
- spec/parsing/note/accent_spec.rb
|
225
|
+
- spec/parsing/note/duration_nodes_spec.rb
|
226
|
+
- spec/parsing/note/duration_spec.rb
|
227
|
+
- spec/parsing/note/link_node_spec.rb
|
228
|
+
- spec/parsing/note/link_spec.rb
|
229
|
+
- spec/parsing/note/note_nodes_spec.rb
|
230
|
+
- spec/parsing/note/note_spec.rb
|
231
|
+
- spec/parsing/note/pitch_node_spec.rb
|
232
|
+
- spec/parsing/note/pitch_spec.rb
|
233
|
+
- spec/parsing/numbers/nonnegative_integer_spec.rb
|
234
|
+
- spec/parsing/numbers/positive_integer_spec.rb
|
235
|
+
- spec/spec_helper.rb
|
236
|
+
homepage: https://rubygems.org/gems/brevity
|
237
|
+
licenses:
|
238
|
+
- MIT
|
239
|
+
metadata: {}
|
240
|
+
post_install_message:
|
241
|
+
rdoc_options: []
|
242
|
+
require_paths:
|
243
|
+
- lib
|
244
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
245
|
+
requirements:
|
246
|
+
- - '>='
|
247
|
+
- !ruby/object:Gem::Version
|
248
|
+
version: '0'
|
249
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
250
|
+
requirements:
|
251
|
+
- - '>='
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: '0'
|
254
|
+
requirements: []
|
255
|
+
rubyforge_project:
|
256
|
+
rubygems_version: 2.2.2
|
257
|
+
signing_key:
|
258
|
+
specification_version: 4
|
259
|
+
summary: Parse and process brevity files. Convert them to other formats.
|
260
|
+
test_files:
|
261
|
+
- spec/brevity_spec.rb
|
262
|
+
- spec/commands/expr_spec.rb
|
263
|
+
- spec/commands/meter_spec.rb
|
264
|
+
- spec/commands/part_spec.rb
|
265
|
+
- spec/commands/tempo_spec.rb
|
266
|
+
- spec/itemization_spec.rb
|
267
|
+
- spec/parsing/expression/dynamic_nodes_spec.rb
|
268
|
+
- spec/parsing/expression/dynamic_spec.rb
|
269
|
+
- spec/parsing/expression/expression_nodes_spec.rb
|
270
|
+
- spec/parsing/expression/expression_spec.rb
|
271
|
+
- spec/parsing/expression/gradual_spec.rb
|
272
|
+
- spec/parsing/expression/label_node_spec.rb
|
273
|
+
- spec/parsing/expression/label_spec.rb
|
274
|
+
- spec/parsing/file/command_node_spec.rb
|
275
|
+
- spec/parsing/file/command_spec.rb
|
276
|
+
- spec/parsing/file/comment_spec.rb
|
277
|
+
- spec/parsing/file/file_node_spec.rb
|
278
|
+
- spec/parsing/file/file_spec.rb
|
279
|
+
- spec/parsing/modifiers/modifier_nodes_spec.rb
|
280
|
+
- spec/parsing/modifiers/modifier_parsers_spec.rb
|
281
|
+
- spec/parsing/note/accent_spec.rb
|
282
|
+
- spec/parsing/note/duration_nodes_spec.rb
|
283
|
+
- spec/parsing/note/duration_spec.rb
|
284
|
+
- spec/parsing/note/link_node_spec.rb
|
285
|
+
- spec/parsing/note/link_spec.rb
|
286
|
+
- spec/parsing/note/note_nodes_spec.rb
|
287
|
+
- spec/parsing/note/note_spec.rb
|
288
|
+
- spec/parsing/note/pitch_node_spec.rb
|
289
|
+
- spec/parsing/note/pitch_spec.rb
|
290
|
+
- spec/parsing/numbers/nonnegative_integer_spec.rb
|
291
|
+
- spec/parsing/numbers/positive_integer_spec.rb
|
292
|
+
- spec/spec_helper.rb
|
293
|
+
has_rdoc:
|