CVMidiEditGroup:
Filter:
Classes (extension) | GUI | External Control > MIDI

CVMidiEditGroup : Object
ExtensionExtension

An embeddedable group of GUI-elements, used to edit MIDI-connections within a CVWidgetMSEditor.

Description

A CVMidiEditGroup is a group of Buttons and TextFields, similar to the MIDI-editing area in a CVWidgetKnob or CVWidget2D. Every CVMidiEditGroup consists of:

Class Methods

CVMidiEditGroup.new(parent, bounds, widget, slot)

create a new CVMidiEditGroup within parent. CVMidiEditGroup is currently used within CVWidgetMSEditor only and there shouldn't be any need to call new directly.

Arguments:

parent

a View that takes the GUI-elements

bounds

a Rect or a Point, determining position and size.

widget

the widget: a CVWidgetKnob, a CVWidget2D or a CVWidgetMS.

slot

the numeric slot within a CVWidgetMS (CVMidiEditGroup is currently used only within the context of CVWidgetMS).

Returns:

a CVMidiEditGroup

Inherited class methods

Instance Methods

.bounds

Position, width, and height of a CVMidiEditGroup

Returns:

a Rect

.remove

remove a CVMidiEditGroup

Returns:

this (a CVMidiEditGroup)

.midiHead

A Button linking to MIDI-tab within the widget's editor (see also: CVWidgetEditor)

Returns:

.midiLearn

A Button that, if clicked, either triggers the MIDI-learn functionality (button-label: "L") or creates a CCResponder for the values entered in -midiSrc, -midiChan or/and -midiCtrl (button-label: "C"). If a CCResponder is present the button-label gets changed to "X" - upon clicking the responder gets removed again.

Returns:

.midiSrc

A TextField displaying the ID of a connected MIDI-device. If no CCResponder is present one may enter the ID of a device (if known) and when clicking the -midiLearn button the widget will create a CCResponder listening to that device.

Returns:

.midiChan

A TextField displaying the channel for an existing CCResponder or, if none is present, one may use this field to set the channel for which the CCResponder shall be created.

Returns:

.midiCtrl

A TextField displaying the controller-number of an existing CCResponder or, if none is present, one may use this field to set the controller-number for which the CCResponder shall be created.

NOTE: SuperCollider numbers hardware-controllers internally beginning with 0 - if 0 gets entered here the controller will be displayed as 1 as most devices will probably number their knobs and sliders beginning with 1. Also, the way controller-numbers are displayed is related to the ctrlButtonBank setting which can be set with CVWidget: -setCtrlButtonBank

Returns:

Inherited instance methods