• 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 
43 class 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

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
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for libtdemid by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.