Glitch sound, p5.audio

Similar to the Pure Data example here (Databending and Datamoshing Audio 3.5: More Pure Data| Simon Hutchinson - YouTube) I’m trying to conceptualise how a file, such as a text file, might be read in P5 and played back as glitch audio. How would I go about this? Is this possible - to load binary data into p5.audio?