mirror of
https://github.com/yokemura/Magical8bitPlug2.git
synced 2025-07-14 02:54:15 -04:00
arpeggio
This commit is contained in:
@ -176,6 +176,17 @@ void Magical8bitPlug2AudioProcessor::setupVoice()
|
||||
}
|
||||
}
|
||||
|
||||
double Magical8bitPlug2AudioProcessor::getCurrentBPM()
|
||||
{
|
||||
auto ph = getPlayHead();
|
||||
if (ph == NULL) {
|
||||
return 120.0;
|
||||
}
|
||||
juce::AudioPlayHead::CurrentPositionInfo result;
|
||||
ph->getCurrentPosition(result);
|
||||
|
||||
return result.bpm > 0 ? result.bpm : 120.0;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
const String Magical8bitPlug2AudioProcessor::getName() const
|
||||
|
Reference in New Issue
Block a user