CSL  6.0
SpectralProc.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: 9 Jan 2009 5:22:37 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.11
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_CSLCOMPONENT_SPECTRALPROC_D4CD68AC__
23 #define __JUCER_HEADER_CSLCOMPONENT_SPECTRALPROC_D4CD68AC__
24 
25 //[Headers] -- You can add your own extra header files here --
26 
27 #include "juce.h"
28 #include "CSL_Includes.h" // include all of CSL core
29 #include "JCSL_Widgets.h"
30 
31 //[/Headers]
32 
33 
34 
35 //==============================================================================
36 /**
37  //[Comments]
38  An auto-generated component, created by the Jucer.
39 
40  Describe your class and how it works here!
41  //[/Comments]
42 */
43 class CSLComponent : public Component,
44  public Timer,
45  public ButtonListener,
46  public SliderListener,
47  public ComboBoxListener
48 {
49 public:
50  //==============================================================================
51  CSLComponent ();
52  ~CSLComponent();
53 
54  //==============================================================================
55  //[UserMethods] -- You can add your own custom methods in this section.
56 
57  void timerCallback();
58  unsigned getFFTLen();
59  float getOverlap();
60 
61  //[/UserMethods]
62 
63  void paint (Graphics& g);
64  void resized();
65  void buttonClicked (Button* buttonThatWasClicked);
66  void sliderValueChanged (Slider* sliderThatWasMoved);
67  void comboBoxChanged (ComboBox* comboBoxThatHasChanged);
68 
69  //==============================================================================
70  juce_UseDebuggingNewOperator
71 
72 private:
73  //[UserVariables] -- You can add your own custom variables in this section.
74 
75  csl::SoundFile * mSndFile;
77  csl::SoundFile * mOutFile;
79 
80  unsigned mSamples;
81  unsigned mChannels;
82  unsigned mSRate;
83  unsigned totread; // played samples counter
84  unsigned mFFTLen;
85  unsigned mNumWins;
86 
87  //[/UserVariables]
88 
89  //==============================================================================
90  TextButton* playButton;
91  TextButton* quitButton;
93  Label* label;
95  Slider* offsetSlider;
96  TextButton* loadButton;
97  TextButton* analyzeButton;
98  TextButton* filterButton;
99  TextButton* playSource;
100  ComboBox* fftLenCombo;
101  ComboBox* winCombo;
102  Label* label2;
103  Label* label3;
104  Label* label4;
105  Slider* hiPassSlider;
106  Label* label5;
107  Slider* loPassSlider;
108  Label* label6;
110  ComboBox* scaleCombo;
111  ComboBox* displayCombo;
112  Label* label7;
113  Label* label8;
114  ComboBox* overlapCombo;
115  Label* label9;
116  Label* label10;
117  Slider* timeSlider;
118  Label* label11;
119  Slider* pitchSlider;
120  Label* fileInfo;
121 
122  //==============================================================================
123  // (prevent copy constructor and operator= being generated..)
124  CSLComponent (const CSLComponent&);
125  const CSLComponent& operator= (const CSLComponent&);
126 };
127 
128 
129 #endif // __JUCER_HEADER_CSLCOMPONENT_SPECTRALPROC_D4CD68AC__
TextButton * playButton
Definition: SpectralProc.h:90
Slider * timeSlider
Definition: SpectralProc.h:117
TextButton * loadButton
Definition: SpectralProc.h:96
Label * label4
Definition: SpectralProc.h:104
void comboBoxChanged(ComboBox *comboBoxThatHasChanged) override
Label * label10
Definition: SpectralProc.h:116
unsigned mChannels
Definition: SpectralProc.h:81
Label * label2
Definition: SpectralProc.h:102
csl::IO * mIO
Definition: SpectralProc.h:78
TextButton * filterButton
Definition: SpectralProc.h:98
Label * label5
Definition: SpectralProc.h:106
Label * label
Definition: SpectralProc.h:93
TextButton * playSource
Definition: SpectralProc.h:99
csl::Buffer mSpectBuffer
Definition: SpectralProc.h:76
Label * label7
Definition: SpectralProc.h:112
Label * label3
Definition: SpectralProc.h:103
Label * fileInfo
Definition: SpectralProc.h:120
unsigned mFFTLen
Definition: SpectralProc.h:84
ComboBox * scaleCombo
Definition: SpectralProc.h:110
ComboBox * displayCombo
Definition: SpectralProc.h:111
const CSLComponent & operator=(const CSLComponent &)
csl::SoundFile * mOutFile
Definition: SpectralProc.h:77
unsigned mSamples
Definition: SpectralProc.h:80
TextButton * quitButton
Definition: SpectralProc.h:91
~CSLComponent() override
IO – the abstract I/O scheduling class; subclasses interface to specific I/O APIs.
Definition: CSL_Core.h:752
float getOverlap()
ComboBox * overlapCombo
Definition: SpectralProc.h:114
void resized() override
Label * label8
Definition: SpectralProc.h:113
Slider * hiPassSlider
Definition: SpectralProc.h:105
AudioWaveformDisplay * oscilloscope
Definition: SpectralProc.h:92
unsigned mNumWins
Definition: SpectralProc.h:85
Label * label11
Definition: SpectralProc.h:118
Label * label6
Definition: SpectralProc.h:108
unsigned getFFTLen()
Slider * loPassSlider
Definition: SpectralProc.h:107
Slider * thresholdSlider
Definition: SpectralProc.h:109
void buttonClicked(Button *buttonThatWasClicked) override
Buffer – the multi-channel sample buffer class (passed around between generators and IO guys)...
Definition: CSL_Core.h:106
ComboBox * winCombo
Definition: SpectralProc.h:101
csl::SoundFile * mSndFile
Definition: SpectralProc.h:75
Slider * offsetSlider
Definition: SpectralProc.h:95
void paint(Graphics &g) override
unsigned totread
Definition: SpectralProc.h:83
Slider * pitchSlider
Definition: SpectralProc.h:119
unsigned mSRate
Definition: SpectralProc.h:82
Label * label9
Definition: SpectralProc.h:115
void sliderValueChanged(Slider *sliderThatWasMoved) override
ComboBox * fftLenCombo
Definition: SpectralProc.h:100
AudioSpectrumDisplay * spectrogram
Definition: SpectralProc.h:94
TextButton * analyzeButton
Definition: SpectralProc.h:97