Mercurial > hg > tweakathon2ios
diff MessageOrganiser.mm @ 22:8124f46eda65
pretty much working.
ugly though.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Thu, 23 Oct 2014 18:15:46 +0100 |
parents | 5cf2b80909fc |
children | b339acf124df |
line wrap: on
line diff
--- a/MessageOrganiser.mm Wed Oct 22 18:12:12 2014 +0100 +++ b/MessageOrganiser.mm Thu Oct 23 18:15:46 2014 +0100 @@ -194,7 +194,19 @@ // } } void MessageOrganiser::setSlidersToDefault(){ - for(int i=1; i < targetSynth.getNumParams(); i++){ + for(int i=1; i < candidateSynth.getNumParams(); i++){ setUIToParam(i, 0); + } +} +void MessageOrganiser::setCandidateAndSlidersToRandom(){ + vector<int> rands; + for(int i = 0; i < candidateSynth.getNumParams(); i++){ + + rands.push_back(rand() % 127); + } + + setAllSlidersToValues(rands); + candidateSynth.setAllParams(rands); + } \ No newline at end of file