Play any sound, i.e: piano type sound, at any desired frequency?

As promised, I am attaching an image of the console (Manipulate output) and the source code (.txt file) of the new project:
‘FREE MUSIC, FREE SOUNDS’ SYNTHESIZER

Just copy an paste the code of the .txt file into mathematica, and run.

Please also kindly read the text included at the top of the code and share any ideas, harmonics database, and comments on this project. Remember, this is a new open project.!

Best regards,

This is great! Is there a reason you did not attach the notebook itself but a .TXT file?

No, it is just that I was trying to paste the code directly into the screen (I didn’t notice there is a button for uploading files but just for images), so I previously converted it to a .txt file. Later I realized the button was there.

By the way, the number of sound buttons of this app could be increased and they could be arranged as piano keys icons, or guitar string icons. I hope to see people contributing to this open project, mainly on improving the time response of the PLAY command.

It would be great if mathematica could improve the time response for the PLAY command when using functions.

I know that by previously using the table command the time response is reduced, however I didn’t find the way
to use that in this dynamic case, I just have to directly use large piecewise functions within the play command.

I am attaching again the SYNTHESIZER code with some minor changes, just copy the contents, paste and run.

In this synthesizer the harmonics for simulating musical-instrument timbre are calculated using interpolating functions and the avalilabe harmonics-data of current musical notes.
The manipulate routine could be improved using AudioGenerator

We do agree, calculating the harmonics this way for the guitar timbre is a crude approximation, however, if you have in mind experimenting with some particular frequencies, then you should find the real harmonics by using a real musical instrument and a spectrum analyzer.

I made the database of up to 21 harmonics for all the equal-temperament notes, however, I thought it was far enough to use 12 harmonics in this synthesizer.

I think, at this point, I must made the following remark: Even considering those delays in the Mathematica Play command, no other software allows you to do things like this, I think all this a great.

Mathematica is a truly powerful tool of liberation.

Note:
Never use blank spaces for your filenames. Never¡

Is the txt file there? I can not see it.

Yes
I included an attachment in the 6th post above.
However, so much time has passed since I posted this, by this time, I found FLStudio and Harmor which allows me to use any music scale, you can see that at:

and the theoretical basis for my scale at:

Thanks a lot for your reply and information.