Mercurial > hg > tweakathon2ios
diff ExplorePresetManager.h @ 10:e25d2b1b185e
Sequence manager generates sequences of target sounds.
psudocode for onTick()
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Fri, 17 Oct 2014 19:23:30 +0100 |
parents | 92850a2b099c |
children | af71bf84660f |
line wrap: on
line diff
--- a/ExplorePresetManager.h Fri Oct 17 17:50:41 2014 +0100 +++ b/ExplorePresetManager.h Fri Oct 17 19:23:30 2014 +0100 @@ -87,6 +87,17 @@ void presentNextPreset(){ } + + Preset* getPreset(int index){ + + if (index >= thePresets.size()){ + cout << "ERROR: index exceeds number of presets" << endl; + return NULL; + }else{ + return thePresets[index]; + + } + }; protected: int filledSlots; string presetSlotFilename;