BB.MidiInputButton

A module for representing individual button inputs on a midi device. A button is defined as a midi input that only has two values (velocity): 0 and 127. NOTE: Don't use this class for an input unless it only outpus velocity values 0 and 127 exclusively even if it looks like a button, as it will cause the "up" and "down" events to work improperly.

Index

Methods

Constructor

BB.MidiInputButton
(
  • [note]
)

Parameters:

  • [note] Number optional

    The midi note to assign this input to.

Methods

on
(
  • name
  • callback
)

Inherited from BB.BaseMidiInput but overwritten in src/BB.MidiInputButton.js:35

Register an event for this midi input. Available events include: change, up, and down.

Parameters:

  • name String

    The name of the event. Supports "change", "up" (button up), and "down" (button down) events.

  • callback Function

    Callback to run when the event has fired

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index