midiator 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/amen_break.rb +157 -0
- data/examples/chords.rb +34 -0
- data/examples/chromatic_scale.rb +2 -2
- data/examples/drum_chords.rb +49 -0
- data/examples/metronome.rb +12 -12
- data/examples/synth.rb +34 -0
- data/examples/twinkle.rb +2 -2
- data/lib/midiator.rb +4 -4
- data/lib/midiator/driver.rb +87 -87
- data/lib/midiator/driver_registry.rb +24 -24
- data/lib/midiator/drivers/alsa.rb +36 -36
- data/lib/midiator/drivers/core_midi.rb +46 -46
- data/lib/midiator/drivers/dls_synth.rb +97 -97
- data/lib/midiator/drivers/mmj.rb +35 -0
- data/lib/midiator/drivers/winmm.rb +18 -18
- data/lib/midiator/drums.rb +19 -19
- data/lib/midiator/interface.rb +90 -79
- data/lib/midiator/notes.rb +62 -62
- data/lib/midiator/timer.rb +33 -33
- data/lib/string_extensions.rb +39 -39
- data/misc/rake/packaging.rb +20 -20
- data/misc/rake/rdoc.rb +16 -21
- data/misc/rake/testing.rb +9 -9
- data/spec/driver_registry_spec.rb +96 -96
- data/spec/driver_spec.rb +8 -8
- data/spec/interface_spec.rb +114 -114
- data/spec/string_extensions_spec.rb +12 -12
- metadata +7 -2
@@ -17,19 +17,19 @@
|
|
17
17
|
require File.join( File.dirname(__FILE__), 'lib', 'spec_helper.rb' )
|
18
18
|
|
19
19
|
describe "MIDIator's extensions to Ruby's String class" do
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
it "converts under_scored strings to CamelCase" do
|
21
|
+
"this_is_some_strings".camelize.should == "ThisIsSomeStrings"
|
22
|
+
end
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
it "converts file path strings to module paths" do
|
25
|
+
"some/file/lives/here".camelize.should == "Some::File::Lives::Here"
|
26
|
+
end
|
27
27
|
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
it "converts CamelCase strings to under_scored" do
|
29
|
+
"TheseStringsBeCamelly".underscore.should == "these_strings_be_camelly"
|
30
|
+
end
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
it "converts module path strings to file paths" do
|
33
|
+
"This::Is::A::Module".underscore.should == "this/is/a/module"
|
34
|
+
end
|
35
35
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: midiator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Bleything
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-04-02 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -40,6 +40,7 @@ files:
|
|
40
40
|
- lib/midiator/drivers/alsa.rb
|
41
41
|
- lib/midiator/drivers/core_midi.rb
|
42
42
|
- lib/midiator/drivers/dls_synth.rb
|
43
|
+
- lib/midiator/drivers/mmj.rb
|
43
44
|
- lib/midiator/drivers/winmm.rb
|
44
45
|
- lib/midiator/drums.rb
|
45
46
|
- lib/midiator/exceptions.rb
|
@@ -48,8 +49,12 @@ files:
|
|
48
49
|
- lib/midiator/timer.rb
|
49
50
|
- lib/midiator.rb
|
50
51
|
- lib/string_extensions.rb
|
52
|
+
- examples/amen_break.rb
|
53
|
+
- examples/chords.rb
|
51
54
|
- examples/chromatic_scale.rb
|
55
|
+
- examples/drum_chords.rb
|
52
56
|
- examples/metronome.rb
|
57
|
+
- examples/synth.rb
|
53
58
|
- examples/twinkle.rb
|
54
59
|
- misc/rake/packaging.rb
|
55
60
|
- misc/rake/rdoc.rb
|