2 terminatorX - realtime audio scratching software
3 Copyright (C) 2002 Arthur Peters
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
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.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 Description: Header to tX_midiin.cc
25 #define _tx_midiin_h 1
40 int number; // note # or controller #
42 float value; // controller value or note velocity
43 bool is_noteon; // note on or off?
45 bool type_matches( const tX_midievent& other ) const
47 return channel == other.channel && type == other.type && number == other.number;
56 /* not being used anyway */
57 // void print( const char* prefix ) const;
61 #ifdef USE_ALSA_MIDI_IN
63 #include <alsa/asoundlib.h>
68 snd_seq_t *ALSASeqHandle;
69 tX_midievent last_event;
82 void configure_bindings( vtt_class* );
84 const tX_midievent& get_last_event()
91 class midi_binding_gui
94 midi_binding_gui( GtkTreeModel* _model, tX_midiin* _midi );
99 GtkWidget *parameter_treeview;
100 GtkWidget *midi_event_info;
101 GtkWidget *bind_button;
107 tX_midievent last_event;
109 static void bind_clicked( GtkButton *button, gpointer _this );
110 static void close_clicked( GtkButton *button, gpointer _this );
111 static gint timer( gpointer _this );
120 #endif // USE_ALSA_MIDI_IN
122 #endif // ndef _tx_midiin_h