Skip to content

bborbe/sample_midi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample MIDI

Sample MIDI project demonstrating MIDI operations in Go.

Features

  • Send MIDI messages in real-time to MIDI output ports
  • Generate MIDI files (.mid format) with custom melodies
  • Play MIDI files by sending them to MIDI output ports

Prerequisites

macOS: Enable IAC Driver

  1. Open Audio MIDI Setup
  2. Window → Show MIDI Studio
  3. Double-click IAC Driver icon
  4. Check "Device is online"
  5. Create a port named "GoMIDI"

Usage

Send MIDI Messages

cd cmd/send_midi
make run

Options:

  • --port: MIDI port name (default: "IAC Driver GoMIDI")

Generate MIDI File

cd cmd/generate_midi_file
make run

Options:

  • --output: Output file path (default: "output.mid")

Send MIDI File

cd cmd/send_midi_file
make run --input output.mid

Options:

  • --port: MIDI port name (default: "IAC Driver GoMIDI")
  • --input: Input MIDI file path (required)

Development

make precommit  # Run all checks
make test       # Run tests
make format     # Format code

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors