summaryrefslogtreecommitdiff
path: root/gui/src/AudioPlotter.h
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2018-06-26 11:11:35 +0100
committerTim Redfern <tim@getdrop.com>2018-06-26 11:11:35 +0100
commitefda4fd446da89ccd3909c988b6c1e932efa24bb (patch)
tree753e13bcf097a9468aecef9ecd8aacd9d1b07720 /gui/src/AudioPlotter.h
parent3baf7e68c29a5a37f9317aeb0f4e75252a9e4530 (diff)
multi chaos panel WIP
Diffstat (limited to 'gui/src/AudioPlotter.h')
-rw-r--r--gui/src/AudioPlotter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/src/AudioPlotter.h b/gui/src/AudioPlotter.h
index 40e3fc9..716a1dd 100644
--- a/gui/src/AudioPlotter.h
+++ b/gui/src/AudioPlotter.h
@@ -20,6 +20,7 @@ class Chaos{
vector <AChaosplugin> plugins;
vector <vector <REAL>> params;
int whichplugin;
+ ofParameter <string> name;
Chaos(){
plugins.push_back(AChaosplugin(new AChaosBaker(),"Baker"));
plugins.push_back(AChaosplugin(new AChaosClifford(),"Clifford"));
@@ -28,15 +29,21 @@ class Chaos{
plugins.push_back(AChaosplugin(new AChaosGinger(),"Ginger"));
plugins.push_back(AChaosplugin(new AChaosHenon(),"Henon"));
whichplugin=0;
+ update_name();
}
void next(){
whichplugin=(whichplugin+1)%plugins.size();
+ update_name();
}
void previous(){
whichplugin=whichplugin-1;
if (whichplugin<0){
whichplugin=plugins.size()-1;
}
+ update_name();
+ }
+ void update_name(){
+ name=plugins[whichplugin].name;
}
std::string &get_name(){
return plugins[whichplugin].name;