Class: JSound::Midi::Messages::PolyPressure
- Inherits:
-
JSound::Midi::Message
- Object
- JSound::Midi::Message
- JSound::Midi::Messages::PolyPressure
- Defined in:
- lib/jsound/midi/messages/poly_pressure.rb
Constant Summary
Constants inherited from JSound::Midi::Message
JSound::Midi::Message::CLASS_FOR_STATUS, JSound::Midi::Message::STATUS_FOR_CLASS, JSound::Midi::Message::STATUS_FOR_TYPE, JSound::Midi::Message::TYPE_FOR_STATUS
Instance Attribute Summary
Attributes inherited from JSound::Midi::Message
#channel, #data, #source, #type
Class Method Summary collapse
Instance Method Summary collapse
- #clone ⇒ Object
-
#initialize(pitch, pressure, channel = 0, options = {}) ⇒ PolyPressure
constructor
A new instance of PolyPressure.
Methods inherited from JSound::Midi::Message
#==, #data1, #data1=, #data2, #data2=, inherited, #status, #to_java, #to_s, #update_java_message, #value
Methods included from TypeFromClassName
Constructor Details
#initialize(pitch, pressure, channel = 0, options = {}) ⇒ PolyPressure
Returns a new instance of PolyPressure.
7 8 9 |
# File 'lib/jsound/midi/messages/poly_pressure.rb', line 7 def initialize(pitch, pressure, channel=0, ={}) super([pitch,pressure], channel, ) end |
Class Method Details
.from_java(java_message, options = {}) ⇒ Object
17 18 19 |
# File 'lib/jsound/midi/messages/poly_pressure.rb', line 17 def self.from_java(, ={}) new .data1, .data2, .channel, .merge({:java_message => }) end |
Instance Method Details
#clone ⇒ Object
21 22 23 |
# File 'lib/jsound/midi/messages/poly_pressure.rb', line 21 def clone self.class.new(pitch,pressure,@channel) end |