Utility functions for handling MIDI data.
CureMIDI.jl depends on PortAduio.jl. PortAudio.jl need install by below steps in Pkg REPL-mode.
add PortAudio#julia1
add RingBuffers#master
build RingBuffers
build PortAudio
CureMIDI.jl depends on FluidSynth.jl FluidSynth.jl don't regisered in METADATA. Please install it manually.
add https://github.com/yukota/FluidSynth.jl
In Pkg REPL-mode.
add https://github.com/yukota/CureMIDI.jl.git
PortAudio can sound SampleBuf type. To sound MIDI, CureMIDI convert MIDI to SampleBuf.
track = MIDI.MIDITrack()
tpq = Int16(960)
bpm = 60
sample_rate = 44100
sampled_buf = synth(track, tpq, bpm, sample_rate, "violin_sample.sf2")
documentation page: https://yukota.github.io/CureMIDI.jl/dev/