Play Music Notes with Javascript

Viewed 3776

I am developing a little free software project which is basically a music keyboard and score sheet editor.

My first step in this project is to play note and or conceive notes itself. I use timbre, which is a few documented http://mohayonao.github.io/timbre.js . My first function is to transform for example "C4" (do4 en français) in a audio sound from sine function.

But what I can't do for now is to play and stop notes. Play works for begin the sine wave but when I play a second note, the first note doesn't disappear so I got 2 sine and then 3

My script https://gitlab.com/mdahmen/Laterreestron.de/blob/master/pagesandapps/partgenie/js/lecture.js

http://mohayonao.github.io/timbre.js

The test page: http://laterreestron.de/pagesandapps/partgenie/index.php

1 Answers
Related