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 05-28-2017, 04:15 PM   #1
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 422

Rep: Reputation: Disabled
rosegarden - no sound


I'm a recent newbie to Slackware. I've also recently joined the choir at my church. Twenty years ago music was an avid hobby of mine, but alas, that was twenty years ago. I want to type my part into rosegarden for various songs we sing, and then have rosegarden play it back to me so that I can rehearse at home. I have typed in my part for one song so far, but there is no sound when I hit the 'play' button. I know I have general sound on this system, as I tested pianobar and mpg123 both before I began typing this message and they both output sound as expected. I am rather embarrassed as I do not know what information you would need to assist me with this particular problem. Some random informational bits that I think would help with this:

Code:
root@caitlyn:~# dmesg | grep -i audio
[    6.657940] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    7.736680] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC887-VD: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[    7.737038] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    7.737392] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[    7.737744] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    7.737948] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    7.738151] snd_hda_codec_realtek hdaudioC0D0:      Front Mic=0x19
[    7.738356] snd_hda_codec_realtek hdaudioC0D0:      Rear Mic=0x18
[    7.738560] snd_hda_codec_realtek hdaudioC0D0:      Line=0x1a
root@caitlyn:~# lspci
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation C220 Series Chipset Family H81 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
01:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
root@caitlyn:~# lsmod
Module                  Size  Used by
uas                    14341  0
usb_storage            55782  1 uas
ipv6                  344523  20
cfg80211              548384  0
fuse                   88924  3
hid_generic             1615  0
usbhid                 38908  0
hid                   108240  2 hid_generic,usbhid
eeepc_wmi               5432  0
ppdev                   7296  0
asus_wmi               19899  1 eeepc_wmi
sparse_keymap           4048  1 asus_wmi
rfkill                 18902  2 asus_wmi,cfg80211
i2c_dev                 6572  0
evdev                  12369  23
snd_hda_codec_hdmi     36101  4
snd_hda_codec_realtek    73708  1
r8169                  72915  0
nouveau              1545139  4
coretemp                6616  0
intel_rapl             11931  0
x86_pkg_temp_thermal     6241  0
intel_powerclamp        8978  0
mxm_wmi                 2113  1 nouveau
hwmon                  10167  3 asus_wmi,nouveau,coretemp
kvm_intel             181295  0
ttm                    85239  1 nouveau
kvm                   565439  1 kvm_intel
drm_kms_helper        138357  1 nouveau
drm                   324811  7 nouveau,ttm,drm_kms_helper
irqbypass               3647  1 kvm
agpgart                32309  3 nouveau,ttm,drm
i2c_algo_bit            6079  1 nouveau
fb_sys_fops             1858  1 drm_kms_helper
crct10dif_pclmul        5500  0
syscopyarea             3458  1 drm_kms_helper
crc32_pclmul            3238  0
sysfillrect             4014  1 drm_kms_helper
crc32c_intel           13628  0
sysimgblt               2672  1 drm_kms_helper
ghash_clmulni_intel     4765  0
intel_cstate            7222  0
snd_hda_codec_generic    60661  1 snd_hda_codec_realtek
i2c_i801               18315  0
intel_rapl_perf         8279  0
psmouse               115307  0
parport_pc             21622  0
serio_raw               5146  0
parport                38271  2 parport_pc,ppdev
snd_hda_intel          29482  4
mii                     5143  1 r8169
i2c_smbus               4141  1 i2c_i801
i2c_core               51220  7 i2c_algo_bit,i2c_i801,nouveau,i2c_smbus,i2c_dev,drm_kms_helper,drm
snd_hda_codec         109389  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
ehci_pci                4453  0
ehci_hcd               44535  1 ehci_pci
battery                14904  0
thermal                11619  0
wmi                     8890  3 asus_wmi,mxm_wmi,nouveau
fan                     4663  0
snd_hda_core           65732  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep               6784  1 snd_hda_codec
snd_pcm                93110  4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd_timer              22357  1 snd_pcm
snd                    69819  15 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_pcm
mei_me                 19267  0
video                  32138  2 asus_wmi,nouveau
xhci_pci                5245  0
xhci_hcd              116898  1 xhci_pci
mei                    61949  1 mei_me
tpm_infineon            8097  0
lpc_ich                15314  0
shpchp                 26425  0
soundcore               6940  1 snd
fjes                   23014  0
button                  7994  1 nouveau
tpm_tis                 6089  0
tpm_tis_core            8043  1 tpm_tis
tpm                    35502  3 tpm_infineon,tpm_tis,tpm_tis_core
loop                   21279  0
root@caitlyn:~#
What also may be helpful is the version of rosegarden:

Code:
michael@caitlyn ~ $ rosegarden --version
Rosegarden version: 16.02 ("Querida")
Build key: 8b07014380
Built against Qt version: 4.8.7
Code:
michael@caitlyn ~ $ uname -a
Linux caitlyn 4.9.28 #2 SMP Mon May 15 21:56:14 CDT 2017 x86_64 Intel(R) Pentium(R) CPU G3250 @ 3.20GHz GenuineIntel GNU/Linux
And I built it with sbopkg if that matters. I had to install a bunch of other stuff that I don't really remember the names of. Thank you in advance to anyone who can help me to solve this issue.

I'm thinking that I need a MIDI sequencer. On my old distro I used timidity++ (which will not build at this moment.) Is there another way?

Last edited by maschelsea; 05-28-2017 at 05:04 PM.
 
Old 05-29-2017, 01:08 PM   #2
LilZebra
LQ Newbie
 
Registered: Dec 2015
Distribution: Fedora 24 Workstation (64-bit)
Posts: 22

Rep: Reputation: Disabled
One of the pieces of software that you'll need is JACK. My experience with JACK is that it immediately disables Pulseaudio, so when I'm finished my music session there is no audio for YouTube and system sounds. My way around that means renaming the .pulse folder to .pulse.old, logging out then logging back in.

In 2014 I tried to use Rosegarden and made a video on YouTube about it...
https://www.youtube.com/watch?v=_oahd6N3-Fk

For more advanced people who work with DAWs (digital audio workstations) everyday, JACK must be real easy to use, and quite sophisticated in operation. It provides a plug-board-like system to input one audio stream or many audio streams and connect it to a virtual output.

As I said in my video, you'll also need Timidity++, a MIDI server.

Last edited by LilZebra; 05-29-2017 at 01:19 PM.
 
Old 05-29-2017, 02:38 PM   #3
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 422

Original Poster
Rep: Reputation: Disabled
timidity++ won't build. Please see my thread at http://www.linuxquestions.org/questi...ld-4175606851/
 
Old 05-30-2017, 04:17 PM   #4
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 422

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by LilZebra View Post
One of the pieces of software that you'll need is JACK. My experience with JACK is that it immediately disables Pulseaudio, so when I'm finished my music session there is no audio for YouTube and system sounds. My way around that means renaming the .pulse folder to .pulse.old, logging out then logging back in.

In 2014 I tried to use Rosegarden and made a video on YouTube about it...
https://www.youtube.com/watch?v=_oahd6N3-Fk

For more advanced people who work with DAWs (digital audio workstations) everyday, JACK must be real easy to use, and quite sophisticated in operation. It provides a plug-board-like system to input one audio stream or many audio streams and connect it to a virtual output.

As I said in my video, you'll also need Timidity++, a MIDI server.
OK. I got timidity++ to build. In your video, you used some kind of gui app to start jack-audio-connection-kit. I don't think I have that. This is what I have:
Code:
michael@caitlyn ~ $ locate bin/jack
/usr/bin/jack-dssi-host
/usr/bin/jack_alias
/usr/bin/jack_bufsize
/usr/bin/jack_connect
/usr/bin/jack_disconnect
/usr/bin/jack_evmon
/usr/bin/jack_freewheel
/usr/bin/jack_impulse_grabber
/usr/bin/jack_iodelay
/usr/bin/jack_latent_client
/usr/bin/jack_load
/usr/bin/jack_load_test
/usr/bin/jack_lsp
/usr/bin/jack_metro
/usr/bin/jack_midi_dump
/usr/bin/jack_midiseq
/usr/bin/jack_midisine
/usr/bin/jack_monitor_client
/usr/bin/jack_netsource
/usr/bin/jack_property
/usr/bin/jack_rec
/usr/bin/jack_samplerate
/usr/bin/jack_server_control
/usr/bin/jack_session_notify
/usr/bin/jack_showtime
/usr/bin/jack_simple_client
/usr/bin/jack_simple_session_client
/usr/bin/jack_transport
/usr/bin/jack_transport_client
/usr/bin/jack_unload
/usr/bin/jack_wait
/usr/bin/jackd
I have no idea what distro your using in the video, but I am running Slackware. I'm kinda new here, so I don't really know my way around yet. Please advise as to that jack-audio-connection-kit gui app.
 
Old 05-30-2017, 05:13 PM   #5
LilZebra
LQ Newbie
 
Registered: Dec 2015
Distribution: Fedora 24 Workstation (64-bit)
Posts: 22

Rep: Reputation: Disabled
I am using Fedora Workstation as I always have since June 2005.

MATE was the desktop env. I was using at the time. I only had 2 Gigs of RAM and GNOME would need more to run without freezing.
 
Old 05-30-2017, 05:47 PM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Timidity++, but there's also fluidsynth (or qsynth the gui front end to fluidsynth). For midi stuff you need a midi provider like timidity++ OR fluidsynth.
 
Old 05-30-2017, 07:01 PM   #7
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 422

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
Timidity++, but there's also fluidsynth (or qsynth the gui front end to fluidsynth). For midi stuff you need a midi provider like timidity++ OR fluidsynth.
I've got timidity working. I need the jack-audio-connection-kit to start jack, but I don't know how to get it.
 
Old 05-30-2017, 08:11 PM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
The old package name is jackd. The newer version that does basically the same thing is jackdbus. At least in terms of ps output.

OLD (jackd):
$ jackd -r -d alsa -d hw:1 -r 48000 -n 3 -p 512
$ pulseaudio --kill
$ pulseaudio --start
$ qjackctl

NEW (jackdbus):
$ jack_control ds alsa
$ jack_control eps realtime false
$ jack_control dps device hw:1
$ jack_control dps rate 48000
$ jack_control dps nperiods 3
$ jack_control dps period 512
$ jack_control start
$ pulseaudio --kill
$ pulseaudio --start
(for a pulse over jack configuration, with autospawn=no)
$ qjackctl
(to make sure pulseaudio shows up, otherwise quirky jack_control stop and pulseaudio --kill things to get things moving as intended. Jackdbus will start pulseaudio automagically, but probably too early to bind properly)

Although you might want to use 44100 for midi stuff since a lot of samples are sampled at that rate (CD quality). Performance trick for midi and jackd. Although pulseaudio favors 48000 which is more common to video feeds.

in debian:
$ apt-file find bin/jackd | grep -i jackd$
jackd1: /usr/bin/jackd
jackd2: /usr/bin/jackd

$ apt-file find bin/jackdbus | grep -i jackdbus$
jackd2: /usr/bin/jackdbus

Lots of options, some harder to setup than others. And most probably NOT distro defaults.
 
Old 05-30-2017, 08:26 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
The -n 3 -p 512 would be -n 2 -p 1024 if omitted aka defaults. I tend to have less crackling with -n 3. YMMV.

As far as timidity++, in the days of old I had to recompile alsa $(--with-sequencer=yes) to get that to work. Which wasn't a debian default long ago (pre-wheezy?). Otherwise some odd post boot steps to use snd-seq-oss for roughly the same functionality. Kernel config option $(CONFIG_SND_SEQUENCER=m) which is a distro default for me. Not quite what slackware does, but something to know / look for.
 
Old 05-30-2017, 08:36 PM   #10
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 422

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
The old package name is jackd. The newer version that does basically the same thing is jackdbus. At least in terms of ps output.

OLD (jackd):
$ jackd -r -d alsa -d hw:1 -r 48000 -n 3 -p 512
$ pulseaudio --kill
$ pulseaudio --start
$ qjackctl

NEW (jackdbus):
$ jack_control ds alsa
$ jack_control eps realtime false
$ jack_control dps device hw:1
$ jack_control dps rate 48000
$ jack_control dps nperiods 3
$ jack_control dps period 512
$ jack_control start
$ pulseaudio --kill
$ pulseaudio --start
(for a pulse over jack configuration, with autospawn=no)
$ qjackctl
(to make sure pulseaudio shows up, otherwise quirky jack_control stop and pulseaudio --kill things to get things moving as intended. Jackdbus will start pulseaudio automagically, but probably too early to bind properly)

Although you might want to use 44100 for midi stuff since a lot of samples are sampled at that rate (CD quality). Performance trick for midi and jackd. Although pulseaudio favors 48000 which is more common to video feeds.

in debian:
$ apt-file find bin/jackd | grep -i jackd$
jackd1: /usr/bin/jackd
jackd2: /usr/bin/jackd

$ apt-file find bin/jackdbus | grep -i jackdbus$
jackd2: /usr/bin/jackdbus

Lots of options, some harder to setup than others. And most probably NOT distro defaults.
I don't have jackdbus, but I DO have jackd:
Code:
root@caitlyn:~# jackd -r -d alsa -d hw:1 -r 48000 -n 3 -p 512
jackd 0.124.1
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
jackd 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 compiled with System V SHM support.
loading driver ..
apparent rate = 48000
creating alsa driver ... hw:1|hw:1|512|3|48000|0|0|nomon|swmeter|-|32bit
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
cannot load driver module alsa
root@caitlyn:~#
Code:
root@caitlyn:/usr/src/linux# grep ALSA .config
CONFIG_VIDEO_CX231XX_ALSA=m
CONFIG_VIDEO_TM6000_ALSA=m
CONFIG_VIDEO_EM28XX_ALSA=m
CONFIG_VIDEO_IVTV_ALSA=m
CONFIG_VIDEO_CX18_ALSA=m
CONFIG_VIDEO_CX25821_ALSA=m
CONFIG_VIDEO_CX88_ALSA=m
CONFIG_VIDEO_SAA7134_ALSA=m
CONFIG_THINKPAD_ACPI_ALSA_SUPPORT=y
CONFIG_CRYPTO_SALSA20=m
CONFIG_CRYPTO_SALSA20_X86_64=m
root@caitlyn:/usr/src/linux#
So which alsa module does it want? I can rebuild kernels. I just need to know which alsa I need to turn from 'y' to 'm'. The only one that's not already 'm' is the CONFIG_THINKPAD_ACPI_SUPPORT, and I don't think it's that one...
 
Old 05-31-2017, 12:10 AM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
The actual drivers tend to start with SND_, you "should" already have the modules needed (with a modern distro).

Try -d hw:0, which is the alsa name for the card with index 0

$ cat /proc/asound/cards
 
Old 05-31-2017, 12:17 AM   #12
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
And then try without the -r, and omit the last parm(s) until it works. Just jackd without parms should work although the assumed defaults might not yield desired results. Especially since computers have multiple soundcards now. One on the motherboard, video card, webcam, and on and on. In general the one with index 0 is default until "customized" via pulseaudio or $HOME/.asoundrc or other methods.
 
Old 05-31-2017, 08:27 PM   #13
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 422

Original Poster
Rep: Reputation: Disabled
Code:
root@caitlyn:~# jackd -d alsa -d hw:0 -r 48000 -n 3 -p 512
jackd 0.124.1
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
jackd 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 compiled with System V SHM support.
loading driver ..
apparent rate = 48000
creating alsa driver ... hw:0|hw:0|512|3|48000|0|0|nomon|swmeter|-|32bit
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /home/michael/.gvfs
      Output information may be incomplete.


ATTENTION: The playback device "hw:0" is already in use. Please stop the application using it and run JACK again
cannot load driver module alsa
root@caitlyn:~#
As you can see, jackd won't start. Something is using hw:0. I tried to look at lsof, but couldn't make out what any of those numbers meant. Maybe tomorrow I can look up how to interpret the lsof output, but for tonight, I don't have the time or the concentration to manage it.
 
Old 05-31-2017, 11:07 PM   #14
LilZebra
LQ Newbie
 
Registered: Dec 2015
Distribution: Fedora 24 Workstation (64-bit)
Posts: 22

Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
And then try without the -r, and omit the last parm(s) until it works. Just jackd without parms should work although the assumed defaults might not yield desired results. Especially since computers have multiple soundcards now. One on the motherboard, video card, webcam, and on and on. In general the one with index 0 is default until "customized" via pulseaudio or $HOME/.asoundrc or other methods.
Oh really. I didn't know that.
 
Old 06-01-2017, 06:04 AM   #15
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Already in use is probably pulseaudio. Depending on your distro.

$ grep -i autospawn /etc/pulse/client.conf

If you change that to "autospawn = no", you can stop pulseaudio.

$ pulseaudio --kill

And with a pulse over jack setup you can restart it $(pulseaudio --start), after starting jackd. Without the autospawn=no, the init system will by default restart pulseaudio. Various other routes with snd-aloop plus other tricks.
 
  


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 06:01 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