Quick Sign In:  

Forum: VirtualDJ Plugins

Topic: Position of beats in a song

Dieses Thema ist veraltet und kann veraltete oder falsche Informationen enthalten.

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
 

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

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

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

geposted Wed 21 Apr 04 @ 3:34 pm


(Alte Themen und Foren werden automatisch geschlossen)