Defines | |
#define | snd_seq_ev_clear(ev) memset(ev, 0, sizeof(snd_seq_event_t)) |
initialize event record. More... | |
#define | snd_seq_ev_set_dest(ev, c, p) ((ev)->dest.client = (c), (ev)->dest.port = (p)) |
set the explicit destination. More... | |
#define | snd_seq_ev_set_subs(ev) |
set broadcasting to subscribers. More... | |
#define | snd_seq_ev_set_broadcast(ev) |
set broadcasting to all clients/ports. More... | |
#define | snd_seq_ev_set_source(ev, p) ((ev)->source.port = (p)) |
set the source port. More... | |
#define | snd_seq_ev_set_direct(ev) ((ev)->queue = SND_SEQ_QUEUE_DIRECT) |
set direct passing mode (without queued). More... | |
#define | snd_seq_ev_schedule_tick(ev, q, relative, ttick) |
set tick-scheduling mode on queue. More... | |
#define | snd_seq_ev_schedule_real(ev, q, relative, rtime) |
set real-time-scheduling mode on queue. More... | |
#define | snd_seq_ev_set_priority(ev, high_prior) |
set event priority. More... | |
#define | snd_seq_ev_set_fixed(ev) |
set fixed data. More... | |
#define | snd_seq_ev_set_variable(ev, datalen, dataptr) |
set variable data. More... | |
#define | snd_seq_ev_set_varusr(ev, datalen, dataptr) |
set varusr data. More... | |
#define | snd_seq_ev_set_queue_control(ev, typ, q, val) |
set queue controls. More... | |
#define | snd_seq_ev_set_queue_start(ev, q) snd_seq_ev_set_queue_control(ev, SND_SEQ_EVENT_START, q, 0) |
set the start queue event. More... | |
#define | snd_seq_ev_set_queue_stop(ev, q) snd_seq_ev_set_queue_control(ev, SND_SEQ_EVENT_STOP, q, 0) |
set the stop queue event. More... | |
#define | snd_seq_ev_set_queue_continue(ev, q) snd_seq_ev_set_queue_control(ev, SND_SEQ_EVENT_CONTINUE, q, 0) |
set the stop queue event. More... | |
#define | snd_seq_ev_set_queue_tempo(ev, q, val) snd_seq_ev_set_queue_control(ev, SND_SEQ_EVENT_TEMPO, q, val) |
set the stop queue event. More... | |
#define | snd_seq_ev_set_queue_pos_real(ev, q, rtime) |
set the real-time position of a queue. More... | |
#define | snd_seq_ev_set_queue_pos_tick(ev, q, ttime) |
set the tick-time position of a queue. More... | |
#define | snd_seq_start_queue(seq, q, ev) snd_seq_control_queue(seq, q, SND_SEQ_EVENT_START, 0, ev) |
start the specified queue. More... | |
#define | snd_seq_stop_queue(seq, q, ev) snd_seq_control_queue(seq, q, SND_SEQ_EVENT_STOP, 0, ev) |
stop the specified queue. More... | |
#define | snd_seq_continue_queue(seq, q, ev) snd_seq_control_queue(seq, q, SND_SEQ_EVENT_CONTINUE, 0, ev) |
continue the specified queue. More... | |
#define | snd_seq_change_queue_tempo(seq, q, tempo, ev) snd_seq_control_queue(seq, q, SND_SEQ_EVENT_TEMPO, tempo, ev) |
change the tempo of the specified queue. More... | |
#define | snd_seq_ev_set_note(ev, ch, key, vel, dur) |
set note event. More... | |
#define | snd_seq_ev_set_noteon(ev, ch, key, vel) |
set note-on event. More... | |
#define | snd_seq_ev_set_noteoff(ev, ch, key, vel) |
set note-off event. More... | |
#define | snd_seq_ev_set_keypress(ev, ch, key, vel) |
set key-pressure event. More... | |
#define | snd_seq_ev_set_controller(ev, ch, cc, val) |
set MIDI controller event. More... | |
#define | snd_seq_ev_set_pgmchange(ev, ch, val) |
set program change event. More... | |
#define | snd_seq_ev_set_pitchbend(ev, ch, val) |
set pitch-bend event. More... | |
#define | snd_seq_ev_set_chanpress(ev, ch, val) |
set channel pressure event. More... | |
#define | snd_seq_ev_set_sysex(ev, datalen, dataptr) |
set sysex event. More... | |
Functions | |
int | snd_seq_control_queue (snd_seq_t *seq, int q, int type, int value, snd_seq_event_t *ev) |
queue controls - start/stop/continue. More... | |
int | snd_seq_create_simple_port (snd_seq_t *seq, const char *name, unsigned int caps, unsigned int type) |
create a port - simple version. More... | |
int | snd_seq_delete_simple_port (snd_seq_t *seq, int port) |
delete the port. More... | |
int | snd_seq_connect_from (snd_seq_t *seq, int my_port, int src_client, int src_port) |
simple subscription (w/o exclusive & time conversion). More... | |
int | snd_seq_connect_to (snd_seq_t *seq, int my_port, int dest_client, int dest_port) |
simple subscription (w/o exclusive & time conversion). More... | |
int | snd_seq_disconnect_from (snd_seq_t *seq, int my_port, int src_client, int src_port) |
simple disconnection. More... | |
int | snd_seq_disconnect_to (snd_seq_t *seq, int my_port, int dest_client, int dest_port) |
simple disconnection. More... | |
int | snd_seq_set_client_name (snd_seq_t *seq, const char *name) |
set client name. More... | |
int | snd_seq_set_client_event_filter (snd_seq_t *seq, int event_type) |
add client event filter. More... | |
int | snd_seq_set_client_pool_output (snd_seq_t *seq, size_t size) |
change the output pool size of the given client. More... | |
int | snd_seq_set_client_pool_output_room (snd_seq_t *seq, size_t size) |
change the output room size of the given client. More... | |
int | snd_seq_set_client_pool_input (snd_seq_t *seq, size_t size) |
change the input pool size of the given client. More... | |
int | snd_seq_sync_output_queue (snd_seq_t *seq) |
drain output queue. More... | |
int | snd_seq_parse_address (snd_seq_t *seq, snd_seq_addr_t *addr, const char *str) |
parse the given string and get the sequencer address. More... | |
int | snd_seq_reset_pool_output (snd_seq_t *seq) |
reset client output pool. More... | |
int | snd_seq_reset_pool_input (snd_seq_t *seq) |
reset client input pool. More... |
|
change the tempo of the specified queue.
|
|
continue the specified queue.
|
|
initialize event record.
|
|
Value: ((ev)->flags &= ~(SND_SEQ_TIME_STAMP_MASK | SND_SEQ_TIME_MODE_MASK),\ (ev)->flags |= SND_SEQ_TIME_STAMP_REAL,\ (ev)->flags |= (relative) ? SND_SEQ_TIME_MODE_REL : SND_SEQ_TIME_MODE_ABS,\ (ev)->time.time = *(rtime),\ (ev)->queue = (q))
|
|
Value: ((ev)->flags &= ~(SND_SEQ_TIME_STAMP_MASK | SND_SEQ_TIME_MODE_MASK),\ (ev)->flags |= SND_SEQ_TIME_STAMP_TICK,\ (ev)->flags |= (relative) ? SND_SEQ_TIME_MODE_REL : SND_SEQ_TIME_MODE_ABS,\ (ev)->time.tick = (ttick),\ (ev)->queue = (q))
|
|
Value: ((ev)->dest.client = SND_SEQ_ADDRESS_BROADCAST,\ (ev)->dest.port = SND_SEQ_ADDRESS_BROADCAST)
|
|
Value: ((ev)->type = SND_SEQ_EVENT_CHANPRESS,\ snd_seq_ev_set_fixed(ev),\ (ev)->data.control.channel = (ch),\ (ev)->data.control.value = (val))
|
|
Value: ((ev)->type = SND_SEQ_EVENT_CONTROLLER,\ snd_seq_ev_set_fixed(ev),\ (ev)->data.control.channel = (ch),\ (ev)->data.control.param = (cc),\ (ev)->data.control.value = (val))
|
|
set the explicit destination.
|
|
set direct passing mode (without queued).
|
|
Value: ((ev)->flags &= ~SND_SEQ_EVENT_LENGTH_MASK,\ (ev)->flags |= SND_SEQ_EVENT_LENGTH_FIXED)
|
|
Value: ((ev)->type = SND_SEQ_EVENT_KEYPRESS,\ snd_seq_ev_set_fixed(ev),\ (ev)->data.note.channel = (ch),\ (ev)->data.note.note = (key),\ (ev)->data.note.velocity = (vel))
|
|
Value: ((ev)->type = SND_SEQ_EVENT_NOTE,\ snd_seq_ev_set_fixed(ev),\ (ev)->data.note.channel = (ch),\ (ev)->data.note.note = (key),\ (ev)->data.note.velocity = (vel),\ (ev)->data.note.duration = (dur))
|
|
Value: ((ev)->type = SND_SEQ_EVENT_NOTEOFF,\ snd_seq_ev_set_fixed(ev),\ (ev)->data.note.channel = (ch),\ (ev)->data.note.note = (key),\ (ev)->data.note.velocity = (vel))
|
|
Value: ((ev)->type = SND_SEQ_EVENT_NOTEON,\ snd_seq_ev_set_fixed(ev),\ (ev)->data.note.channel = (ch),\ (ev)->data.note.note = (key),\ (ev)->data.note.velocity = (vel))
|
|
Value: ((ev)->type = SND_SEQ_EVENT_PGMCHANGE,\ snd_seq_ev_set_fixed(ev),\ (ev)->data.control.channel = (ch),\ (ev)->data.control.value = (val))
|
|
Value: ((ev)->type = SND_SEQ_EVENT_PITCHBEND,\ snd_seq_ev_set_fixed(ev),\ (ev)->data.control.channel = (ch),\ (ev)->data.control.value = (val))
|
|
Value: ((ev)->flags &= ~SND_SEQ_PRIORITY_MASK,\ (ev)->flags |= (high_prior) ? SND_SEQ_PRIORITY_HIGH : SND_SEQ_PRIORITY_NORMAL)
|
|
set the stop queue event.
|
|
Value: ((ev)->type = (typ),\ snd_seq_ev_set_dest(ev, SND_SEQ_CLIENT_SYSTEM, SND_SEQ_PORT_SYSTEM_TIMER),\ (ev)->data.queue.queue = (q),\ (ev)->data.queue.param.value = (val))
|
|
Value: ((ev)->type = SND_SEQ_EVENT_SETPOS_TIME,\ snd_seq_ev_set_dest(ev, SND_SEQ_CLIENT_SYSTEM, SND_SEQ_PORT_SYSTEM_TIMER),\ (ev)->data.queue.queue = (q),\ (ev)->data.queue.param.time.time = *(rtime))
|
|
Value: ((ev)->type = SND_SEQ_EVENT_SETPOS_TICK,\ snd_seq_ev_set_dest(ev, SND_SEQ_CLIENT_SYSTEM, SND_SEQ_PORT_SYSTEM_TIMER),\ (ev)->data.queue.queue = (q),\ (ev)->data.queue.param.time.tick = (ttime))
|
|
set the start queue event.
|
|
set the stop queue event.
|
|
set the stop queue event.
|
|
set the source port.
|
|
Value: ((ev)->dest.client = SND_SEQ_ADDRESS_SUBSCRIBERS,\ (ev)->dest.port = SND_SEQ_ADDRESS_UNKNOWN)
|
|
Value: ((ev)->type = SND_SEQ_EVENT_SYSEX,\ snd_seq_ev_set_variable(ev, datalen, dataptr))
|
|
Value: ((ev)->flags &= ~SND_SEQ_EVENT_LENGTH_MASK,\ (ev)->flags |= SND_SEQ_EVENT_LENGTH_VARIABLE,\ (ev)->data.ext.len = (datalen),\ (ev)->data.ext.ptr = (dataptr))
|
|
Value: ((ev)->flags &= ~SND_SEQ_EVENT_LENGTH_MASK,\ (ev)->flags |= SND_SEQ_EVENT_LENGTH_VARUSR,\ (ev)->data.ext.len = (datalen),\ (ev)->data.ext.ptr = (dataptr))
|
|
start the specified queue.
|
|
stop the specified queue.
|
|
simple subscription (w/o exclusive & time conversion).
|
|
simple subscription (w/o exclusive & time conversion).
|
|
queue controls - start/stop/continue.
|
|
create a port - simple version.
|
|
delete the port.
|
|
simple disconnection.
|
|
simple disconnection.
|
|
parse the given string and get the sequencer address.
|
|
reset client input pool.
|
|
reset client output pool.
|
|
add client event filter.
|
|
set client name.
|
|
change the input pool size of the given client.
|
|
change the output pool size of the given client.
|
|
change the output room size of the given client.
|
|
drain output queue.
|