diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-06-22 18:16:10 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-06-22 18:16:10 +0100 |
| commit | 3baf7e68c29a5a37f9317aeb0f4e75252a9e4530 (patch) | |
| tree | 6180610b74f464c7721cc062c410cbc86b98f03f /gui/src/AudioPlotter.h | |
| parent | 54a6478fcdeaadc12c753adf73b171979808fd9e (diff) | |
chaos selecter progress
Diffstat (limited to 'gui/src/AudioPlotter.h')
| -rw-r--r-- | gui/src/AudioPlotter.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gui/src/AudioPlotter.h b/gui/src/AudioPlotter.h index 57f25ad..40e3fc9 100644 --- a/gui/src/AudioPlotter.h +++ b/gui/src/AudioPlotter.h @@ -19,6 +19,7 @@ class Chaos{ public: vector <AChaosplugin> plugins; vector <vector <REAL>> params; + int whichplugin; Chaos(){ plugins.push_back(AChaosplugin(new AChaosBaker(),"Baker")); plugins.push_back(AChaosplugin(new AChaosClifford(),"Clifford")); @@ -26,6 +27,19 @@ class Chaos{ plugins.push_back(AChaosplugin(new AChaosDuffing(),"Duffing")); plugins.push_back(AChaosplugin(new AChaosGinger(),"Ginger")); plugins.push_back(AChaosplugin(new AChaosHenon(),"Henon")); + whichplugin=0; + } + void next(){ + whichplugin=(whichplugin+1)%plugins.size(); + } + void previous(){ + whichplugin=whichplugin-1; + if (whichplugin<0){ + whichplugin=plugins.size()-1; + } + } + std::string &get_name(){ + return plugins[whichplugin].name; } }; @@ -105,8 +119,11 @@ public: ofParameter<float> chaos_k; ofParameter<float> chaos_p; + Chaos chaosloader; + private: vector < vector<colourPolyline>> data; AChaosIkeda attractor; + };
\ No newline at end of file |
