Audio Generation from Data

Hello everyone!
I have a project to represent an audio-visual from building sensor data (temperature, air flow, electricity, etc.) The raw data is csv, which I import as DAT and convert to CHOP. there are 1000 samples data captured in one day and it’s not enough for audio generation (44100 per sec) Resampling doesn’t seem to work either. I wonder if anyone can have an insight on that. Thank you!
sensors-circle copy.toe (54.9 KB)

Hi @gorbe,

1000 samples is indeed not a lot but you can still convert it to audio.

When using the Resample CHOP, make sure to turn off the Timeslice parameter on the operator’s Common parameter page. With this, now you can choose “New Rate, New Interval” from the Method parameter on the Resample CHOP’s Resample page.
When trying this, I set the Sample Rate to “44100”, the Unit Values parameter to “Absolute” and then the End parameter to “2” seconds.

Now when you try to play this, you won’t hear anything and when investigating the channels a bit, it turns out that the values are all over the place - some channels have values between 100 and 300, others again between 15 and 35. A audio signal should be between -1 and 1 - so basically normalize the whole signal. This can be done with the Limit CHOP and it’s Normalize parameter.

Now you could already plug this into a Audio Device Out CHOP but you would only hear something for the first 2 seconds of the timeline, add an Extend CHOP after the Limit CHOP and set the Right Behavior parameter to “Cycle” - you should now be listening to your data.

cheers
Markus

Thank you so much @snaut for your valuable prompt guidance! I can definitely listen to my data now, even though it’s not that ear-friendly, which is normal. I was wondering if there is a way to import a bigger dataset to TD without the crash possibility. I might be able to resample the csv file and put more data points between values.

Hi @gorbe,

should be no problem to import large datasets. You were running into crashes?
With very large datasets it can make sense to turn off the viewers of DATs containing the data as DATs can be slow to render.
If you experience crashes, please share the dmp files with us also mentioning your hardware and video card driver version.

cheers
Markus