This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathPluginProcessor.h
61 lines (43 loc) · 2.02 KB
/
PluginProcessor.h
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
60
61
/*
==============================================================================
This file was auto-generated!
It contains the basic framework code for a JUCE plugin processor.
==============================================================================
*/
#pragma once
#include "../JuceLibraryCode/JuceHeader.h"
#include "FoleysSynth.h"
class PresetListBox;
//==============================================================================
/**
*/
class FoleysSynthAudioProcessor : public foleys::MagicProcessor
{
public:
//==============================================================================
FoleysSynthAudioProcessor();
//==============================================================================
void prepareToPlay (double sampleRate, int samplesPerBlock) override;
void releaseResources() override;
#ifndef JucePlugin_PreferredChannelConfigurations
bool isBusesLayoutSupported (const juce::AudioProcessor::BusesLayout& layouts) const override;
#endif
void processBlock (juce::AudioBuffer<float>&, juce::MidiBuffer&) override;
//==============================================================================
//==============================================================================
void savePresetInternal();
void loadPresetInternal(int index);
//==============================================================================
double getTailLengthSeconds() const override;
private:
//==============================================================================
juce::AudioProcessorValueTreeState treeState;
FoleysSynth synthesiser;
juce::ValueTree presetNode;
// GUI MAGIC: define that as last member of your AudioProcessor
foleys::MagicLevelSource* outputMeter = nullptr;
foleys::MagicPlotSource* oscilloscope = nullptr;
foleys::MagicPlotSource* analyser = nullptr;
PresetListBox* presetList = nullptr;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FoleysSynthAudioProcessor)
};