CSL  6.0
CSLMIDIFaderComponent.h
Go to the documentation of this file.
1 /*
2  ==============================================================================
3 
4  This is an automatically generated file created by the Jucer!
5 
6  Creation date: 24 Oct 2009 11:43:13 pm
7 
8  Be careful when adding custom code to these files, as only the code within
9  the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
10  and re-saved.
11 
12  Jucer version: 1.12
13 
14  ------------------------------------------------------------------------------
15 
16  The Jucer is part of the JUCE library - "Jules' Utility Class Extensions"
17  Copyright 2004-6 by Raw Material Software ltd.
18 
19  ==============================================================================
20 */
21 
22 #ifndef __JUCER_HEADER_CSLMIDICOMPONENT_CSLMIDIFADERCOMPONENT_8E28AE2__
23 #define __JUCER_HEADER_CSLMIDICOMPONENT_CSLMIDIFADERCOMPONENT_8E28AE2__
24 
25 //[Headers] -- You can add your own extra header files here --
26 #include "CSL_AbstComponent.h"
27 //[/Headers]
28 
29 
30 
31 //==============================================================================
32 /**
33  //[Comments]
34  An auto-generated component, created by the Jucer.
35 
36  Describe your class and how it works here!
37  //[/Comments]
38 */
39 class CSLMIDIComponent : public Component,
40  public Timer,
41  public ButtonListener,
42  public AudioIODeviceCallback,
43  public SliderListener,
44  public csl::Observer {
45 public:
46  //==============================================================================
49 
50  //==============================================================================
51  //[UserMethods] -- You can add your own custom methods in this section.
52 
53  void update(void * arg); ///< MIDI observer update method
54 
55  //[/UserMethods]
56 
57  void paint (Graphics& g);
58  void resized();
59  void buttonClicked (Button* buttonThatWasClicked);
60  void sliderValueChanged (Slider* sliderThatWasMoved);
61 
62  virtual void timerCallback();
63  void startStop();
64  virtual void audioDeviceIOCallback (const float** inputChannelData,
65  int totalNumInputChannels,
66  float** outputChannelData,
67  int totalNumOutputChannels,
68  int numSamples);
69  virtual void audioDeviceAboutToStart (AudioIODevice* device);
70  virtual void audioDeviceStopped();
71 
72  //==============================================================================
73  juce_UseDebuggingNewOperator
74 
75 //private:
76  //[UserVariables] -- You can add your own custom variables in this section.
77 
78  csl::MIDIIn * mIn; ///< MIDI input
79  char *cLin; ///< message to add
80  bool filt; ///< filter note on-offs
81  std::vector <Slider *> sliders; ///< list of my 16 sliders
82  std::vector <unsigned> values; ///< list of my 16 current values
83  std::vector <unsigned> nextVals; ///< list of my 16 update values
84  AudioDeviceManager mAudioDeviceManager; ///< JUCE audio
85  csl::Buffer outBuffer; // main CSL buffer
86  bool changed, playing; ///< state flags
87  unsigned offset; ///< what # is fader 0?
88  GThread * playThread; // test play and looper threads
89 
90  //[/UserVariables]
91 
92  //==============================================================================
93  TextButton* quitButton;
94  TextButton* selButton;
95  TextButton* clearButton;
96  AudioDeviceSelectorComponent* audioDeviceSelector;
97  Slider* slider;
98  Slider* slider2;
99  Slider* slider3;
100  Slider* slider4;
101  Slider* slider5;
102  Slider* slider6;
103  Slider* slider7;
104  Slider* slider8;
105  Slider* slider9;
106  Slider* slider10;
107  Slider* slider11;
108  Slider* slider12;
109  Slider* slider13;
110  Slider* slider14;
111  Slider* slider15;
112  Slider* slider16;
113  Label* label2;
114 
115  //==============================================================================
116  // (prevent copy constructor and operator= being generated..)
119 };
120 
121 
122 #endif // __JUCER_HEADER_CSLMIDICOMPONENT_CSLMIDIFADERCOMPONENT_8E28AE2__
virtual void audioDeviceStopped()
void paint(Graphics &g)
CSL Observer/Dependent/Monitor class – instances receive update() messages from "models" and handle ...
Definition: CGestalt.h:296
bool filt
filter note on-offs
std::vector< Slider * > sliders
list of my 16 sliders
MIDIIn class is-a MidiInputCallback too, and an "input-ready" flag.
Definition: MIDIIOJ.h:130
AudioDeviceSelectorComponent * audioDeviceSelector
void update(void *arg)
MIDI observer update method.
GThread takes a CSL test function and runs it.
void buttonClicked(Button *buttonThatWasClicked)
virtual void audioDeviceAboutToStart(AudioIODevice *device)
AudioDeviceManager mAudioDeviceManager
JUCE audio.
std::vector< unsigned > nextVals
list of my 16 update values
TextButton * clearButton
virtual void audioDeviceIOCallback(const float **inputChannelData, int totalNumInputChannels, float **outputChannelData, int totalNumOutputChannels, int numSamples)
char * cLin
message to add
unsigned offset
what # is fader 0?
std::vector< unsigned > values
list of my 16 current values
Buffer – the multi-channel sample buffer class (passed around between generators and IO guys)...
Definition: CSL_Core.h:106
TextButton * quitButton
bool playing
state flags
const CSLMIDIComponent & operator=(const CSLMIDIComponent &)
juce_UseDebuggingNewOperator csl::MIDIIn * mIn
MIDI input.
void sliderValueChanged(Slider *sliderThatWasMoved)