MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / PlayNoteOutput

Method PlayNoteOutput

Source/INoteSource.cpp:149–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void 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
163void INoteSource::SendCCOutput(int control, int value, int voiceIdx /*=-1*/)
164{

Callers 13

OnTimeEventMethod · 0.80
OnTransportAdvancedMethod · 0.80
SendNoteToIndexMethod · 0.80
SendNoteToIndexMethod · 0.80
PlayNoteMethod · 0.80
SendNoteToCableMethod · 0.80
SendNoteToIndexMethod · 0.80
OnTransportAdvancedMethod · 0.80
SendNoteToIndexMethod · 0.80
ProcessMethod · 0.80
PlayNoteMethod · 0.80
PlayNoteMethod · 0.80

Calls 4

ofLogClass · 0.85
ofToStringFunction · 0.85
ResetStackDepthMethod · 0.80
PlayNoteInternalMethod · 0.80

Tested by 2

SendNoteToIndexMethod · 0.64
SendNoteToCableMethod · 0.64