Glitch sound, p5.audio

Similar to the Pure Data example here (https://www.youtube.com/watch?v=FLK854QyjE4) 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?