mirror of
https://codeberg.org/armin/justasample.git
synced 2026-09-01 04:10:48 +02:00
fixes, changes to gitignore
This commit is contained in:
parent
2ab046489f
commit
11d81cf1fd
17 changed files with 1160 additions and 16 deletions
|
|
@ -178,6 +178,14 @@ void JustaSampleAudioProcessor::processBlock(juce::AudioBuffer<float>& buffer, j
|
|||
if (sampleBuffer.getNumSamples() == 0 || sampleBuffer.getNumChannels() == 0)
|
||||
return;
|
||||
|
||||
// Query host tempo for LFO sync
|
||||
if (auto* playHead = getPlayHead())
|
||||
{
|
||||
if (auto pos = playHead->getPosition())
|
||||
if (auto bpm = pos->getBpm())
|
||||
samplerSound.currentBpm.store(float(*bpm));
|
||||
}
|
||||
|
||||
juce::ScopedTryLock lock(voiceLock);
|
||||
|
||||
if (lock.isLocked())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue