i have to add a condition to a method i call ‘partialOps’
-similar to partialOnOff in the D-50 panel, ie:
if p1 == 0 and p2 == 0 and p3 == 0 and p4 == 0
then ... (etc.)
and it runs through all possible combinations of the
4 partial buttons, ie: 16 –
i need to get it to check ‘level’ fader values for the corresponding
partial onoff buttons – the idea is that level = 0 is the same
as partial being ‘Off’. i’m doing that bit in another method
called LevelZeroIsOff, which goes:
if tvaLevelA ~= 0 and tvaLevelB ~= 0 --both levels on
and p1 == 1 and p2 == 1 then ...
– it runs through the various possibilities, and is for
controlling a led display for each partial’s state, ie:
whether it is on or off.
both can control the led display, in their own way.
levelZero thing works fine, and the partialOps thing works
fine, but partialOps doesn’t yet know how to get the state
of the level faders when i switch a partial back on ..
ie: display is wrong after using the button. it’s a simple
matter of adding a ‘getValue’ for level faders and including
that in my ‘longform’ partialOnoff method.
i can see this requiring a huge amount of new condition entries
and a long long method, potentially.
so i’ve seen some nested stuff before, but i’m not at this point
sure how that works, and what must take precedence. i also
thought of changing the whole thing and making little functions
i can call – it would at least make it easier to work on, maybe.
i guess i’ll figure this out next session, but would appreciate
any ideas – just say if my explanation is rubbish !
also thought that maybe just including the whole thing in one
big partial onoff method could be another way – i’m doing all
of this longform at the moment, declaring everything in the
method rather than at startup, while i get it working.