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

Method NeuralNoteAudioProcessor

NeuralNote/PluginSources/PluginProcessor.cpp:4–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "PluginEditor.h"
3
4NeuralNoteAudioProcessor::NeuralNoteAudioProcessor()
5 : mAPVTS(*this, nullptr, NnId::ParametersId, ParameterHelpers::createParameterLayout())
6{
7 // Enable logging or not
8#if 0
9 mLogger.reset(FileLogger::createDefaultAppLogger("/tmp/NeuralNote", "log.txt", "YO! \n"));
10 Logger::setCurrentLogger(mLogger.get());
11#endif
12
13 for (size_t i = 0; i < mParams.size(); i++) {
14 auto pid = static_cast<ParameterHelpers::ParamIdEnum>(i);
15 mParams[i] = mAPVTS.getParameter(ParameterHelpers::getIdStr(pid));
16 }
17
18 mSourceAudioManager = std::make_unique<SourceAudioManager>(this);
19 mPlayer = std::make_unique<Player>(this);
20 mTranscriptionManager = std::make_unique<TranscriptionManager>(this);
21}
22
23NeuralNoteAudioProcessor::~NeuralNoteAudioProcessor()
24{

Callers

nothing calls this directly

Calls 2

createParameterLayoutFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected