mirror of
https://codeberg.org/armin/sm-26.git
synced 2026-10-11 17:01:53 +02:00
Fetch JUCE into build/, tidy gitignore, expand README
This commit is contained in:
parent
4a761729f8
commit
ab9ea542a7
12 changed files with 350 additions and 149 deletions
|
|
@ -131,7 +131,7 @@ void SM26AudioProcessor::parameterChanged (const juce::String& parameterID, floa
|
|||
|
||||
if (parameterID == "preset")
|
||||
{
|
||||
int idx = (int) std::round (newValue * (float) (sm26::PresetStore::count() - 1));
|
||||
int idx = juce::roundToInt (newValue);
|
||||
idx = juce::jlimit (0, sm26::PresetStore::count() - 1, idx);
|
||||
engine.setPresetIndex (idx);
|
||||
applyPresetKnobs();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue