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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
#pragma once
#include "ofMain.h"
#include "ofxSprite.h"
#include "ofxGui.h"
#include "ofxFensterManager.h"
#include "music.h"
#include "Asterisk.h"
#include "Puppet.h"
#include "Animal.h"
#include "Tag.h";
/*
this library?
https://github.com/micknoise/Maximilian
Maximilian is an audio synthesis and signal processing library written in C++. It's cross-platform compatible with MacOS, Windows, Linux and IOS systems. The main features are:
- sample playback, recording and looping
- read from WAV and OGG files.
- a selection of oscillators and filters
- enveloping
- multichannel mixing for 1, 2, 4 and 8 channel setups
- controller mapping functions
- effects including delay, distortion, chorus, flanging
- granular synthesis, including time and pitch stretching
- atom synthesis
- realtime music information retrieval functions: spectrum analysis, spectral features, octave analysis, and MFCCs
- example projects for Windows and MacOS, using command line and OpenFrameworks environments
game design demo
state - game started, game over
while playing - game full volume - if you miss a flake - starts countdown - game gets quieter and stars get fainter - when countdown is down 'game over'
keys - volume - control drawing of stars - game state
changes 05112012
event suppression working?
overlap
character class- load sprites from xml- play behaviours- block animations when others are playing
//hooking up the backend
1 - start game - sends message - starts if acknowledged
2 - receive dtmf
3 - hang up
*/
#define GAME_INTRO 1
#define GAME_READY 2
#define GAME_ADVERT 3
#define GAME_PLAYING 4
class guiWindow;
class testApp : public ofxFensterListener{
public:
void setup();
void update();
void draw();
void exit();
void keyPressedEvent(ofKeyEventArgs &args);
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 dragEvent(ofDragInfo dragInfo);
void gotMessage(ofMessage msg);
ofVideoPlayer intro;
ofVideoPlayer advert;
ofVideoPlayer background;
ofImage vignette;
vector<song*> songs;
vector<Animal> penguins;
vector<Animal> raccoons;
//vector<vector<Animal> > animals;
//vector<Animal> playanimals;
vector<Animal>* playanimal;
vector<Tag*> tags;
vector<Billboard*> logos;
puppetSprite banner;
Billboard* lyricspanel;
Puppet testpenguin;
int currentlevel;
Asterisk game;
bool showFPS;
bool showVis;
bool fullscreenoutput;
int currentsong,nextsong,gamestate;
guiWindow *guiWin;
ofxPanel gui;
ofxIntSlider tS;
ofxParameter<int>threshStart;
ofxIntSlider tE;
ofxParameter<int> threshEnd;
ofxIntSlider ts;
ofxParameter<int> timescale;
ofxIntSlider kT;
ofxParameter<int> keyThresh;
};
class guiWindow: public ofxFensterListener{
public:
~guiWindow();
testApp *parent;
void setup();
void setParent(testApp *p);
void draw();
void dragEvent(ofDragInfo dragInfo,ofxFenster* win);
void windowMoved(int x, int y);
};
|