Igevorse Otonnoleare

Category: Open-source · Feed


MuseScore: Automatic control over JACK/ALSA MIDI Out ports

Eventually I've implemented automatic control over JACK/ALSA MIDI Out ports (see PR 1171).

This feature allows MuseScore to determine how many JACK MIDI and ALSA MIDI ports it should have and automatically add/remove ports when needed.

I used "lazy" approach to prevent flooding to JACK/ALSA with a lot of API calls: we add new ports only if we really need to do it (e.g. when opening a score with a lot of staves OR when adding a new instrument).

Example: If we have several scores opened with 1, 3 and 2 midi ports, we'll have 3 midi out ports even if we switch between scores (would not change from 1 to 3 and 2).

Recomputing number of midi ports is also optimized: we don't need to do an extra loop every second/tick/etc.

I started implementing this feature while participating GSoC 2014. I also wrote about this feature in my previous posts.

· Retweet Retweet! · Share Share · Comments (0) ·
Style `onWall HashCode` by Lited & Sayori
Get your own blog immediately for free with Lited!