jamesb93 / bend-nim

turn raw data into audio
BSD 3-Clause "New" or "Revised" License
41 stars 1 forks source link

convert wav back to data? :) #5

Open enthus1ast opened 4 years ago

enthus1ast commented 4 years ago

funny tool, i can remember catting binary files to /dev/dsp when i was a kid....

Do you think it would be possible to recreate the binary that was used as an input from the wav file?

jamesb93 commented 4 years ago

It is entirely possible. The wav header that is composed for the raw data contains the information about how it was encoded. All you would have to do is decode the binary data and remove the header to get back to square one. I don't have any plans to write a reverse nimBend as the possibility of returning to the original data isn't of interest to me but you are welcome to provide a pull request :^)

enthus1ast commented 4 years ago

now i'm curious, how you use nimBend?

jamesb93 commented 4 years ago

Right now I am using it to generate material for musical composition. I take a chunk of data from my hard drive (around 5gb or so) and convert it to audio giving me around 7000 sound files. I then segment that into small chunks based on a concept called 'novelty'. At the moment I am writing an album with the sounds as well as documenting the techniques I engage with for organising and managing a hefty database as well as the aesthetics of responding to structures that emerge from the computational process.