Ingreso rápido:  

Forum: VirtualDJ Plugins

Tema: Position of beats in a song

Este tópico es antiguo y puede contener información incorrecta para la nueva versión.

Hi,

How can we know where the beats are in a song? I mean: i am working on a plugin, but I want my effect to be synchronized with the beats. It's already using the song's BPM, but I want it to start it's cycle *during* a beat.

Thanks for the help

macourteau
 

Mensajes Wed 21 Apr 04 @ 2:56 am
kaleoPRO InfinityMember since 2003
macourteau:

You can use BPM Phase to know where the first beat is in the song.

After this, and thanks to the song's BPM you already know, you can find all the beats.

I hope I am understandable, if not, feel free to ask me more about this.

Kaléo.
 

Mensajes Wed 21 Apr 04 @ 6:52 am
You mean that SongPhase returns the position (in samples) of the first beat?
 

Mensajes Wed 21 Apr 04 @ 11:41 am
Thanks. Here's how I got it to work:
in the "OnStart" function:

StartPos = SongPhase;
while(StartPos < pos)
StartPos += SongBpm?SongBpm:22050;

and then my algorithm calculates in what phase it should be according to the beats.
 

Mensajes Wed 21 Apr 04 @ 3:34 pm


(Los tópicos y foros antiguos son automáticamente cerrados)