Skip to content

Commit

Permalink
Initialize SelectedChannelsParameter to first n channels
Browse files Browse the repository at this point in the history
  • Loading branch information
medengineer committed Oct 18, 2023
1 parent 9290844 commit 67cf321
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Processors/Parameter/Parameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,11 @@ SelectedChannelsParameter::SelectedChannelsParameter(ParameterOwner* owner,
maxSelectableChannels(maxSelectableChannels_),
channelCount(0)
{

//Set default selected to the first maxSelectableChannels channels
Array<var> values;
for (int i = 0; i < maxSelectableChannels; i++)
values.add(i);
currentValue = values;
}

void SelectedChannelsParameter::setNextValue(var newValue_, bool undoable)
Expand Down

0 comments on commit 67cf321

Please sign in to comment.