- prepared Midiclock sync of voices

- buttonLed has flash() has brightness

git-svn-id: http://moon:8086/svn/software/trunk/projects/JaySynth@716 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2020-08-06 12:09:37 +00:00
parent eecd6c5005
commit 840b7a3427
8 changed files with 144 additions and 62 deletions
+13
View File
@@ -62,6 +62,19 @@ public:
currentlyPlayingSound = nullptr;
}
void setMidiBpm(synth_float_t bpm)
{
LFO_Param2Set(&m_pVoice->lfo[0], LFO_PARAM2_FREQ, 1.0/bpm);
}
void setMidiBeat(int beatCounter)
{
if (beatCounter == 0)
{
LFO_Reset(&m_pVoice->lfo[0], 0);
}
}
private:
friend class JaySynth;