swamigui Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
SwamiguiControlMidiKey; SwamiguiControlMidiKey * swamigui_control_midi_key_new (void
); void swamigui_control_midi_key_press (SwamiguiControlMidiKey *keyctrl
,guint key
); void swamigui_control_midi_key_release (SwamiguiControlMidiKey *keyctrl
,guint key
); void swamigui_control_midi_key_set_lower (SwamiguiControlMidiKey *keyctrl
,const guint *keys
,guint count
); void swamigui_control_midi_key_set_upper (SwamiguiControlMidiKey *keyctrl
,const guint *keys
,guint count
);
GObject +----SwamiLock +----SwamiControl +----SwamiControlFunc +----SwamiControlMidi +----SwamiguiControlMidiKey
"join-octaves" gboolean : Read / Write "lower-channel" gint : Read / Write "lower-octave" gint : Read / Write "lower-velocity" gint : Read / Write "same-velocity" gboolean : Read / Write "upper-channel" gint : Read / Write "upper-octave" gint : Read / Write "upper-velocity" gint : Read / Write
SwamiguiControlMidiKey * swamigui_control_midi_key_new (void
);
Create a new MIDI keyboard control.
Returns : |
New MIDI keyboard control with a refcount of 1 which the caller owns. |
void swamigui_control_midi_key_press (SwamiguiControlMidiKey *keyctrl
,guint key
);
Send a key press to a MIDI keyboard control.
|
MIDI keyboard control |
|
GDK keyboard key (see gdk/gdkkeysyms.h header) |
void swamigui_control_midi_key_release (SwamiguiControlMidiKey *keyctrl
,guint key
);
Send a key release to a MIDI keyboard control.
|
MIDI keyboard control |
|
GDK keyboard key (see gdk/gdkkeysyms.h header) |
void swamigui_control_midi_key_set_lower (SwamiguiControlMidiKey *keyctrl
,const guint *keys
,guint count
);
Set the lower keyboard key array.
Note: Not multi-thread safe
|
MIDI keyboard control |
|
Array of GDK key values |
|
Number of values in keys
|
void swamigui_control_midi_key_set_upper (SwamiguiControlMidiKey *keyctrl
,const guint *keys
,guint count
);
Set the upper keyboard key array.
Note: Not multi-thread safe
|
MIDI keyboard control |
|
Array of GDK key values |
|
Number of values in keys
|
"join-octaves"
property"join-octaves" gboolean : Read / Write
Join upper and lower octaves.
Default value: TRUE
"lower-channel"
property"lower-channel" gint : Read / Write
Lower keyboard MIDI channel.
Allowed values: [0,15]
Default value: 0
"lower-octave"
property"lower-octave" gint : Read / Write
Lower keyboard MIDI octave.
Allowed values: [-2,8]
Default value: 2
"lower-velocity"
property"lower-velocity" gint : Read / Write
Lower keyboard MIDI velocity.
Allowed values: [1,127]
Default value: 127
"same-velocity"
property"same-velocity" gboolean : Read / Write
Same velocity for upper and lower.
Default value: TRUE
"upper-channel"
property"upper-channel" gint : Read / Write
Upper keyboard MIDI channel.
Allowed values: [0,15]
Default value: 0
"upper-octave"
property"upper-octave" gint : Read / Write
Upper keyboard MIDI octave.
Allowed values: [-2,8]
Default value: 3
"upper-velocity"
property"upper-velocity" gint : Read / Write
Upper keyboard MIDI velocity.
Allowed values: [1,127]
Default value: 127