libswami Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
SwamiControlMidi; SwamiControlMidi * swami_control_midi_new (void
); void swami_control_midi_set_callback (SwamiControlMidi *midi
,SwamiControlSetValueFunc callback
,gpointer data
); void swami_control_midi_send (SwamiControlMidi *midi
,SwamiMidiEventType type
,int channel
,int param1
,int param2
); void swami_control_midi_transmit (SwamiControlMidi *midi
,SwamiMidiEventType type
,int channel
,int param1
,int param2
);
GObject +----SwamiLock +----SwamiControl +----SwamiControlFunc +----SwamiControlMidi
SwamiControlMidi * swami_control_midi_new (void
);
Create a new MIDI control.
Returns : |
New MIDI control with a refcount of 1 which the caller owns. |
void swami_control_midi_set_callback (SwamiControlMidi *midi
,SwamiControlSetValueFunc callback
,gpointer data
);
Set a callback function for received events on a MIDI control.
|
MIDI control |
|
Function to callback when a new event is received or NULL
|
|
User defined data to pass to the callback |
void swami_control_midi_send (SwamiControlMidi *midi
,SwamiMidiEventType type
,int channel
,int param1
,int param2
);
A convenience function to send an event TO a MIDI control. One
could do the same by creating a SwamiMidiEvent, calling
swami_midi_event_set()
on it and then setting the
control with swami_control_set_value()
.
|
MIDI control |
|
MIDI event type |
|
MIDI channel to send on |
|
First parameter |
|
Second parameter (only used with certain event types) |
void swami_control_midi_transmit (SwamiControlMidi *midi
,SwamiMidiEventType type
,int channel
,int param1
,int param2
);
A convenience function to send an event FROM a MIDI control. One
could do the same by creating a SwamiMidiEvent, calling
swami_midi_event_set()
on it and then transmitting it from the
control with swami_control_transmit_value()
.
|
MIDI control |
|
MIDI event type |
|
MIDI channel to send on |
|
First parameter |
|
Second parameter (only used with certain event types) |