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

Midi arrangement help #101

Closed gilesbutler closed 1 year ago

gilesbutler commented 1 year ago

Hi there,

Awesome library and thanks so much for you work.

I'm trying to create a structure like the one below but getting stuck and not sure if it's possible?

I'd like to create either empty midi blocks or it's ok if they have one long note in for the length of the block. And the ability to add space before and after the blocks of midi.

Is this possible?

Thanks

CleanShot 2022-11-07 at 20 01 26@2x
grimmdude commented 1 year ago

Hi @gilesbutler,

I'm not sure if I understand your question fully, but each midi file created by this library will create one continuous block of MIDI per track.

grimmdude commented 1 year ago

Closing this for now @gilesbutler, but let me know if I can help any further.

gilesbutler commented 1 year ago

Thanks for the response @grimmdude 👍 After digging a bit further I think it’s actually a limitation of midi itself, I don’t think the midi spec has the notion of clips. I arrived at the same outcome as your comment that you have to have one continuous block of midi per track. I assume it’s the DAWs that program in support for “midi clips”.