From efda4fd446da89ccd3909c988b6c1e932efa24bb Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 26 Jun 2018 11:11:35 +0100 Subject: multi chaos panel WIP --- gui/src/AudioPlotter.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gui/src/AudioPlotter.h') 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 plugins; vector > params; int whichplugin; + ofParameter 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; -- cgit v1.2.3