POV-Ray : Newsgroups : povray.binaries.images : audio spectrum Server Time
22 Feb 2025 21:09:49 EST (-0500)
  audio spectrum (Message 1 to 3 of 3)  
From: ingo
Subject: audio spectrum
Date: 11 Feb 2025 06:05:00
Message: <web.67ab2ec35f1d341417bac71e8ffb8ce3@news.povray.org>
an audio spectrum visualizer using FFT of a set of parametric filters on a log
sine sweep 20 - 22050 Hz, 2^15 samples. The resolution in the low end is low and
wavey. The result is normalized.

The filters:

//ini_filter(peak(dB), Freq(Hz), bandwidth(Hz), samplerate)

#declare band4000 = init_filter(+6, 4000, 520, sampleRate);
#declare band1000 = init_filter(+3, 1000, 520, sampleRate);
#declare band500 = init_filter(-9, 500, 100, sampleRate);
#declare band200 = init_filter(-5, 200, 150, sampleRate);


Post a reply to this message


Attachments:
Download 'parametric7.png' (17 KB)

Preview of image 'parametric7.png'
parametric7.png


 

From: Leroy
Subject: Re: audio spectrum
Date: 11 Feb 2025 16:05:00
Message: <web.67abba627262bfb6baacd1fcf712fc00@news.povray.org>
"ingo" <nomail@nomail> wrote:
> an audio spectrum visualizer using FFT of a set of parametric filters on a log
> sine sweep 20 - 22050 Hz, 2^15 samples. The resolution in the low end is low and
> wavey. The result is normalized.
>
> The filters:
>
> //ini_filter(peak(dB), Freq(Hz), bandwidth(Hz), samplerate)
>
> #declare band4000 = init_filter(+6, 4000, 520, sampleRate);
> #declare band1000 = init_filter(+3, 1000, 520, sampleRate);
> #declare band500 = init_filter(-9, 500, 100, sampleRate);
> #declare band200 = init_filter(-5, 200, 150, sampleRate);

Cool!! Using POV!? Like to see the code.
It's been awhile since I played with audio on POV. Audacity has a sampling
function that lets you get and place sound data. Can't remember all the stuff I
did, but I mostly played with wave forms.

Have Fun!


Post a reply to this message

From: ingo
Subject: Re: audio spectrum
Date: 12 Feb 2025 03:35:00
Message: <web.67ac5cd47262bfb617bac71e8ffb8ce3@news.povray.org>
"Leroy" <whe### [at] gmailcom> wrote:

> Cool!! Using POV!? Like to see the code.

Yes, all in POV-Ray, signal generation, FFT, audio recording.

The code will take some time, I'm redoing the include files I made a few years
ago and make a consistent set of it. Currently there is recording to wav file,
oscillators, bandlimited ones, Low frequency oscillators using look up tables.
Biquad filters, a 3-band EQ and a single band EQ to build a parametric EQ with.
ADSR with visualisation. Waveform visualisation. Currently working on
"welchFFT", applying windows to the data and then use overlapping FFT.

Once done, it will be posted.

ingo


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.