1
/* GNU Solfege - ear training for GNOME
2
* Copyright (C) 2000, 2001, 2002, 2003, 2004 Tom Cato Amundsen
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
%module solfege_c_midi
21
%include "../../config.h"
23
#include "macro_to_function.h"
26
int sndctl_seq_nrsynths();
27
int sndctl_seq_reset();
28
void sndctl_tmr_timebase(int);
29
void sndctl_tmr_tempo(int);
30
int sndctl_seq_gettime();
31
char * get_synth_name(int i);
32
int get_synth_nr_voices(int i);
36
/* defined in macro_to_function.c */
37
extern void seq_bender(int devnum, int chan, int value);
38
extern void seq_start_note(int devnum, int chan, int tone, int vel);
39
extern void seq_stop_note (int devnum, int chan, int note, int vel);
40
extern void seq_set_patch (int devnum, int chan, int p);
41
extern void seq_set_volume (int devnum, int chan, int volume);
42
extern void seq_delta_time(int ticks);
43
extern void seq_start_timer();
47
/* Defined in solfege_c_midi.c */
49
extern void seqbuf_dump();
50
extern int sndctl_seq_nrsynths();
51
extern int sndctl_seq_reset();
52
extern void sndctl_tmr_timebase(int);
53
extern void sndctl_tmr_tempo(int);
54
extern int sndctl_seq_gettime();
55
extern char * get_synth_name(int i);
56
extern int get_synth_nr_voices(int i);
58
/* All the dsp stuff */
59
#if defined(ENABLE_TUNER)
60
extern int dsp_open_record();
61
extern void dsp_close();
62
extern float idle_loop();
63
#endif /*ENABLE_TUNER*/