快速登录:  

Forum: VirtualDJ Technical Support

话题: Fine key adjust - is it possible?
djsherzPRO InfinityMember since 2006
I enjoy a bit of harmonic mixing as much as the next man, and most of the time when working with modern music it works just fine. However I occasionally find tracks that were not recorded exactly at perfect pitch, that is, the song is in key with itself, but it's slightly sharp or flat compared to something that was recorded in a standard key. Is there any way of scripting a control that would give a few cents of key adjustment in either direction? I'm picturing mapping it to something like a filter knob, where the 12 o'clock position would be normal, with the ability to tweak a song that is a bit sharp or flat to the nearest semitone. I'm no expert in scripting - is this even possible?
 

发表时间 Fri 26 Apr 24 @ 9:30 pm
locoDogPRO InfinityModeratorMember since 2013
key_smooth is the script but it needs a bit of tweaking to limit the range.

If I've got my maths right...
As is from centre [key natural] it goes -6.0 to +6.0 so 12 divisions. We only want a range of -1.0 to +1.0 so 1/6th. Then we want to ignore the first 5/12ths of the range.
A dial usually goes from 0.0 to 1.0, so
( dial val * 0.166666 ) + 0.416666 = val =>0.416666 & <=0.583333

That as script you'd use on a dial
param_multiply 0.166666 & param_add 0.416666 & key_smooth
 

发表时间 Fri 26 Apr 24 @ 10:50 pm
djsherzPRO InfinityMember since 2006
Nice one! I'm nowhere near my gig computer at the moment, but will give that a try when I get back later, thanks! :)
 

发表时间 Sat 27 Apr 24 @ 10:08 am
locoDogPRO InfinityModeratorMember since 2013
that will give you ±100 cents, which might be more than you need after I reread OP but you should be able to work with that to get ±10 cents to get very fine control.
 

发表时间 Sat 27 Apr 24 @ 10:59 am