arduano / Zenith-MIDI

world's fastest and most customisable MIDI rendering program
https://arduano.github.io/Zenith-MIDI/
Other
162 stars 21 forks source link

Add more options/variables on the Note Counter #6

Open Hans5958 opened 5 years ago

Hans5958 commented 5 years ago

Some suggestions from the community:

(also suggested by jimo#5727 on the BMC server)

arduano commented 4 years ago

As far as I'm aware, I can only do dots for decimal and comma for thousands. I've added a checkbox that disables thousands separators. Additional zeroes would be quite difficult to implement in a customizable way, I'm not sure how to do it.

Hans5958 commented 4 years ago

As far as I'm aware, I can only do dots for decimal and comma for thousands. I've added a checkbox that disables thousands separators. Additional zeroes would be quite difficult to implement in a customizable way, I'm not sure how to do it.

I think it is best to do it manually with code than by automatically using windows locales or something. I heard it is possible on C# based on this links: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings#NFormatString https://docs.microsoft.com/en-us/dotnet/standard/base-types/how-to-pad-a-number-with-leading-zeros

....

I have two ways:

  1. Make a switch for it, perhaps do it in another tab because there's a lot.
  2. Add arguments on the variable container. Maybe variable:argument1,argument2 (nps:trailingzerocount) or variable(argument1,argument2) (nps(trailingzerocount)). I think regex could do that.

(Dropping old suggestions for the future.)

Niccori250k commented 4 years ago

Additional Zeroes are available from 2.1.0. I think using other characters as thousand separator or decimal point is not necessary. Do I have to try?

Hans5958 commented 4 years ago

Additional Zeroes are available from 2.1.0. I think using other characters as thousand separator or decimal point is not necessary. Do I have to try?

Sure, if you had time.