Resolume Wire Audio Spectrum sampling rate

FFGL, OSC, GLSL. If you like abbreviations, this is the forum for you
DynamicDots
Posts: 10
Joined: Fri Jul 21, 2023 16:24

Resolume Wire Audio Spectrum sampling rate

Post by DynamicDots »

Anyone have any idea how often per second the audio spectrum node gets updated in Resolume Wire presets? I'm currently building a preset that retrieves data from an Audio Spectrum node and sends it to an OSC output. Because I want to send Audio Spectrum data to Unreal Engine from the low latency Resolume audio input. In my preset, for the OSC write, I use a 60hz metronome for the write event trigger. This seems to work fine but was curious about it anyway. It would be nice if the Audio Spectrum node itself would also have some kind of polling rate and data updated event callback output for event driven cases like these.

Zoltán
Team Resolume
Posts: 7483
Joined: Thu Jan 09, 2014 13:08
Location: Székesfehérvár, Hungary

Re: Resolume Wire Audio Spectrum sampling rate

Post by Zoltán »

Spectrum param and other params are updated at the render frame rate.
Software developer, Sound Engineer,
Control Your show with ”Enter” - multiple Resolume servers at once - SMPTE/MTC column launch
try for free: http://programs.palffyzoltan.hu

DynamicDots
Posts: 10
Joined: Fri Jul 21, 2023 16:24

Re: Resolume Wire Audio Spectrum sampling rate

Post by DynamicDots »

Ah perfect thanks, is there a clock callback node somewhere in Wire that outputs an event trigger from this?

Zoltán
Team Resolume
Posts: 7483
Joined: Thu Jan 09, 2014 13:08
Location: Székesfehérvár, Hungary

Re: Resolume Wire Audio Spectrum sampling rate

Post by Zoltán »

Wire patches will render at the same frame rate they get signal inputs, so every render pass, you'll have a new spectrum sample.
If you'd like to get events every render pass, place a sine generator, and attach it to an OnChange node.
Software developer, Sound Engineer,
Control Your show with ”Enter” - multiple Resolume servers at once - SMPTE/MTC column launch
try for free: http://programs.palffyzoltan.hu

DynamicDots
Posts: 10
Joined: Fri Jul 21, 2023 16:24

Re: Resolume Wire Audio Spectrum sampling rate

Post by DynamicDots »

Ah great workaround, will do, thanks :D

Works like a charm, also tried to use the onChange with the output of the curve node I used to normalize my fft values, but that seems to result in the OSC output being sort of out of order consistently. However, with the sine instances as source it works perfect, thanks!

fhughes
Posts: 19
Joined: Wed Jul 19, 2023 23:58

Re: Resolume Wire Audio Spectrum sampling rate

Post by fhughes »

Hey do you happen to know how to calculate the frequency offset for an audio device in Resolume? It's currently not working correctly and I don't seem to be able to find any documentation on how to do this.

fhughes
Posts: 19
Joined: Wed Jul 19, 2023 23:58

Re: Resolume Wire Audio Spectrum sampling rate

Post by fhughes »

I'm afraid there isn't a built-in calculation for that, you might have to calculate it manually based on the sample rate of your input device.

Zoltán
Team Resolume
Posts: 7483
Joined: Thu Jan 09, 2014 13:08
Location: Székesfehérvár, Hungary

Re: Resolume Wire Audio Spectrum sampling rate

Post by Zoltán »

fhughes wrote: Sun Jul 30, 2023 23:20 Hey do you happen to know how to calculate the frequency offset for an audio device in Resolume? It's currently not working correctly and I don't seem to be able to find any documentation on how to do this.
What would you need the sound card sample rate for?
Software developer, Sound Engineer,
Control Your show with ”Enter” - multiple Resolume servers at once - SMPTE/MTC column launch
try for free: http://programs.palffyzoltan.hu

DynamicDots
Posts: 10
Joined: Fri Jul 21, 2023 16:24

Re: Resolume Wire Audio Spectrum sampling rate

Post by DynamicDots »

Zoltán wrote: Tue Aug 01, 2023 09:39
fhughes wrote: Sun Jul 30, 2023 23:20 Hey do you happen to know how to calculate the frequency offset for an audio device in Resolume? It's currently not working correctly and I don't seem to be able to find any documentation on how to do this.
What would you need the sound card sample rate for?
I think he wants to know because I assume that with 44.1kz and 96khz, a 22khz peak would be registered at around index 511 and 235 (out of 1024) respectively for those different sample rates, assuming its scaled linear in Resolume. So, a sample rate output variable in the Spectrum In node would be a nice additionn.

fhughes
Posts: 19
Joined: Wed Jul 19, 2023 23:58

Re: Resolume Wire Audio Spectrum sampling rate

Post by fhughes »

I think he wants to know because I assume that with 44.1kz and 96khz, a 22khz peak would be registered at around index 511 and 235 (out of 1024) respectively for those different sample rates, assuming its scaled linear in Resolume. So, a sample rate output variable in the Spectrum In node would be a nice additionn.
That's correct! I want to know the frequency offset so that I can adjust my calculations accordingly and get accurate values.
I figured out how to calculate it but was hoping there might be a built-in function for this.

Post Reply