LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-06-2017, 11:35 PM   #46
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873

I wouldn't worry about the counter. You have the needed jack parts in the audio tab. Using qjackctl is more about creating and removing connections these days. So the sound can flow in desirable ways. Like through an EQ effect instead of straight to output. And to connect a midi input device (keyboard) to a midi synth and/or recording application like rosegarden. The defaults seem to work for me when rosegarden starts. Although with the loopback method, it crashes alsaloop, but starting it again keeps the ball rolling.

Without qjackctl you have to use something like jack_connect on the CLI.

Code:
$ jack_connect -s default system:monitor_1 system:playback_1

Last edited by Shadow_7; 06-06-2017 at 11:36 PM.
 
Old 06-09-2017, 09:17 AM   #47
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 422

Original Poster
Rep: Reputation: Disabled
Code:
michael@caitlyn mp3 $ jack_connect -s default system:monitor_1 system:playback_1
ERROR system:monitor_1 not a valid port
michael@caitlyn mp3 $
 
Old 06-09-2017, 12:43 PM   #48
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
You would have to run jackd with -m for monitor. Otherwise it would be more common to use system:capture_1, but if your mic is near the speaker, on, and sensitive, you'll get feedback.
 
Old 06-09-2017, 03:33 PM   #49
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 422

Original Poster
Rep: Reputation: Disabled
I'm not using a mic.
 
Old 06-09-2017, 03:52 PM   #50
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 422

Original Poster
Rep: Reputation: Disabled
Code:
michael@caitlyn mp3 $ jackd -R -d alsa -X seq -P hw:?? -C hw:0
jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 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
Could not open component .so '/usr/lib64/jack/jack_alsa_midi.so': /usr/lib64/jack/jack_alsa_midi.so: undefined symbol: jack_driver_init
Could not open component .so '/usr/lib64/jack/jack_alsa_midi.so': /usr/lib64/jack/jack_alsa_midi.so: undefined symbol: jack_driver_init
jack_get_descriptor : dll jack_alsa_midi.so is not a driver
jack_get_descriptor returns null for 'jack_alsa_midi.so'
Could not open component .so '/usr/lib64/jack/jack_oss.so': /usr/lib64/jack/jack_oss.so: undefined symbol: jack_driver_init
Could not open component .so '/usr/lib64/jack/jack_oss.so': /usr/lib64/jack/jack_oss.so: undefined symbol: jack_driver_init
jack_get_descriptor : dll jack_oss.so is not a driver
jack_get_descriptor returns null for 'jack_oss.so'
Could not open component .so '/usr/lib64/jack/jack_alsa_midi.so': /usr/lib64/jack/jack_alsa_midi.so: undefined symbol: jack_driver_init
Could not open component .so '/usr/lib64/jack/jack_oss.so': /usr/lib64/jack/jack_oss.so: undefined symbol: jack_driver_init
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
Engine profiling activated, beware 197 MBytes are needed to record profiling points...
control open "hw:??" (No such device)
audio_reservation_init
Acquire audio card Audio0
creating alsa driver ... hw:??|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control open "hw:??" (No such device)
ALSA lib pcm_hw.c:1701:(_snd_pcm_hw_open) Invalid value for card
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
port created: Midi-Through:midi/playback_1
port created: Midi-Through:midi/capture_1
I THINK jack is working the way I want it to. I've noticed a slight change in rosegarden's behaviour: Now, when I open rosegarden and load my file, the cursor actually moves beyond it's stationary point to the left of the bass clef when I hit the play button. There is still no sound from the speakers though.
 
Old 06-09-2017, 07:42 PM   #51
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
That was just to give an example of how to make the connection without using qjackctl. Just one of those it's not the ONLY way examples. Under Studio there's manage midi stuffs. I recall having to insert programming events to have it choose the soundfont. Plus I manually select an instrument in fluidsynth.

> fonts
> inst 1
> select 0 1 000 001

And then restart rosegarden and it might work as expected. There was a fork of rosegarden a while back called open octave. Midi purist types that didn't like rosegarden being expanded to include video editing and whatever else it was trying to do at the time. Probably dead now, but it had a pretty impressive demo of adding a room / venue effect.
 
Old 06-11-2017, 03:23 PM   #52
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 422

Original Poster
Rep: Reputation: Disabled
I'm sorry. I just don't understand what you're telling me.
 
Old 06-11-2017, 04:48 PM   #53
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Midi is a combination of things. In terms of rosegarden it is a recording app for midi events. When it doesn't do is add in the events that set the channel and program (sound to use) details. It mostly records, this key was pressed at this time, on playback that's all it triggers are the key presses, not the selection of sounds to use. Which means that it sends your recorded events to a meaningless channel with an empty soundfont by default, so you hear nothing, even though everything is working as designed.

Basically in rosegarden, record something. Then open the event editor (E) "Open in Event List Editor", the (E) being a hotkey "e" to launch it. Select insert event (Yellow star on my version), then the drop down to event type for "program change". Click OK. And then when you play back what was recorded (or opened) it will have sound (in theory). The little thing "Special Parameters" doesn't always apply to the track like it should. Although it might the 2nd or 3rd time you start rosegarden.

$ sudo modprobe -r snd-aloop
$ sudo modprobe snd-aloop pcm_substreams=2 enable=1
$ jackd -r -m -t 10000 -d alsa -d hw:Loopback -P -o 2 -r 44100 -S -s -m

$ alsaloop -C hw:Loopback,1,0 -P pulse

$ fluidsynth -a jack -g 1.5 -j -l -m alsa_seq -K 0 /usr/share/sounds/sf2/FluidR3_GM.sf2
> select 0 1 000 001
(for bright piano)

$ vkeybd --octave 8 --channel 0 --device alsa

$ qjackctl
(connect the virtual keyboard to the fluidsynth)

$ rosegarden
(press record, click on the keys of the virtual keyboard)
(press stop then the start of the track and play)
(if you here nothing the insert event trick should help make it cooperate)

In terms of things I run on my remote (relative to the pulse audio server) system. It's a bit complex for beginners. There are distros tailored for this stuff that has most of the stuff configured and running by default, like avlinux. Perhaps many of the DistroX-Studio ones work that way too. Lots of options available for use.
 
Old 06-11-2017, 05:48 PM   #54
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 422

Original Poster
Rep: Reputation: Disabled
I've modprobed those two lines you listed using my terminal tab running su -.
Code:
michael@caitlyn ex $ jobs
[1]-  Running                 jackd -r -m -t 10000 -d alsa -d hw:Loopback -P -o 2 -r 44100 -S -s -m &
[2]+  Running                 alsaloop -C hw:Loopback,1,0 -P pulse &
michael@caitlyn ex $ fluidsynth -a jack -g 1.5 -j -l -m alsa_seq -K 0 /usr/share/sounds/sf2/FluidR3_GM.sf2
FluidSynth version 1.1.6
Copyright (C) 2000-2012 Peter Hanappe and others.
Distributed under the LGPL license.
SoundFont(R) is a registered trademark of E-mu Systems, Inc.

Parameter '/usr/share/sounds/sf2/FluidR3_GM.sf2' not a SoundFont or MIDI file or error occurred identifying it.
Cannot lock down 207603658 byte memory area (Cannot allocate memory)
Cannot lock down 82274202 byte memory area (Cannot allocate memory)
Type 'help' for help topics.

> fluidsynth: warning: Failed to set thread to high priority
select 0 1 000 001
fluidsynth: error: There is no preset with bank number 0 and preset number 1 in SoundFont 1
> fluidsynth: warning: No preset found on channel 0 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 1 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 2 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 3 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 4 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 5 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 6 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 7 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 8 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 9 [bank=128 prog=0]
fluidsynth: warning: No preset found on channel 10 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 11 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 12 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 13 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 14 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 15 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 9 [bank=128 prog=0]
fluidsynth: warning: No preset found on channel 0 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 1 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 3 [bank=0 prog=0]
In another tab, I ran vkeybd. I opened qjackctl. The messages window said:
Code:
17:37:02.817 Statistics reset.
17:37:02.868 ALSA connection change.
17:37:02.923 JACK connection change.
17:37:02.947 Client activated.
17:37:02.948 Patchbay deactivated.
Cannot lock down 207603658 byte memory area (Cannot allocate memory)
Cannot lock down 82274202 byte memory area (Cannot allocate memory)
17:37:31.643 JACK connection graph change.
17:37:31.647 ALSA connection graph change.
17:37:31.689 JACK connection change.
17:37:31.690 ALSA connection change.
17:37:31.690 JACK connection graph change.
17:37:31.690 ALSA connection graph change.
17:37:31.891 JACK connection change.
17:37:32.024 ALSA connection graph change.
17:37:39.015 ALSA connection graph change.
17:37:39.137 ALSA connection graph change.
17:40:05.886 ALSA connection graph change.
17:40:05.948 ALSA connection change.
My Connections->ALSA tab looks different. I see that I now have 14: Midi Through and 131:rosegarden as readable, and both are writable. 128:FLUID synth (6269) is also writable.

Then I ran rosegarden. I loaded up a hymn file I typed in earlier today. There is still no MIDI sound coming out of my speakers, but I did notice some kind of equalizer-type (is that even what it is called?) visual effect going on to the left of my track listing, pulsing as the notes play. My current file has Soprano, Alto, and Bass tracks. I just want to be able to hear them. Thank you again for being patient with me. I'm sorry I'm just not getting it yet.
 
Old 06-12-2017, 02:27 AM   #55
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Code:
Parameter '/usr/share/sounds/sf2/FluidR3_GM.sf2' not a SoundFont or MIDI file or error occurred identifying it.
It didn't find your soundfont file. Package fluid-soundfont-gm in debian jessie. Basically the same issue, but with the soft synth being the problem child, not rosegarden.

$ apt-file find .sf2
Code:
csound-doc: /usr/share/doc/csound-doc/html/examples/07AcousticGuitar.sf2.gz
csound-doc: /usr/share/doc/csound-doc/html/examples/19Trumpet.sf2.gz
denemo-data: /usr/share/denemo/soundfonts/A320U.sf2
fluid-soundfont-gm: /usr/share/sounds/sf2/FluidR3_GM.sf2
fluid-soundfont-gs: /usr/share/sounds/sf2/FluidR3_GS.sf2
freewheeling: /usr/share/fweelin/basic.sf2
laborejo: /usr/share/laborejo/laborejocore/gm.sf2
musescore-soundfont-gm: /usr/share/sounds/sf2/TimGM6mb.sf2
 
Old 06-12-2017, 10:21 AM   #56
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 422

Original Poster
Rep: Reputation: Disabled
fluid-soundfont was the answer I was looking for. Now, at least for the moment, I have MIDI output in Rosegarden. Thank you for all your help!
 
  


Reply

Tags
jack, midi, rosegarden


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no sound in rosegarden/qsynth jpee Linux - General 1 11-11-2015 04:56 PM
Rosegarden help! Can't get sound from keyboard. jimmyjazzstl Linux - Software 0 07-22-2009 06:30 PM
No sound with Rosegarden linmix Linux - Software 27 11-25-2006 10:39 AM
Rosegarden; sound is muted? Nailgun Linux - Software 7 11-05-2006 02:20 PM
no sound for rosegarden drethenerd Linux - Software 9 08-22-2005 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration