what is the time unit for Web Audio API 'noteOn()' -


i trying use web audio api 'noteon(time)' play sound, not sure time unit is.

is in millisecond? or in second?

it's seconds.

the time relative audio context's currenttime, can accessed so:

var context = new audiocontext();  //....  note.noteon(context.currenttime); //will play  //....  note.noteon(context.currenttime + 1); //will play in 1 second 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -