- optimized Sync_mod()
- vectorized Sync_processV()

git-svn-id: http://moon:8086/svn/software/trunk/projects/JaySynth@730 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2020-08-17 11:23:49 +00:00
parent b8a572b2d2
commit e52ff13137
3 changed files with 132 additions and 51 deletions
+1 -1
View File
@@ -1189,7 +1189,7 @@ void JaySynth::handleMidiEvent (const MidiMessage& m)
void JaySynth::voiceSetMidiBeat(int barBeatCount)
{
lfo_t *pLfo = &m_pVoices[0].pCom->glfo[0];
synth_float_t phase = Sync_mod((synth_float_t)barBeatCount/m_numMidiClocksPerBar, 1.0);
synth_float_t phase = Sync_mod((synth_float_t)barBeatCount/m_numMidiClocksPerBar);
LFO_sync(pLfo, phase);
for (int i=0; i < max_num_voices; i++)