diff --git a/_audio_s_t_k_8h_source.html b/_audio_s_t_k_8h_source.html index 15633e30ec..e669cfc563 100644 --- a/_audio_s_t_k_8h_source.html +++ b/_audio_s_t_k_8h_source.html @@ -175,137 +175,156 @@
139 class STKChorus : public AudioEffect, public stk::Chorus {
140 public:
141  STKChorus(float baseDelay = 6000) : stk::Chorus(baseDelay) {}
-
142 
-
143  virtual effect_t process(effect_t in) {
-
144  // just convert between int16 and float
-
145  float value = static_cast<float>(in) / 32767.0;
-
146  return tick(value) * 32767.0;
-
147  }
-
148 };
-
149 
-
156 class STKEcho : public AudioEffect, public stk::Echo {
-
157 public:
-
158  STKEcho(unsigned long maximumDelay = (unsigned long)Stk::sampleRate())
-
159  : stk::Echo(maximumDelay) {}
-
160 
-
161  virtual effect_t process(effect_t in) {
-
162  // just convert between int16 and float
-
163  float value = static_cast<float>(in) / 32767.0;
-
164  return tick(value) * 32767.0;
-
165  }
-
166 };
-
167 
-
174 class STKFreeVerb : public AudioEffect, public stk::FreeVerb {
-
175 public:
-
176  STKFreeVerb() = default;
-
177  STKFreeVerb(const STKFreeVerb& copy) = default;
-
178  AudioEffect* clone() override{
-
179  return new STKFreeVerb(*this);
-
180  }
-
181  StkFloat tick (StkFloat input, unsigned int channel=0) override
-
182  {
-
183  return FreeVerb::tick(input, input, channel);
-
184  }
-
185  virtual effect_t process(effect_t in) {
-
186  // just convert between int16 and float
-
187  float value = static_cast<float>(in) / 32767.0;
-
188  return tick(value) * 32767.0;
-
189  }
-
190 };
-
191 
-
198 class STKChowningReverb : public AudioEffect, public stk::JCRev {
-
199 public:
-
200  STKChowningReverb() = default;
-
201  STKChowningReverb(const STKChowningReverb& copy) = default;
-
202  AudioEffect* clone() override{
-
203  return new STKChowningReverb(*this);
-
204  }
-
205 
-
206  virtual effect_t process(effect_t in) {
-
207  // just convert between int16 and float
-
208  float value = static_cast<float>(in) / 32767.0;
-
209  return tick(value) * 32767.0;
-
210  }
-
211 };
-
212 
-
219 class STKNReverb : public AudioEffect, public stk::NRev {
-
220 public:
-
221  STKNReverb(float t60 = 1.0) : NRev(t60) {}
-
222  STKNReverb(const STKNReverb& copy) = default;
-
223  AudioEffect* clone() override{
-
224  return new STKNReverb(*this);
-
225  }
-
226  virtual effect_t process(effect_t in) {
-
227  // just convert between int16 and float
-
228  float value = static_cast<float>(in) / 32767.0;
-
229  return tick(value) * 32767.0;
-
230  }
-
231 };
-
232 
-
239 class STKPerryReverb : public AudioEffect, public stk::PRCRev {
-
240 public:
-
241  STKPerryReverb(float t60 = 1.0) : PRCRev(t60) {}
-
242  STKPerryReverb(const STKPerryReverb& copy) = default;
-
243  AudioEffect* clone() override{
-
244  return new STKPerryReverb(*this);
-
245  }
-
246  virtual effect_t process(effect_t in) {
-
247  // just convert between int16 and float
-
248  float value = static_cast<float>(in) / 32767.0;
-
249  return tick(value) * 32767.0;
-
250  }
-
251 };
-
252 
-
259 class STKLentPitShift : public AudioEffect, public stk::LentPitShift {
-
260 public:
-
261  STKLentPitShift(float periodRatio = 1.0, int tMax = 512)
-
262  : stk::LentPitShift(periodRatio, tMax) {}
-
263 
-
264  virtual effect_t process(effect_t in) {
-
265  // just convert between int16 and float
-
266  float value = static_cast<float>(in) / 32767.0;
-
267  return tick(value) * 32767.0;
-
268  }
-
269 };
-
270 
-
277 class STKPitShift : public AudioEffect, public stk::PitShift {
-
278 public:
-
279  STKPitShift() = default;
-
280  virtual effect_t process(effect_t in) {
-
281  // just convert between int16 and float
-
282  float value = static_cast<float>(in) / 32767.0;
-
283  return tick(value) * 32767.0;
-
284  }
-
285 };
-
286 
-
287 
-
288 }
-
289 
+
142  STKChorus(const STKChorus& copy) = default;
+
143 
+
144  AudioEffect* clone() override{
+
145  return new STKChorus(*this);
+
146  }
+
147 
+
148  virtual effect_t process(effect_t in) {
+
149  // just convert between int16 and float
+
150  float value = static_cast<float>(in) / 32767.0;
+
151  return tick(value) * 32767.0;
+
152  }
+
153 };
+
154 
+
161 class STKEcho : public AudioEffect, public stk::Echo {
+
162 public:
+
163  STKEcho(unsigned long maximumDelay = (unsigned long)Stk::sampleRate())
+
164  : stk::Echo(maximumDelay) {}
+
165  STKEcho(const STKEcho& copy) = default;
+
166 
+
167  AudioEffect* clone() override{
+
168  return new STKEcho(*this);
+
169  }
+
170 
+
171  virtual effect_t process(effect_t in) {
+
172  // just convert between int16 and float
+
173  float value = static_cast<float>(in) / 32767.0;
+
174  return tick(value) * 32767.0;
+
175  }
+
176 };
+
177 
+
184 class STKFreeVerb : public AudioEffect, public stk::FreeVerb {
+
185 public:
+
186  STKFreeVerb() = default;
+
187  STKFreeVerb(const STKFreeVerb& copy) = default;
+
188  AudioEffect* clone() override{
+
189  return new STKFreeVerb(*this);
+
190  }
+
191  StkFloat tick (StkFloat input, unsigned int channel=0) override
+
192  {
+
193  return FreeVerb::tick(input, input, channel);
+
194  }
+
195  virtual effect_t process(effect_t in) {
+
196  // just convert between int16 and float
+
197  float value = static_cast<float>(in) / 32767.0;
+
198  return tick(value) * 32767.0;
+
199  }
+
200 };
+
201 
+
208 class STKChowningReverb : public AudioEffect, public stk::JCRev {
+
209 public:
+
210  STKChowningReverb() = default;
+
211  STKChowningReverb(const STKChowningReverb& copy) = default;
+
212  AudioEffect* clone() override{
+
213  return new STKChowningReverb(*this);
+
214  }
+
215 
+
216  virtual effect_t process(effect_t in) {
+
217  // just convert between int16 and float
+
218  float value = static_cast<float>(in) / 32767.0;
+
219  return tick(value) * 32767.0;
+
220  }
+
221 };
+
222 
+
229 class STKNReverb : public AudioEffect, public stk::NRev {
+
230 public:
+
231  STKNReverb(float t60 = 1.0) : NRev(t60) {}
+
232  STKNReverb(const STKNReverb& copy) = default;
+
233  AudioEffect* clone() override{
+
234  return new STKNReverb(*this);
+
235  }
+
236  virtual effect_t process(effect_t in) {
+
237  // just convert between int16 and float
+
238  float value = static_cast<float>(in) / 32767.0;
+
239  return tick(value) * 32767.0;
+
240  }
+
241 };
+
242 
+
249 class STKPerryReverb : public AudioEffect, public stk::PRCRev {
+
250 public:
+
251  STKPerryReverb(float t60 = 1.0) : PRCRev(t60) {}
+
252  STKPerryReverb(const STKPerryReverb& copy) = default;
+
253  AudioEffect* clone() override{
+
254  return new STKPerryReverb(*this);
+
255  }
+
256  virtual effect_t process(effect_t in) {
+
257  // just convert between int16 and float
+
258  float value = static_cast<float>(in) / 32767.0;
+
259  return tick(value) * 32767.0;
+
260  }
+
261 };
+
262 
+
269 class STKLentPitShift : public AudioEffect, public stk::LentPitShift {
+
270 public:
+
271  STKLentPitShift(float periodRatio = 1.0, int tMax = 512)
+
272  : stk::LentPitShift(periodRatio, tMax) {}
+
273  STKLentPitShift(const STKLentPitShift& copy) = default;
+
274 
+
275  AudioEffect* clone() override{
+
276  return new STKLentPitShift(*this);
+
277  }
+
278  virtual effect_t process(effect_t in) {
+
279  // just convert between int16 and float
+
280  float value = static_cast<float>(in) / 32767.0;
+
281  return tick(value) * 32767.0;
+
282  }
+
283 };
+
284 
+
292 class STKPitShift : public AudioEffect, public stk::PitShift {
+
293 public:
+
294  STKPitShift() = default;
+
295  STKPitShift(const STKPitShift& copy) = default;
+
296 
+
297  AudioEffect* clone() override{
+
298  return new STKPitShift(*this);
+
299  }
+
300  virtual effect_t process(effect_t in) {
+
301  // just convert between int16 and float
+
302  float value = static_cast<float>(in) / 32767.0;
+
303  return tick(value) * 32767.0;
+
304  }
+
305 };
+
306 
+
307 
+
308 }
+
309 
audio_tools::AudioEffect
Abstract Base class for Sound Effects.
Definition: AudioEffect.h:19
audio_tools::GeneratedSoundStream
Source for reading generated tones. Please note.
Definition: AudioStreams.h:598
audio_tools::NumberConverter::maxValue
static int64_t maxValue(int value_bits_per_sample)
provides the biggest number for the indicated number of bits
Definition: AudioTypes.h:248
audio_tools::STKChorus
Chorus Effect.
Definition: AudioSTK.h:139
-
audio_tools::STKChorus::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:143
-
audio_tools::STKChowningReverb
John Chowning's reverberator class.
Definition: AudioSTK.h:198
-
audio_tools::STKChowningReverb::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:206
-
audio_tools::STKEcho
Echo Effect.
Definition: AudioSTK.h:156
-
audio_tools::STKEcho::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:161
+
audio_tools::STKChorus::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:148
+
audio_tools::STKChowningReverb
John Chowning's reverberator class.
Definition: AudioSTK.h:208
+
audio_tools::STKChowningReverb::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:216
+
audio_tools::STKEcho
Echo Effect.
Definition: AudioSTK.h:161
+
audio_tools::STKEcho::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:171
audio_tools::STKEffect
Use any effect from the STK framework: e.g. Chorus, Echo, FreeVerb, JCRev, PitShift....
Definition: AudioSTK.h:119
audio_tools::STKEffect::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:123
-
audio_tools::STKFreeVerb
Jezar at Dreampoint's FreeVerb, implemented in STK.
Definition: AudioSTK.h:174
-
audio_tools::STKFreeVerb::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:185
+
audio_tools::STKFreeVerb
Jezar at Dreampoint's FreeVerb, implemented in STK.
Definition: AudioSTK.h:184
+
audio_tools::STKFreeVerb::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:195
audio_tools::STKGenerator
The Synthesis ToolKit in C++ (STK) is a set of open source audio signal processing and algorithmic sy...
Definition: AudioSTK.h:27
audio_tools::STKGenerator::defaultConfig
AudioInfo defaultConfig()
provides the default configuration
Definition: AudioSTK.h:41
audio_tools::STKGenerator::readSample
T readSample()
Provides a single sample.
Definition: AudioSTK.h:60
audio_tools::STKGenerator::begin
bool begin(AudioInfo cfg)
Starts the processing.
Definition: AudioSTK.h:50
-
audio_tools::STKLentPitShift
Pitch shifter effect class based on the Lent algorithm.
Definition: AudioSTK.h:259
-
audio_tools::STKLentPitShift::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:264
-
audio_tools::STKNReverb
CCRMA's NRev reverberator class.
Definition: AudioSTK.h:219
-
audio_tools::STKNReverb::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:226
-
audio_tools::STKPerryReverb
Perry's simple reverberator class.
Definition: AudioSTK.h:239
-
audio_tools::STKPerryReverb::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:246
-
audio_tools::STKPitShift
Pitch shifter effect class based on the Lent algorithm.
Definition: AudioSTK.h:277
-
audio_tools::STKPitShift::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:280
+
audio_tools::STKLentPitShift
Pitch shifter effect class based on the Lent algorithm.
Definition: AudioSTK.h:269
+
audio_tools::STKLentPitShift::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:278
+
audio_tools::STKNReverb
CCRMA's NRev reverberator class.
Definition: AudioSTK.h:229
+
audio_tools::STKNReverb::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:236
+
audio_tools::STKPerryReverb
Perry's simple reverberator class.
Definition: AudioSTK.h:249
+
audio_tools::STKPerryReverb::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:256
+
audio_tools::STKPitShift
Simple Pitch shifter effect class: This class implements a simple pitch shifter using a delay line.
Definition: AudioSTK.h:292
+
audio_tools::STKPitShift::process
virtual effect_t process(effect_t in)
calculates the effect output from the input
Definition: AudioSTK.h:300
audio_tools::STKStream
STK Stream for Instrument or Voicer.
Definition: AudioSTK.h:79
audio_tools::SoundGenerator
Base class to define the abstract interface for the sound generating classes.
Definition: SoundGenerator.h:25
audio_tools
Generic Implementation of sound input and output for desktop environments using portaudio.
Definition: AnalogAudio.h:10
diff --git a/annotated.html b/annotated.html index a17997645b..1a0f4f1d30 100644 --- a/annotated.html +++ b/annotated.html @@ -494,7 +494,7 @@  CSTKLentPitShiftPitch shifter effect class based on the Lent algorithm  CSTKNReverbCCRMA's NRev reverberator class  CSTKPerryReverbPerry's simple reverberator class - CSTKPitShiftPitch shifter effect class based on the Lent algorithm + CSTKPitShiftSimple Pitch shifter effect class: This class implements a simple pitch shifter using a delay line  CSTKStreamSTK Stream for Instrument or Voicer  CStrA simple wrapper to provide string functions on char*. If the underlying char* is a const we do not allow any updates; The ownership of the chr* must be managed externally!  CStream diff --git a/classaudio__tools_1_1_audio_effect.html b/classaudio__tools_1_1_audio_effect.html index d9143e0ce6..58c7dc1ea5 100644 --- a/classaudio__tools_1_1_audio_effect.html +++ b/classaudio__tools_1_1_audio_effect.html @@ -100,7 +100,7 @@ STKLentPitShift STKNReverb STKPerryReverb -STKPitShift +STKPitShift Tremolo diff --git a/classaudio__tools_1_1_s_t_k_chorus-members.html b/classaudio__tools_1_1_s_t_k_chorus-members.html index 6ff671b5d7..8d9b608d4e 100644 --- a/classaudio__tools_1_1_s_t_k_chorus-members.html +++ b/classaudio__tools_1_1_s_t_k_chorus-members.html @@ -76,7 +76,7 @@ active_flag (defined in AudioEffect)AudioEffectprotected AudioEffect()=default (defined in AudioEffect)AudioEffect clip(int32_t in, int16_t clipLimit=32767, int16_t resultLimit=32767)AudioEffectinlineprotected - clone()=0 (defined in AudioEffect)AudioEffectpure virtual + clone() override (defined in STKChorus)STKChorusinlinevirtual copyParent(AudioEffect *copy) (defined in AudioEffect)AudioEffectinlineprotected id()AudioEffectinline id_value (defined in AudioEffect)AudioEffectprotected @@ -84,7 +84,8 @@ setActive(bool value)AudioEffectinlinevirtual setId(int id)AudioEffectinline STKChorus(float baseDelay=6000) (defined in STKChorus)STKChorusinline - ~AudioEffect()=default (defined in AudioEffect)AudioEffectvirtual + STKChorus(const STKChorus &copy)=default (defined in STKChorus)STKChorus + ~AudioEffect()=default (defined in AudioEffect)AudioEffectvirtual