MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / ProcessAudio

Method ProcessAudio

Source/PitchShiftEffect.cpp:55–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void PitchShiftEffect::ProcessAudio(double time, ChannelBuffer* buffer)
56{
57 PROFILER(PitchShiftEffect);
58
59 if (!mEnabled)
60 return;
61
62 float bufferSize = buffer->BufferSize();
63
64 ComputeSliders(0);
65
66 for (int ch = 0; ch < buffer->NumActiveChannels(); ++ch)
67 {
68 mPitchShifter[ch]->SetRatio(mRatio);
69 mPitchShifter[ch]->Process(buffer->GetChannel(ch), bufferSize);
70 }
71}
72
73void PitchShiftEffect::DrawModule()
74{

Callers

nothing calls this directly

Calls 5

BufferSizeMethod · 0.80
NumActiveChannelsMethod · 0.80
SetRatioMethod · 0.80
GetChannelMethod · 0.80
ProcessMethod · 0.45

Tested by

no test coverage detected