Help with VST / BPM / global tempo problem

Hello everyone.

I’m fairly new to Touchdesigner and have no background in programming whatsoever,
I’m using it to do funny audio and video stuffs so I hope I can explain what my problem is:

I’m using a VST plugin (Trance-Gate) to chop continuous oscillator signals into rhythms.
I have made a control for the BPM of the VST chop but the BPM of the project doesn’t
change with it and so the pattern jumps, when the timeline loops.
Is there a way to change the BPM globally in a way that the VST plugin is also influenced by it
or should this be approached in a completely different way?

Edit: I tried something that for now is working, maybe someone can tell me if I’m going to walk into whole nother trouble with this:
I used an Out Chop after my BPM Slider => zoomed out and went into the “Local”…cluster-thing (don’t know what it’s called) => created an In Chop and connected it to the Out Chop of my project
=> I connected the In Chop to the BPM of the Time Comp via Export Chop

With this I can change the BPM of my VST Chops and the global BPM simultaniously.
Is this ok to do or will I get some other problems further down the line?

Edit2: Nevermind, the rhythm still jumps because the timeline is still the same length and the loop
still breaks the rhythm…

Would greatly appreciate the help!

It sounds like you may need to change the Timecode parameter value of the VST Playhead.

By default it uses the expression me.time.timecode which links it to the timeline, meaning it will loop when the timeline loops. Using absolute time like the expression tdu.Timecode(second=absTime.seconds) might be better for your case.

First of all thanks for answering!

I tried that and the Gate-Plugin didn’t work anymore.
It seems to need the timecode to calculate the BPM it’s running at.

This is what it looked like. Did I enter the expression in the wrong field?

Ah, typo on my end, sorry about that. It should be tdu.Timecode(second=absTime.seconds). The seconds in absTime is plural.

For future reference, you can hover over the red error field of the parameter and it will tell you the python error, though I understand that may not always be easy to decipher.

Ah ok. I just tried it again and it seems to work fine, thank you so much!
Let’s see what the next hurdle is, but thanks again to solve this!

1 Like