| 95 | } |
| 96 | |
| 97 | void 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 | |
| 120 | constexpr int BasicPitchCNN::_wrapIndex(int inIndex, int inSize) |
| 121 | { |
nothing calls this directly
no outgoing calls
no test coverage detected