Quick Sign In:  

Forum: General Discussion

Topic: Is this script possible?? - Page: 1

Dieser Teil des Themas ist veraltet und kann veraltete oder falsche Informationen enthalten

I would like a script that sets the first down beat and a hot cue every 16 beats for the first 3 cues.

(Deck 1 beat_tap & deck 1 set_cue 1 & deck 1 goto 16 & deck 1 set_cue 2 & deck 1 goto 32 & deck 1 set_cue 3)

Now I have that figured out already (settings the down beat and the first 3 hot cues)

I would now like to have cue 7 set when there's only 16 beats left and this is the part I can't seem to figure out....

Can any script masters help me out please??
 

geposted Tue 10 Jan 17 @ 3:47 am
 Best Answer Without colors, and with cue 7 exactly ON grid 16 beats before the track ends (for use on custom buttons):

set_firstbeat & set_cue 1 & goto 16 & set_cue 2 & goto 32 & set_cue 3 & delete_cue 7 & goto 100% & get_beatpos & param_cast 'int_trunc' & param_add -16 & goto & hot_cue 7 & deck 1 goto_cue 1


With colors, with cue 8 exactly ON grid 16 beats before the track ends and cue 7 32 beats before the track ends (for use on custom buttons):
set_firstbeat & set_cue 1 & cue_color 1 'white' & goto 16 & set_cue 2 & cue_color 2 'yellow' & goto 32 & set_cue 3 & cue_color 3 'green' & delete_cue 8 & delete_cue 7 & goto 100% &  get_beatpos & param_cast 'int_trunc' & param_add -32 & goto & hot_cue 7 & cue_color 7 'orange'  & goto 100% &  get_beatpos & param_cast 'int_trunc' & param_add -16 & goto & hot_cue 8 & cue_color 8 'red' & goto_cue 1


geposted Thu 02 Feb 17 @ 2:19 pm[ selected best answer by PhantomDeejay on Thu 02 Feb 17 @ 2:20 pm ]
locoDogPRO InfinityModeratorMember since 2013
goto 100% should send you to the end, goto -16 will go 16 beats back, maybe quantize and snap to will get the cue on beat, maybe beat intensity[problematic], but will be 16 audible beats? Many tracks have silence at the end.

I'm not sure how to address that
 

geposted Tue 10 Jan 17 @ 6:20 am
Ok that'll work, it gets me close enough to where I want and I can fine tune it later.

This is just a quick way for me to set intro/outro cue points.

Thanks for the time and info.
 

geposted Tue 10 Jan 17 @ 12:11 pm
hrdnxPRO InfinityMember since 2011
On that note I would wish for VDJ to set cues automatically (which can be adjusted afterwards).
Mixed in Key does this. Populates all 8 Cure Points.
But I think VDJ can do a better job.
:) :) :)
 

geposted Tue 10 Jan 17 @ 7:37 pm
Amen to that. BTW great idea.
 

geposted Tue 10 Jan 17 @ 8:14 pm
hrdnx wrote :
On that note I would wish for VDJ to set cues automatically (which can be adjusted afterwards).
Mixed in Key does this. Populates all 8 Cure Points.
But I think VDJ can do a better job.
:) :) :)


Have you even tried the MIK cue point setting??

It's STRAIGHT GARBAGE!!

It rarely gets things right. So on that note I'm glad VDJ doesn't auto set hot cues.

I use this script on tracks that have 32 bar intro/outros.

This script I'm sure could be made to automate with a little reworking......
 

geposted Tue 10 Jan 17 @ 11:39 pm
locoDogPRO InfinityModeratorMember since 2013
Work flow wise I'm not sure, getting that first beat correct is all important, maybe after setting the last cue it could scroll down the browser and load the next track.
 

geposted Wed 11 Jan 17 @ 12:03 am
@Locodog:

I actually thought this one would be very easy for you:

goto 100% & get_beatpos & param_multiply 0.0625 & param_cast 'integer' & param_multiply 16 & param_add -16 & goto & hot_cue 7

PS: For some reason "set_cue" doesn't work with this script. Most likely due to implicit parameters. Therefore you need to use "hot_cue" action instead.
A "complete" script should check if there's hot_cue 7 already set first...
Or just delete it anyways:
delete_cue 7 & goto 100% & get_beatpos & param_multiply 0.0625 & param_cast 'integer' & param_multiply 16 &param_add -16 & goto & hot_cue 7
 

geposted Wed 11 Jan 17 @ 12:51 am
the SOUND INSURGENT wrote :
I would like a script that sets the first down beat and a hot cue every 16 beats for the first 3 cues.

I would now like to have cue 7 set when there's only 16 beats left and this is the part I can't seem to figure out....

Can any script masters help me out please??


deck 1 set_firstbeat & deck 1 set_cue 1 & deck 1 goto 16 & deck 1 set_cue 2 & deck 1 goto 32 & deck 1 set_cue 3 & deck 1 delete_cue 7 & deck 1 goto 100% & deck 1 get_beatpos & param_multiply 0.0625 & param_cast 'int_trunc' & param_multiply 16 & param_add -16 & deck 1 goto & deck 1 hot_cue 7 & deck 1 goto_cue 1
 

geposted Wed 11 Jan 17 @ 1:02 am
Awesome!!

About to get my machine out and test this baby out!!
 

geposted Wed 11 Jan 17 @ 2:03 am
Hmm it seems to set the 7th cue at the very end of the track.

Either way I got it set up and my 7th cue isn't that far off so I'm happy.
 

geposted Wed 11 Jan 17 @ 3:09 am
locoDogPRO InfinityModeratorMember since 2013
PhantomDeejay wrote :
@Locodog:

I actually thought this one would be very easy for you:


Been working on a 48KB padpage
I can see what you've done got the final beatpos, divided by 16 cast as an int, *16
(Don't get why why not just cast the beatpos)
Shouldn't the remove silence mixpoint be in the right place to work from?
 

geposted Wed 11 Jan 17 @ 4:30 am
the SOUND INSURGENT wrote :
Hmm it seems to set the 7th cue at the very end of the track.

Either way I got it set up and my 7th cue isn't that far off so I'm happy.


Perhaps the track is too short ?
It works perfectly here...

Edit:

Now that I think of it, I think I know where the issue is...

If a track has XXX.5 (or more) phrases then the HC gets dislocated due to round up issues.
If a track has less than XXX.5 phrases then the HC should be spot on.

I'm working on some changes to fix this, but it seems like a real challenge since there's no native function to truncate the decimal part of an integer.
param_cast 'integer' rounds the value to closest integer. It does not truncate the decimal part
 

geposted Wed 11 Jan 17 @ 8:02 am
locodog wrote :
PhantomDeejay wrote :
@Locodog:

I actually thought this one would be very easy for you:


I can see what you've done got the final beatpos, divided by 16 cast as an int, *16
(Don't get why why not just cast the beatpos)
Shouldn't the remove silence mixpoint be in the right place to work from?


Well, we want an exact multiply of 16, not 16 beats before the end.
So, if a track is 164 beats long, cue 7 should be placed on beat 144, not on beat 148

As for the silence POI, 1) you can't query it via VDJ Script and 2) It's not set for every track
 

geposted Wed 11 Jan 17 @ 8:05 am
PhantomDeejay wrote :
the SOUND INSURGENT wrote :
I would like a script that sets the first down beat and a hot cue every 16 beats for the first 3 cues.

I would now like to have cue 7 set when there's only 16 beats left and this is the part I can't seem to figure out....

Can any script masters help me out please??


deck 1 set_firstbeat & deck 1 set_cue 1 & deck 1 goto 16 & deck 1 set_cue 2 & deck 1 goto 32 & deck 1 set_cue 3 & deck 1 delete_cue 7 & deck 1 goto 100% & deck 1 get_beatpos & param_multiply 0.0625 & param_cast 'integer' & param_multiply 16 & param_add -16 & deck 1 goto & deck 1 hot_cue 7 & deck 1 goto_cue 1


Coming back to this Im not so sure this is the best answer. No matter what it sets hot cue 7 at the very end of the track.

This is what I think is the best answer

Deck 1 beat_tap & deck 1 set_cue 1 & deck 1 goto 16 & deck 1 set_cue 2 & deck 1 goto 32 & deck 1 set_cue 3 & deck 1 goto 100% & deck 1 goto -16 & deck 1 set_cue 8 & deck 1 goto -32 & deck 1 set_cue 7
 

geposted Tue 31 Jan 17 @ 5:51 am
Original script modified.
Try it again.
As I said before there's a difference between "16 beats before the end of time" to the "last phrase" of track.
The issue with the original script initially derived from the fact that param_cast 'int' would round up the value it took (122,3 -> 122 but 122.6 -> 123) while we didn't want that.
In the meanwhile a new cast is possible: param_cast 'int_trunc' which doesn't round up the values.
Therefore, the script now should work on all cases and hotcue 7 should be placed to round multiples of 16 beats
 

geposted Tue 31 Jan 17 @ 6:53 am
Hmm ok, what should the exact script look like??

I just to work so I'm stuck here for the next 16 hours but I'll try it tonight or tomorrow.

Thanks for the info and time.
 

geposted Tue 31 Jan 17 @ 12:28 pm
the SOUND INSURGENT wrote :
Hmm ok, what should the exact script look like??

Copy/Paste­ Ready™ solution:

deck 1 set_firstbeat & deck 1 set_cue 1 & deck 1 goto 16 & deck 1 set_cue 2 & deck 1 goto 32 & deck 1 set_cue 3 & deck 1 delete_cue 7 & deck 1 goto 100% & deck 1 get_beatpos & param_multiply 0.0625 & param_cast 'int_trunc' & param_multiply 16 & param_add -16 & deck 1 goto & deck 1 hot_cue 7 & deck 1 goto_cue 1
 

geposted Tue 31 Jan 17 @ 12:33 pm
So... does it work now?
 

geposted Wed 01 Feb 17 @ 4:08 pm
I didn't get a chance to try it out last night. I was beat from work, showered, ate and then passed out ;-p Got another 15/16 hour today so for sure tomorrow if I don't get to it tonight.

Thanks for checking back with me though (thumbs up).
 

geposted Wed 01 Feb 17 @ 4:44 pm
59%