I am interested in training a generative model on my guitar's waveform, but not sure how to record a waveform dataset from it.
I have transducer pick-ups on my acoustic (which would be ideal to use) but not sure hack it to
The easiest way to do this is probably to use an audio interface. An audio interface lets you plug in a 1/4" jack and connect the interface to your computer using USB. The interface can convert analog to digital signal, and vice versa.
Here's some ipython notebooks that stream an audio waveform from a soundcard into matplotlib for a real-time viz.
It uses PyAudio and struct (to uncompress the byte stream into waveform integers)
sound.stackexchange.com sounds more appropriate for me going forward, thanks for the rec!