Implementing a MIDI Player in Kotlin
May 04, 2023
44 min
Free
kotlin
audio-programming
midi-sequencer
open-sound-control
kotlin-scripting
event-processing
real-time-audio
midi
jvm
coroutines
live-coding
api-design
Description
In this talk, Piotr Jagielski demonstrates a step-by-step implementation of a MIDI player in Kotlin, leveraging coroutines and the JVM standard library. The presentation covers reading MIDI files, understanding the structure of MIDI events, representing melodies, and playing them using Kotlin coroutines. It also touches upon advanced topics like playing external synths, tempo control, the Open Sound Control protocol, beat playback, loop mixing, and concludes with a live-coding performance using the "Punkt" music library.