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

Method reset

Lib/Model/BasicPitchCNN.cpp:34–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void 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
60int BasicPitchCNN::getNumFramesLookahead()
61{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected