Class: SonicPiAkaiApcMini::Controller::Model
- Inherits:
-
Struct
- Object
- Struct
- SonicPiAkaiApcMini::Controller::Model
- Defined in:
- lib/sonic-pi-akai-apc-mini/controller.rb
Instance Attribute Summary collapse
-
#fader_count ⇒ Object
Returns the value of attribute fader_count.
-
#fader_light_offset ⇒ Object
Returns the value of attribute fader_light_offset.
-
#fader_offset ⇒ Object
Returns the value of attribute fader_offset.
-
#grid_columns ⇒ Object
Returns the value of attribute grid_columns.
-
#grid_offset ⇒ Object
Returns the value of attribute grid_offset.
-
#grid_rows ⇒ Object
Returns the value of attribute grid_rows.
-
#light_green ⇒ Object
Returns the value of attribute light_green.
-
#light_off ⇒ Object
Returns the value of attribute light_off.
-
#light_red ⇒ Object
Returns the value of attribute light_red.
-
#light_yellow ⇒ Object
Returns the value of attribute light_yellow.
-
#midi_port ⇒ Object
Returns the value of attribute midi_port.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#fader_count ⇒ Object
Returns the value of attribute fader_count
25 26 27 |
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25 def fader_count @fader_count end |
#fader_light_offset ⇒ Object
Returns the value of attribute fader_light_offset
25 26 27 |
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25 def fader_light_offset @fader_light_offset end |
#fader_offset ⇒ Object
Returns the value of attribute fader_offset
25 26 27 |
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25 def fader_offset @fader_offset end |
#grid_columns ⇒ Object
Returns the value of attribute grid_columns
25 26 27 |
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25 def grid_columns @grid_columns end |
#grid_offset ⇒ Object
Returns the value of attribute grid_offset
25 26 27 |
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25 def grid_offset @grid_offset end |
#grid_rows ⇒ Object
Returns the value of attribute grid_rows
25 26 27 |
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25 def grid_rows @grid_rows end |
#light_green ⇒ Object
Returns the value of attribute light_green
25 26 27 |
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25 def light_green @light_green end |
#light_off ⇒ Object
Returns the value of attribute light_off
25 26 27 |
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25 def light_off @light_off end |
#light_red ⇒ Object
Returns the value of attribute light_red
25 26 27 |
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25 def light_red @light_red end |
#light_yellow ⇒ Object
Returns the value of attribute light_yellow
25 26 27 |
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25 def light_yellow @light_yellow end |
#midi_port ⇒ Object
Returns the value of attribute midi_port
25 26 27 |
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25 def midi_port @midi_port end |
#name ⇒ Object
Returns the value of attribute name
25 26 27 |
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25 def name @name end |
Instance Method Details
#midi_event(event_name) ⇒ Object
32 33 34 |
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 32 def midi_event(event_name) "/midi:#{midi_port}/#{event_name}" end |