CC-Toggle v1.04, mod -ki+tr

I edited a modified script of cc toggle.
It gives me synthax errors after I use it.

It actually works fine but sometimes it goes into “code” mode.

Any help would be appreciated.

Using it with Drambo
Pads 1-8 Send cc for channel mutes
9-16 Sends cc for channel selection

Author
533 PM
  • State: Help Needed
  • Platform:
  • Category: Utility
  • Revision: 1.0
  • License: The Unlicense
  • Views: 290
  • Modified: 10 months ago
Chat about this patch on Discord! Download (4)
Appreciate
5 comments on “CC-Toggle v1.04, mod -ki+tr
  • -ki on said:

    The following part of your script (version 1.0) isn‘t ok:

    – the OnPadUp event is missing its @End
    – the OnPadDown is missing an endif to close the if pad<= 15

    I had to use …. instead of spaces otherwise PatchStorage kills the indentation.
    —————
    @OnPadUp
    ….TrigState[LastPad] = not TrigState[LastPad]
    ….idx = LastPad * 2 + TrigState[LastPad]
    ….SendMIDICC OutCH[LastPad], OutCC[LastPad], CCVal[idx]
    ….TrigReset[LastPad] = 1
    ….Call @UpdateGUI

    @OnPadDown
    …. pad = LastPad
    …. if pad = 8) and (pad <= 15)
    …. …. …. for a = 8 to 15
    …. …. …. …. LatchPad a, NO
    …. …. …. endfor
    …. …. …. LatchPad pad, YES
    …. …. endif

    @End

  • -ki on said:

    Wooo and PatchStorage also killed the

    …. if pad = 8) and (pad <= 16)

    Probably thinking that the greater or less sign start some HTML code…

  • -ki on said:

    Even in my second comment, PatchStorage killed a whole line and some of the less-than and greater signs. Here a verbose version:

    … if pad ‚less or equal‘ 15
    … … if ( pad ‚greater or equal‘ 8 ) and ( pad ‚less or equal 16)

    And its the first ‚if‘ that is missing its end – (the one line that got removed by PS ;-)

  • Raz-mataz on said:

    Great. Much appreciated sir!!!

    Can I load the correct one with a Drambo template?

  • Raz-mataz on said:

    I added Aum template with the script after debugging. Check the info.

  • Leave a Reply