You can now see my code in the online p5.js editor. I followed Steven’s lead in this post to change the name of the WAV file in CopyUrlToLocal in order to avoid a problem with the p5.js editor.
Here’s the puzzling thing. On line 15 of setupCsound.js it attempts to load the WAV file into a table:
gisample ftgen 1, 0, 0, 1, "myFile.WAV", 0, 0, 0
The table load fails, and the CSD doesn’t compile. If you comment out this line, then the CSD compiles and the sketch is able to play the WAV file with diskin2 reading “myFile.WAV”. So “myFile.WAV” is available to Csound, but Csound isn’t loading it into a table.
Any ideas what’s going on?
Thanks!
Jason