mlochbaum / CrinGraph

Bringing Crinacle's squiggly lines to your browser.
BSD Zero Clause License
100 stars 42 forks source link

Completely disable normalization #27

Open soliloqueen opened 7 months ago

soliloqueen commented 7 months ago

In my application, I need absolutely no normalization at all. Can this be easily achieved?

mlochbaum commented 7 months ago

It's not supported as a configuration, but if you change normalizePhone to set p.norm = 0 instead of doing anything else, nothing will be normalized. To remove the UI elements as well, you'd take out the <div class="normalize"> and the code that expects it to be there, which is all in a block starting with let norms =.

soliloqueen commented 7 months ago

It's not supported as a configuration, but if you change normalizePhone to set p.norm = 0 instead of doing anything else, nothing will be normalized. To remove the UI elements as well, you'd take out the <div class="normalize"> and the code that expects it to be there, which is all in a block starting with let norms =.

unfortunately this didn't behave properly as it seems the graph starts to gently drift upwards as the plot center approaches 0dB, which is where my plots center.

soliloqueen commented 7 months ago

https://github.com/mlochbaum/CrinGraph/assets/51219508/6faf8ad1-5d04-42d5-bc84-743f5b2b3ef0

Like so, the position of the line begins to distort slightly

soliloqueen commented 7 months ago

Is there a better way to set the center of the graph to 0dB?

soliloqueen commented 7 months ago

Found it! This is such an easy-to-edit script, thanks!