SSR Installation difficulties

18 views
Skip to first unread message

Nicolas Pauwels

unread,
Jul 29, 2020, 2:59:38 PM7/29/20
to SoundScape Renderer
Hello,

I am disturbing you for questions relating to the installation of ssr. Windows user, I've been new to Ubuntu for some days in the hope of learning about SSR.

Following the instructions in the manual, I have a problem when starting jack (jackd -d alsa -r 44100). The sampling frequency being different between the alsa (44100) and jack (48000) :



- first solution : as suggested, modify the sampling frequency by the graphic interface of jack. I can change on the graphical interface but in practice, there is no change
- second solution  (found by reading many forums) : start jackd with a dummy driver with target sample rate  ($ jackd -d dummy -r 44100)  and start alsa_in and alsa_out with sampling rates of 44100.  I can start ssr (wow :-) !! first victory), but just clicks in the headphones (already before starting ssr: when starting alsa_out)

I am well aware that this difficulty is not related to SSR but maybe someone will have encountered the same problem and could help me

thanks in advance !

Best regards,




Matthias Geier

unread,
Jul 30, 2020, 12:20:43 PM7/30/20
to Nicolas Pauwels, SoundScape Renderer
Hi Nicolas.

On Wed, Jul 29, 2020 at 8:59 PM Nicolas Pauwels wrote:
>
> Hello,
>
> I am disturbing you for questions relating to the installation of ssr.

No problem, we are happy to help!

> Windows user, I've been new to Ubuntu for some days in the hope of learning about SSR.
>
> Following the instructions in the manual, I have a problem when starting jack (jackd -d alsa -r 44100). The sampling frequency being different between the alsa (44100) and jack (48000) :
>
> - first solution : as suggested, modify the sampling frequency by the graphic interface of jack. I can change on the graphical interface but in practice, there is no change
> - second solution (found by reading many forums) : start jackd with a dummy driver with target sample rate ($ jackd -d dummy -r 44100) and start alsa_in and alsa_out with sampling rates of 44100. I can start ssr (wow :-) !! first victory), but just clicks in the headphones (already before starting ssr: when starting alsa_out)
>
> I am well aware that this difficulty is not related to SSR but maybe someone will have encountered the same problem and could help me

I think, according to your screenshot, the problem might be that you
are using "sudo" to start jackd.

You shouldn't do that.

You shouldn't use it to start the SSR either.

Instead, to get the necessary rights for your user account to access
the audio devices, you should add your user to the "audio" group.

Assuming your user name is "nicolas", you can do this with:

sudo adduser nicolas audio

After that, you probably have to log out and log in again (or reboot).

cheers,
Matthias

Nicolas Pauwels

unread,
Jul 30, 2020, 1:29:17 PM7/30/20
to SoundScape Renderer
Hi Matthias,

first of all, many thanks for your time and your response.
I tried (after reboot) but without success...

In my research I find that the PC's built-in sound card DAC only works with 48KHz sr.



So, two options : 

- try with an external sound card with a 44.1 KHz sr (probably the best solutions at long term)
- modify the sr of the the defaut_hrirs.wav file to 48 KHz (just fort try ssr). I have tried with Audacity but cannot record a single .wav and many tracks. do you have any idea what software i could usefor this ?

Many thanks,

Nicolas

Matthias Geier

unread,
Jul 31, 2020, 6:32:36 AM7/31/20
to Nicolas Pauwels, SoundScape Renderer
On Thu, Jul 30, 2020 at 7:29 PM Nicolas Pauwels wrote:
>
> Hi Matthias,
>
> first of all, many thanks for your time and your response.
> I tried (after reboot) but without success...

Did you manage to start jackd without "sudo"?

If yes, that's already a success.

If not, what's the error message?

> In my research I find that the PC's built-in sound card DAC only works with 48KHz sr.

OK, that's unexpected, but good to know.

> So, two options :
>
> - try with an external sound card with a 44.1 KHz sr (probably the best solutions at long term)

Sure, you can try that.
But the SSR really doesn't need 44.1 kHz, it runs with 48 kHz as well.

> - modify the sr of the the defaut_hrirs.wav file to 48 KHz (just fort try ssr). I have tried with Audacity but cannot record a single .wav and many tracks. do you have any idea what software i could usefor this ?

Yes: sox. There is an Ubuntu package with the same name.

You can use it like this:

sox hrirs_fabian_min_phase_eq.wav -r 48000 hrirs_fabian_min_phase_eq_48000.wav

cheers,
Matthias

>
> Many thanks,
>
> Nicolas
>
> Le jeudi 30 juillet 2020 18:20:43 UTC+2, Matthias Geier a écrit :
>>
>> Hi Nicolas.
>>
>> On Wed, Jul 29, 2020 at 8:59 PM Nicolas Pauwels wrote:
>> >
>> > Hello,
>> >
>> > I am disturbing you for questions relating to the installation of ssr.
>>
>> No problem, we are happy to help!
>>
>> > Windows user, I've been new to Ubuntu for some days in the hope of learning about SSR.
>> >
>> > Following the instructions in the manual, I have a problem when starting jack (jackd -d alsa -r 44100). The sampling frequency being different between the alsa (44100) and jack (48000) :
>> >
>> > - first solution : as suggested, modify the sampling frequency by the graphic interface of jack. I can change on the graphical interface but in practice, there is no change
>> > - second solution (found by reading many forums) : start jackd with a dummy driver with target sample rate ($ jackd -d dummy -r 44100) and start alsa_in and alsa_out with sampling rates of 44100. I can start ssr (wow :-) !! first victory), but just clicks in the headphones (already before starting ssr: when starting alsa_out)
>> >
>> > I am well aware that this difficulty is not related to SSR but maybe someone will have encountered the same problem and could help me
>>
>> I think, according to your screenshot, the problem might be that you
>> are using "sudo" to start jackd.
>>
>> You shouldn't do that.
>>
>> You shouldn't use it to start the SSR either.
>>
>> Instead, to get the necessary rights for your user account to access
>> the audio devices, you should add your user to the "audio" group.
>>
>> Assuming your user name is "nicolas", you can do this with:
>>
>> sudo adduser nicolas audio
>>
>> After that, you probably have to log out and log in again (or reboot).
>>
>> cheers,
>> Matthias
>
> --
> You received this message because you are subscribed to the Google Groups "SoundScape Renderer" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to SoundScapeRende...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/SoundScapeRenderer/864ecdfb-e23d-45c8-8ddc-fec24ffa1d11o%40googlegroups.com.

Nicolas Pauwels

unread,
Aug 2, 2020, 5:49:23 AM8/2/20
to SoundScape Renderer


Le vendredi 31 juillet 2020 12:32:36 UTC+2, Matthias Geier a écrit :
On Thu, Jul 30, 2020 at 7:29 PM Nicolas Pauwels wrote:
>
> Hi Matthias,
>
> first of all, many thanks for your time and your response.
> I tried (after reboot) but without success...

Did you manage to start jackd without "sudo"?

If yes, that's already a success.

Yes, and jack works, thank you ! 
 
If not, what's the error message?

> In my research I find that the PC's built-in sound card DAC only works with 48KHz sr.

OK, that's unexpected, but good to know.

> So, two options :
>
> - try with an external sound card with a 44.1 KHz sr (probably the best solutions at long term)

Sure, you can try that.
But the SSR really doesn't need 44.1 kHz, it runs with 48 kHz as well.

> - modify the sr of the the defaut_hrirs.wav file to 48 KHz (just fort try ssr). I have tried with Audacity but cannot record a single .wav and many tracks. do you have any idea what software i could usefor this ?

Yes: sox. There is an Ubuntu package with the same name.

You can use it like this:

sox hrirs_fabian_min_phase_eq.wav -r 48000 hrirs_fabian_min_phase_eq_48000.wav

Thanks for your help, i did a lot of testing again. This is what emerges. I have modified the sr of the hrirs filters at 48 KHz (sr support by the onboard audio card).

- First try : when i start jack i have an amazing number of xruns. However, ssr starts up and I can load a .wav file (one step at a time). However, the .wav reading is impossible because of the Xruns.
    - Second try :  I connected an external sound card (usbpre2 whose settings are not taken over by alsa but working at multiple rs). Much less XRUN, the .wav file is played through SSR but "clicks" appear       because of XRUNS.

Although there is a clear difference between the two sound cards, maybe it comes from the environment (Ubuntu on VirtualBox with a lot of resources allocated to the VM) ?
So I installed ssr on another machine. not having a second PC, I tried on a Raspberry Pi (Revb 3b) with Raspeberry Os.
Jackd works without XRUNS (with integrated card and external card) and SSR also works fine. I do not explain the problem encountered on the VM.

I will now dive into the SSR operation manual and probably come back to you with questions.
Thank you for your help,


 Nicolas

 
> To unsubscribe from this group and stop receiving emails from it, send an email to SoundScapeRenderer+unsub...@googlegroups.com.

Matthias Geier

unread,
Aug 3, 2020, 8:18:54 AM8/3/20
to Nicolas Pauwels, SoundScape Renderer
On Sun, Aug 2, 2020 at 11:49 AM Nicolas Pauwels wrote:
> Le vendredi 31 juillet 2020 12:32:36 UTC+2, Matthias Geier a écrit :

[...]

>> Did you manage to start jackd without "sudo"?
>>
>> If yes, that's already a success.
>
> Yes, and jack works, thank you !

Great!

[...]

> Thanks for your help, i did a lot of testing again. This is what emerges. I have modified the sr of the hrirs filters at 48 KHz (sr support by the onboard audio card).
>
>> - First try : when i start jack i have an amazing number of xruns. However, ssr starts up and I can load a .wav file (one step at a time). However, the .wav reading is impossible because of the Xruns.

If you get many xruns, you can try to tweak the JACK settings a bit.

You can try to increase the --period (in short -p) setting from the
default 1024 to 2048 or even more.

But what's probably even better, you can try to increase the
--nperiods (in short -n) setting from 2 to 3.

You can also try the settings --realtime and --no-realtime.

And for sure there are more settings to explore ...

> - Second try : I connected an external sound card (usbpre2 whose settings are not taken over by alsa but working at multiple rs). Much less XRUN, the .wav file is played through SSR but "clicks" appear because of XRUNS.

OK, better, but still not great ...

> Although there is a clear difference between the two sound cards, maybe it comes from the environment (Ubuntu on VirtualBox with a lot of resources allocated to the VM) ?

Oh, I wasn't aware that you are using a VM!

In this case it isn't surprising if there are many xruns.

But still, if you use very conservative settings, it could still work.

> So I installed ssr on another machine. not having a second PC,

What about installing a "dual boot" system with Windows and Linux?

> I tried on a Raspberry Pi (Revb 3b) with Raspeberry Os.
> Jackd works without XRUNS (with integrated card and external card) and SSR also works fine.

Great!

> I do not explain the problem encountered on the VM.

Well there is some kind of "audio device emulation" going on, which
may cause problems.

In the VirtualBox settings you should be able to select between
different sound card emulations, probably you could try all of those?

> I will now dive into the SSR operation manual and probably come back to you with questions.

Sure!

cheers,
Matthias
Reply all
Reply to author
Forward
0 new messages