You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made this change myself (It was trivial, but suggest it also be added.)
You can turn on the normalize flag so the waveform-height fills the window.
However, this is based on the amplitude of the audio you are pointing at.
I suggest you also add the ability to set a magnification constant as well.
Ie. I am showing a few different waveforms on the screen at once. But I want them to be relative to each other. However, they are quite low and do not produce a very detailed waveform.
So I added the ability to set the magnification (0 to 1) so I could for example.
Double all waveform height by setting to 0.5
This could be a percentage or whatever based on how its surfaced...
The ability to be able to set just how much the waveform is magnified, in general, is a good idea.
I did this myself by looking at the normalize parameter and simply added my own.
The text was updated successfully, but these errors were encountered:
Then in the code base where it deals with the normalize parameter and inits the absmax variable default as 1, I change it to init it to the waveHeightScale parameter, about 3-4 spots.. I have replaced the following line....
// var absmax = 1;
var absmax = this.params.waveHeightScale;
About 5 lines of changed code.. But I hope that makes it clear now..
As I can set the parameter waveHeightScale to set a specific SCALE/Magnification.
I made this change myself (It was trivial, but suggest it also be added.)
You can turn on the normalize flag so the waveform-height fills the window.
However, this is based on the amplitude of the audio you are pointing at.
I suggest you also add the ability to set a magnification constant as well.
Ie. I am showing a few different waveforms on the screen at once. But I want them to be relative to each other. However, they are quite low and do not produce a very detailed waveform.
So I added the ability to set the magnification (0 to 1) so I could for example.
Double all waveform height by setting to 0.5
This could be a percentage or whatever based on how its surfaced...
The ability to be able to set just how much the waveform is magnified, in general, is a good idea.
I did this myself by looking at the normalize parameter and simply added my own.
The text was updated successfully, but these errors were encountered: