dy / wavefont

Typeface for rendering waveform/data
https://dy.github.io/wavefont/scripts/
SIL Open Font License 1.1
416 stars 7 forks source link

Expand 0..100 to 0..127 #51

Closed dy closed 1 year ago

dy commented 1 year ago

+ 0..100 is human range and is kind of covered by a-Z values + 0..128 is programmatic range and it anyways starts with hex number - impossible for human to remember + 28 doesn't add extra weight + 128 better matches programmatic values eg. uint8/PCM range with 256 values + 128 is needed for midifont - even 256 values are available, although that can be problematic for linefont, besides midifont needs only 128 + it is available in latin range - a bit of trouble aligning a-Z to 128 range: the step is 2.46 + user can artificially limit values to 0..100, 28 can be considered extra clipping (that is, for audio signals)

dy commented 1 year ago

Ok done as: