• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libtdemid
 

libtdemid

  • libtdemid
fmout.h
1/* fmout.h - class fmOut which handles the /dev/sequencer device
2 for FM synths
3 This file is part of LibKMid 0.9.5
4 Copyright (C) 1998,99,2000 Antonio Larrosa Jimenez
5 LibKMid's homepage : http://www.arrakis.es/~rlarrosa/libtdemid.html
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20
21 Send comments and bug fixes to Antonio Larrosa <larrosa@kde.org>
22
23***************************************************************************/
24#ifndef _FMOUT_H
25#define _FMOUT_H
26
27#include <libtdemid/midiout.h>
28#include <libtdemid/voiceman.h>
29
43class KMID_EXPORT FMOut : public MidiOut
44{
45 private:
46 class FMOutPrivate;
47 FMOutPrivate *di;
48
49 int patchloaded[256];
53 int opl;
54 int nvoices;
55
56 VoiceManager *vm;
57
58 void modifyPatch(char *buf, int key);
59 void loadFMPatches (void);
60
61 public:
65 FMOut ( int d=0, int total =12 );
66
70 ~FMOut ();
71
75 virtual void openDev ( int sqfd );
76
80 virtual void closeDev ( void );
81
85 virtual void initDev ( void );
86
90 virtual void noteOn ( uchar chn, uchar note, uchar vel );
91
95 virtual void noteOff ( uchar chn, uchar note, uchar vel );
96
100 virtual void keyPressure ( uchar chn, uchar note, uchar vel );
101
105 virtual void chnPatchChange ( uchar chn, uchar patch );
106
110 virtual void chnPressure ( uchar chn, uchar vel );
111
115 virtual void chnPitchBender ( uchar chn, uchar lsb, uchar msb );
116
120 virtual void chnController ( uchar chn, uchar ctl , uchar v );
121
126 virtual void sysex ( uchar *data,ulong size);
127
131 virtual void setVolumePercentage ( int i );
132
137 int patch(int p);
138
139 private:
140 static const char *FMPatchesDirectory;
141 static int deleteFMPatchesDirectory;
142
143 public:
151 static void setFMPatchesDirectory(const char *dir);
152
153};
154
155#endif
FMOut
FM device output class .
Definition: fmout.h:44
MidiOut
External MIDI port output class .
Definition: midiout.h:52
MidiOut::setVolumePercentage
virtual void setVolumePercentage(int volper)
Change all channel volume events multiplying it by this percentage correction Instead of forcing a ch...
Definition: midiout.h:225
MidiOut::chnPitchBender
virtual void chnPitchBender(uchar chn, uchar lsb, uchar msb)
See DeviceManager::chnPitchBender()
Definition: midiout.cpp:166
MidiOut::noteOn
virtual void noteOn(uchar chn, uchar note, uchar vel)
See DeviceManager::noteOn()
Definition: midiout.cpp:113
MidiOut::chnPatchChange
virtual void chnPatchChange(uchar chn, uchar patch)
See DeviceManager::chnPatchChange()
Definition: midiout.cpp:147
MidiOut::initDev
virtual void initDev()
Initializes the device sending generic standard midi events and controllers, such as changing the pat...
Definition: midiout.cpp:86
MidiOut::openDev
virtual void openDev(int sqfd)
Opens the device.
Definition: midiout.cpp:63
MidiOut::closeDev
virtual void closeDev()
Closes the device.
Definition: midiout.cpp:77
MidiOut::chnPressure
virtual void chnPressure(uchar chn, uchar vel)
See DeviceManager::chnPressure()
Definition: midiout.cpp:158
MidiOut::keyPressure
virtual void keyPressure(uchar chn, uchar note, uchar vel)
See DeviceManager::keyPressure()
Definition: midiout.cpp:140
MidiOut::noteOff
virtual void noteOff(uchar chn, uchar note, uchar vel)
See DeviceManager::noteOff()
Definition: midiout.cpp:130
MidiOut::chnController
virtual void chnController(uchar chn, uchar ctl, uchar v)
See DeviceManager::chnController()
Definition: midiout.cpp:186
MidiOut::sysex
virtual void sysex(uchar *data, ulong size)
See DeviceManager::sysex()
Definition: midiout.cpp:205

libtdemid

Skip menu "libtdemid"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libtdemid

Skip menu "libtdemid"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for libtdemid by doxygen 1.9.4
This website is maintained by Timothy Pearson.