| 147 | } |
| 148 | |
| 149 | void INoteSource::PlayNoteOutput(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation, bool isFromMainThreadAndScheduled) |
| 150 | { |
| 151 | PROFILER(INoteSourcePlayOutput); |
| 152 | |
| 153 | if (time < gTime && velocity > 0) |
| 154 | ofLog() << "Calling PlayNoteOutput() with a time in the past! " << ofToString(time / 1000) << " < " << ofToString(gTime / 1000); |
| 155 | |
| 156 | if (!mInNoteOutput) |
| 157 | mNoteOutput.ResetStackDepth(); |
| 158 | mInNoteOutput = true; |
| 159 | mNoteOutput.PlayNoteInternal(time, pitch, velocity, voiceIdx, modulation, isFromMainThreadAndScheduled); |
| 160 | mInNoteOutput = false; |
| 161 | } |
| 162 | |
| 163 | void INoteSource::SendCCOutput(int control, int value, int voiceIdx /*=-1*/) |
| 164 | { |