Mercurial > hg > tweakathon2ios
comparison MessageOrganiser.h @ 32:75202498bee9
perform mode (no guides at all)
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 25 Nov 2014 17:03:33 +0000 |
parents | 27cdf475aa4b |
children | 52dbd5b4cfa9 |
comparison
equal
deleted
inserted
replaced
31:a677c027e3a0 | 32:75202498bee9 |
---|---|
66 void setupDefaultMapping(controlPanelType whichInterfaceAreWeUsing); | 66 void setupDefaultMapping(controlPanelType whichInterfaceAreWeUsing); |
67 void setControlPanel(SliderPanel* p); | 67 void setControlPanel(SliderPanel* p); |
68 void setBottomPanel(ButtonPanel * ntb); | 68 void setBottomPanel(ButtonPanel * ntb); |
69 void setIconPanel(IconPanel * ip); | 69 void setIconPanel(IconPanel * ip); |
70 void setInstructionPanel(TextPanel * ip); | 70 void setInstructionPanel(TextPanel * ip); |
71 void setSeqNumPanel(TextPanel * snp); | |
72 void setScoreNumPanel(TextPanel * snp); | |
71 //----------------------------------------------------------------------------- | 73 //----------------------------------------------------------------------------- |
72 void hideMyPanels(); | 74 void hideMyPanels(); |
73 void showMyPanels(); | 75 void showMyPanels(); |
76 void midiFromLeap(int ctl_num, int ctl_val); | |
74 protected: | 77 protected: |
75 | 78 |
76 PDSynthWrapper candidateSynth; | 79 PDSynthWrapper candidateSynth; |
77 PDSynthWrapper targetSynth; | 80 PDSynthWrapper targetSynth; |
78 ButtonPanel* bottomPanel; // shows during test : play buttons and submit | 81 ButtonPanel* bottomPanel; // shows during test : play buttons and submit |
79 SliderPanel* controlPanel; | 82 SliderPanel* controlPanel; |
80 | 83 |
81 IconPanel* presetIconPanel; | 84 IconPanel* presetIconPanel; |
82 TextPanel* instructionPanel; | 85 TextPanel* instructionPanel; |
83 | 86 TextPanel * seqNumPanel; |
87 TextPanel * scoreNumPanel; | |
84 map<int,UIElement*> currentMapping; // could get more sophisticated if not 1-1 ? | 88 map<int,UIElement*> currentMapping; // could get more sophisticated if not 1-1 ? |
85 | 89 |
86 vector<int> getMappingIDsFromSynths(); | 90 vector<int> getMappingIDsFromSynths(); |
87 void triggerCandidateSound(); | 91 void triggerCandidateSound(); |
88 void paramChangeCallback(int mappingID, int value); | 92 void paramChangeCallback(int mappingID, int value); |
90 void setAllSlidersToValues(vector<int> values); | 94 void setAllSlidersToValues(vector<int> values); |
91 void setCandidateAndSlidersToRandom(); | 95 void setCandidateAndSlidersToRandom(); |
92 // we want to set UI object | 96 // we want to set UI object |
93 void setUIToParam(int index, int value); | 97 void setUIToParam(int index, int value); |
94 void mapControlToParam(UIElement* control, int mappingID); | 98 void mapControlToParam(UIElement* control, int mappingID); |
99 | |
100 void showSeqNum(int num); | |
101 void showScoreNum(int num); | |
102 | |
95 //----------------------------------------------------------------------------- | 103 //----------------------------------------------------------------------------- |
96 | 104 |
97 void mapSlidersToParams(vector<UIElement*> elems, vector<int> mids); | 105 void mapSlidersToParams(vector<UIElement*> elems, vector<int> mids); |
98 void mapXYToParams(ButtronXY* control, int mappingIDX, int mappingIDY); | 106 void mapXYToParams(ButtronXY* control, int mappingIDX, int mappingIDY); |
99 | 107 |