# Sound Editor in Snap (Part 1)

@joecooldoo , the deeds have been done.

Thanks, @helicoptur!

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

Aha, I've found the problem.

top.window
var a = document.createElement("a");
a.href = sound.audio.src;
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.click();

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:

Neat! Ill use this.

k

I was talking to @helicoptur

k

I updated the original project, please use the updated version.

I know its in my project.

This topic was automatically closed after reaching the maximum limit of 100 replies. Continue discussion at Sound Editor in Snap (Part 2).