MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / processBlock

Method processBlock

NeuralNote/PluginSources/PluginProcessor.cpp:35–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void NeuralNoteAudioProcessor::processBlock(AudioBuffer<float>& buffer, MidiBuffer& midiMessages)
36{
37 mSourceAudioManager->processBlock(buffer);
38 mTranscriptionManager->processBlock(buffer.getNumSamples());
39
40 auto is_mute = mParams[ParameterHelpers::MuteId]->getValue() > 0.5f;
41
42 if (is_mute) {
43 buffer.clear();
44 }
45
46 mPlayer->processBlock(buffer, midiMessages);
47}
48
49AudioProcessorEditor* NeuralNoteAudioProcessor::createEditor()
50{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected