Super simple demo of how to draw a waveform and play it back in PD:

drawMe.pd