[Csnd] no sound with hrtfearly.csd

Dear community,
I wanted to try out the file https://csound.com/docs/manual//examples/hrtfearly.csd
Unfortunately I can’t hear anything.
Does someone have an idea what could be the reason?

I got the following messages from my terminal:
csound hrtfearly.csd
0dBFS level = 32768.0
–Csound version 6.16 (double samples) Nov 28 2021
[commit: none]
libsndfile-1.0.28
Reading options from $HOME/.csound6rc
UnifiedCSD: hrtfearly.csd
STARTING FILE
Creating options
Creating orchestra
closing tag
Creating score
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.003s
sorting score …
… done
Elapsed time at end of score sort: real: 0.003s, CPU: 0.003s
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 256 sample-frame blocks
ALSA output: total buffer size: 1024, period size: 256
writing 512 sample blks of 64-bit floats to dac
SECTION 1:
new alloc for instr 1:
new alloc for instr 10:
file hrtf-44100-left.dat (122875 bytes) loaded into memory
file hrtf-44100-right.dat (122965 bytes) loaded into memory
24
B 0.000 … 0.200 T 0.200 TT 0.200 M:1020076664993535140748734526216577482752.063526898510707354773967497139769
9928064.0
number of samples out of range: 8052 8052
B 0.200 … 0.400 T 0.400 TT 0.400 M:1445128419690378018879433042082536620032.061968136217643624136879330352608
9424896.0
number of samples out of range: 8820 8820
B 0.400 … 0.600 T 0.600 TT 0.600 M:1099167384503428607987708999885752631296.072251433367816360036337511376208
1079296.0
number of samples out of range: 8820 8820
B 0.600 … 0.800 T 0.800 TT 0.800 M:941881108051383681136178788831716179968.0177070556539517643854984655103009
0694656.0
number of samples out of range: 8820 8820
B 0.800 … 1.000 T 1.000 TT 1.000 M:823529837166261712338964341761293418496.0205775066624461446345124047899286
1495296.0
number of samples out of range: 8820 8820
B 1.000 … 2.500 T 2.500 TT 2.500 M:1109253693848988579592303631077830819840.047448220185707122344777286186393
03639040.0
number of samples out of range: 66150 66150
B 2.500 … 4.000 T 4.000 TT 4.000 M:787693591108071262190551953199234809856.0380849289439920925013910247341499
088896.0
number of samples out of range: 66150 66150
B 4.000 … 5.500 T 5.500 TT 5.500 M:1044763030702323062111480079584564609024.058394202589884764992226433838360
4023296.0
number of samples out of range: 66150 66150
B 5.500 … 7.000 T 7.000 TT 7.000 M:900834900749050824459768892901138890752.0716126611571593858983025837346192
883712.0
number of samples out of range: 66150 66150
B 7.000 … 8.500 T 8.500 TT 8.500 M:1271598114613992006021723515880474673152.070598411611541796602039288545078
4636928.0
number of samples out of range: 66150 66150
B 8.500 … 12.500 T 12.500 TT 12.500 M:1168569439006213536857664272391043284992.094123762193122709027164607824143
5811840.0
number of samples out of range: 176400 176400
B 12.500 … 13.000 T 13.000 TT 13.000 M:146681789834315008185844833376836517888.0403409457372861363097264932055626
54720.0
number of samples out of range: 22050 22050
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score. overall amps:1445128419690378018879433042082536620032.047448220185707122344777286186393
03639040.0
overall samples out of range: 572532 572532
0 errors in performance
Elapsed time at end of performance: real: 12.986s, CPU: 2.936s
2240 512 sample blks of 64-bit floats written to dac

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Hi Stefan,

Apr 5 2022, Stefan Thomas has written:
...

https://csound.com/docs/manual//examples/hrtfearly.csd

...
I notice thatthis file does not specify a samplerate (sr = ). Could it
be that your soundcard defaults to 48kHz or something besides 44.1kHz?

Have you tried putting the following line under
<CsInstruments>
sr = 44100

Optionally, you can specify a samplerate of 48000, but then you need to
change the hrtfearly line to load the HRTF data files for 48kHz .

I just did the latter, since my setup works with 48kHz and got audio
output as expected.

Best wishes,

Jeanette

Runs here ok. Maybe check that the data files you have are good. I am using the ones in the main source repo, under “samples”.

file …/samples/hrtf-44100-left.dat (188416 bytes) loaded into memory
file …/samples/hrtf-44100-right.dat (188416 bytes) loaded into memory
24
B 0.000 … 0.200 T 0.200 TT 0.200 M: 1638.8 770.9
B 0.200 … 0.400 T 0.400 TT 0.400 M: 2054.1 786.0
B 0.400 … 0.600 T 0.600 TT 0.600 M: 1962.3 980.3
B 0.600 … 0.800 T 0.800 TT 0.800 M: 1399.5 617.5
B 0.800 … 1.000 T 1.000 TT 1.000 M: 1397.0 839.9
B 1.000 … 2.500 T 2.500 TT 2.500 M: 1830.8 902.8
B 2.500 … 4.000 T 4.000 TT 4.000 M: 1557.0 911.1
B 4.000 … 5.500 T 5.500 TT 5.500 M: 1464.9 988.0
B 5.500 … 7.000 T 7.000 TT 7.000 M: 1262.8 1217.9
B 7.000 … 8.500 T 8.500 TT 8.500 M: 1448.7 1217.9
B 8.500 … 12.500 T 12.500 TT 12.500 M: 1066.1 1376.0
B 12.500 … 13.000 T 13.000 TT 13.000 M: 369.0 510.0
Score finished in csoundPerformKsmps() with 2.
inactive allocs returned to freespace
end of score. overall amps: 2054.1 1376.0
overall samples out of range: 0 0

Runs without problem for me, too (in the Haiku OS!). Setting a "sr=44100" line
on my machine has no effect, Setting "sr=48000" generates a prominent warning
but I still get sound (I haven't checked for proper HRTF).

Jeanette, where do you find the 48K files? I only see the 44K ones in the examples.

  -- Pete --

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here

In the Csound sources.

Dear community,
it also works for me now. The reason has been corrupted *dat files.
What I would like to know: is there a special tutorial about the hrtf opcodes available?
Thanks,
Stefan

I think there is an article in the Csound journal.

Prof. Victor Lazzarini
Maynooth University
Ireland

Dear community,
it seems, that these opcodes are useful only with headphones, am I right?
Best,
Stefan

Yes, 100%, that is inherent to the HRTF model and binaural spatialisation. It may give some "depth" on stereo speakers, but more like a good stereo recording.

Best wishes,

Jeanette

Apr 10 2022, Stefan Thomas has written: