@@ -33,6 +33,7 @@ AeolusAudioProcessorEditor::AeolusAudioProcessorEditor (AeolusAudioProcessor& p)
3333 , _divisionsComponent{}
3434 , _divisionViews{}
3535 , _midiKeyboard(p.getEngine().getMidiKeyboardState(), MidiKeyboardComponent::horizontalKeyboard)
36+ , _sequencerView(p.getEngine().getSequencer())
3637 , _versionLabel{{}, JucePlugin_VersionString}
3738 , _cpuLoadLabel{{}, " CPU Load:" }
3839 , _cpuLoadValueLabel{}
@@ -127,6 +128,8 @@ AeolusAudioProcessorEditor::AeolusAudioProcessorEditor (AeolusAudioProcessor& p)
127128 _midiKeyboard.setAvailableRange (24 , 108 );
128129 addAndMakeVisible (_midiKeyboard);
129130
131+ addAndMakeVisible (_sequencerView);
132+
130133 resized ();
131134
132135 startTimerHz (10 );
@@ -170,6 +173,7 @@ void AeolusAudioProcessorEditor::resized()
170173 constexpr int H = 30 ;
171174 constexpr int S = 5 ;
172175 constexpr int T = margin * 2 + 20 ;
176+ constexpr int sequencerHeight = 26 ;
173177 constexpr int keyboardHeight = 70 ;
174178
175179 int y = 0 ;;
@@ -181,12 +185,13 @@ void AeolusAudioProcessorEditor::resized()
181185 }
182186
183187 _divisionsComponent.setBounds (0 , 0 , getWidth (), y);
184- _divisionsViewport.setBounds (0 , T, getWidth (), getHeight () - T - keyboardHeight);
188+ _divisionsViewport.setBounds (0 , T, getWidth (), getHeight () - T - keyboardHeight - sequencerHeight );
185189
186190 int keyboardWidth = jmin ((int )_midiKeyboard.getTotalKeyboardWidth (), getWidth ());
187-
188191 _midiKeyboard.setBounds ((getWidth () - keyboardWidth) / 2 , getHeight () - keyboardHeight, keyboardWidth, keyboardHeight);
189192
193+ _sequencerView.setBounds (_midiKeyboard.getX (), _midiKeyboard.getY () - sequencerHeight, _midiKeyboard.getWidth (), sequencerHeight);
194+
190195 _cancelButton.setColour (TextButton::buttonColourId, Colour (0x66 , 0x66 , 0x33 ));
191196 _cancelButton.setBounds ((_midiKeyboard.getX () - 60 )/2 , getHeight () - 60 , 60 , 35 );
192197}
0 commit comments