Csound Csound-dev Csound-tekno Search About

[Csnd] no sound with hrtfearly.csd

Date2022-04-05 17:16
FromStefan Thomas
Subject[Csnd] no sound with hrtfearly.csd
Dear community,
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

Date2022-04-05 18:21
From"Jeanette C."
SubjectRe: [Csnd] no sound with hrtfearly.csd
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

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

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

... About some useless information,
Supposed to fire my imagination <3
(Britney Spears)

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

Date2022-04-05 18:23
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] no sound with hrtfearly.csd
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





On 5 Apr 2022, at 17:16, Stefan Thomas <kontrapunktstefan@GMAIL.COM> wrote:

*Warning*

This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
Dear community,
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


Date2022-04-05 19:12
FromPete Goodeve
SubjectRe: [Csnd] [EXTERNAL] [Csnd] no sound with hrtfearly.csd
AttachmentsNone  

Date2022-04-05 19:52
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] no sound with hrtfearly.csd
In the Csound sources.

> On 5 Apr 2022, at 19:12, Pete Goodeve  wrote:
> 
> On Tue, Apr 05, 2022 at 05:23:38PM +0000, Victor Lazzarini wrote:
>> 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".
>> 
> 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://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cd3dd98e6665c49618e0f08da172fed83%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637847792020435188%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=QaoKsTPbmROkXQS9uIh7qecnShTMGn77h37Ey4jZ0G8%3D&reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cd3dd98e6665c49618e0f08da172fed83%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637847792020435188%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=wW79f9d5Rn9Bvbhu7HQ6%2BuzSKjvTEYDOGNDJ7459xOg%3D&reserved=0
> Discussions of bugs and features can be posted here

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

Date2022-04-07 20:58
FromStefan Thomas
SubjectRe: [Csnd] [EXTERNAL] [Csnd] no sound with hrtfearly.csd
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

Am Di., 5. Apr. 2022 um 20:12 Uhr schrieb Pete Goodeve <pete.goodeve@computer.org>:
On Tue, Apr 05, 2022 at 05:23:38PM +0000, Victor Lazzarini wrote:
> 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".
>
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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
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

Date2022-04-07 21:26
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] no sound with hrtfearly.csd
I think there is an article in the Csound journal.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 7 Apr 2022, at 20:59, Stefan Thomas <kontrapunktstefan@gmail.com> wrote:


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

Am Di., 5. Apr. 2022 um 20:12 Uhr schrieb Pete Goodeve <pete.goodeve@computer.org>:
On Tue, Apr 05, 2022 at 05:23:38PM +0000, Victor Lazzarini wrote:
> 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".
>
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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
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

Date2022-04-10 17:12
FromStefan Thomas
SubjectRe: [Csnd] [EXTERNAL] [Csnd] no sound with hrtfearly.csd
Dear community,
it seems, that these opcodes  are useful only with headphones, am I right?
Best,
Stefan

Am Do., 7. Apr. 2022 um 22:26 Uhr schrieb Victor Lazzarini <Victor.Lazzarini@mu.ie>:
I think there is an article in the Csound journal.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 7 Apr 2022, at 20:59, Stefan Thomas <kontrapunktstefan@gmail.com> wrote:


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

Am Di., 5. Apr. 2022 um 20:12 Uhr schrieb Pete Goodeve <pete.goodeve@computer.org>:
On Tue, Apr 05, 2022 at 05:23:38PM +0000, Victor Lazzarini wrote:
> 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".
>
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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
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
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
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

Date2022-04-10 17:20
From"Jeanette C."
SubjectRe: [Csnd] [EXTERNAL] [Csnd] no sound with hrtfearly.csd
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:

> Dear community,
> it seems, that these opcodes  are useful only with headphones, am I right?
> Best,
> Stefan
>
> Am Do., 7. Apr. 2022 um 22:26 Uhr schrieb Victor Lazzarini <
> Victor.Lazzarini@mu.ie>:
>
>> I think there is an article in the Csound journal.
>>
>> Prof. Victor Lazzarini
>> Maynooth University
>> Ireland
>>
>> On 7 Apr 2022, at 20:59, Stefan Thomas 
>> wrote:
>>
>> 
>> 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
>>
>> Am Di., 5. Apr. 2022 um 20:12 Uhr schrieb Pete Goodeve <
>> pete.goodeve@computer.org>:
>>
>>> On Tue, Apr 05, 2022 at 05:23:38PM +0000, Victor Lazzarini wrote:
>>>> 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".
>>>>
>>> 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
>>>         https://github.com/csound/csound/issues
>>> 
>>> Discussions of bugs and features can be posted here
>>>
>> 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
>>
>> 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
>
> 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
>

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

I love the things you say
And I love the love your touch conveys <3
(Britney Spears)

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