xormor2 / BYTEBEAT

The Bytebeats Repository
0 stars 0 forks source link

Investigate sending the pcm data to the computer using Serial #3

Open jeesus-bock opened 8 months ago

jeesus-bock commented 8 months ago

Basically the arduino could send back the raw pcm data thru Serial.write() to the connected computer which would receive it using arduino-cli monitor -p /dev/ttyUSB0 piped to a file. This would be the data affected by the glitch storm board controls, ie. jamming with it and might be of some use. Or not, but it would be easy to implement I venture.

jeesus-bock commented 8 months ago

After saving the pcm data, we could convert it to wav for further processing etc. It's also interesting to see how toying with these conversion parameters modify the sound.

Example to convert raw PCM to WAV:

ffmpeg -f s16le -ar 44.1k -ac 2 -i file.pcm file.wav

jeesus-bock commented 8 months ago

The bitrate of the transmission would be really low if I understood it correctly. Yet I wanna move forward implementing this to see/hear what comes out of it :).