kopia lustrzana https://github.com/jameshball/osci-render
ui - remove ui components unecessary for instrument mode (todo > remove leftover padding and gaps)
rodzic
7421d4d59f
commit
11dc609df0
|
@ -5,7 +5,9 @@
|
|||
EffectsComponent::EffectsComponent(OscirenderAudioProcessor& p, OscirenderAudioProcessorEditor& editor) : audioProcessor(p), itemData(p, editor), listBoxModel(listBox, itemData) {
|
||||
setText("Audio Effects");
|
||||
|
||||
#if !defined(MIDI_ALWAYS_ENABLED) || (MIDI_ALWAYS_ENABLED == 0)
|
||||
addAndMakeVisible(frequency);
|
||||
#endif
|
||||
|
||||
frequency.slider.setSkewFactorFromMidPoint(500.0);
|
||||
frequency.slider.setTextValueSuffix("Hz");
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include "parser/FileParser.h"
|
||||
#include "parser/FrameProducer.h"
|
||||
#include "PluginEditor.h"
|
||||
#include "MidiAlwaysEnabled.h"
|
||||
|
||||
MainComponent::MainComponent(OscirenderAudioProcessor& p, OscirenderAudioProcessorEditor& editor) : audioProcessor(p), pluginEditor(editor) {
|
||||
setText("Main Settings");
|
||||
|
@ -48,11 +49,12 @@ MainComponent::MainComponent(OscirenderAudioProcessor& p, OscirenderAudioProcess
|
|||
|
||||
closeFileButton.setTooltip("Close the currently open file.");
|
||||
|
||||
#if !defined(MIDI_ALWAYS_ENABLED) || (MIDI_ALWAYS_ENABLED == 0)
|
||||
addAndMakeVisible(inputEnabled);
|
||||
inputEnabled.onClick = [this] {
|
||||
audioProcessor.inputEnabled->setBoolValueNotifyingHost(!audioProcessor.inputEnabled->getBoolValue());
|
||||
};
|
||||
|
||||
#endif
|
||||
addAndMakeVisible(fileLabel);
|
||||
fileLabel.setJustificationType(juce::Justification::centred);
|
||||
updateFileLabel();
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
#include "MidiComponent.h"
|
||||
#include "PluginEditor.h"
|
||||
#include "MidiAlwaysEnabled.h"
|
||||
|
||||
MidiComponent::MidiComponent(OscirenderAudioProcessor& p, OscirenderAudioProcessorEditor& editor) : audioProcessor(p), pluginEditor(editor) {
|
||||
setText("MIDI Settings");
|
||||
|
||||
addAndMakeVisible(midiToggle);
|
||||
if (!isMidiAlwaysEnabled()) {
|
||||
addAndMakeVisible(midiToggle);
|
||||
}
|
||||
addAndMakeVisible(voicesSlider);
|
||||
addAndMakeVisible(voicesLabel);
|
||||
addAndMakeVisible(keyboard);
|
||||
|
|
Ładowanie…
Reference in New Issue