MidiButton

class supriya.tools.miditools.MidiButton(channel_number=None, controller_number=None, invert=False)[source]

Lineage

digraph InheritanceGraph { graph [background=transparent, bgcolor=transparent, color=lightslategrey, fontname=Arial, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, root="__builtin__.object", splines=spline, style="dotted, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=12, penwidth=2, style="filled, rounded"]; edge [color=lightsteelblue2, penwidth=2]; subgraph cluster_builtins { graph [label=builtins]; "builtins.object" [color=2, group=1, label=object, shape=box]; } subgraph cluster_bindingtools { graph [label=bindingtools]; "supriya.tools.bindingtools.BindingSource.BindingSource" [color=1, group=0, label=BindingSource, shape=oval, style=bold]; } subgraph cluster_miditools { graph [label=miditools]; "supriya.tools.miditools.MidiButton.MidiButton" [color=black, fontcolor=white, group=2, label=<<B>MidiButton</B>>, shape=box, style="filled, rounded"]; "supriya.tools.miditools.MidiCallback.MidiCallback" [color=3, group=2, label=MidiCallback, shape=box]; "supriya.tools.miditools.MidiController.MidiController" [color=3, group=2, label=MidiController, shape=box]; "supriya.tools.miditools.MidiCallback.MidiCallback" -> "supriya.tools.miditools.MidiController.MidiController"; "supriya.tools.miditools.MidiController.MidiController" -> "supriya.tools.miditools.MidiButton.MidiButton"; } subgraph cluster_systemtools { graph [label=systemtools]; "supriya.tools.systemtools.SupriyaObject.AbstractBase" [color=4, group=3, label=AbstractBase, shape=box]; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" [color=4, group=3, label=SupriyaObject, shape=box]; "supriya.tools.systemtools.SupriyaObject.AbstractBase" -> "supriya.tools.systemtools.SupriyaObject.SupriyaObject"; } "builtins.object" -> "supriya.tools.systemtools.SupriyaObject.AbstractBase"; "supriya.tools.bindingtools.BindingSource.BindingSource" -> "supriya.tools.miditools.MidiController.MidiController"; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" -> "supriya.tools.bindingtools.BindingSource.BindingSource"; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" -> "supriya.tools.miditools.MidiCallback.MidiCallback"; }

Attribute summary

channel_number
controller_number Gets callback controller number.
dispatcher_key Gets callback dispatcher key.
invert
is_bound
is_one_shot
on_change
on_press
on_release
previous_value
procedure
prototype
unbind([binding])
__call__(message)
__eq__(expr) Is true when ID of expr equals ID of Supriya object.
__format__([format_specification]) Formats Supriya object.
__hash__() Hashes Supriya object.
__repr__() Gets interpreter representation of Supriya object.

Read-only properties

(MidiCallback).channel_number
(MidiController).controller_number

Gets callback controller number.

>>> callback.controller_number
17

Returns integer or none.

(MidiController).dispatcher_key

Gets callback dispatcher key.

>>> callback.dispatcher_key
(<class 'supriya.tools.miditools.ControllerChangeMessage.ControllerChangeMessage'>, 1, 17)

Returns tuple.

MidiButton.invert
(BindingSource).is_bound
(MidiCallback).is_one_shot
(MidiController).on_change
MidiButton.on_press
MidiButton.on_release
(MidiController).previous_value
(MidiCallback).procedure
(MidiCallback).prototype

Methods

(BindingSource).unbind(binding=None)

Special methods

MidiButton.__call__(message)[source]
(SupriyaObject).__eq__(expr)

Is true when ID of expr equals ID of Supriya object. Otherwise false.

Returns boolean.

(SupriyaObject).__format__(format_specification='')

Formats Supriya object.

Set format_specification to ‘’ or ‘storage’. Interprets ‘’ equal to ‘storage’.

Returns string.

(SupriyaObject).__hash__()

Hashes Supriya object.

Required to be explicitely re-defined on Python 3 if __eq__ changes.

Returns integer.

(SupriyaObject).__repr__()

Gets interpreter representation of Supriya object.

Returns string.