coremidi-dls-synth

command
v0.6.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

coremidi-dls-synth

Polyphonic General MIDI synthesizer built with pure-Go CoreMIDI and AVFAudio (AVAudioEngine, AVAudioUnitSampler, AVAudioUnitReverb) using macOS's built-in gs_instruments.dls SoundBank.

Usage

# Play a short 4-chord progression (Cmaj7 -> Am7 -> Fmaj7 -> G7)
go run ./examples/coremidi/coremidi-dls-synth

# Choose a General MIDI instrument (e.g. 4 = Electric Piano, 48 = Strings) and reverb mix
go run ./examples/coremidi/coremidi-dls-synth -program 4 -reverb 45

# Expose a virtual CoreMIDI destination ("coremidi-dls-synth") for DAWs or controllers
go run ./examples/coremidi/coremidi-dls-synth -listen

# Render offline (headless, no audio device required) and print peak/RMS stats
go run ./examples/coremidi/coremidi-dls-synth -offline
go run ./examples/coremidi/coremidi-dls-synth -offline -out /tmp/chords.wav

Notes

  • Zero CGo, zero TCC permissions required.
  • Loads /System/Library/Components/CoreAudio.component/Contents/Resources/gs_instruments.dls directly.

Documentation

Rendered for darwin/amd64

Overview

Command coremidi-dls-synth is a polyphonic General MIDI synthesizer backed by CoreMIDI and AVFAudio (AVAudioUnitSampler + AVAudioUnitReverb) using macOS's built-in gs_instruments.dls SoundBank.

Usage: coremidi-dls-synth [-program 0] [-reverb 35] [-listen] [-offline [-out file.wav]]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL