helge17 / tuxguitar

Improve TuxGuitar and provide builds
Other
303 stars 29 forks source link

Jack sequencer seems to be broken on Fedora 38 #401

Open ycollet opened 1 month ago

ycollet commented 1 month ago

I use tuxguitar 1.6.2 on Fedora 38 with pipewire-jack. pipewire-jack is version 1.0.3. I selected "jack sequencer" and a fluidsynth output on tuxguitar. When I played a score, the sound is quite strange.

ycollet commented 1 month ago

The "realtime sequencer" and the "tuxguitar sequencer" work fine.

guiv42 commented 1 month ago

Trying to reproduce in my environment (openSuse, TuxGuitar 1.6.2 installed from distro's repo): with all plugins enabled, if I set MIDI Sequencer to "Jack sequencer" I don't have any fluidsynth option available in MIDI port drop-down list

ycollet commented 1 month ago

I remember that on some distro, the fluidsynth plugin was in a tuxguitar-fluildsynth package ... Is this the case for you ?

guiv42 commented 1 month ago

no, there's only one tuxguitar-related package in openSuse repository, the one I have packaged ;)

ycollet commented 1 month ago

I added a custom sf2 sound font in the fluidsynth plugin. https://musical-artifacts.com/artifacts/362 -> Xiaod Bank Soundfont Maybe you don't see the fluidsynth entry because no default soundfont are provided

guiv42 commented 1 month ago

Maybe you don't see the fluidsynth entry because no default soundfont are provided

Yes, that's right, thanks. Now if I want to test/reproduce, I need to setup a Jack configuration. I've never done that, and I don't know Jack at all. Not much time available these days, so unless someone else can investigate, this issue will require time.

helge17 commented 4 weeks ago

I tested TuxGuitar 1.6.3beta2 with Jack2 (not Pipewire-Jack!) and FluidSynth on my Debian 12.5 system and it works:

Start TuxGuitar with default settings

Go to Tools -> Plugins, activate Jack & FluidSynth: [x] Jack Audio Connection Kit plugin support [x] FluidSynth output plugin Configure Plugin: Audio -> Audio Driver: jack Keep default settings for the rest (Soundfont: ${tuxguitar.home.path}/share/soundfont/MagicSFver2.sf2 - may be different in the official RPM/DEB packages) OK -> Close

Go to Tools -> Settings -> Sound: MIDI Sequencer: Jack Sequencer MIDI Port: TG Fluidsynth [MagicSFver2] OK

TuxGuitar starts Jack in background, in my case ps shows the following process: /usr/bin/jackd -T -ndefault -T -d alsa

Open file & play: Player starts, but no sound is coming out of the loudspeakers.

Start QjackCtl

Click on the Graph button, then in the Graph window:

The TuxGuitar sound now comes out of the speakers loud and clear. You can also control the TuxGuitar playback with the player controls in QjackCtl.

Currently I am not able to test this with Pipewire-Jack, as switching my system to Pipewire would require too many changes and I already had problems with Pipewire in the past.

ycollet commented 3 weeks ago

Thanks a lot for this complete test. I will redo the test on my side once 1.6.3 will be released. In the mean time, all the other sequencers are working fine :)

guiv42 commented 3 weeks ago

@ycollet : when you say Jack sequencer is broken, does it mean it was working correctly in your environment before 1.6.2? If so, does it seem realistic for you to git bisect this issue, to identify which commit introduced this? Unfortunately I cannot do it myself as I don't have an appropriate environment available to reproduce.