14 #include "JuceHeader.h"
31 public juce::AudioIODeviceCallback {
37 void initialise(
int channel,
unsigned rate,
unsigned window,
bool zeroX);
43 float** outputChannelData,
int totalNumOutputChannels,
int numSamples);
50 virtual void paint (juce::Graphics& g);
81 float** outputChannelData,
int totalNumOutputChannels,
int numSamples);
82 virtual void paint (juce::Graphics& g);
99 class RangeSlider :
public Slider {
101 RangeSlider (
const String& componentName) : Slider(componentName) { };
104 double getBaseValue();
105 double getRangeValue();
106 void setBaseValue (
double newValue,
const bool sendUpdateMessage =
true,
const bool sendMessageSynchronously =
true);
107 void setRangeValue (
double newValue,
const bool sendUpdateMessage =
true,
const bool sendMessageSynchronously =
true);
110 void mouseDown (
const MouseEvent& e);
111 void mouseDrag (
const MouseEvent& e);
113 double baseValue, rangeValue;
125 public juce::AudioIODeviceCallback {
148 const juce::Colour& minColour=juce::Colours::green,
149 const juce::Colour& thresholdColour=juce::Colours::yellow,
150 const juce::Colour& maxColour=juce::Colours::red,
151 const juce::Colour& back=juce::Colours::black,
152 float threshold=0.707f);
155 juce::Image* background,
156 juce::Image* overlay,
159 juce::Point<int>& needleCenter,
164 const juce::Colour& needleColour=juce::Colours::black,
165 int needleDropShadow=
None,
170 void setBounds (
int x,
int y,
int width,
int height);
171 void setFrame(
int inset,
bool raised=
false);
172 void setColours(juce::Colour&
min, juce::Colour& threshold, juce::Colour&
max, juce::Colour& back);
173 void setDecay(
int decay,
int hold,
float percent=0.707f);
181 float** outputChannelData,
int totalNumOutputChannels,
int numSamples);
186 juce_UseDebuggingNewOperator
189 void paint (juce::Graphics& g);
void audioDeviceIOCallback(const float **inputChannelData, int totalNumInputChannels, float **outputChannelData, int totalNumOutputChannels, int numSamples)
void setDecay(int decay, int hold, float percent=0.707f)
juce::Colour m_needleColour
const int vufront_pngSize
void audioDeviceAboutToStart(juce::AudioIODevice *device)
virtual void audioDeviceIOCallback(const float **inputChannelData, int totalNumInputChannels, float **outputChannelData, int totalNumOutputChannels, int numSamples)
void paint(juce::Graphics &g)
virtual void timerCallback()
void setSkewFactor(float skew)
juce::Image * m_background
float sample
(could be changed to int, or double)
void setChannel(unsigned channel)
void setBounds(int x, int y, int width, int height)
virtual void paint(juce::Graphics &g)
juce::Colour m_thresholdColour
juce::Colour m_backgroundColour
juce::Point< int > m_needleCenter
void setColours(juce::Colour &min, juce::Colour &threshold, juce::Colour &max, juce::Colour &back)
void setFrame(int inset, bool raised=false)
void audioDeviceAboutToStart(double sampleRate, int numSamplesPerBlock)
void audioDeviceStopped()