summaryrefslogtreecommitdiffstats
path: root/libtdemid/synthout.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:17:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:17:21 -0600
commitdfe289850f068f19ba4a83ab4e7e22a7e09c13c9 (patch)
treec297348a55df66c571de4525646e0b9762427353 /libtdemid/synthout.h
parentb7658a0d5eca24a9d37c6e04f88298ef02389db0 (diff)
downloadtdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.tar.gz
tdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'libtdemid/synthout.h')
-rw-r--r--libtdemid/synthout.h118
1 files changed, 118 insertions, 0 deletions
diff --git a/libtdemid/synthout.h b/libtdemid/synthout.h
new file mode 100644
index 000000000..db1f507f1
--- /dev/null
+++ b/libtdemid/synthout.h
@@ -0,0 +1,118 @@
+/* synthout.h - class synthOut which handles the /dev/sequencer device
+ for synths (as AWE32)
+ This file is part of LibKMid 0.9.5
+ Copyright (C) 1997,98 Antonio Larrosa Jimenez and P.J.Leonard
+ 1999,2000 Antonio Larrosa Jimenez
+ LibKMid's homepage : http://www.arrakis.es/~rlarrosa/libtdemid.html
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+
+ Send comments and bug fixes to Antonio Larrosa <larrosa@kde.org>
+
+***************************************************************************/
+#ifndef _SYNTHOUT_H
+#define _SYNTHOUT_H
+
+#include <libtdemid/midiout.h>
+
+/**
+ * Synth (AWE) device output class . SynthOut is used to send MIDI events to
+ * a general synthesizer, such as AWE synth.
+ *
+ * SynthOut inherits MidiOut and supports the same simple API.
+ *
+ * The preferred way to use this class is by selecting a synth (or AWE)
+ * device with MidiManager::setDefaultDevice(), and use a
+ * MidiManager object.
+ *
+ * @short Sends MIDI events to AWE synthesizers
+ * @version 0.9.5 17/01/2000
+ * @author Antonio Larrosa Jimenez <larrosa@kde.org>
+ */
+class SynthOut : public MidiOut
+{
+ private:
+ class SynthOutPrivate;
+ SynthOutPrivate *di;
+
+ public:
+ /**
+ * Constructor. See MidiOut::MidiOut() for more information.
+ */
+ SynthOut(int d=0);
+
+ /**
+ * Destructor.
+ */
+ ~SynthOut();
+
+ /**
+ * See MidiOut::openDev()
+ */
+ void openDev (int sqfd);
+
+ /**
+ * See MidiOut::closeDev()
+ */
+ void closeDev(void);
+
+ /**
+ * See MidiOut::initDev()
+ */
+ void initDev (void);
+
+ /**
+ * See MidiOut::noteOn()
+ */
+ void noteOn ( uchar chn, uchar note, uchar vel );
+
+ /**
+ * See MidiOut::noteOff()
+ */
+ void noteOff ( uchar chn, uchar note, uchar vel );
+
+ /**
+ * See MidiOut::keyPressure()
+ */
+ void keyPressure ( uchar chn, uchar note, uchar vel );
+
+ /**
+ * See MidiOut::chnPatchChange()
+ */
+ void chnPatchChange ( uchar chn, uchar patch );
+
+ /**
+ * See MidiOut::chnPressure()
+ */
+ void chnPressure ( uchar chn, uchar vel );
+
+ /**
+ * See MidiOut::chnPitchBender()
+ */
+ void chnPitchBender ( uchar chn, uchar lsb, uchar msb );
+
+ /**
+ * See MidiOut::chnController()
+ */
+ void chnController ( uchar chn, uchar ctl , uchar v );
+
+ /**
+ * It's an empty function, as AWE devices don't support System Exclusive
+ * messages
+ */
+ void sysex ( uchar *data,ulong size);
+};
+
+#endif