|
@@ -417,9 +417,7 @@ PianoRollComponent::PianoRollComponent (AudioEngine& e)
|
|
|
chordBox.addItem (tr ("Scale degree chord"), degreeStampId);
|
|
chordBox.addItem (tr ("Scale degree chord"), degreeStampId);
|
|
|
}
|
|
}
|
|
|
chordBox.setSelectedId (1, juce::dontSendNotification);
|
|
chordBox.setSelectedId (1, juce::dontSendNotification);
|
|
|
- chordBox.onPopup = [this] { // (round 190nu: FL's stamp button opens the Stamp menu; the options of the degree chord on top)
|
|
|
|
|
- stampMenu().showMenuAsync (juce::PopupMenu::Options().withTargetComponent (&chordBox).withMinimumWidth (chordBox.getWidth()));
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ chordBox.onPopup = [this] { return stampMenu(); }; // (round 190nu: FL's stamp button opens the Stamp menu; the options of the degree chord on top)
|
|
|
chordBox.setTooltip (tr ("Clicking creates this chord (the clicked note is the root)"));
|
|
chordBox.setTooltip (tr ("Clicking creates this chord (the clicked note is the root)"));
|
|
|
|
|
|
|
|
// scale: root x type
|
|
// scale: root x type
|
|
@@ -440,9 +438,7 @@ PianoRollComponent::PianoRollComponent (AudioEngine& e)
|
|
|
scaleSnapButton.setEnabled (false); // until a scale is chosen
|
|
scaleSnapButton.setEnabled (false); // until a scale is chosen
|
|
|
scaleBox.setTooltip (tr ("Highlights the notes of a scale"));
|
|
scaleBox.setTooltip (tr ("Highlights the notes of a scale"));
|
|
|
// issue #203 (round 190ll): the FL layout's click opens FL's Scale highlighting menu (root and scale apart)
|
|
// issue #203 (round 190ll): the FL layout's click opens FL's Scale highlighting menu (root and scale apart)
|
|
|
- scaleBox.onPopup = [this] {
|
|
|
|
|
- scaleHighlightMenu().showMenuAsync (juce::PopupMenu::Options().withTargetComponent (&scaleBox).withMinimumWidth (scaleBox.getWidth()));
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ scaleBox.onPopup = [this] { return scaleHighlightMenu(); };
|
|
|
// docked (Clip-launch: Live's Clip View Scale; Simple: BandLab's Smart View): a root box and a scale box
|
|
// docked (Clip-launch: Live's Clip View Scale; Simple: BandLab's Smart View): a root box and a scale box
|
|
|
for (int root = 0; root < 12; ++root)
|
|
for (int root = 0; root < 12; ++root)
|
|
|
scaleRootBox.addItem (juce::String (notenames::pitchName (root)), root + 1);
|
|
scaleRootBox.addItem (juce::String (notenames::pitchName (root)), root + 1);
|