Accesso rapido:  

Forum: VirtualDJ Technical Support

Topic: Syntax problems

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

SveninoPRO InfinityMember since 2009
1.) How is [get_position] used & what terms are possible?
Can it show, which nth beat of the song the actual position is?

2.) Don´t find further infos about [get_song_event]
Is this able to identify the next upcomming cuepoint f.i.?

3.) Is there a command to know the number of beats from the entire song?

4.) exampes for [cue_pos] ?
[cue_pos 6 seconly] gives the position from beginning?
Can [cue_pos] give instead of ms/min... the numbers of beats from the Song-beginning untill the cuepoint?

Thanks a lot
 

Inviato Wed 21 Apr 21 @ 7:38 pm
locoDogPRO InfinityModeratorMember since 2013
1 get_beatpos for.... well beat pos

2 I can't remember, I asked a good while ago but don't remember what was said. It might have been "meh, not very useful to me"

3 just bpm * by song time in minutes

4 there's a problem, a % or time position can't be turned into a beat position accurately, depending at what % the first beat is throws everything else off.
 

Inviato Wed 21 Apr 21 @ 8:01 pm
SveninoPRO InfinityMember since 2009
Thanks Locodoc
1. sorry - missunderstanding: [get_position] is not [get_beatpos]
[get_position] shows the position in the song, but in seconds or % ?
 

Inviato Wed 21 Apr 21 @ 8:26 pm
Sort of, its a number from 0 (song start) to 1 (song done)
But you can show percentage if you want

song_position & param_cast percentage
get_position & param_cast percentage
 

Inviato Wed 21 Apr 21 @ 8:51 pm
NicotuxHome userMember since 2014
There are many many ways to get different positions:
light quick ref guide (may miss some infos)

get_bar : current mesure (1 mesure = 4 beats)
get_beatgrid : get beat based on beatgrid (100% == on beat, 0% middle between 2 beats).
get_beatpos : get beats in beats in float : 2.5 is in middle of beat 2 and beat 3
get_beat_bar : get the beat in the bar in percent (can specify number of beats per bar)
get_beat_counter : get the position of beat counter
get_beat_num : get the beat number in the bar
'get_beat_num 1' true if first beat of 4:4 mesure
'get_beat_num 16' percent of the beat in the 16beat bar (any number greater than 4 can be specified)
get_position : position in the track in float range 0..1

get_time_hour : Hours part of elapsed or remain time depending on "display_time"
get_time_min : Minutes part of elapsed or remain time depending on "display_time"
get_time_ms : ⅟100 seconds part of elapsed or remain time depending on "display_time"
get_time_msf : MSF frame part of elapsed or remain time depending on "display_time"
get_time_sec : seconds part of elapsed or remain time depending on "display_time"
get_time_sign : sign of elapsed or remain time depending on "display_time"

Use 'get_time_* "absolute"' not to take pitch in consideration
Use 'get_time_*' "elapsed"' | "remain" | " total" to override "display_time"

get_totaltime_min : minutes part of track duration (same as 'get time_min "total"').
get_totaltime_ms : millisecondes part of the track duration
get_totaltime_msf : frames part of track duration
get_totaltime_sec : seconds part of track duration

get_song_event :
1st param : "current" | "next"
2nd : "hasbeats", "volume", "volume_end", "remaining"
so no way to get cue :\

songpos_remain : get remaining time in %.
can be used as a query with paramètre in % or ㎳
'songpos_remain 500ms ? blink'.
songpos_warning : true if remain time smaller than 30s (or specified one)
song_pos : Position in the song (as get_position, but can set position a well like goto
song_pos can be used as a slider
 

Inviato Wed 21 Apr 21 @ 9:45 pm
SveninoPRO InfinityMember since 2009
Thanks Rune, Thanks Nicotux.
Everything I need...
Good night!
 

Inviato Wed 21 Apr 21 @ 11:33 pm


(Vecchi argomenti e forum sono automaticamente chiusi)