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

Method _wrapIndex

Lib/Model/BasicPitchCNN.cpp:120–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120constexpr int BasicPitchCNN::_wrapIndex(int inIndex, int inSize)
121{
122 int wrapped_index = inIndex % inSize;
123
124 if (wrapped_index < 0) {
125 wrapped_index += inSize;
126 }
127
128 return wrapped_index;
129}
130
131void BasicPitchCNN::_concat()
132{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected