# Instrument blocks

I tried making instrument blocks from instrument samples because I didn't want to wait for proper instruments so I could do experiments with programmatically making music. It works fine, but currently you can only play two types of instruments and I forgot about the drums so you can't play drums.

I am worried about the instrument samples taking too much space in the project, so I was wondering where I could host the instrument samples externally. I am also worried about having to record samples for 128 instruments because that's going to take a while. (If this wasn't clear I am asking for help)

Maybe you could just have one sample for each type of instrument, and play them at lower or higher Hz?

<p>so</p>

oh

you don't have to. There's samples for all those instruments online. I did find a website that has all of the samples

So that means we can use the URL block?

I tried using it, but I couldn't get it to work.

Did you try a CORS proxy?

yup, although it is harder since you now have to request access to cors-anywhere before you can use it.

I setup a cors-anywhere server that doesn't require you to request access: https://cors-anywhere.programmeruser.repl.co/

huh, how I use it? when I tried https://cors-anywhere.programmeruser.repl.co/https://forum.snap.berkeley.edu/t/instrument-blocks/5869/9 and it didn't work.

and I get this when I try to go to the site

Try removing the https:// in the URL path.

didn't work.

What error message does it display?

ok, so I get this with the web services library

<html>
<body>
<hr><center>openresty/1.15.8.3</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->



but I don't get anything with the url block.

Did you forget to add https:// to the beginning of the URL?

I don't get anything with https:// at the beginning of the url.

Can you send me a link to the project?

As I said,

So try this URL:

https://cors-anywhere.programmeruser.repl.co/snap.berkeley.edu/snap/snap.html#present:Username=silver_star&ProjectName=Unicode&editMode&noRun