Zulko / pianoputer

Use your computer keyboard as a "piano".
http://zulko.github.io/blog/2014/03/29/soundstretching-and-pitch-shifting-in-python/
Other
324 stars 92 forks source link

Add Midi Support #32

Open zyugyzarc opened 6 months ago

zyugyzarc commented 6 months ago

Turns pianoputer into a midi-output device, using mido.

The --midi flag enables/disables midi usage (audio output is turned off when using midi), and allows a midi port (or virtual midi device) to be specified. Uses a fixed note velocity of 100.

For mismatched midi-key-numbers, an optional MIDI_KEY_OFFSET environment variable is available (default: 37 works for the default keyboard layout), and mido settings can be configured through environment variables (see Mido - Environment Variables)

also fixes #31.