On Sunday, December 18, 2016 7:49:50 PM EST Dan MacDonald wrote:
> Good work Tim!
>
> I presume this should lay a good foundation for getting MusE to work under
> the BSDs?
Step 1, in git master now:
* Eliminated midi sequencer thread when ALSA midi driver is not enabled:
When 'ALSA' button is not clicked in midi config dialog, MusE is
running PURE Jack, ie no sequencer thread (midiSeq), and no timer.
Pure Jack.
That's a huge step, by the way.
I mean, no ALSA sequencer thread? No ALSA timer?
Wow, like, fifteen years and it's now relegated as optional...
If you want, go ahead and try Step 1, I broke it into two steps
so each could be tested. But hopefully soon it'll be done anyway.
For my next trick, Step 2... Configuration optional...
T.
>
> I noticed Ardour has had some BSD-related tweaks recently.
>
> On Sat, Dec 17, 2016 at 6:03 PM, termtech <[email protected]> wrote:
> > On Saturday, December 17, 2016 9:06:54 AM EST asbaklm wrote:
> > > Hi there Tim, thanks so much for the rtc re-write and the many updates
> >
> > from
> >
> > > the team which are mentioned in the changelog. Muse3 is coming along
> > > nicely.
> >
> > Just to mention that with these hi-res timer fixes, it should no longer
> >
> > be necessary to compile kernel with special timer settings,
> > or poke weird command-line values into changing dev/rtc
> > sys locations, or do anything as root, etc etc. It just works now. Yay.
> >
> > I get these same results with a STOCK KUbuntu distro :-)
> >
> >
> > FYI: Why does MusE need a timer? For ALSA midi support.
> > MusE uses a timer, either ALSA or the RTC, to queue ALSA
> >
> > playback or record events. We use ALSA's 'direct' methods
> > rather than its queuing system.
> >
> > Good ol' MusE's midi sequencing had been so intertwined with
> >
> > this timing system, that it was hard to remove or bypass.
> >
> > Even with Jack Midi support, we still needed the timer not just for
> >
> > ALSA support but also some deeply entwined commands and so on.
> >
> > Recent advances occurred: Our ALSA midi driver can now be stopped and
> >
> > started at will (see midi config settings the 'ALSA' button).
> >
> > Yet when stopped, the timer still runs and is needed for a few other
> > things.
> >
> > So I will, once and for all, attempt to finish up. The moment seems right,
> >
> > I'm in there now, sort of half-done. We have been planning this for a
> >
> > while.
> > It's not easy, there were pitfalls, hopefully it won't be long.
> >
> > Goal: ALSA will be build-configuration OPTIONAL. When Jack alone is
> > running,
> >
> > no timer will be needed or running (at least not for ALSA midi support).
> >
> > Trivia: Werner's original Qt4 + Jack Midi based MusE-2 (muse_qt4_evolution
> >
> > in our git attic) had no ALSA midi support.
> >
> > T.
> >
> > > So the results on my Lenovo T430 laptop from latest git build:
> > > (I don't use drumgizmo so don't know whether or not this would have
> >
> > caused
> >
> > > issues.)
> > >
> > > >muse3 -apNI2L
> > > >Config File </home/user/.config/MusE/MusE.cfg>
> > > >LOCALE en_GB
> > > >Denormal protection enabled.
> > > >string2sysex: Cannot convert string to sysex r ct bn bt f7
> > > >Trying ALSA timer...
> > > >AlsaTimer::initTimer(): best available ALSA timer: HR timer
> > > >got timer = 84
> > > >Aquired timer frequency: 1000000000
> > > >INFO: Requested timer frequency:2048 actual:2048
> > > >starting with template /usr/local/share/muse-3.0/templates/default.med
> > > >INFO: Requested timer frequency:2048 actual:2048
> > >
> > > For experimental purposes I also entered the timer frequency as you
> > > suggested and low and behold, get the crazy number
> > >
> > > >INFO: Requested timer frequency:32768 actual:32768
> > >
> > > That's a bit more than I think I'll need, hahaha.
> > >
> > > Thanks again for this awesome project. =)
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Lmuse-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmuse-developer