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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
#pragma once
#include "ofMain.h"
#include "ofxFensterManager.h"
#include "ofxGui.h"
#include "ofxVamphost.h"
#include "viewport.h"
class previewWindow;
class guiWindow;
//load palettes and interpolate them with phase
//some audio drawing
//some actual drawing
//transitions
class testApp : public ofxFensterListener {
public:
void setup();
void update();
void draw();
void keyPressed(int key, ofxFenster* win);
void keyPressed(int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void windowResized(int w, int h);
void gotMessage(ofMessage msg);
void mousePressedEvent(ofMouseEventArgs &args);
void keyPressedEvent(ofKeyEventArgs &args);
void windowEvent(ofResizeEventArgs &args);
void dragEvent(ofDragInfo dragInfo);
void dragEvent(ofDragInfo dragInfo,ofxFenster* win);
void toggleFPS();
bool showFPS;
bool fullscreenoutput;
previewWindow *prevWin;
guiWindow *guiWin;
ofxFenster* win;
ofxPanel gui;
ofxButton create_1;
ofxButton create_2;
ofxButton create_4;
ofxButton create_8;
ofxToggle dotrans;
ofxIntSlider bS;
ofxParameter<int> brightSlider;
ofxIntSlider fS;
ofxParameter<int> fadeSlider;
ofxToggle fill;
ofxFloatSlider sF;
ofxParameter<float> slidFreq;
ofxToggle wave;
ofxToggle fillwave;
ofxFloatSlider sT;
ofxParameter<float> slidThickness;
ofxFloatSlider sW;
ofxParameter<float> slidWave;
void create1port(bool & pressed);
void create2port(bool & pressed);
void create4port(bool & pressed);
void create8port(bool & pressed);
void createports(int num);
void backupPalettes();
void restorePalettes();
void loadPalette(string &filename,int whichport);
vector<palette> backups;
vector<viewport> viewports;
vpcontrol control;
//
void audioIn(float * input, int bufferSize, int nChannels);
ofSoundStream soundStream;
};
class previewWindow: public ofxFensterListener{
public:
~previewWindow();
testApp *parent;
void setup();
void setParent(testApp *p);
void draw();
void dragEvent(ofDragInfo dragInfo,ofxFenster* win);
};
class guiWindow: public ofxFensterListener{
public:
~guiWindow();
testApp *parent;
void setup();
void setParent(testApp *p);
void draw();
void dragEvent(ofDragInfo dragInfo,ofxFenster* win);
};
|