grimmdude / MidiWriterJS

♬ A JavaScript library which provides an API for programmatically generating and creating expressive multi-track MIDI files and JSON.
MIT License
547 stars 58 forks source link

feature request : staccato/legato #135

Open rubberplayer opened 1 month ago

rubberplayer commented 1 month ago

Hi

It would be nice to have a way to be able to make staccato by specifying staccato (or legato) property passed in the NoteEvent constructor, maybe with a 0..100 value for instance. The default still would be legato.

This would not change the total tick duration of the NoteEvent event , but would just make midi note off happen sooner.

What do you think of it ?