version 4.0.0 #45
hvianna
announced in
Announcements
Replies: 1 comment 2 replies
-
Congratulations on the new release! I upgraded to v4 with no issues. I tried the new option Also, I prefer the old rainbow gradient; it's more colorful and the new one seems a bit dull. Maybe that's just what I'm used to. Thanks for showing how to keep it, that was useful. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's new:
🚨 BREAKING CHANGES:
Removed deprecated properties:
- useenergy
getEnergy()
instead- useisLedDisplay
isLedBars
instead- usepeakEnergy
getEnergy('peak')
instead- useshowLeds
ledBars
insteadgetBars()
now includes an additionalfreq
property for each element, representing the center frequency of the band.In addition, the range of each band has been adjusted so that frequencies that were previously at the lower edge (
freqLo
) are now located at the center of the band.stereo
has been DEPRECATED and will be removed in version 5 - usechannelLayout
instead.Added:
ansiBands
- use ANSI/IEC preferred frequencies for the octave bands;channelLayout
- adds option for dual channel combined spectrum, with both channel graphs overlaid;frequencyScale
- adds linear and perceptual (Bark/Mel) frequency scales;gradientLeft
andgradientRight
- allow to select different gradients for each channel;isBandsMode
read-only property;linearAmplitude
- use linear values instead of dB for spectrum amplitudes;linearBoost
- amplify low energy values when using linear amplitude;noteLabels
- display musical note labels instead of frequency values on the X-axis;weightingFilter
- select from five different weighting filters for improved spectrum visualization;Thank you @jonathan-annett (#28) and @TF3RDL (#30 and #38) for the suggestions that led to the implementation of several of these new features.
Fixed:
reflexRatio
> 0.Changed and improved:
ansiBands
, to properly match the bands' center frequencies;onCanvasDraw
callback is now passed an additional object with timestamp and gradients information;splitGradient
now works for horizontal gradients inradial
visualization;maxFreq
is now capped to half the AudioContext's sample rate (Nyquist frequency);This discussion was created from the release version 4.0.0.
Beta Was this translation helpful? Give feedback.
All reactions