CrinGraph icon indicating copy to clipboard operation
CrinGraph copied to clipboard

Completely disable normalization

Open soliloqueen opened this issue 1 year ago • 5 comments

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

soliloqueen avatar Mar 05 '24 18:03 soliloqueen

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 =.

mlochbaum avatar Mar 05 '24 18:03 mlochbaum

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 avatar Mar 05 '24 19:03 soliloqueen

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

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

soliloqueen avatar Mar 05 '24 19:03 soliloqueen

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

soliloqueen avatar Mar 05 '24 19:03 soliloqueen

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

soliloqueen avatar Mar 05 '24 19:03 soliloqueen