MCPcopy Create free account
hub / github.com/amsynth/amsynth / shouldPlayNote

Method shouldPlayNote

src/core/synth/VoiceAllocationUnit.cpp:417–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415// _voices[], therefore notes playing on different channels could conflict.
416
417bool
418VoiceAllocationUnit::shouldPlayNote (int note) const
419{
420#ifdef WITH_MTS_ESP
421 if (!mtsEspDisabled && tuningMap.isDefault())
422 return !MTS_ShouldFilterNote(mtsClient, note, 0);
423#endif
424 return tuningMap.inActiveRange(note);
425}
426
427double
428VoiceAllocationUnit::noteToPitch (int note) const

Callers

nothing calls this directly

Calls 2

isDefaultMethod · 0.80
inActiveRangeMethod · 0.80

Tested by

no test coverage detected