Digitakt que next pattern with midi PC message?


#1

Hi

I am really new to this great little board and would like some help figuring out how to do the following little midi processing:

  • Receive midi program change message 37 (midi in)
  • Store midi PC 37
  • Click button
  • Add 1 to stored midi PC 37.
  • Send midi PC 38 (37+1) (midi out)

I am building an audio effects box to compliment my Elektron Digitakt. Besides the audio effects i want to be able to que up the next pattern on the Digitakt with the press of a button. Unfortunately the Digitakt does not have a midi message for “next pattern” which is why I want to go the above route. When a pattern is selected on the Digitakt it sends out a program change message with the number of the current pattern. It is that number I would like to store temporarily so I can “add 1” in order to select the next pattern.

Hope this makes sense??


#2

Haven't tested it out on the hardware but I think that one of the two examples down below would be a good place to start.

The first I'm not sure will work as it won't store the value, but I'm trying to incorporate the manual pressing of a button, perhaps a table would work, I'll have to think about that a bit.
The second example is more automatic, when the program change is received the program number that is sent out by the digitakt will send a value and a trigger, then the value gets your +1 and a delayed pulse send the trigger after a delay to the program change midi out.

From memory if the digitakt receives a program change message it will not act on it until the current pattern cycle is over, so the delayed pulse should be effective. (really it would be the same as pattern chaining but would just automatically select the next pattern up, if it works)

As I say I haven't tested any of this and things like your Auto channel (on the Digitakt) should be the same as on the patch in my example channel 14 which I think is the default. Theoretically you could use Midi Loopback via the Axoloti and achieve something similar with a Digitakt midi track and a midi thru on Axoloti


#3

A latch may work to store the value, again untested

UPDATE: Just tested, the above works, Select pattern 1 Digi sends out a Program change message, saying pattern one, Axo receives it and adds one, the latch stores it as pattern 2 and button S1 when pressed on the axo activates the program change (once the pattern has finished it's cycle, so bear in mind Pattern M.Len values), pressing S1 again moves it forward to pattern 3 and so on.

So success, but like I say you can do this on the Takt using pattern chain mode, or am I missing your point entirely?


#4

So cool!!!! Thankyou so much!

I know that I can pattern chain on the DT but i wanted to build a footpedal that could switch pattern “when i feel like it”. I play guitar and really wanted a one press foot switch for this.

And you just made that possible​:grinning:

Have a great weekend and thankyou so mich for your help!

Best


#5

Just hacked it up in hardware - The thing works!!!

Using DIN midi for now which works. Tried using the usb host which worked, but the terminal said: usb host midi output ringbuffer overflow. Any idea how to fix that?

Would be cool to use one usb cable instead of two bulky din midi cables :slight_smile: