# Strange refreshing behavior with Web Csound

**URL:** <https://forum.csound.com/t/strange-refreshing-behavior-with-web-csound/138>\
**Category:** Web Csound\
**Created:** [February 3, 2021, 2:10am UTC](https://forum.csound.com/t/strange-refreshing-behavior-with-web-csound/138 "2021-02-03T02:10:52Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![JasonHallen](https://forum.csound.com/user_avatar/forum.csound.com/jasonhallen/32/32_2.png) [@JasonHallen](https://forum.csound.com/u/JasonHallen)\
**Post date:** [February 3, 2021, 4:39pm UTC](https://forum.csound.com/t/strange-refreshing-behavior-with-web-csound/138/5 "2021-02-03T16:39:30Z")

</div>

You can now [see my code in the online p5.js editor](https://editor.p5js.org/jasonhallen/sketches/HW-GqX7z_). I followed Steven’s lead [in this post](https://forum.csound.com/t/loading-samples-with-web-csound/137/6) 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

---

_[View the full topic](https://forum.csound.com/t/strange-refreshing-behavior-with-web-csound/138)._
