/usr/include/tse3/MidiParams.h is in libtse3-dev 0.3.1-4.3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | /*
* @(#)MidiParams.h 3.00 1 June 1999
*
* Copyright (c) 2000 Pete Goodliffe (pete@cthree.org)
*
* This file is part of TSE3 - the Trax Sequencer Engine version 3.00.
*
* This library is modifiable/redistributable under the terms of the GNU
* General Public License.
*
* You should have received a copy of the GNU General Public License along
* with this program; see the file COPYING. If not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
#ifndef TSE3_MIDIPARAMS_H
#define TSE3_MIDIPARAMS_H
#include "tse3/listen/MidiParams.h"
#include "tse3/Notifier.h"
#include "tse3/Playable.h"
#include "tse3/Serializable.h"
#include "tse3/Filter.h"
namespace TSE3
{
/**
* The MidiParams class holds values for MIDI parameters used by several of
* the TSE3 classes.
*
* The parameters it defines can generally be assigned values, not assigned
* values or forced to not allow any changes in these values at all.
*
* For this reason, MidiParams implements both the @ref Playable and
* @ref Filter interfaces.
*
* @sect Command classes
*
* Use the following command classes to manipute this object in a undo/redo
* environment.
*
* @li @ref TSE3::Cmd::Track_SetInfo
* @li @ref TSE3::Cmd::Part_SetInfo
*
* @short A collection of MIDI parameter values
* @author Pete Goodliffe
* @version 3.00
*/
class MidiParams : public Playable,
public Filter,
public Serializable,
public Notifier<MidiParamsListener>
{
public:
/**
* The default MidiParams has all parameters set to '@ref off'.
*/
MidiParams();
MidiParams(const MidiParams &);
virtual ~MidiParams();
MidiParams &operator=(const MidiParams &);
/**
* A parameter is set to this value to switch it's effect off.
*/
static const int off = -1;
/**
* A parameter is set to this value to prevent any changes in it
* occurring.
*/
static const int forceNone = -2;
/**
* Read the bankLSB value.
*
* @return Bank select LSB value
* @see setBankLSB
*/
int bankLSB() const { return _bankLSB; }
/**
* Set the bankLSB value.
*
* @param b New bank select LSB value
* @see bankLSB
*/
void setBankLSB(int b);
/**
* Read the bankMSB value.
*
* @return Bank select MSB value
* @see setBankMSB
*/
int bankMSB() const { return _bankMSB; }
/**
* Set the bankMSB value.
*
* @param b New bank select MSB value
* @see bankMSB
*/
void setBankMSB(int b);
/**
* Read the program value.
*
* @return Program value
* @see setProgram
*/
int program() const { return _program; }
/**
* Set the program value.
*
* @param p New program value
* @see program
*/
void setProgram(int p);
/**
* Read the pan value.
*
* @return Pan value
* @see setPan
*/
int pan() const { return _pan; }
/**
* Set the pan value.
*
* @param p New pan value
* @see pan
*/
void setPan(int p);
/**
* Read the reverb value.
*
* @return Reverb value
* @see setReverb
*/
int reverb() const { return _reverb; }
/**
* Set the reverb value.
*
* @param r New reverb value
* @see reverb
*/
void setReverb(int r);
/**
* Read the chorus value.
*
* @return Chorus value
* @see setChorus
*/
int chorus() const { return _chorus; }
/**
* Set the chorus value.
*
* @param c New chorus value
* @see chorus
*/
void setChorus(int c);
/**
* Read the volume value.
*
* @return Volume value
* @see setVolume
*/
int volume() const { return _volume; }
/**
* Set the volume value.
*
* @param v New volume value
* @see volume
*/
void setVolume(int v);
/**
* @reimplemented
*/
virtual PlayableIterator *iterator(Clock index);
/**
* @reimplemented
*/
virtual Clock lastClock() const;
/**
* @reimplemented
*/
virtual void save(std::ostream &o, int i) const;
/**
* @reimplemented
*/
virtual void load(std::istream &in, SerializableLoadInfo &info);
/**
* @reimplemented
*/
virtual MidiEvent filter(const MidiEvent &e) const;
private:
/*
* Parameter values (0-127, -1 = none, -2 = force none)
*/
int _bankLSB;
int _bankMSB;
int _program;
int _pan;
int _reverb;
int _chorus;
int _volume;
};
}
#endif
|