[Jack Transport Master] Some fixes and new button

MusE is a DAW for Linux with both MIDI and Audio editing. https://muse-sequencer.github.io

Moderators: MattKingUSA, khz, spamatica

Post Reply
Tim E. Real
Established Member
Posts: 660
Joined: Sat Sep 15, 2012 12:36 am
Has thanked: 36 times
Been thanked: 105 times

[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
transport master 1.jpeg (13.6 KiB) Viewed 496 times
(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.
User avatar
oscillator
Established Member
Posts: 1127
Joined: Sat Jan 17, 2015 6:07 pm
Location: SWEDEN
Has thanked: 725 times
Been thanked: 296 times
Contact:

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

Post by oscillator »

Cool! Tested it with two instances.

MusE DAW running on Debian 11 Testing/XFCE4.
https://oscillator.se/musik

Tim E. Real
Established Member
Posts: 660
Joined: Sat Sep 15, 2012 12:36 am
Has thanked: 36 times
Been thanked: 105 times

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