2 |
* * |
* * |
3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005-2008 Christian Schoenebeck * |
* Copyright (C) 2005-2013 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
82 |
* max. samples per cycle changed. |
* max. samples per cycle changed. |
83 |
*/ |
*/ |
84 |
virtual void ReconnectAudioOutputDevice() = 0; |
virtual void ReconnectAudioOutputDevice() = 0; |
85 |
|
|
86 |
|
/** |
87 |
|
* Modifies the scale tuning from standard well tempered chromatic |
88 |
|
* scaling to any other kind of scaling. |
89 |
|
* |
90 |
|
* ScaleTunes - detune factors (-64..+63 cents) for all 12 |
91 |
|
* semitones of an octave |
92 |
|
*/ |
93 |
|
virtual void AdjustScaleTuning(const int8_t ScaleTunes[12]) = 0; |
94 |
|
|
95 |
|
/** |
96 |
|
* Expects a byte array with 12 elements as argument @a pScaleTunes, |
97 |
|
* where the currently effectve scale tuning setup is written to. |
98 |
|
* |
99 |
|
* pScaleTunes - output: detune factors (-64..+63 cents) for all 12 |
100 |
|
* semitones of an octave |
101 |
|
*/ |
102 |
|
virtual void GetScaleTuning(int8_t* pScaleTunes) = 0; |
103 |
|
|
104 |
|
/** |
105 |
|
* Reset to standard well tempered chromatic scaling, i.e. after |
106 |
|
* being altered with AdjustScaleTuning() or after having sent the |
107 |
|
* respective standard scale tuning SysEx MIDI message. |
108 |
|
*/ |
109 |
|
virtual void ResetScaleTuning() = 0; |
110 |
|
|
111 |
protected: |
protected: |
112 |
virtual ~Engine() {}; // MUST only be destroyed by EngineFactory |
virtual ~Engine() {}; // MUST only be destroyed by EngineFactory |