| 32 | } |
| 33 | |
| 34 | void BasicPitchCNN::reset() |
| 35 | { |
| 36 | for (auto& array: mContoursCircularBuffer) { |
| 37 | array.fill(0.0f); |
| 38 | } |
| 39 | |
| 40 | for (auto& array: mNotesCircularBuffer) { |
| 41 | array.fill(0.0f); |
| 42 | } |
| 43 | |
| 44 | for (auto& array: mConcat2CircularBuffer) { |
| 45 | array.fill(0.0f); |
| 46 | } |
| 47 | |
| 48 | mCNNContour.reset(); |
| 49 | mCNNNote.reset(); |
| 50 | mCNNOnsetInput.reset(); |
| 51 | mCNNOnsetOutput.reset(); |
| 52 | |
| 53 | mNoteIdx = 0; |
| 54 | mContourIdx = 0; |
| 55 | mConcat2Idx = 0; |
| 56 | |
| 57 | mInputArray.fill(0.0f); |
| 58 | } |
| 59 | |
| 60 | int BasicPitchCNN::getNumFramesLookahead() |
| 61 | { |
nothing calls this directly
no outgoing calls
no test coverage detected