shine5402 / KiraOtoToolbox

A toolbox for manipulating UTAU voicebank's mark file format(oto.ini)
GNU General Public License v3.0
25 stars 1 forks source link

Suggestion #36

Open TheSodaWave opened 2 years ago

TheSodaWave commented 2 years ago

What if the toolbox had a parameter reorganizer? Set-Param allows only sorting by wav name and KANA (and sometimes it is not very good, especially for non-Japanese VBs).

A tool that allows to choose for example, which part of the alias name to use for sorting alphabetically (including or excluding if the alias is hyphenated), or to sort by alias format (CV, VC, C, V etc...), or even to try to follow the sorting order of another oto file, would be really helpful. Many people need to follow a specific order when making otos to correctly adjust the values (and more than one will have touched the UTAU editor, which rearranges everything by wav names).

Thank you in advance

(I'm not familiar with github, so idk how to add "enhancement" label)

shine5402 commented 2 years ago

Seems like a good idea! But idk how many circumstances should I consider as you see there can be a lot...Making a new tool is relatively easy, but making it universal is a big challenge.

You can, however, use JavaScript tool for sort your oto data on your demand now. JS provide a sort function on its Array (check its ref here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objepredicatects/Array/sort), which support use your own predicate when sorting. You can write something like:

data.sort((e1, e2) => {
    return e1.alias < e2.alias;
})

Which sort it alphabetically.

TheSodaWave commented 2 years ago

Thank you, I know nothing about programming, but I will try it anyways