Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

linux: list midiports to stdout + check for default port using MIDI_IN env-var#289

Closed
coderofsalvation wants to merge 1 commit intomilkytracker:masterfrom
coderofsalvation:feat/linux-midi-specify-port
Closed

linux: list midiports to stdout + check for default port using MIDI_IN env-var#289
coderofsalvation wants to merge 1 commit intomilkytracker:masterfrom
coderofsalvation:feat/linux-midi-specify-port

Conversation

@coderofsalvation
Copy link
Contributor

@coderofsalvation coderofsalvation commented Aug 31, 2022

Linux midi-input was hardcoded to midiport 0 (which is a virtual thru-device on most *NIX systems).
This still requires other software to setup midi-routing (aconnectgui, carla etc).
This is no longer needed since this PR will:

  • list all available midiports
  • optionally directly connect to a particular port using MIDI_IN=x environment variable.

Ideally this would be done thru gui-popups but that's significantly more code to implement/maintain.

$ export MIDI_IN=1
$ ./milkytracker                                                                                                                                          
SDL: Using audio driver: pulseaudio                                                          
SDL: Buffer size = 128 samples (requested 128) 
MIDI: scanning input ports:                                                                  
MIDI:  0. Midi Through:Midi Through Port-0 14:0                                                                                                                                           
MIDI:  1. electribe2 sampler:electribe2 sampler electribe2 s 20:0                            
MIDI: selecting MIDI-in port: 1                                                                                                                                                           
MIDI: run `MIDI_IN=x ./milkytracker` to select different port)   

@coderofsalvation coderofsalvation force-pushed the feat/linux-midi-specify-port branch from 6e47675 to 30de1f8 Compare August 31, 2022 13:38
@coderofsalvation coderofsalvation changed the title linux: list ports to stdout + check for default port using MIDI_IN env-var linux: list midiports to stdout + check for default port using MIDI_IN env-var Aug 31, 2022
@coderofsalvation coderofsalvation mentioned this pull request Jul 5, 2023
@coderofsalvation
Copy link
Contributor Author

thx! merged in v1.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant