change FFT analyzer range?
-
Currently, the visual bounds of the analyzer seems to be the same as the draggable eq range (-24dB/+24dB).
Is there a LAF method to adjust this? I'm looking for a display that does -100dB/0dB -
@Dan-Korneff Roll your own DFT with HISE's FFT class. It will create an array of frequency bins. You can access their magnitude (which you can basically use for amplitude) by iterating through the array. Remember that you must decide whether frequency resolution or amplitude (over time) is more important; set your window size and choose your windowing function accordingly. It sounds like you want precise values; amplitude is a non-trivial concept in DFTs—do you just want to display something to user, or are you using these values for processing? If the former, then the methods I described is probably fine.
-
@clevername27 Thanks for the reply. I'm just looking for a visual. Basically, the existing FFT that would show all the way down to -100.
-
@Dan-Korneff A scripnode display buffer is the answer, you can customise the range and ballistic
-
@Dan-Korneff Sounds like Dan's is easier.
-
The Curve EQ is also a display buffer source, you don't need to go scriptnode for that.
// You can get those from a scriptnode FFT node (click Edit Properties and copy that bad boy) const var props = { "BufferLength": 1024, "WindowType": "Blackman Harris", "DecibelRange": [ -100.0, 0.0 ], "UsePeakDecay": false, "UseDecibelScale": true, "YGamma": 1.0, "Decay": 0.699999988079071, "UseLogarithmicFreqAxis": true }; // The EQ is also a display buffer source const var dp0 = Synth.getDisplayBufferSource("Parametriq EQ1"); const var dp = dp0.getDisplayBuffer(0); dp.setRingBufferProperties(props);
HiseSnippet 1281.3ocyX80aaaCDWJNpn1caXcnEaORXrGb.RSk7xRR2vPyercVvhS7hSaVwvPAMEsMQjHUHoRqQQ+Ntm2S6iv9FrcTxNRJwKy0HKo9gVwi2c52cG+cGU5HEDpRIjV1kOdTD0x9Sb5NhqGtyPLiasWCK6OyoMVooRTpnsGEgUJpukscocMBrKunUxu+54aiCvbBMSjk0KELBceVHSmIsyl+DKHnE1mdLKLm1qt4dDAeGQfHFvSIGWqHL4T7.5AXiZK3XYeul9LsP1Ui0TEny1B+QcGJdCOU+WxTrdATyBOqtfiREasyPVfemIwpxxx1oSVjWJMxejSalO6B4YYfOOYCTlE4yA1KbcPx6C.R14fzhoP5gNcIRVjNaGCddfydbnfz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