Best approach/practice - modulating the unmodulated
-
so I have some UI widgets(sliders) that I want to modulate with a set of global Modulators - for example the sliders controlling my Hardcoded effect params.
So in all these cases there is no "assigned" modulation - like there is in say Filter Freq. - so I need to get my Global Modulator values and assign them to the sliders... what's everyone's favourite way of doing this:
- Some sort of broadcaster - Im such a novice at broadcasters
- one of these cable thingies - as you can see I know even less about this...
- Just a timer that reads the LFO value and does all the work - well I know how ot do this but it look suspiciously like the wrong way to do this
- something else....
???
-
-
@d-healey yep Ok, @DanH !!! - this is as far as I got - I thought it should just start printing the value of the Global LFO but it does nothing - so: "I'm not doing it right"
var myCableManager = Engine.getGlobalRoutingManager(); var myLFOCable1 = myCableManager.getCable("cable_GM_LFO1"); myLFOCable1.connectToGlobalModulator( "LFOModulator1", false); const var LFOModulator1 = Synth.getModulator("LFO Modulator1"); function cfunc(cval) { Console.print(cval); }; myLFOCable1.registerCallback(cfunc, false);
heres the snippet
HiseSnippet 1055.3oc4W0saiSDEdbR7plvOhJ5UHgjUuJqnDEyVJ6pUHBMMoJhl1HRXAItnZ53IIi53YLiGWHBsOC7pwiBuAvY73Z6zMaHDkcEH7ENdN+4Oeluy4LYjRRnwwRExo9jEQTjy65NdgPOu6bLSfFbFx48cGhi0TkmUzoKhvwwz.jiS0yMBbpWCkd8Ge0oXNVPnEhPnWHYD5ErPltP5nNeCiy6iCnSXgkr93NCHRQWIWl.3opaaTDlbKdF8RrwrJtHmG0KfokpwZrlFibpcpLXw34xeVXs+ErX1MbpYgOZLDHq39RdfAwlmQcmy3Ait+6NFgbbGUjEpZyBG3NjEvxkWjM9fTEdEdTNe3TYY3UcI34+5f2JfjSIHUyBo8cGSTrHcgFCddG2ABXyYJFR6kgh0VTkCp31UBVHzsBw2R6qfE4dz7j1sOxCt83m2nQi6vJuvEcw.BGhEPZW48kd8DyXBZqYT84b4MX92JSzLwrLCZBNZc6h9Wk5oO3yxAw3a55lGRL+b84CuFr1+Pv2R90B15EThdhz9hFJCR3XHY1z6Pvn7k9Gdj2TLOlZvL3Sr1yffkLAvPJI17pKhiILdkhiI.SSDDMSJ7HlmZRtCyebiesQcHmEK4zVQJlPaE+7FuDbnLhUzYLSkQWLmeCvTalFjB3kGbo3RoldknYZra7xFdOT0zoqTmYqSI4bSldEpMkOp04XSQR3MT0QPJhmPyMD3TKSTezlQTIVlTICkhABl9pHZ15hJM+UPqQYTQ3ouavYXM1vzyjA1EQUZlANNmQuCZaX480cOiFeqVFAMNdkhBnb79Mzx0nlFSYJf7wREFFxuHloWTtw0CKbq85yGsWYekU90tgvce2QLMY9pwakUfWHq8lFuYsAeO2dSmBEkEfsla+eXs8714PYOKT9H2GzWvva.TQs8A+3L0EE3d4F3ulgV+9lNzJZiGZ4TcWMEn1apASuU42e3qr0DuSqH+GLou7X08sP10EZnmkAWd.weOHOkEI4XkQeeE8mRnBRI860wvVFTP157ac9d7czoRUXVqs7HcAcF7NKKYBMLRBSwHkIliCkR8bX96xbvC5bgTF0SXFKETNHiliiMCWho5kBCD1IR6w55xkjaKqbvLgTQsCrJKuaRrVFd+GP5wwFqoQoswc9Q2SNtEbM8SL2eVW31StZ2rFs6NUUkMlwZXB4a4FNw+xmgXQbNI7+.HdsS8p9+yod4GtVqX+BzZ5xjvwvXEBEPBb3XN7hbcpXpEsqaaVmVPSEAoK9S3JSouYsSlR+6U9V4cDhIJ40D6YPMEd6kJA9tEo+St5veoDV64iROWpoIb6VsQgv.rqIDS59Sg7yp84y1BedxV3ywagOe9V3yIagOewV3ySWqOlyN70IP+caoHHXTOamcm7wJNUQ+E.dSbQA
-
const var GC = Engine.getGlobalRoutingManager(); const var MAIN_Cable = GC.getCable(1); const var MAIN_Cable_2 = GC.getCable("or choose name"); /// Global Cable Functions // MAIN_Cable inline function setMAIN_FUNCTION(value) { dothing; } MAIN_Cable.registerCallback(setMAIN_FUNCTION, AsyncNotification);