MusE Sequencer: Code for enum MIDI devices during startup

Programming applications for making music on Linux.

Moderators: MattKingUSA, khz

Post Reply
User avatar
GraysonPeddie
Established Member
Posts: 659
Joined: Sun Feb 12, 2012 11:12 pm
Location: Altha, FL
Been thanked: 6 times
Contact:

MusE Sequencer: Code for enum MIDI devices during startup

Post by GraysonPeddie »

Which source code and function does MusE calls when it enumerates all MIDI connections available during startup? I'm not sure if MusE sequencer calls initMidiPorts() during initialization if there are already JACK clients with MIDI ports shown up in jack_lsp like so...

Code: Select all

grayson@htpc:~/src/muse/muse2/muse$ jack_lsp 
system:capture_1
system:capture_2
system:playback_1
system:playback_2
...
jack2alsa:playback_5
jack2alsa:playback_6
alsa2jack:capture_1
alsa2jack:capture_2
Carla:15 Violins Legato.sfz:out-left
Carla:15 Violins Legato.sfz:out-right
Carla:15 Violins Legato.sfz:events-in
So when I start MUSE sequencer...

Code: Select all

grayson@htpc:~/src/muse/muse2/muse$ jack_lsp 
...
...
Carla:15 Violins Legato.sfz:out-left
Carla:15 Violins Legato.sfz:out-right
Carla:15 Violins Legato.sfz:events-in
MusE:Carla:15 Violins Legato.sfz:events-in_out
MusE:Out 1-0
MusE:Out 1-1
MusE enumerated and automatically added Carla:15 Violins Legato.sfz:events-in (I've added an sfz instrument in Carla, such as a violin) to the list of MIDI ports which I want to comment out but I'm unsure of which source code to modify. The workaround is to close all the JACK clients including removing all the instruments in Carla which I want to keep it open. The source code for midiport.cpp and mididev.cpp is not well documented. For example, what calls initMidiPorts()?
--Grayson Peddie

Music Interest: New Age w/ a mix of modern smooth jazz, light techno/trance & downtempo -- something Epcot Future World/Tomorrowland-flavored.
Post Reply