CSL  6.0
CSLMIDIComponent.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: 27 Oct 2009 10:19:22 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_CSLMIDICOMPONENT_22509CB1__
23 #define __JUCER_HEADER_CSLMIDICOMPONENT_CSLMIDICOMPONENT_22509CB1__
24 
25 //[Headers] -- You can add your own extra header files here --
26 #include "CSL_Includes.h" // CSL core
27 #include "juce.h" // JUCE core
28 #include "JCSL_Widgets.h" // my custom widgets (VU meter and oscilloscope)
29 //[/Headers]
30 
31 
32 
33 //==============================================================================
34 /**
35  //[Comments]
36  An auto-generated component, created by the Jucer.
37 
38  Describe your class and how it works here!
39  //[/Comments]
40 */
41 class CSLMIDIComponent : public Component,
42 // public AudioIODeviceCallback,
43  public Timer,
44  public ButtonListener,
45 // public ComboBoxListener,
46 // public SliderListener,
47  public csl::Observer
48 {
49 public:
50  //==============================================================================
53 
54  //==============================================================================
55  //[UserMethods] -- You can add your own custom methods in this section.
56 
57  void update(void * arg); ///< MIDI observer update method
58  void timerCallback();
59 
60  //[/UserMethods]
61 
62  void paint (Graphics& g);
63  void resized();
64  void buttonClicked (Button* buttonThatWasClicked);
65 
66 
67  //==============================================================================
68  juce_UseDebuggingNewOperator
69 
70 //private:
71  //[UserVariables] -- You can add your own custom variables in this section.
72 
73  csl::MIDIIn * mIn; ///< MIDI input
74  char *cLin; ///< message to add
75  bool filt; ///< filter note on-offs
76 
77  AudioDeviceManager mAudioDeviceManager; // JUCE audio
78 // csl::Buffer outBuffer; // main CSL buffer
79 // GThread * playThread; // test play and looper threads
80 // LThread * loopThread;
81 // float amplValue; // amp scale
82 // bool loop, recrding, playing, displayMode, changed; // state flags
83  bool changed; // state flags
84 
85  //[/UserVariables]
86 
87  //==============================================================================
88  TextButton* quitButton;
89  Label* label;
90  TextEditor* textEditor;
91  TextButton* clearButton;
92  AudioDeviceSelectorComponent* audioDeviceSelector;
93  ToggleButton* filtButton;
94 
95  //==============================================================================
96  // (prevent copy constructor and operator= being generated..)
99 };
100 
101 
102 #endif // __JUCER_HEADER_CSLMIDICOMPONENT_CSLMIDICOMPONENT_22509CB1__
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
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.
void buttonClicked(Button *buttonThatWasClicked)
AudioDeviceManager mAudioDeviceManager
JUCE audio.
TextButton * clearButton
char * cLin
message to add
ToggleButton * filtButton
TextButton * quitButton
TextEditor * textEditor
const CSLMIDIComponent & operator=(const CSLMIDIComponent &)
juce_UseDebuggingNewOperator csl::MIDIIn * mIn
MIDI input.