[Jack Transport Master] Some fixes and new button

MusE is a MIDI/Audio sequencer with recording and editing capabilities, aiming to be a complete multitrack virtual studio for Linux. https://muse-sequencer.org/

Moderators: MattKingUSA, khz, spamatica

Post Reply
Tim E. Real
Established Member
Posts: 365
Joined: Sat Sep 15, 2012 12:36 am

[Jack Transport Master] Some fixes and new button

Post by Tim E. Real »

In git master now.

Hi all. Just a note about this fix.
Hopefully the new button, which looks like a red triangle with a key (master, get it?), is self explanatory,
there are tooltips, but here goes:
transport master 1.jpeg
(Yeah I know, the icon(s) may need some tweaking.)

First, MusE was not assuming the role of transport master at startup. This is fixed, conditionally:

If the button is On or Off when you close, that's the default 'global' setting the next time MusE is started.
Then, if you load a song or start with one on the command line or via Settings, the setting of the button
in the song takes over the global setting. Note that, as per the above statement, this also becomes the
default global setting when you close. (One of the caveats... I mean features... of MusE's funky global vs. song settings.)

Here's the neat part: I managed to fit the required functionality on one button.
There is a third state: Flashing
If the button is flashing, it means another Jack client is transport master, and MusE is 'politely' waiting
to become master as soon as the other client gives it up (releases it).
When the button is flashing, click it to force MusE to become the transport master.

You can test the button by running two instances of MusE (under Jack) and opening their respective Transport Panels.
Play with the buttons, and watch how they compete for transport master. Off - Flash - On.

Lemme know if any trouble.
If that button goes out or flashes unexpectedly - if no other client 'stole' master from you - please report it.
Timing and detection of transport master was tricky, so I would not be surprised at some possible... adjustments?

Cheers.
Tim.
You do not have the required permissions to view the files attached to this post.

User avatar
oscillator
Established Member
Posts: 189
Joined: Sat Jan 17, 2015 6:07 pm

Re: [Jack Transport Master] Some fixes and new button

Post by oscillator »

Cool! Tested it with two instances.
MusE DAW running on Debian 10 Stable/XFCE4.
https://oscillator.se/musik

Tim E. Real
Established Member
Posts: 365
Joined: Sat Sep 15, 2012 12:36 am

Re: [Jack Transport Master] Some fixes and new button

Post by Tim E. Real »

Thanks.
The icons have changed.
Also, there was a gross misnomer throughout:
It should be called "timebase master" not "transport master". My bad.

Post Reply