| 1819 | } |
| 1820 | |
| 1821 | void JavascriptSynthesiser::preHiseEventCallback(HiseEvent &e) |
| 1822 | { |
| 1823 | ModulatorSynth::preHiseEventCallback(e); |
| 1824 | |
| 1825 | if (e.isNoteOn()) |
| 1826 | return; // will be handled by preStartVoice |
| 1827 | |
| 1828 | if (auto n = getActiveNetwork()) |
| 1829 | { |
| 1830 | voiceData.handleHiseEvent(*n, *n->getPolyHandler(), e); |
| 1831 | } |
| 1832 | } |
| 1833 | |
| 1834 | void JavascriptSynthesiser::preStartVoice(int voiceIndex, const HiseEvent& e) |
| 1835 | { |
nothing calls this directly
no test coverage detected