| 584 | } |
| 585 | |
| 586 | void Multiband::sliderValueChanged(juce::Slider* slider) |
| 587 | { |
| 588 | lineNum = countLines(); |
| 589 | setLineIndex(); |
| 590 | for (int i = 0; i < lineNum; i++) |
| 591 | { |
| 592 | if (slider == &freqDividerGroup[i]->getVerticalLine()) |
| 593 | { |
| 594 | int freq = slider->getValue(); |
| 595 | freqDividerGroup[i]->setFreq(freq); |
| 596 | freqDividerGroup[i]->moveToX(lineNum, freqDividerGroup[i]->getVerticalLine().getXPercent(), limitLeft, freqDividerGroup); |
| 597 | } |
| 598 | } |
| 599 | // set focus index if focus is larger than max line num |
| 600 | if (focusIndex > lineNum) |
| 601 | { |
| 602 | focusIndex = lineNum; |
| 603 | } |
| 604 | setLineRelatedBoundsByX(); |
| 605 | setSoloRelatedBounds(); |
| 606 | } |
| 607 | |
| 608 | void Multiband::buttonClicked(juce::Button* button) |
| 609 | { |
nothing calls this directly
no test coverage detected