Key Wheel doesnt work (or i dont know how to use)

HI, recently i downloaded the key wheel plugin but i dont see any changes/menu in picard, it doesnt work? Where is a menu? How to use? i dont find any info in any site

The plugin adds various scripting functions that can be used in tagger scripts to convert between different notations for the musical key. There are 4 functions, $key2camelot, $key2openkey, $key2standard and $key2traktor.

E.g. you can use $key2standard(1A) and it will return “A-Flat Minor”.

If you click on “Documentation” in Options > Scripting you will find documentation for all scripting functions, including the ones from the plugin. I have pasted the documentation below.


$key2camelot(key)

Returns the key string key in camelot key format.

The key argument can be entered in any of the supported formats, such as ‘2B’ (camelot), ‘6d’ (open key), ‘A♭ Minor’ (standard with symbols), ‘A-Flat Minor’ (standard with text) or ‘C#’ (traktor). If the key argument is not recognized as one of the standard keys in the supported formats, then an empty string will be returned.

$key2openkey(key)

Returns the key string key in open key format.

The key argument can be entered in any of the supported formats, such as ‘2B’ (camelot), ‘6d’ (open key), ‘A♭ Minor’ (standard with symbols), ‘A-Flat Minor’ (standard with text) or ‘C#’ (traktor). If the key argument is not recognized as one of the standard keys in the supported formats, then an empty string will be returned.

$key2standard(key[,symbols])

Returns the key string key in standard key format. If the optional argument symbols is set, then the ‘♭’ and ‘#’ symbols will be used, rather than spelling out ‘-Flat’ and ‘-Sharp’.

The key argument can be entered in any of the supported formats, such as ‘2B’ (camelot), ‘6d’ (open key), ‘A♭ Minor’ (standard with symbols), ‘A-Flat Minor’ (standard with text) or ‘C#’ (traktor). If the key argument is not recognized as one of the standard keys in the supported formats, then an empty string will be returned.

$key2traktor(key)

Returns the key string key in traktor key format.

The key argument can be entered in any of the supported formats, such as ‘2B’ (camelot), ‘6d’ (open key), ‘A♭ Minor’ (standard with symbols), ‘A-Flat Minor’ (standard with text) or ‘C#’ (traktor). If the key argument is not recognized as one of the standard keys in the supported formats, then an empty string will be returned.

3 Likes

last question, if I want for example to convert all keys to camelot, I have to put $key2camelot(key) in the scripts and that’s it?
edit: i tried with $set(key,$if2($key2camelot(%key%),%key%)) but with this the keys who have a # dont change

Sounds like the existing keys use a symbol other than a standard octothorpe. When I wrote that plugin, I only checked for a standard octothorpe. Can you check and let us know the ASCII or UTF value of the sharp symbol that is not being converted?

3 Likes

ascii: 35
there is the acousticbrainz #

I think I may have found the problem. Can you please share the key value that isn’t being converted so that I can confirm my finding? Thanks.

3 Likes

All keys with # (A#, C#, C#m, D#, G#m & A#m for now)

2 Likes

I think that I have now corrected the processing in the plugin. I will submit the changes to the official Picard Plugins repository, but until that happens and is processed, you can download the updated plugin from my repository on GitHub. If you give this a try, please let me know if it fixes the problem for you. Thanks.

6 Likes

now its work fine, thanks!

3 Likes