Sign In:     


Forum: VirtualDJ Technical Support

Topic: script for target BPM
Hi, would it be possible to have a script that adjusts to a specific BPM over a specified time or beat count? For example, Deck 1 is playing a track at 125 BPM. Can I have a keyboard trigger set to increase Deck 1 to 130 BPM over 8 beats or 4 seconds?

thanks
 

Posted 12 hours ago
yes it can be done, the script is kind of involved, I'll have to remind myself how I figured it out,
The thing I made was a reset to quartz over beat duration which was tricky.
to get to another bpm over a time duration is easy, to get there over a beat duration [so it finishes by a specific beat] is harder but not impossible.
 

Hey Loco - im fine with a time duration, or even the speed the pitch reset works would be fine as well. Is there anyway to use the embedded pitch reset to achieve a target BPM?

Thanks
 

pitch reset can get to other values but because you might cross quartz it actually makes it harder [so I won't] but can be done, I'll have a think and and experiment and get back to you in a pm.
 

Sounds good, thank you!
 

You can use automatic bpm transition
The only catch is that the "target" BPM can only be one of the following: destination deck current, destination deck original, source deck current (this will bring the "other" deck's BPM to current BPM of the track) and source original.

For automatic BPM transition you can adjust the time period it takes to reach the BPM, in beats.

PS: Since pitch 126.15 bpm is a thing, I guess that with some cool scripting you could use automatic_bpm_transition to set the deck at "any" BPM, if you set the target first to a given value, and then use target current as the BPM option for the ABT.
 

Already done. Long form get_beatpos based, 2 user 'levers' at the start of the script, duration(beats) & target bpm