登录:     


Forum: VirtualDJ Plugins

Topic: Position of beats in a song

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

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
 

发表时间 Wed 21 Apr 04 @ 2:56 am
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.
 

You mean that SongPhase returns the position (in samples) of the first beat?
 

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.
 



(陈旧帖子或论坛版块会自动关闭)