Accesso rapido:  

Forum: VirtualDJ Plugins

Topic: Position of beats in a song

Questo argomento è obsoleto e potrebbe contenere informazioni obsolete o errate.

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
 

Inviato 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.
 

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

Inviato 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.
 

Inviato Wed 21 Apr 04 @ 3:34 pm


(Vecchi argomenti e forum sono automaticamente chiusi)