Search found 4 matches

by davidlav
Wed Oct 12, 2016 8:07 pm
Forum: jazz-midi
Topic: Playing base64 strings in Node to external devices
Replies: 7
Views: 6323

Re: Playing base64 strings in Node to external devices

I'm happy to say I solved my problem! Luckily the writer of the excellent MidiWriterJS library also wrote a MidiPlayerJS library which "plays back" base64 strings and fires off JSON events as it "plays" each MIDI event. I just listened for the events and mapped Note-on's and Note-off's to JZZ's port...
by davidlav
Wed Oct 12, 2016 8:24 am
Forum: jazz-midi
Topic: Playing base64 strings in Node to external devices
Replies: 7
Views: 6323

Re: Playing base64 strings in Node to external devices

What I'd like to be able to do is dynamically generate 4 or 8 bar long "segments" of MIDI data using the MidiWriterJS package ( https://github.com/grimmdude/MidiWriterJS ) and be able to string those "blocks" of MIDI into a piece of continuous, procedurally generated music by queuing them up and let...
by davidlav
Tue Oct 11, 2016 6:49 pm
Forum: jazz-midi
Topic: Playing base64 strings in Node to external devices
Replies: 7
Views: 6323

Re: Playing base64 strings in Node to external devices

So if JZZ.Midi.js and JZZ.MidiFile.js are deprecated, how do I use JZZ.js to convert a base64 string into something that can be played? I've been looking at the documentation page for JZZ.js and I don't see anything equivalent to the fromBase64() method. For example, how could you rewrite the Play M...
by davidlav
Tue Oct 11, 2016 4:02 pm
Forum: jazz-midi
Topic: Playing base64 strings in Node to external devices
Replies: 7
Views: 6323

Playing base64 strings in Node to external devices

Hi, I'm working on a project to procedurally generate music live in Node. The goal is to continually assemble MIDI data as base64 strings (with something like MidiWriterJS, https://github.com/grimmdude/MidiWriterJS ) that I can then feed to something like jazz-midi's MidiOutRaw() function to be play...