MCPcopy Create free account
hub / github.com/GuitarML/NeuralPi / resized

Method resized

Source/PluginEditor.cpp:597–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597void NeuralPiAudioProcessorEditor::resized()
598{
599 // This is generally where you'll want to lay out the positions of any
600 // subcomponents in your editor..
601 modelSelect.setBounds(11, 10, 270, 25);
602 loadButton.setBounds(11, 74, 100, 25);
603 modelKnob.setBounds(140, 40, 75, 95);
604
605 irSelect.setBounds(11, 42, 270, 25);
606 loadIR.setBounds(120, 74, 100, 25);
607 irButton.setBounds(248, 42, 257, 25);
608 lstmButton.setBounds(248, 10, 257, 25);
609
610 // Amp Widgets
611 ampGainKnob.setBounds(10, 120, 75, 95);
612 ampMasterKnob.setBounds(95, 120, 75, 95);
613 ampBassKnob.setBounds(10, 250, 75, 95);
614 ampMidKnob.setBounds(95, 250, 75, 95);
615 ampTrebleKnob.setBounds(180, 250, 75, 95);
616 ampPresenceKnob.setBounds(265, 250, 75, 95);
617
618 ampDelayKnob.setBounds(180, 120, 75, 95);
619 ampReverbKnob.setBounds(265, 120, 75, 95);
620
621 GainLabel.setBounds(6, 108, 80, 10);
622 LevelLabel.setBounds(93, 108, 80, 10);
623 BassLabel.setBounds(6, 238, 80, 10);
624 MidLabel.setBounds(91, 238, 80, 10);
625 TrebleLabel.setBounds(178, 238, 80, 10);
626 PresenceLabel.setBounds(265, 238, 80, 10);
627 DelayLabel.setBounds(178, 108, 80, 10);
628 ReverbLabel.setBounds(265, 108, 80, 10);
629
630 toneDropDownLabel.setBounds(267, 16, 80, 10);
631 irDropDownLabel.setBounds(261, 48, 80, 10);
632 versionLabel.setBounds(268, 431, 80, 10);
633
634 addAndMakeVisible(ampNameLabel);
635 ampNameField.setEditable(true, true, true);
636 addAndMakeVisible(ampNameField);
637
638 // IP controls:
639 ipField.setBounds(150, 365, 100, 25);
640 ipLabel.setBounds(15, 365, 150, 25);
641
642 // Port controls:
643 outPortNumberLabel.setBounds(15, 395, 150, 25);
644 outPortNumberField.setBounds(160, 395, 75, 25);
645 inPortNumberLabel.setBounds(15, 425, 150, 25);
646 inPortNumberField.setBounds(160, 425, 75, 25);
647}
648
649void NeuralPiAudioProcessorEditor::modelSelectChanged()
650{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected