Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No sound on raspberry pi. #78

Open
Zungrysoft opened this issue Jan 30, 2021 · 7 comments
Open

No sound on raspberry pi. #78

Zungrysoft opened this issue Jan 30, 2021 · 7 comments

Comments

@Zungrysoft
Copy link

Zungrysoft commented Jan 30, 2021

I have run setBfree headless on a raspberry pi running raspbian lite. I receive no errors from setBFree, but I get no sound from the program. I am using an Oxygen49 MIDI keyboard and I have been able to get other synthesizer programs running fine on my pi.

Here is the output from setBfree:
init.. Audio : Oscillators : Scanner : Overdrive : Reverb : Whirl : Convolve : prio = 0, offs = 0, parsize = 128, npar = 1600 RC : ..done. MIDI Program Table: 1:Jazz 1 all 42:Vibrato V1 60:No split 78:L:Open Diapason 2:Jazz 2 43:Vibrato V2 61:Brassy pedals 79:L:Full Accomp. 3:Jazz 3 44:Vibrato V3 62:Hollow pedals 80:L:Tibia 8' 27:Reverb 0 45:Vibrato C1 63:Cute pedals 81:L:Bombarde 16' 28:Reverb 16 46:Vibrato C2 64:L:Cello 82:U:Stopped Flute 29:Reverb 25 47:Vibrato C3 65:L:Flute & Strin 83:U:Dulciana 30:Reverb 33 48:Vib lower on 66:L:Clarinet 84:U:French Horn 31:Reverb 50 49:Vib lower off 67:L:Salicional 85:U:Salicional 32:Percussion OFF 50:Vib upper on 68:L:Great no reed 86:U:Flutes 8'&4' 33:Percussion ON 51:Vib upper off 69:L:Open Diaposon 87:U:Oboe Horn 34:Percussion SOFT 52:Rotary STOP 70:L:Full Great 88:U:Swell Diapaso 35:Percussion NORM 53:Rotary SLOW 71:L:Tibia Clausa 89:U:Trumpet 36:Percussion FAST 54:Rotary FAST 72:L:Full Great wi 90:U:Full Swell 37:Percussion SLOW 55:Random 73:L:Cello 8' 91:U:French Horn 8 38:P.Harmonic 2nd 56:Random 74:L:Dulciana 8' 92:U:Tibias 8'&4' 39:P.Harmonic 3rd 57:Lowr/Upr Split 75:L:Vibraharp 8' 93:U:Clarinet 8' 40:Overdrive OFF 58:Pd/Lw/Up Split 76:L:Vox 8' & Tibi 94:U:Novel Solo 8' 41:Overdrive ON 59:Pdal/Upr Split 77:L:String Accomp 95:U:Theatre Solo All systems go. press CTRL-C, or send SIGINT or SIGHUP to terminate

I ran jackd beforehand with the following command:

jackd -R -d alsa -r 44100 &

Here is the output from running jackd:

Copyright 2001-2005 Paul Davis and others. Copyright 2004-2016 Grame. Copyright 2016-2017 Filipe Coelho. 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 realtime mode with priority 10 self-connect-mode is "Don't restrict self connect requests" audio_reservation_init Acquire audio card Audio0 creating alsa driver ... hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit ALSA: Cannot open PCM device alsa_pcm for capture. Falling back to playback-only mode configuring for 44100Hz, period = 1024 frames (23.2 ms), buffer = 2 periods ALSA: final selected sample format for playback: 16bit little-endian ALSA: use 2 periods for playback

I can provide more details if needed. At minimum, setBfree should be providing more logging information so I can more easily determine the problem.

@x42
Copy link
Collaborator

x42 commented Feb 2, 2021

Check if the JACK ports are connected. What is the output of jack_lsp -c?

I hazard a guess that you have not configured MIDI (aj2midid -d) and setBfree's midi_in is not connected to the Oxygen49.

@Zungrysoft
Copy link
Author

This is the output for jack_lsp -c

system:playback_1
system:playback_2
system:playback_3
system:playback_4
system:playback_5
system:playback_6
system:playback_7
system:playback_8
system:midi_capture_1
system:midi_playback_1

The readme does not mention aj2midid. Do I need to install it to hook up the MIDI controller? If so, what is the package called in apt?

@x42
Copy link
Collaborator

x42 commented Feb 2, 2021

Looks like setBfree is not even running, this only shows JACK hardware I/O ports.

@Zungrysoft
Copy link
Author

Zungrysoft commented Feb 2, 2021

Sorry about that. Here's the output with setBfree running.

system:playback_1
   setBfree:out_left
system:playback_2
   setBfree:out_right
system:playback_3
system:playback_4
system:playback_5
system:playback_6
system:playback_7
system:playback_8
system:midi_capture_1
system:midi_playback_1
setBfree:out_left
   system:playback_1
setBfree:out_right
   system:playback_2
setBfree:midi_in

@x42
Copy link
Collaborator

x42 commented Feb 2, 2021

So the MIDI input is not feeding setBfree:

jack_connect system:midi_capture_1 setBfree:midi_in

or better yet, use qjackctl or some other JACK connection manager.

@x42
Copy link
Collaborator

x42 commented Feb 2, 2021

PS. Alternatively start setBfree and pass the MIDI input as option on the commandline:

setBfree midi.port=system:midi_capture_1

or save it in the config file $HOME/.config/setBfree/default.cfg like this:

midi.port=system:midi_capture_1

@Zungrysoft
Copy link
Author

After running the second command, I am now getting some audio output when I press the keys, but it is a low drone sound. Pulling the drawbars modifies this drone somewhat. It is also coming out of the onboard headphone jack rather than the USB audio card I plugged in, which I did not expect. Could the low drone sound be caused by lack of necessary processing power to generate the audio in real time?

The first command you gave me seems to be connecting things that are already connected.

JackGraphManager::Connect already connected port_src = 9 port_dst = 13
cannot connect client, already connected?

I cannot get qjackctl to work on Raspbian lite. I assume that is because it requires a GUI. This is the error:

qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants