快速登录:  

Forum: General Discussion

话题: How can one query the key of track?
How can one query the key of track?

have tried

param_contains `get_key "original"` 8A ? color 'magenta' : color 'white'

param_equal `get_key "original"` 8A ? color 'magenta' : color 'white'

and with variations of the quoting, I cannot get it to work.

Help :)


------------------
and if one wanted to query the key of the track on deck 2, would it be

param_equal `get_key "original"` 8A ? color 'magenta' : color 'white'
or
deck 2 param_equal `get_key "original"` 8A ? color 'magenta' : color 'white'
 

发表时间 Sat 16 Oct 21 @ 8:39 pm
NicotuxHome userMember since 2014
imo better use get_loaded_song keyfor original

but get_key "musical" or get_key "harmonic" can overwrite keyDisplay option

these return value is text, need cast

param_equal `get_key harmonic & param_cast text` '08A' ? color 'magenta' : color 'white'
param_equal `get_key musical & param_cast text` 'Am' ? color 'magenta' : color 'white'

constructors values can get rid of cast

param_equal 'get_key pioneer' 2 ? color magenta : color white
param_equal 'get_key roland' 8 ? color magenta : color white

 

发表时间 Sat 16 Oct 21 @ 10:01 pm
Thank you so much Nicotux for sharing your amazing wisdom.

Worked perfectly !

And I did not know about a Pioneer key scale (or Roland's),
Where can one learn more about them?
Interesting

Again Thank you !
 

发表时间 Sun 17 Oct 21 @ 9:01 pm
IIDEEJAYII wrote :

And I did not know about a Pioneer key scale (or Roland's),
Where can one learn more about them?

In the technical information sheet of their controllers user guide.
get_key pioneer for example is not a different scale.
It just returns a number (integer) with a specific order that can be used directly on Pioneer controllers to turn on the correct key in their display.
In other words:
Controllers like the DDJ-1000 are capable to show the key of the track on their display.
However the software does not send "text" data like "8A" or "Am" on the controller to display the track's key. The controller instead requires a specific number to be sent in order to show the key on the display.
Pioneer controllers usually accept 49 values. 24 for "Kamelot/Numeric" key display, 24 for "Musical" key display, and 1 for "no display"
The numbers follow the musical scale of course.
Conclusion: Pioneer and Roland key "scales" are nothing special or different. They are just "different" in order to simplify specific controllers mapping.

 

发表时间 Tue 19 Oct 21 @ 8:11 am