~ubuntu-branches/ubuntu/quantal/freewheeling/quantal

« back to all changes in this revision

Viewing changes to src/fweelin_core_dsp.h

  • Committer: Bazaar Package Importer
  • Author(s): Paul Brossier
  • Date: 2005-08-06 15:11:54 UTC
  • Revision ID: james.westby@ubuntu.com-20050806151154-33plurux6pi65nag
Tags: 0.5pre4-4
Build-Depends on libgnutls-dev instead of old libgnutls11-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
// Handles realtime DSP from a signal chain
182
182
class Processor : public EventProducer {
183
183
public:
184
 
  const static float MIN_VOL = 0.01;
185
 
  const static nframes_t DEFAULT_SMOOTH_LENGTH = 64;
 
184
  const static float MIN_VOL;
 
185
  const static nframes_t DEFAULT_SMOOTH_LENGTH;
186
186
 
187
187
  Processor(Fweelin *app);
188
188
  virtual ~Processor();
258
258
class Pulse : public Processor {
259
259
public:
260
260
  // Length of metronome strike sound in samples
261
 
  const static nframes_t METRONOME_HIT_LEN = 800;
 
261
  const static nframes_t METRONOME_HIT_LEN;
262
262
  // Initial metronome volume
263
 
  const static float METRONOME_INIT_VOL = 0.1;
 
263
  const static float METRONOME_INIT_VOL;
264
264
 
265
265
  Pulse(Fweelin *app, nframes_t len, nframes_t startpos);
266
266
  ~Pulse();
403
403
  nframes_t samplecnt;
404
404
 
405
405
  // Autolimiter
406
 
  const static float LIMITER_ATTACK_LENGTH = 1024,
407
 
    LIMITER_START_AMP = 1.0; 
408
 
  const static nframes_t LIMITER_ADJUST_PERIOD = 64;
 
406
  const static float LIMITER_ATTACK_LENGTH,
 
407
    LIMITER_START_AMP; 
 
408
  const static nframes_t LIMITER_ADJUST_PERIOD;
409
409
  float dlimitvol, // Limiter volume delta- how fast vol is being changed
410
410
    limitvol,      // Target volume- amplitude needed to stop clipping
411
411
    curlimitvol,   // Current volume- volume is moving towards limitvol