Skip to content

Commit

Permalink
switched to using new audio processing accumulating-only implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiapoirier committed Aug 4, 2006
1 parent f006fab commit 74dadc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
8 changes: 3 additions & 5 deletions rezsynth/rezsynthformalities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,14 @@ RezSynth::RezSynth(TARGET_API_BASE_INSTANCE_TYPE inInstance)


settailsize_seconds(getparametermax_f(kRelease) * 0.001);
setAudioProcessingMustAccumulate(true); // only support accumulating output
midistuff->setLazyAttack(); // this enables the lazy note attack mode

setpresetname(0, "feminist synth"); // default preset name


#ifdef TARGET_API_VST
canProcessReplacing(false); // only support accumulating output
#if TARGET_PLUGIN_HAS_GUI
editor = new RezSynthEditor(this);
#endif
#if defined(TARGET_API_VST) && TARGET_PLUGIN_HAS_GUI
editor = new RezSynthEditor(this);
#endif
}

Expand Down
10 changes: 0 additions & 10 deletions rezsynth/rezsynthprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ void RezSynth::processaudio(const float **in, float **out, unsigned long inNumFr
unsigned long ch;


// clear the output buffer because we accumulate output into it
if (replacing)
{
for (ch=0; ch < numChannels; ch++)
{
for (unsigned long samp=0; samp < inNumFrames; samp++)
out[ch][samp] = 0.0f;
}
}

// mix very quiet noise (-300 dB) into the input signal to hopefully avoid any denormal values
float quietNoise = 1.0e-15f;
for (ch=0; ch < numChannels; ch++)
Expand Down

0 comments on commit 74dadc4

Please sign in to comment.