comparison MessageOrganiser.h @ 6:92850a2b099c

set up preset slots from init file. PD synth has metronome, recieves ticks but doesn't do anything with them.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Fri, 17 Oct 2014 14:50:50 +0100
parents 213df0baed47
children d59de9fd3496
comparison
equal deleted inserted replaced
5:213df0baed47 6:92850a2b099c
30 #include "targetSymbol.h" 30 #include "targetSymbol.h"
31 #include "3Dbox.h" 31 #include "3Dbox.h"
32 #include "TextPanel.h" 32 #include "TextPanel.h"
33 #include "CountdownText.h" 33 #include "CountdownText.h"
34 #include "buttonPanel.h" 34 #include "buttonPanel.h"
35 #include "presetManager.h" 35 #include "ExplorePresetManager.h"
36
37
38 // should be called TIMED TEST MESSAGE ORGANISER ?
36 39
37 // event logger needs to know 40 // event logger needs to know
38 // which controls were showing in what mode 41 // which controls were showing in what mode
39 // which controls were mapped to what param 42 // which controls were mapped to what param
40 // what was the target sound params 43 // what was the target sound params
50 //--------------------------------------------------------------------- 53 //---------------------------------------------------------------------
51 extern TimeController timeController; 54 extern TimeController timeController;
52 55
53 extern EventLogger eventLogger; 56 extern EventLogger eventLogger;
54 57
55 extern PresetManager presetManager; 58 extern ExplorePresetManager expPresetManager;
56 59
57 typedef boost::function<void(void)> AppModeChangeFunction; 60 typedef boost::function<void(void)> AppModeChangeFunction;
58 61
59 class MessageOrganiser { 62 class MessageOrganiser {
60 private: 63 private:
653 panel->showHint(true); 656 panel->showHint(true);
654 showingHint = true; 657 showingHint = true;
655 } 658 }
656 } 659 }
657 if(mappingID == SAVE_PRESET_HIT){ 660 if(mappingID == SAVE_PRESET_HIT){
658 presetManager.savePreset("blah", candidateSynth.getAllParamValues()); 661 expPresetManager.savePreset("blah", candidateSynth.getAllParamValues());
659 662
660 } 663 }
661 if(mappingID == RECALL_PRESET_HIT){ 664 if(mappingID == RECALL_PRESET_HIT){
662 665
663 loadPreset("blah"); 666 loadPreset("blah");
664 667 //candidateSynth.startMetronome();
665 668
666 } 669 }
667 } 670 }
668 void loadPreset(string pname){ 671 void loadPreset(string pname){
669 672
670 vector<int> values = presetManager.recallPreset(pname); 673 vector<int> values = expPresetManager.recallPreset(pname);
671 if (values.size()){ 674 if (values.size()){
672 candidateSynth.setAllParams(values); 675 candidateSynth.setAllParams(values);
673 setAllSlidersToValues(values); 676 setAllSlidersToValues(values);
674 }else{ 677 }else{
675 cout << "ERROR, no preset found" << endl; 678 cout << "ERROR, no preset found" << endl;