• silverdrive

    @ingox Thank you. I think I have it completed now, fully working. :)
    Appreciate your help figuring this thing out. Here is what it ended up like:

    Skjermbilde 2018-10-21 kl. 16.54.45.png

    Now if only there was a boolean function to check if a value is in an array of numbers?
    Instead of using an expression if statement ;)

    posted in technical issues read more
  • silverdrive

    @ingox Thank you. Your simplified solution worked great.

    Now if I could get the other encoders that are not using cc10 and cc34 to go unmodified through to a [ctlout], it would be even more perfect. :)

    posted in technical issues read more
  • silverdrive

    And the final question. How do I route every other CC on channel 11 that does not match the conditions in route 10 34? I can't use the [ctlin] directly, since it also contains CC 10 34.

    I thought about using the last right output of the [route 10 34] and grab the non matching CCs there, and using [unpack f f] and sending it to a new [ctlout]. But that didn't work. It seems that PD got confused as to the order of what todo first and last.

    posted in technical issues read more
  • silverdrive

    Thank you very much @bocanegra and @ingox.

    I successfully managed to get it working. See screenshot below.

    Is it possible to simplify it to any extent or is it fine as is? The [ctlout] goes to a virtual midi cable. It would seem that combining the if/else logic at the end, serving only one [ctlout] would be more efficient, from a programming view, but I don't know how to do that.

    Skjermbilde 2018-10-21 kl. 15.46.38.png

    posted in technical issues read more
  • silverdrive

    Hi there,

    Quite new to PD and am I am finding it quite difficult to get the following happen:

    On my hardware midi controller I have a momentary button and a rotary encoder. The button sends CC34 on ch11 with value 127 if pushed, 0 when released. The encoder sends CC10 on ch11, with value 0 - 127.

    What I want to achieve is when the button is pushed, it modifies the midi channel of the encoder to channel 12. On release of the button, the encoder reverts back to channel 11. CC and value are preserved as is. This will allow the encoder to have two layers. I have gotten this to work in Bome Midi Translator Pro using a global variable for the button state, but was curious if this could be achieved in PD as well?

    So far my attempts have been poor. Using Pd 0.49.0 on OSX.
    Hope this is asked in the correct subforum, if not please move it.

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!