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) {
|
EffectsComponent::EffectsComponent(OscirenderAudioProcessor& p, OscirenderAudioProcessorEditor& editor) : audioProcessor(p), itemData(p, editor), listBoxModel(listBox, itemData) {
|
||||||
setText("Audio Effects");
|
setText("Audio Effects");
|
||||||
|
|
||||||
|
#if !defined(MIDI_ALWAYS_ENABLED) || (MIDI_ALWAYS_ENABLED == 0)
|
||||||
addAndMakeVisible(frequency);
|
addAndMakeVisible(frequency);
|
||||||
|
#endif
|
||||||
|
|
||||||
frequency.slider.setSkewFactorFromMidPoint(500.0);
|
frequency.slider.setSkewFactorFromMidPoint(500.0);
|
||||||
frequency.slider.setTextValueSuffix("Hz");
|
frequency.slider.setTextValueSuffix("Hz");
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#include "parser/FileParser.h"
|
#include "parser/FileParser.h"
|
||||||
#include "parser/FrameProducer.h"
|
#include "parser/FrameProducer.h"
|
||||||
#include "PluginEditor.h"
|
#include "PluginEditor.h"
|
||||||
|
#include "MidiAlwaysEnabled.h"
|
||||||
|
|
||||||
MainComponent::MainComponent(OscirenderAudioProcessor& p, OscirenderAudioProcessorEditor& editor) : audioProcessor(p), pluginEditor(editor) {
|
MainComponent::MainComponent(OscirenderAudioProcessor& p, OscirenderAudioProcessorEditor& editor) : audioProcessor(p), pluginEditor(editor) {
|
||||||
setText("Main Settings");
|
setText("Main Settings");
|
||||||
|
@ -48,11 +49,12 @@ MainComponent::MainComponent(OscirenderAudioProcessor& p, OscirenderAudioProcess
|
||||||
|
|
||||||
closeFileButton.setTooltip("Close the currently open file.");
|
closeFileButton.setTooltip("Close the currently open file.");
|
||||||
|
|
||||||
|
#if !defined(MIDI_ALWAYS_ENABLED) || (MIDI_ALWAYS_ENABLED == 0)
|
||||||
addAndMakeVisible(inputEnabled);
|
addAndMakeVisible(inputEnabled);
|
||||||
inputEnabled.onClick = [this] {
|
inputEnabled.onClick = [this] {
|
||||||
audioProcessor.inputEnabled->setBoolValueNotifyingHost(!audioProcessor.inputEnabled->getBoolValue());
|
audioProcessor.inputEnabled->setBoolValueNotifyingHost(!audioProcessor.inputEnabled->getBoolValue());
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
addAndMakeVisible(fileLabel);
|
addAndMakeVisible(fileLabel);
|
||||||
fileLabel.setJustificationType(juce::Justification::centred);
|
fileLabel.setJustificationType(juce::Justification::centred);
|
||||||
updateFileLabel();
|
updateFileLabel();
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
#include "MidiComponent.h"
|
#include "MidiComponent.h"
|
||||||
#include "PluginEditor.h"
|
#include "PluginEditor.h"
|
||||||
|
#include "MidiAlwaysEnabled.h"
|
||||||
|
|
||||||
MidiComponent::MidiComponent(OscirenderAudioProcessor& p, OscirenderAudioProcessorEditor& editor) : audioProcessor(p), pluginEditor(editor) {
|
MidiComponent::MidiComponent(OscirenderAudioProcessor& p, OscirenderAudioProcessorEditor& editor) : audioProcessor(p), pluginEditor(editor) {
|
||||||
setText("MIDI Settings");
|
setText("MIDI Settings");
|
||||||
|
|
||||||
|
if (!isMidiAlwaysEnabled()) {
|
||||||
addAndMakeVisible(midiToggle);
|
addAndMakeVisible(midiToggle);
|
||||||
|
}
|
||||||
addAndMakeVisible(voicesSlider);
|
addAndMakeVisible(voicesSlider);
|
||||||
addAndMakeVisible(voicesLabel);
|
addAndMakeVisible(voicesLabel);
|
||||||
addAndMakeVisible(keyboard);
|
addAndMakeVisible(keyboard);
|
||||||
|
|
Ładowanie…
Reference in New Issue