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

Method _runModels

Lib/Model/BasicPitchCNN.cpp:97–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void BasicPitchCNN::_runModels()
98{
99 // Run models and push results in appropriate circular buffer
100 mCNNOnsetInput.forward(mInputArray.data());
101 std::copy(mCNNOnsetInput.getOutputs(),
102 mCNNOnsetInput.getOutputs() + 32 * NUM_FREQ_OUT,
103 mConcat2CircularBuffer[(size_t) mConcat2Idx].begin());
104
105 mCNNContour.forward(mInputArray.data());
106 std::copy(mCNNContour.getOutputs(),
107 mCNNContour.getOutputs() + NUM_FREQ_IN,
108 mContoursCircularBuffer[(size_t) mContourIdx].begin());
109
110 mCNNNote.forward(mCNNContour.getOutputs());
111 std::copy(
112 mCNNNote.getOutputs(), mCNNNote.getOutputs() + NUM_FREQ_OUT, mNotesCircularBuffer[(size_t) mNoteIdx].begin());
113
114 // Concat operation with correct frame shift
115 _concat();
116
117 mCNNOnsetOutput.forward(mConcatArray.data());
118}
119
120constexpr int BasicPitchCNN::_wrapIndex(int inIndex, int inSize)
121{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected