Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Evidently I need to run Jack Control in combination with Qsynth to play my midi keyboard. That was ok for about a week or so, then Jack developed a problem. This was solved the first time by me unticking the Realtime box in Jack setup, but that has not worked this time.
Must I rely on Jack just to have my midi keyboard sound?
The errors mssges I recieve are:
Could not connect to JACK server as client.
- Overall operation failed.
- Unable to connect to server.
Please check the messages window for more info.
and;
12:45:12.427 Patchbay deactivated.
12:45:12.480 Statistics reset.
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
12:45:12.533 ALSA connection graph change.
12:45:12.971 ALSA connection change.
12:45:44.736 Startup script...
12:45:44.737 artsshell -q terminate
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
sh: artsshell: not found
12:45:45.142 Startup script terminated with exit status=32512.
12:45:45.142 JACK is starting...
12:45:45.142 /usr/bin/jackd -r -dalsa -dhw:0 -r44100 -p1024 -n2 -Xseq
12:45:45.153 JACK was started with PID=2008.
Cannot create thread 1 Operation not permitted
Cannot create thread 1 Operation not permitted
jackdmp 1.9.6
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2010 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in non-realtime mode
Cannot lock down memory area (Cannot allocate memory)
audio_reservation_init
Acquire audio card Audio0
creating alsa driver ... hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit
Using ALSA driver USB-Audio running on card 0 - Alesis Q25 at usb-0000:00:02.0-3, full speed
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Cannot initialize driver
JackServer::Open() failed with -1
Failed to start server
12:45:45.364 JACK was stopped with exit status=255.
12:45:45.364 Post-shutdown script...
12:45:45.364 killall jackd
jackd: no process found
12:45:45.771 Post-shutdown script terminated with exit status=256.
12:45:47.294 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
12:45:55.100 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Hi, some how the devs have decided that if you want to do anything musical, you have to install all and sundry.
You only need jackd (qjackctl, the gui) if you want a sequencer.
That is midi operation and control of multiple devices.
I also find jack to be flaky and dependent on other system files I know nothing about.
Using a master keyboard midi controller to play synth soundfonts, you won't need realtime capabilities. midi runs at 1200Hz, you won't benefit unless you're trying to record and playback at once (monitoring in realtime).
Quote:
fluidsynth - Realtime, SoundFont-based synthesizer
FluidSynth is a real-time software synthesizer based on the SoundFont 2 specifications. It is a "software synthesizer". FluidSynth can read MIDI events from the MIDI input device and render them to the audio device. It can also play MIDI files.
Thanks for your Help GlennsPref. I'm afraid I need more pedantic advice just to get my middi keyboard to sound like a piano!
I've installed fluidsynth and can open a gui, Qsynth (fluidsynth Qt) This has worked in more tempremental arangements with the Jack control app. But I dont know how to achieve my objective now.
d-GeForce6100PM-M2:~$ lsusb
Bus 002 Device 003: ID 05e3:1205 Genesys Logic, Inc. Afilias Optical Mouse H3003
Bus 002 Device 002: ID 13b2:0065
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash Flash Drive
Bus 001 Device 002: ID 041e:4083 Creative Technology, Ltd Live! Cam Socialize [VF0640]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
nnjond@nnjond-GeForce6100PM-M2:~$
Well I don't have a Midi Keyboard as such, I just use this keyboard (PC).
Mind you I don't play with it much, just write the lines I need then move on to the next task.
Mostly just bass and drums.
If you must use jack, then open up the parameters a bit (increasing the latency time)
and yes, there's no point ticking the realtime option if you are not running a RT kernel.
Another approach is giving your music programs elevated nice levels and priorities.
/etc/set_rlimits
Code:
# Configuration file for set_rlimits. Format is:
#
# name program max_nice_priority max_realtime_priority
# or
# name program <key>=<value> ...
#
# name is expected to be a username, a groupname if preceeded by a @ sign,
# or ALL (which matches all users). Negative priorities effectively
# disallow any setting of the respective priority for the matching entry.
# <key> can be rtprio, nice or memlock.
# Example entry:
#
# mark /usr/local/bin/jackd -1 80
#
# Here, user mark can execute /usr/local/bin/jackd using set_rlimits to set
# a realtime priority up to and including 80, but setting of a nice priority
# through set_rlimits is disallowed. Alternatively, if an `audio' group
# existed, the entry
#
# @audio /usr/local/bin/jackd -1 80
#
# would allow the same except the permission would extend to all members of
# the `audio' group. The same effect could be achieved with the key/value
# syntax:
#
# @audio /usr/local/bin/jackd nice=-1 rtprio=80
#
# For more details on the format and use of this file please refer to
# the set_rlimits manual page.
@audio /usr/bin/jackd nice=-1 rtprio=80 memlock=100000
#@audio /usr/bin/qjackctl nice=-1 rtprio=79 memlock=100000
@audio /usr/bin/ardour nice=-1 rtprio=78 memlock=400000
#@audio / =-1 rtprio= memlock=
@audio /usr/bin/hydrogen nice=-1 rtprio=76 memlock=100000
@audio /usr/bin/rosegarden nice=-1 rtprio=75 memlock=100000
@audio /usr/bin/vkeydb nice=-1 rtprio=74 memlock=100000
@audio /usr/bin/qsynth nice=-1 rtprio=73 memlock=100000
save me typing, you can find out more about these tools on my blog, realtime audio here at LQ.
There's a lot there you won't need, but it has some links to tools I used for checking my system.
Thanks again. That problem has righted itself and I can now use Qsynth without the Jack app. However, bizarely, I can't get the suitable patch ie, grand piano. All I can load are annoying gimmick y sounds!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.