Custom sort order
|
16-09-2023, 19:20
Post: #1
|
|||
|
|||
Custom sort order
Hello,
as I understand it, the sort order within an index is predetermined to be alphabetical. There are some options to customize this, as explained in the user guide ("Tag options"). Now I am looking for a custom sort order for a specific Index tag, namely the "Tempo" tag. It has only a few values that have a logical order (Very slow, Slow, Moderate, Fast, Very fast). At the moment they show up in alphabetical order (Fast, Moderate, Slow, Very fast, Very slow), which doesn't make sense. Is there a way to set this order, or do I have to rename the values to "1-Very slow, 2-Slow..." or comparable as a workaround? Best regards Lakorus |
|||
16-09-2023, 21:17
(This post was last modified: 16-09-2023 21:19 by simoncn.)
Post: #2
|
|||
|
|||
RE: Custom sort order
You can do what you want by creating a sort value for each tempo name and associating the sort value with the tag name using the tagValue property. The simplest way to add these sort values is to use a tagUpdate file.
For example, you could create a TempoSort tag that can have the value 1, 2, 3, 4 or 5. For each file with 'Tempo=Very slow' you could set 'TempoSort=1' and so forth. You could add the TempoSort tags manually but this is tedious and error-prone. Instead, you can create a tag update file with the following entries: @TEMPO=Very slow +TEMPOSORT=1 @TEMPO=Slow +TEMPOSORT=2 etc. and use the tagUpdate property to activate this tag update file. This causes MinimServer to add the correct TempoSort tags internally when scanning your audio files. The final step is to associate TempoSort tags with Tempo tags for sorting purposes. To do this, add TempoSort to itemTags and set the tagValue property to: Tempo.value.sort={TempoSort} This should do what you want. |
|||
17-09-2023, 13:45
Post: #3
|
|||
|
|||
RE: Custom sort order
It should do what I want... and it did!
Thank you very much for your detailed explanation and as always for your helpfulness! Best regards Lakorus |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)