Class: SonicPiAkaiApcMini::Controller::Model

Inherits:
Struct
  • Object
show all
Defined in:
lib/sonic-pi-akai-apc-mini/controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fader_countObject

Returns the value of attribute fader_count

Returns:

  • (Object)

    the current value of fader_count



25
26
27
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25

def fader_count
  @fader_count
end

#fader_light_offsetObject

Returns the value of attribute fader_light_offset

Returns:

  • (Object)

    the current value of 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_offsetObject

Returns the value of attribute fader_offset

Returns:

  • (Object)

    the current value of fader_offset



25
26
27
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25

def fader_offset
  @fader_offset
end

#grid_columnsObject

Returns the value of attribute grid_columns

Returns:

  • (Object)

    the current value of grid_columns



25
26
27
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25

def grid_columns
  @grid_columns
end

#grid_offsetObject

Returns the value of attribute grid_offset

Returns:

  • (Object)

    the current value of grid_offset



25
26
27
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25

def grid_offset
  @grid_offset
end

#grid_rowsObject

Returns the value of attribute grid_rows

Returns:

  • (Object)

    the current value of grid_rows



25
26
27
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25

def grid_rows
  @grid_rows
end

#light_greenObject

Returns the value of attribute light_green

Returns:

  • (Object)

    the current value of light_green



25
26
27
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25

def light_green
  @light_green
end

#light_offObject

Returns the value of attribute light_off

Returns:

  • (Object)

    the current value of light_off



25
26
27
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25

def light_off
  @light_off
end

#light_redObject

Returns the value of attribute light_red

Returns:

  • (Object)

    the current value of light_red



25
26
27
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25

def light_red
  @light_red
end

#light_yellowObject

Returns the value of attribute light_yellow

Returns:

  • (Object)

    the current value of light_yellow



25
26
27
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25

def light_yellow
  @light_yellow
end

#midi_portObject

Returns the value of attribute midi_port

Returns:

  • (Object)

    the current value of midi_port



25
26
27
# File 'lib/sonic-pi-akai-apc-mini/controller.rb', line 25

def midi_port
  @midi_port
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of 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