melody_object 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,26 @@
1
+ require 'unimidi'
2
+
3
+ class Midi_interface
4
+
5
+ attr_accessor :output
6
+
7
+ def initialize
8
+
9
+ @output=UniMIDI::Output.open(0)
10
+
11
+ end
12
+
13
+ def note_on(note,channel,velocity)
14
+ @output.puts(0x90|channel, note, velocity) # note on
15
+
16
+
17
+ end
18
+
19
+
20
+ def note_off(note,channel,velocity)
21
+ @output.puts(0x80|channel, note, velocity) # note on
22
+
23
+
24
+ end
25
+
26
+ end
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: melody_object
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jon Keskitalo
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-11-08 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Sections and Threadsets
15
+ email: rmiddlehouse@hotmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/melody_object.rb
21
+ - lib/melody_object/Level_three.rb
22
+ - lib/melody_object/Level_two.rb
23
+ - lib/melody_object/Mo_h_hc.rb
24
+ - lib/melody_object/g_comeon4.rb
25
+ - lib/melody_object/midi_interface.rb
26
+ - lib/melody_object/Generators.rb
27
+ homepage: http://rubygems.org/gems/hola
28
+ licenses:
29
+ - MIT
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubyforge_project:
48
+ rubygems_version: 1.8.25
49
+ signing_key:
50
+ specification_version: 3
51
+ summary: An object-oriented composer
52
+ test_files: []