Ok, so the "Save Sound" Custom Block is still not working on the community site. i have uploading working perfectly though.
https://snap.berkeley.edu/project?user=joecooldoo&project=Snap!%20Audio%20Player
So, it's letting you upload files but not download them?
Aha, I've found the problem.
Your code:
top.window
var a = document.createElement("a");
a.href = sound.audio.src;
a.download = sound.name;
a.click();
You're not supposed to prefix the entire code with that. You need to do this:
var a = top.window.document.createElement("a"); /* Top.window is put
before the reference
of the Document object,
which would otherwise
rely on the window in the
iframe. */
a.href = sound.audio.src;
a.download = sound.name;
a.click();
how 2 upload?
I recommend looking here instead though of the iFrame though.
Click the green arrow to upload.
It does not work.
go to the link i last sent.
I imported a song manually:
and saw that the little spikes and stuff do not actually mean anything, what are they even supposed to be @bh !
They're the way audio is notated, the larger the "spikes" the louder it is at that moment.
I made a few changes to the project:
https://snap.berkeley.edu/snap/snap.html#present:Username=helicoptur&ProjectName=Snap!%20Audio%20Player&editMode
Neat! Ill use this.
k
I was talking to @helicoptur
k
I updated the original project, please use the updated version.
This topic was automatically closed after reaching the maximum limit of 100 replies. Continue discussion at Sound Editor in Snap (Part 2).