简体   繁体   中英

Web audio synthesis API?

Is there a web audio API for generating sounds with something like General MIDI synthesis? I just need simple clicks or pitches. The only web audio documentation I can find is for playback of embedded mp3/wav files, which I don't think is an ideal approach for what I want to do.

You might find Tone.js helpful

On Github here: https://github.com/TONEnoTONE/Tone.js

also checkout this gist on javascript audio synthesis. Make sure to click the link to codepen and read the article article accompanying it.

There is an API for that, but it's not supported on all browsers ( support table ). It's called Web Audio API, here's a link to samples from MDN: Web Audio

In Web Audio API you have the Oscillator Node to create your own sounds as a synth.

Here you have a very good introduction:

http://blog.chrislowis.co.uk/2013/06/05/playing-notes-web-audio-api.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM