Hi thanks for the reply.
I presume you are suggesting to move the loadSound bit into a preload function?
The issues above still remain in that addPhrase and loop functions are undefined.
I am quite new to coding but I can find reference to both of these in the p5 sound js file so it seems that what is happening is the sketch cant find the library…however I may be wrong.
Cheers