| 1 | /* |
| 2 | * File: seqlib.h |
| 3 | * |
| 4 | * Copyright (C) 1999-2003 Steve Ratcliffe |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * |
| 16 | * --------- |
| 17 | * This file is a set of interfaces to provide a little |
| 18 | * higher level view of the sequencer. It is mainly experimental |
| 19 | * to investigate new approaches. If successful they will be proposed |
| 20 | * as additions/replacements to the existing seq lib. |
| 21 | * |
| 22 | * |
| 23 | * |
| 24 | */ |
| 25 | #if HAVE_ALSA_ASOUNDLIB_Hcxx . . $ `<built-in>:434:9`! |
| 26 | #include <alsa/asoundlib.h> |
| 27 | #else |
| 28 | #include <sys/asoundlib.h> |
| 29 | #endif |
| 30 | |
| 31 | typedef struct seq_contextcxx . . $ seq_context# seq_context_tcxx . . $ seq_context_t#; |
| 32 | |
| 33 | seq_context_tcxx . . $ seq_context_t# *seq_create_contextcxx . . $ seq_create_context(41f2338c700f0527).(); |
| 34 | seq_context_tcxx . . $ seq_context_t# *seq_new_clientcxx . . $ seq_new_client(38c39f32ea8fa0e3).(seq_context_tcxx . . $ seq_context_t# *ctxp); |
| 35 | void seq_free_contextcxx . . $ seq_free_context(e410d57486f0cd63).(seq_context_tcxx . . $ seq_context_t# *cxtp); |
| 36 | int seq_new_portcxx . . $ seq_new_port(da9fcbd0febe7307).(seq_context_tcxx . . $ seq_context_t# *ctxp); |
| 37 | void seq_destroy_portcxx . . $ seq_destroy_port(cbf6e4b539b61ec5).(seq_context_tcxx . . $ seq_context_t# *cxtp, int port); |
| 38 | int seq_connect_addcxx . . $ seq_connect_add(68dd04cef335395).(seq_context_tcxx . . $ seq_context_t# *ctxp, int client, int port); |
| 39 | int seq_init_tempocxx . . $ seq_init_tempo(601f68a32ffec70f).(seq_context_tcxx . . $ seq_context_t# *ctxp, int resolution, int tempo, |
| 40 | int realtime); |
| 41 | void seq_set_queuecxx . . $ seq_set_queue(cbf6e4b539b61ec5).(seq_context_tcxx . . $ seq_context_t# *ctxp, int q); |
| 42 | int seq_sendtocxx . . $ seq_sendto(77c49dfd684db7ae).(seq_context_tcxx . . $ seq_context_t# *ctxp, snd_seq_event_tcxx . . $ snd_seq_event_t# *ev, int client, int port); |
| 43 | int seq_send_to_allcxx . . $ seq_send_to_all(f9711ae91b75e353).(seq_context_tcxx . . $ seq_context_t# *ctxp, snd_seq_event_tcxx . . $ snd_seq_event_t# *ep); |
| 44 | snd_seq_addr_tcxx . . $ snd_seq_addr_t# * seq_dev_addrcxx . . $ seq_dev_addr(91c8a0532865b134).(seq_context_tcxx . . $ seq_context_t# *ctxp, int dev); |
| 45 | void seq_start_timercxx . . $ seq_start_timer(e410d57486f0cd63).(seq_context_tcxx . . $ seq_context_t# *ctxp); |
| 46 | void seq_stop_timercxx . . $ seq_stop_timer(e410d57486f0cd63).(seq_context_tcxx . . $ seq_context_t# *ctxp); |
| 47 | void seq_control_timercxx . . $ seq_control_timer(cbf6e4b539b61ec5).(seq_context_tcxx . . $ seq_context_t# *ctxp, int onoff); |
| 48 | int seq_writecxx . . $ seq_write(f9711ae91b75e353).(seq_context_tcxx . . $ seq_context_t# *ctxp, snd_seq_event_tcxx . . $ snd_seq_event_t# *ep); |
| 49 | void *seq_handlecxx . . $ seq_handle(43ef867995de2152).(seq_context_tcxx . . $ seq_context_t# *ctxp); |
| 50 | |
| 51 | void seq_midi_event_initcxx . . $ seq_midi_event_init(1825f7fe94d84599).(seq_context_tcxx . . $ seq_context_t# *ctxp, snd_seq_event_tcxx . . $ snd_seq_event_t# *ep, |
| 52 | unsigned long time, int devchan); |
| 53 | void seq_midi_notecxx . . $ seq_midi_note(115fea43cce26738).(seq_context_tcxx . . $ seq_context_t# *ctxp, snd_seq_event_tcxx . . $ snd_seq_event_t# *ep, int devchan, int note, |
| 54 | int vel, int length); |
| 55 | void seq_midi_note_oncxx . . $ seq_midi_note_on(115fea43cce26738).(seq_context_tcxx . . $ seq_context_t# *ctxp, snd_seq_event_tcxx . . $ snd_seq_event_t# *ep, int devchan, int note, |
| 56 | int vel, int length); |
| 57 | void seq_midi_note_offcxx . . $ seq_midi_note_off(115fea43cce26738).(seq_context_tcxx . . $ seq_context_t# *ctxp, snd_seq_event_tcxx . . $ snd_seq_event_t# *ep, int devchan, int note, |
| 58 | int vel, int length); |
| 59 | void seq_midi_keypresscxx . . $ seq_midi_keypress(d8303e21ad8a41d2).(seq_context_tcxx . . $ seq_context_t# *ctxp, snd_seq_event_tcxx . . $ snd_seq_event_t# *ep, int devchan, int note, |
| 60 | int value); |
| 61 | void seq_midi_controlcxx . . $ seq_midi_control(d8303e21ad8a41d2).(seq_context_tcxx . . $ seq_context_t# *ctxp, snd_seq_event_tcxx . . $ snd_seq_event_t# *ep, int devchan, int control, |
| 62 | int value); |
| 63 | void seq_midi_programcxx . . $ seq_midi_program(d76d217fb6600c83).(seq_context_tcxx . . $ seq_context_t# *ctxp, snd_seq_event_tcxx . . $ snd_seq_event_t# *ep, int devchan, int program); |
| 64 | void seq_midi_chanpresscxx . . $ seq_midi_chanpress(d76d217fb6600c83).(seq_context_tcxx . . $ seq_context_t# *ctxp, snd_seq_event_tcxx . . $ snd_seq_event_t# *ep, int devchan, |
| 65 | int pressure); |
| 66 | void seq_midi_pitchbendcxx . . $ seq_midi_pitchbend(d76d217fb6600c83).(seq_context_tcxx . . $ seq_context_t# *ctxp, snd_seq_event_tcxx . . $ snd_seq_event_t# *ep, int devchan, int bend); |
| 67 | void seq_midi_tempocxx . . $ seq_midi_tempo(602bf0815d67e961).(seq_context_tcxx . . $ seq_context_t# *ctxp, snd_seq_event_tcxx . . $ snd_seq_event_t# *ep, int tempo); |
| 68 | void seq_midi_sysexcxx . . $ seq_midi_sysex(445d99f52c9088c3).(seq_context_tcxx . . $ seq_context_t# *ctxp, snd_seq_event_tcxx . . $ snd_seq_event_t# *ep, int status, |
| 69 | unsigned char *data, int length); |
| 70 | void seq_midi_echocxx . . $ seq_midi_echo(57fef5ba8926da1a).(seq_context_tcxx . . $ seq_context_t# *ctxp, unsigned long time); |