+ 8
How we can create a sound by coding ?
In Turbo C++ (Dos based) Compiler, i created a program in c++ who's generate a sound. The coding is that... #include<iostream.h> #include<conio.h> #include<dos.h> void main(){ clrscr(); sound(250); delay(200); nosound(); getch(); } when you run this code so you hear sound but my question is how we can sound programme in any other compilers and programming languages ? Thanku 🙏🙏
14 odpowiedzi
+ 3
If you know javascript there is the built in web audio api, that can be used to generate pretty much any sound you can think of. its also built in so, no extra libraries are needed. The learning curve might be a little more complex though. There are also many sound libraries out there, like Pizzicato or Tone js, which simplify the process. Ive used all of the above and my personal fav would be Tone.js. The way they built their library is very relatable to how real instruments operate.
here is two codes I made here, the first is pure javascript, and the second uses Tone.js.
https://code.sololearn.com/WA4P53A24zGR/?ref=app
https://code.sololearn.com/W95pRTRd5em7/?ref=app
+ 9
Kuldeep and BroFarOps thank you. To learn more about Sonic Pi go to
https://sonic-pi.net/tutorial.html
+ 8
SonicPy for Python
sonic-pi.net
+ 5
BroFarOps©®️™️the 🐱 thanks 🙏
+ 4
JavaScript seems the most used for creating sounds like for various instruments like drums, guitars, pianos and organs...
+ 4
BroFarOps©®️™️the 🐱 please explain me in detail i want to know about this
+ 4
xpnvdo thanks 😊
+ 4
_PSIX_20_ as a new user of Sololearn please do not spam the Q&A with emojis and comments that are not relevant to the question or subject being addressed. We want as users quality of content.
https://www.sololearn.com/discuss/1316935/?ref=app
+ 3
Joe awesome site / bookmarked
+ 3
Check out "csound"
+ 1
🤔
+ 1
можно по русски RU
aleksgoriunov