comparison Source/Mappings/MultiFingerTrigger/TouchkeyMultiFingerTriggerMappingFactory.cpp @ 49:90ce403d0dc5

Added OSC control over all main application functions. OSC messages can be sent to do most of the tasks available from the GUI.
author Andrew McPherson <andrewm@eecs.qmul.ac.uk>
date Mon, 13 Apr 2015 19:30:27 -0700
parents 1526d2fbe01e
children
comparison
equal deleted inserted replaced
48:2a9e5576905e 49:90ce403d0dc5
100 if(velocity > 127) 100 if(velocity > 127)
101 velocity = 127; 101 velocity = 127;
102 triggerOffNoteVel_ = velocity; 102 triggerOffNoteVel_ = velocity;
103 } 103 }
104 104
105 #ifndef TOUCHKEYS_NO_GUI
105 // ***** GUI Support ***** 106 // ***** GUI Support *****
106 MappingEditorComponent* TouchkeyMultiFingerTriggerMappingFactory::createBasicEditor() { 107 MappingEditorComponent* TouchkeyMultiFingerTriggerMappingFactory::createBasicEditor() {
107 return new TouchkeyMultiFingerTriggerMappingShortEditor(*this); 108 return new TouchkeyMultiFingerTriggerMappingShortEditor(*this);
109 }
110 #endif
111
112 // ****** OSC Control Support ******
113 OscMessage* TouchkeyMultiFingerTriggerMappingFactory::oscControlMethod(const char *path, const char *types,
114 int numValues, lo_arg **values, void *data) {
115 // TODO
116
117 // If no match, check the base class
118 return TouchkeyBaseMappingFactory<TouchkeyMultiFingerTriggerMapping>::oscControlMethod(path, types, numValues, values, data);
108 } 119 }
109 120
110 // ****** Preset Save/Load ****** 121 // ****** Preset Save/Load ******
111 XmlElement* TouchkeyMultiFingerTriggerMappingFactory::getPreset() { 122 XmlElement* TouchkeyMultiFingerTriggerMappingFactory::getPreset() {
112 PropertySet properties; 123 PropertySet properties;