Web-Multi-Media / multi-web-audio-sequencer

Web collaborative step sequencer
https://labs.freesound.org/sequencer
GNU General Public License v3.0
10 stars 2 forks source link

Add new tracks #4

Closed valou5940 closed 6 years ago

valou5940 commented 6 years ago
  1. Add a "new track" button in index.ejs and an input with the name of the track
  2. In app.js, add a function triggered when click on "new track" which inserts after the last track the same HTML code than the previous track. Issues => the state must be null In the future it could be interesting to have the choice where the user wants to put the track, or implements a drag n drop
  3. We'll have to slightly change toggleSelectedListener() and toggleSelectedListenerSocket() to be dynamic !
xavierfav commented 6 years ago

It is now possible to add new tracks. Moreover, we can search sound from Freesound, and load them in a track.

However, there is one bug with the actual code. It is possible to add tracks that have the same name as another one, making the sequencer to behave in a strange manner. We have to avoid adding tracks with the same name of another already created.