You are here

Very basic initial "get started" question

Hi,

my PC runs GENTOO Linux (with audio overlay), jackd, alsa and cadence as connection manager for setting up the routing between
the audio creators :) like zynaddsubfx and such.

But currently I came accros Floyd Steinbergs video on Youtube how to use a Raspberry Pi 4b as synthesizer.
He recommended synthv1 - and I installed it instantly - on my Raspberry Pi as on my PC.

The problem is:
The midi input from my keyboard works fine...but I can hear nothing - neither on my PC nor on my Raspberry Pi.
I loaded a preset I found on the internet in beforehand...so there is "something", with which synthv1 is configured.
In qjackcontrol I routed the audio out ports of synthv1 to the system input ports and
the midi output ports of my keyboard to the midi inputs of synthv1.

Since these are my very first steps with synthv1 I am sure I did something basic wrong ( I checked the volume knobs, though... :) ).
But I can't find the source of the problem...

Any help to get this nice synth to "speak" is very appreciated - thank you. :)

Cheers
mcc

Forums: 
rncbc's picture

hi thanks

at first it looks like you're doing it all right, can't really tell what's wrong on your setup...

you don't need to load a preset to hear it "speak", the default "New preset" (top-left button) should emit sound OOTB.
do you see any flickering on the "MIDI in" green fake-LED on the bottom left of the main synthv1 GUI?
what about over there on that tiny virtual-keyboard? does it light up too but you don't hear any sound?
which version? what exactly is the output of synthv1_jack -v?

cheers

Hi,
thank you for your reply,

The LED blinks, if I press a key on the keyboard...
This is what the package manager (emerge) says on my PC:

[I] media-sound/synthv1 [1]
Available versions: (~)0.9.13 (~)0.9.14 **9999-r1*l {alsa debug lv2 osc standalone}
Installed versions: 0.9.14(03:45:00 AM 07/20/2020)(alsa standalone -debug -lv2 -osc)
Homepage: http://synthv1.sourceforge.net
Description: Old-school all-digital 4-oscillator subtractive polyphonic synthesizer

[1] "audio-overlay" /var/db/repos/audio-overlay

This is what synthv1 itself says on the PC ("synthv1_jack -v"
Qt: 5.15.0
synthv1: 0.9.14

This is, what the package manager (synaptic) says on my Raspberry Pi 4b
synthv1 0.8.6-1
synthv1_common 0.8.6-1

This is what synthv1 itself says on my Raspberry PI ("synthv1_jack -v")
libEGL warning: DRI2: failed to authenticate
qt5ct: using qt5ct plugin
Qt: 5.11.3
synthv1: 0.8.6

Anything suspicious there ?

Cheers!
mcc

rncbc's picture

maybe, the Rpi version synthv1 v0.8.6 is dang old (~3yo)...

however, your PC version is pretty recent and it should work as is. (though v0.9.15 is the most recent, but nevermind)

have you double-check on your JACK settings, either on Cadence or QjackCtl, whatever you use to run the JACK-server? how about first making sure JACK is up and running and playing audio right, then launch synthv1_jack and then, only afterwards, connect those ins and outs?

make sure your audio interface or soundcard, USB external or internal whatever, is the one you're after (ie. connected to the speakers :))

seeya

Hi,

Ok...if it is old - it needs to be updated! :)
I cloned the git of synthv1 and compiled it on the Raspi...
But it only plays "The sound of silence" (but perfectly, though... ;)

Jack is up and running (unfortunately on the Pi there is only qjackctl available).
I pressed STOP to get the message "stop jackd ?" (or similiar...this is no cite)
and pressed START again.

The alsa stuff itsself is ok. If I play "Wir sind die Roboter" (Kraftwerk) via mpv
(which directly speak to alsa) everything is fine.

The "Messages" section of QJackCtl displays this (only QJackctl started and
"START" pressed):
20:06:59.152 Statistics reset.
20:06:59.157 ALSA connection change.
20:06:59.224 D-BUS: Service is available (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
20:07:05.515 D-BUS: JACK server is starting...
Wed Jul 29 20:07:04 2020: Starting jack server...
Wed Jul 29 20:07:04 2020: JACK server starting in realtime mode with priority 10
Wed Jul 29 20:07:04 2020: self-connect-mode is "Don't restrict self connect requests"
20:07:05.533 D-BUS: JACK server was started (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Wed Jul 29 20:07:05 2020: Acquired audio card Audio0
Wed Jul 29 20:07:05 2020: creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
Wed Jul 29 20:07:05 2020: ERROR: ALSA: Cannot open PCM device alsa_pcm for capture. Falling back to playback-only mode
Wed Jul 29 20:07:05 2020: configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
Wed Jul 29 20:07:05 2020: ALSA: final selected sample format for playback: 16bit little-endian
Wed Jul 29 20:07:05 2020: ALSA: use 2 periods for playback
Wed Jul 29 20:07:05 2020: graph reorder: new port 'system:playback_1'
Wed Jul 29 20:07:05 2020: New client 'system' with PID 0
Wed Jul 29 20:07:05 2020: graph reorder: new port 'system:playback_2'
Wed Jul 29 20:07:06 2020: Saving settings to "/home/pi/.config/jack/conf.xml" ...
20:07:07.686 JACK connection change.
20:07:07.689 Server configuration saved to "/home/pi/.jackdrc".
20:07:07.691 Statistics reset.
20:07:07.717 Client activated.
20:07:07.718 Patchbay deactivated.
20:07:07.757 JACK connection graph change.
Wed Jul 29 20:07:07 2020: New client 'qjackctl' with PID 16478

Then I started synthv1 and connect it - again the messages:
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
20:07:05.515 D-BUS: JACK server is starting...
Wed Jul 29 20:07:04 2020: Starting jack server...
Wed Jul 29 20:07:04 2020: JACK server starting in realtime mode with priority 10
Wed Jul 29 20:07:04 2020: self-connect-mode is "Don't restrict self connect requests"
20:07:05.533 D-BUS: JACK server was started (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Wed Jul 29 20:07:05 2020: Acquired audio card Audio0
Wed Jul 29 20:07:05 2020: creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
Wed Jul 29 20:07:05 2020: ERROR: ALSA: Cannot open PCM device alsa_pcm for capture. Falling back to playback-only mode
Wed Jul 29 20:07:05 2020: configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
Wed Jul 29 20:07:05 2020: ALSA: final selected sample format for playback: 16bit little-endian
Wed Jul 29 20:07:05 2020: ALSA: use 2 periods for playback
Wed Jul 29 20:07:05 2020: graph reorder: new port 'system:playback_1'
Wed Jul 29 20:07:05 2020: New client 'system' with PID 0
Wed Jul 29 20:07:05 2020: graph reorder: new port 'system:playback_2'
Wed Jul 29 20:07:06 2020: Saving settings to "/home/pi/.config/jack/conf.xml" ...
20:07:07.686 JACK connection change.
20:07:07.689 Server configuration saved to "/home/pi/.jackdrc".
20:07:07.691 Statistics reset.
20:07:07.717 Client activated.
20:07:07.718 Patchbay deactivated.
20:07:07.757 JACK connection graph change.
Wed Jul 29 20:07:07 2020: New client 'qjackctl' with PID 16478
20:09:29.913 JACK connection graph change.
20:09:29.950 ALSA connection graph change.
20:09:30.005 JACK connection change.
20:09:30.008 ALSA connection change.
20:09:30.010 JACK connection graph change.
Wed Jul 29 20:09:29 2020: New client 'synthv1' with PID 16502
20:09:40.567 JACK connection change.
20:09:40.588 JACK connection graph change.
Wed Jul 29 20:09:40 2020: Connecting 'synthv1:out_1' to 'system:playback_1'
Wed Jul 29 20:09:40 2020: Connecting 'synthv1:out_2' to 'system:playback_2'
20:09:49.487 ALSA connection change.
20:09:49.501 ALSA connection graph change.

This part is weird -- The Start/Stop buttons still signs "Jackd is running" and
the """LCD""" shows "Active"...:
20:07:05.533 D-BUS: JACK server was started (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started

I changed from the headphone jack of the Raspi to a HiFi DAC.
The "Sound of silence" was played with an even better S/N ratio then...

Conclusion:
Jack is the Ripper
Alsa is fine

Don't mention pulseaudio or portaudio...otherwise I would probably
get a cardiac arrest.

Slightly confused and frustrated...
Cheers!
Meino

Hi,

finally I found it....it works now.(at least on the Raspi) ..thanks for the fish! Bye...

No...not a Douglas Adams here...
The problem was: My PC has only one soundcard....so Jack choose this one and fine.
The Raspi has HDMI, Analog (that is: The headphone from which you dont want to know from what
kind of combination of Multicontroller hackery and analog interface the sound is created...), and in
case I add the DAC...the DAC.
Therefore jackd cannot decide, what interface to choose...and leave that entry in the setup empty.
What I don't understand, is, why neither qjackctl nor jackd prints anything like "Warning! Misconfiguration
1mile down the road ahead! No interface specified!" and instead simply play nothing.

I set that configuration item to "Headphones" and it works.

My PC may offer another challenge, though.
Will see tomorrow.

Cheers!
mcc

Add new comment