Skip to content

polyrainbow/miconau

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Miconau (MIDI controlled audio player)

A audio player that is controlled via MIDI note-on events. On startup, the application will scan your audio library and assign every album to a white key on the keyboard. You can control the audio with the black keys. Uses mpv under the hood which can play a lot of audio file and stream formats.

Usage

Make sure mpv is installed and in PATH. Windows is not supported. Make sure, error.wav is in the same folder as the executable miconau.

cargo run --bin miconau -- --library-folder [PATH_TO_LIBRARY] --midi-device-index [MIDI_INPUT_DEVICE_INDEX] --start-octave [START_OCTAVE] --output-device [AUDIO_OUTPUT_DEVICE]

Example:

cargo run --bin miconau -- --library-folder /mnt/usb1/Music --midi-device-index 1 --start-octave 4 --output-device alsa/plughw:CARD=Audio,DEV=0

Add a streams.txt file in the library folder with a line-separated list of stream urls. These streams are then assigned to the lowest white keys.

List available audio devices

Use mpv to list available audio devices:

mpv --audio-device=help

Key bindings

Key bindings

  • All white keys starting from note C in start-octave: play stream 1-n or playlist 1-n
  • D#: Stop
  • F#: Previous track in playlist
  • G#: Play/pause
  • A#: Next track in playlist