-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainComponent.cpp
More file actions
59 lines (41 loc) · 1 KB
/
Copy pathMainComponent.cpp
File metadata and controls
59 lines (41 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include "MainComponent.h"
#include "JuceHeader.h"
MainComponent::MainComponent() {
//: valueTreeState(){
/*
Program wants inheretence from an AudioProcessor, which doesn't apply to this class.
*/
setSize(800, 600);
setAudioChannels(2, 2);
addAndMakeVisible(DriveLabel);
addAndMakeVisible(&Drive);
addAndMakeVisible(&VolLabel);
addAndMakeVisible(&Volume);
addAndMakeVisible(&GainLabel);
addAndMakeVisible(&Gain);
addAndMakeVisible(&RangeLabel);
addAndMakeVisible(&Range);
gainAttachment.reset(new SliderAttachment(valueTreeState, "gain", Gain));
}
MainComponent::~MainComponent()
{
shutdownAudio();
}
void MainComponent::prepareToPlay(int samplesPerBlockExpected, double sampleRate)
{
}
void MainComponent::getNextAudioBlock(const AudioSourceChannelInfo& bufferToFill)
{
}
void MainComponent::releaseResources()
{
}
void MainComponent::paint(Graphics& g)
{
}
void MainComponent::resized()
{
int sliderleft = 120;
//Because auto is for pansies.
juce::Rectangle<int> r = getLocalBounds();
}