Mercurial > hg > tweakathon2ios
diff SequenceController.h @ 41:ba426cc4e6e1
better sequence gen , same for easy (1) and hard (many ) seq
fixed judder on sliders
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Fri, 05 Dec 2014 18:36:05 +0000 |
parents | 96ff7b41923a |
children | 2bd658b44c2d |
line wrap: on
line diff
--- a/SequenceController.h Thu Dec 04 19:21:41 2014 +0000 +++ b/SequenceController.h Fri Dec 05 18:36:05 2014 +0000 @@ -14,7 +14,7 @@ #include "presetManager.h" #include "TrainingScoreManager.h" -#define MIN_TARGETS_IN_SEQUENCE 1 +#define MIN_TARGETS_IN_SEQUENCE 3 #define NUM_REPETITIONS_AT_LEVEL 2 #define MAX_TARGETS_IN_SEQUENCE 3 #define MIN_TEMPO 70 @@ -23,6 +23,7 @@ #define MAX_TIME 2800 #define MIN_TIME 200 #define NUM_TEMPO_STEPS 20 +#define END_NEUTRAL_MATCH 0 #define NUM_PRESETS 8 #define SPACER_BARS false @@ -142,12 +143,16 @@ private: void generateSteps(); void generateCountIn(int countInLength); - void generateARun(int run, int numInSequence); + void generateRun(int run, int numInSequence); + void generateARun(int run, int numInSequence); // use this void generateAnEasyRun(int run, int numInSequence = 1); void generateASoundOnlyRun(int run, int numInSequence); vector<int> randomSequence(int numInSequence); vector<int> nonRandomSequence(int numInSequence); int getRandomButNot(int max, vector<int> notThese); + void makeGuidedSequence(vector<int> stepPresetIndices, int run, AnimStep& nextStep); + void makeMatchingSequence(vector<int> stepPresetIndices, int run, AnimStep& nextStep); + void makePreview(vector<int> stepPresetIndices, int run, AnimStep& nextStep); protected: vector<AnimStep> steps; vector<AnimStep>::iterator currentStep;