How we can create a sound by coding ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 šŸ™šŸ™

25th Mar 2019, 2:19 PM
Kuldeep Amarwani
Kuldeep Amarwani - avatar
14 Respostas
+ 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
26th Mar 2019, 5:06 PM
xpnvdo
xpnvdo - avatar
+ 9
Kuldeep and BroFarOps thank you. To learn more about Sonic Pi go to https://sonic-pi.net/tutorial.html
25th Mar 2019, 9:18 PM
ā€Žā€ā€Žā€ā€ŽJoe
ā€Žā€ā€Žā€ā€ŽJoe - avatar
+ 8
SonicPy for Python sonic-pi.net
25th Mar 2019, 3:40 PM
ā€Žā€ā€Žā€ā€ŽJoe
ā€Žā€ā€Žā€ā€ŽJoe - avatar
25th Mar 2019, 4:34 PM
Kuldeep Amarwani
Kuldeep Amarwani - avatar
+ 4
JavaScript seems the most used for creating sounds like for various instruments like drums, guitars, pianos and organs...
25th Mar 2019, 2:39 PM
BroFar
BroFar - avatar
+ 4
BroFarOpsĀ©Ā®ļøā„¢ļøthe šŸ± please explain me in detail i want to know about this
25th Mar 2019, 4:20 PM
Kuldeep Amarwani
Kuldeep Amarwani - avatar
+ 4
ā€Žā€ā€Žā€ā€ŽJoe I haven't start Python but i know some basic concept in Python so i will try ....Thanks dear
25th Mar 2019, 4:22 PM
Kuldeep Amarwani
Kuldeep Amarwani - avatar
+ 4
xpnvdo thanks šŸ˜Š
26th Mar 2019, 5:12 PM
Kuldeep Amarwani
Kuldeep Amarwani - avatar
+ 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
28th Mar 2019, 3:23 AM
BroFar
BroFar - avatar
+ 3
ā€Žā€ā€Žā€ā€ŽJoe awesome site / bookmarked
25th Mar 2019, 9:33 PM
BroFar
BroFar - avatar
+ 3
Check out "csound"
26th Mar 2019, 8:37 AM
pur80a
pur80a - avatar
+ 1
šŸ¤”
28th Mar 2019, 2:54 AM
_PSIX_20_
_PSIX_20_ - avatar
+ 1
Š¼Š¾Š¶Š½Š¾ ŠæŠ¾ руссŠŗŠø RU aleksgoriunov
28th Mar 2019, 4:20 AM
Aleksandr