Trying to plot change of decibel over time

Hairul's icon

Hi all,

I'm trying to plot the amount of gain reduction in dB over time. I've used 'live.gain~' and connected it to a 'number~' to display the amplitude level. How do I store the value so that I will be able to plot the graph?

I tried using 'record~' and 'buffer~' but it seems like it only stores value between -1 and 1. 'Capture~' is confusing, also I would like to be able to control the start and end of data storage (eg : when I play the audio samples) and I don't think 'capture~' have that option.

Thank you very much.

Floating Point's icon

buffer can store any value, not just values normalized between +-1

Max Patch
Copy patch and select New From Clipboard in Max.

Hairul's icon

Thank you so much for your reply. Yes, now I realise that it does.

Do you know how I could export the data stored in buffer because I need to plot it in Matlab. I think my data was normalised because I exported it as wave file. Can I export it as raw data file?

Thanks again, I really appreciate it.

- Hairul

Source Audio's icon

what is resolution of values to store ?
1 ms ? or something else ?
what is the format matlab needs to "plot" the whole thing ?
Let's have one example :
if one wants to sample values in 1 ms resolution,
than run clocker set to 1 ms, and
bundle that with values to store, forming time - value
combo.
that could be stored in coll, or buffer etc.

Max Patch
Copy patch and select New From Clipboard in Max.