ensemblesaw / ensembles-app

A digital arranger workstation powered by FluidSynth
323 stars 9 forks source link

How to use with Jack? #70

Open nicolalandro opened 2 years ago

nicolalandro commented 2 years ago

I correctly compile it on my opensuse Tumbleweed, but I'm seeing Alsa or PlusAudio I cannot chouse Jack, what can I do to use Ensembles with Jack?

SubhadeepJasu commented 2 years ago

If you have compiled it from source and you have jackd installed, then it should show up. Can you run it from the terminal and tell me what shows up. There's most likely a bug.

nicolalandro commented 2 years ago

Yes I compiled It from source, and I have jackd, I use Jack abituali with LMMS and Reaper.

If I run by command line I see the following

suil error: Failed to open module /usr/lib64/suil-0/libsuil_x11.so (/usr/lib64/suil-0/libsuil_x11.so: cannot open shared object file: No such file or directory)
Alsa detected!
PulseAudio detected!
no message buffer overruns
no message buffer overruns
no message buffer overruns

Usage: jackdmp [ --no-realtime OR -r ]
               [ --realtime OR -R [ --realtime-priority OR -P priority ] ]
      (the two previous arguments are mutually exclusive. The default is --realtime)
               [ --name OR -n server-name ]
               [ --timeout OR -t client-timeout-in-msecs ]
               [ --loopback OR -L loopback-port-number ]
               [ --port-max OR -p maximum-number-of-ports]
               [ --slave-backend OR -X slave-backend-name ]
               [ --internal-client OR -I internal-client-name ]
               [ --internal-session-file OR -C internal-session-file ]
               [ --verbose OR -v ]
               [ --clocksource OR -c [ h(pet) | s(ystem) ]
               [ --autoconnect OR -a <modechar>]
                 where <modechar> is one of:
                   ' ' - Don't restrict self connect requests (default)
                   'E' - Fail self connect requests to external ports only
                   'e' - Ignore self connect requests to external ports only
                   'A' - Fail all self connect requests
                   'a' - Ignore all self connect requests
               [ --replace-registry ]
               [ --silent OR -s ]
               [ --sync OR -S ]
               [ --temporary OR -T ]
               [ --version OR -V ]
         -d master-backend-name [ ... master-backend args ... ]
       jackdmp -d master-backend-name --help
             to display options for each master backend

fluidsynth: Using PulseAudio driver
Connecting
Connected

** (com.github.subhadeepjasu.ensembles:2543): WARNING **: 14:32:44.532: MediaKeyListener.vala:42: Could not grab media player keys: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SettingsDaemon was not provided by any .service files
fluidsynth: Using PulseAudio driver
ts: 4
ts: 4
ts: 8
ts: 4
Voice: 0, Channel: 17
Voice: 49, Channel: 18
Voice: 33, Channel: 19
chan...to /usr/share/com.github.subhadeepjasu.ensembles/StyleFiles/Ball_Room@French_Waltz.enstl
changing...to /usr/share/com.github.subhadeepjasu.ensembles/StyleFiles/Ball_Room@French_Waltz.enstl
Making player
e:
f:
90 >>>>
g:
h
ts: 4
nicolalandro commented 2 years ago

I just solved the sutil error by sudo zypper in suil-plugin-x11 but jack is not detected.

SubhadeepJasu commented 2 years ago

I'll have to figure out a better way to detect jack.

nicolalandro commented 2 years ago

Ok, If you add there also the wip branch I can beta test It if you need.

Thank you!

SubhadeepJasu commented 2 years ago

Sure. I am gonna do it now.

SubhadeepJasu commented 2 years ago

@nicolalandro Can you tell me what the output of jackdmp -V is?

nicolalandro commented 2 years ago

I have jackd but not jackdmp, maybe is that the problem? I'm searching how to install it

SubhadeepJasu commented 2 years ago

Your output mentions jackdmp :confused:, which mean may be you have jackdmp installed. Currently the app only detects jackd. But if jackdmp works for you, we can check if the app can work with that too.

nicolalandro commented 2 years ago

but if I run jackdmp -V I reached "command not found", I'm wandering about that on the web for OpenSuse But I do not find nothing about

SubhadeepJasu commented 2 years ago

@nicolalandro Can you pull from the style_debugging branch and see if it works now?

nicolalandro commented 2 years ago

as before, but now after closing I also have a GTK error:

(com.github.subhadeepjasu.ensembles:16688): Gtk-CRITICAL **: 16:04:06.548: gtk_main_quit: assertion 'main_loops != NULL' failed

Jack is not detected. I do not find any package that have jackdmp, how can I install it?

SubhadeepJasu commented 2 years ago

Final approach. Remove detection of Jack and enable it by default for native builds.

(Ignore that gtk warning, it's all going to change when I move to gtk4 anyway)

SubhadeepJasu commented 2 years ago

Check now. Jack should be shown by default now.

Enable jack, exit app. Start Jack server, and then launch app again.

nicolalandro commented 2 years ago

It is normal that I do not see it on Jack? I will try to get a more deep test tomorrow, Thank you! I will let you Know! immagine

SubhadeepJasu commented 2 years ago

Its normal if you just changed it. Usually you will have to restart the app while jack server is running. The changes are applied when the app starts up next time.

SubhadeepJasu commented 2 years ago

Screenshot from 2022-02-26 10-36-51

It connects on mine :confused:

nicolalandro commented 2 years ago

For now it do not works with jack, but maybe it will works with jack-example-tools? Maybe quickly it will arrive on opensuse and I will test it.

luzpaz commented 10 months ago

Any update?

SubhadeepJasu commented 10 months ago

Jack works with a native build in my case. I am working on a beta version of Ensembles (basically restarted). I'll soon make test releases available. This jack issue is a head scratcher. I'll add some more debug options to see what's going on.