Csound Csound-dev Csound-tekno Search About

[Cs-dev] Sound Loading Bug

Date2005-02-16 03:53
Fromsteven yi
Subject[Cs-dev] Sound Loading Bug
Hi All,

I was trying to run ImproSculpt and was having problems loading AIFF 
files.  Sort of hard to figure out what was going on so I made a simple 
test file:



sr=44100
kr=441
ksmps=100
nchnls=2

instr 1

endin






f84   0  0   1  "/home/steven/improsculpt/PadWsSeq1_C2.aif"  0  0  0
f85   0  0   1  "/home/steven/improsculpt/PadWsSeq1_C2.aif"  0  0  0
f86   0  0   1  "/home/steven/improsculpt/PadWsSeq1_C2.aif"  0  0  0


i1 0 1






the results of which are:

[steven@localhost improsculpt]$ csound -+rtaudio=alsa -d -o dac test.csd
Localisation of messages is disabled, using default language.
ALSA real-time audio module for Csound by Istvan Varga
JACK real-time audio module for Csound by Istvan Varga
PortAudio real-time audio module for Csound by John ffitch
0dBFS level = 32767.0
time resolution is 1.668 ns
Csound version 5.00 beta (float samples) Feb 10 2005
libsndfile-1.0.11
UnifiedCSD:  test.csd
STARTING FILE
Creating orchestra
Creating /tmp/fileX1eLvp.orc (0x9cb68e0)
Creating score
orchname:  /tmp/fileX1eLvp.orc
scorename: /tmp/filedTt5cn.sco
**** allocgen tanh to 0x14a530
**** allocated 44
rtaudio: ALSA module enabled
orch compiler:
9 lines read
        instr   1
sorting score ...
        ... done
Csound version 5.00 beta (float samples) Feb 10 2005
displays suppressed
0dBFS level = 32767.0
orch now loaded
audio buffered in 512 sample-frame blocks
ALSA output: total buffer size: 1024, fragment size: 512
writing 4096-byte blks of shorts to dac

SECTION 1:
ftable 84:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /home/steven/improsculpt/PadWsSeq1_C2.aif
**** defer length 305426
Allocating 1221992 bytes
ftable 85:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /home/steven/improsculpt/PadWsSeq1_C2.aif
**** defer length 305426
Allocating 1221992 bytes
ftable 86:
deferred alloc
WARNING: /home/steven/improsculpt/PadWsSeq1_C2.aif sr = 150994944, orch 
sr = 44100.0
unknown sound format 43282(0xa912)
Early return from csoundPerformKsmps().inactive allocs returned to freespace
end of score.              overall amps:      0.0      0.0
           overall samples out of range:        0        0
0 errors in performance
0 4096-byte soundblks of shorts written to dac
Removing temporary file /tmp/file6kAtXk ...
Removing temporary file /tmp/filedTt5cn.sco ...
Removing temporary file /tmp/fileX1eLvp.orc ...


Now, if I change that to only two tables loading, things run:



sr=44100
kr=441
ksmps=100
nchnls=2

instr 1

endin






f84   0  0   1  "/home/steven/improsculpt/PadWsSeq1_C2.aif"  0  0  0
f85   0  0   1  "/home/steven/improsculpt/PadWsSeq1_C2.aif"  0  0  0


i1 0 1






and I get:

[steven@localhost improsculpt]$ csound -+rtaudio=alsa -d -o dac test.csd
Localisation of messages is disabled, using default language.
ALSA real-time audio module for Csound by Istvan Varga
JACK real-time audio module for Csound by Istvan Varga
PortAudio real-time audio module for Csound by John ffitch
0dBFS level = 32767.0
time resolution is 1.668 ns
Csound version 5.00 beta (float samples) Feb 10 2005
libsndfile-1.0.11
UnifiedCSD:  test.csd
STARTING FILE
Creating orchestra
Creating /tmp/file9mPGP2.orc (0x82558e0)
Creating score
orchname:  /tmp/file9mPGP2.orc
scorename: /tmp/fileJpgKP8.sco
**** allocgen tanh to 0x174530
**** allocated 44
rtaudio: ALSA module enabled
orch compiler:
9 lines read
        instr   1
sorting score ...
        ... done
Csound version 5.00 beta (float samples) Feb 10 2005
displays suppressed
0dBFS level = 32767.0
orch now loaded
audio buffered in 512 sample-frame blocks
ALSA output: total buffer size: 1024, fragment size: 512
writing 4096-byte blks of shorts to dac

SECTION 1:
ftable 84:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /home/steven/improsculpt/PadWsSeq1_C2.aif
**** defer length 305426
Allocating 1221992 bytes
ftable 85:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /home/steven/improsculpt/PadWsSeq1_C2.aif
**** defer length 305426
Allocating 1221992 bytes
new alloc for instr 1:
WARNING: Buffer underrun in real-time audio output
WARNING: Buffer underrun in real-time audio output
B  0.000 ..  1.000 T  1.000 TT  1.000 M:      0.0      0.0
Score finished in csoundPerformKsmps()
inactive allocs returned to freespace
end of score.              overall amps:      0.0      0.0
           overall samples out of range:        0        0
0 errors in performance
87 4096-byte soundblks of shorts written to dac
Removing temporary file /tmp/fileEkbSSe ...
Removing temporary file /tmp/fileJpgKP8.sco ...
Removing temporary file /tmp/file9mPGP2.orc ...


Any ideas?

Thanks,
steven


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-24 00:57
FromAndres Cabrera
SubjectRe: [Cs-dev] Sound Loading Bug
Hi,
I'm also getting this error, don't know if it's related...

ftable 8:
unknown sound format 260(0x104)

when trying:
f8  0 262144   -1 "beats.aiff" 0 4 0

That's the beats.aiff found in the examples folder in the manual module.


Cheers,
Andres

steven yi wrote:
> Hi All,
> 
> I was trying to run ImproSculpt and was having problems loading AIFF 
> files.  Sort of hard to figure out what was going on so I made a simple 
> test file:
> 
> 
> 
> sr=44100
> kr=441
> ksmps=100
> nchnls=2
> 
> instr 1
> 
> endin
> 
> 
> 
> 
> 
> 
> f84   0  0   1  "/home/steven/improsculpt/PadWsSeq1_C2.aif"  0  0  0
> f85   0  0   1  "/home/steven/improsculpt/PadWsSeq1_C2.aif"  0  0  0
> f86   0  0   1  "/home/steven/improsculpt/PadWsSeq1_C2.aif"  0  0  0
> 
> 
> i1 0 1
> 
> 
> 
> 
> 
> 
> the results of which are:
> 
> [steven@localhost improsculpt]$ csound -+rtaudio=alsa -d -o dac test.csd
> Localisation of messages is disabled, using default language.
> ALSA real-time audio module for Csound by Istvan Varga
> JACK real-time audio module for Csound by Istvan Varga
> PortAudio real-time audio module for Csound by John ffitch
> 0dBFS level = 32767.0
> time resolution is 1.668 ns
> Csound version 5.00 beta (float samples) Feb 10 2005
> libsndfile-1.0.11
> UnifiedCSD:  test.csd
> STARTING FILE
> Creating orchestra
> Creating /tmp/fileX1eLvp.orc (0x9cb68e0)
> Creating score
> orchname:  /tmp/fileX1eLvp.orc
> scorename: /tmp/filedTt5cn.sco
> **** allocgen tanh to 0x14a530
> **** allocated 44
> rtaudio: ALSA module enabled
> orch compiler:
> 9 lines read
>        instr   1
> sorting score ...
>        ... done
> Csound version 5.00 beta (float samples) Feb 10 2005
> displays suppressed
> 0dBFS level = 32767.0
> orch now loaded
> audio buffered in 512 sample-frame blocks
> ALSA output: total buffer size: 1024, fragment size: 512
> writing 4096-byte blks of shorts to dac
> 
> SECTION 1:
> ftable 84:
> deferred alloc
> audio sr = 44100, monaural
> opening AIFF infile /home/steven/improsculpt/PadWsSeq1_C2.aif
> **** defer length 305426
> Allocating 1221992 bytes
> ftable 85:
> deferred alloc
> audio sr = 44100, monaural
> opening AIFF infile /home/steven/improsculpt/PadWsSeq1_C2.aif
> **** defer length 305426
> Allocating 1221992 bytes
> ftable 86:
> deferred alloc
> WARNING: /home/steven/improsculpt/PadWsSeq1_C2.aif sr = 150994944, orch 
> sr = 44100.0
> unknown sound format 43282(0xa912)
> Early return from csoundPerformKsmps().inactive allocs returned to 
> freespace
> end of score.              overall amps:      0.0      0.0
>           overall samples out of range:        0        0
> 0 errors in performance
> 0 4096-byte soundblks of shorts written to dac
> Removing temporary file /tmp/file6kAtXk ...
> Removing temporary file /tmp/filedTt5cn.sco ...
> Removing temporary file /tmp/fileX1eLvp.orc ...
> 
> 
> Now, if I change that to only two tables loading, things run:
> 
> 
> 
> sr=44100
> kr=441
> ksmps=100
> nchnls=2
> 
> instr 1
> 
> endin
> 
> 
> 
> 
> 
> 
> f84   0  0   1  "/home/steven/improsculpt/PadWsSeq1_C2.aif"  0  0  0
> f85   0  0   1  "/home/steven/improsculpt/PadWsSeq1_C2.aif"  0  0  0
> 
> 
> i1 0 1
> 
> 
> 
> 
> 
> 
> and I get:
> 
> [steven@localhost improsculpt]$ csound -+rtaudio=alsa -d -o dac test.csd
> Localisation of messages is disabled, using default language.
> ALSA real-time audio module for Csound by Istvan Varga
> JACK real-time audio module for Csound by Istvan Varga
> PortAudio real-time audio module for Csound by John ffitch
> 0dBFS level = 32767.0
> time resolution is 1.668 ns
> Csound version 5.00 beta (float samples) Feb 10 2005
> libsndfile-1.0.11
> UnifiedCSD:  test.csd
> STARTING FILE
> Creating orchestra
> Creating /tmp/file9mPGP2.orc (0x82558e0)
> Creating score
> orchname:  /tmp/file9mPGP2.orc
> scorename: /tmp/fileJpgKP8.sco
> **** allocgen tanh to 0x174530
> **** allocated 44
> rtaudio: ALSA module enabled
> orch compiler:
> 9 lines read
>        instr   1
> sorting score ...
>        ... done
> Csound version 5.00 beta (float samples) Feb 10 2005
> displays suppressed
> 0dBFS level = 32767.0
> orch now loaded
> audio buffered in 512 sample-frame blocks
> ALSA output: total buffer size: 1024, fragment size: 512
> writing 4096-byte blks of shorts to dac
> 
> SECTION 1:
> ftable 84:
> deferred alloc
> audio sr = 44100, monaural
> opening AIFF infile /home/steven/improsculpt/PadWsSeq1_C2.aif
> **** defer length 305426
> Allocating 1221992 bytes
> ftable 85:
> deferred alloc
> audio sr = 44100, monaural
> opening AIFF infile /home/steven/improsculpt/PadWsSeq1_C2.aif
> **** defer length 305426
> Allocating 1221992 bytes
> new alloc for instr 1:
> WARNING: Buffer underrun in real-time audio output
> WARNING: Buffer underrun in real-time audio output
> B  0.000 ..  1.000 T  1.000 TT  1.000 M:      0.0      0.0
> Score finished in csoundPerformKsmps()
> inactive allocs returned to freespace
> end of score.              overall amps:      0.0      0.0
>           overall samples out of range:        0        0
> 0 errors in performance
> 87 4096-byte soundblks of shorts written to dac
> Removing temporary file /tmp/fileEkbSSe ...
> Removing temporary file /tmp/fileJpgKP8.sco ...
> Removing temporary file /tmp/file9mPGP2.orc ...
> 
> 
> Any ideas?
> 
> Thanks,
> steven
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-24 12:06
FromIstvan Varga
SubjectRe: [Cs-dev] Sound Loading Bug
Andres Cabrera wrote:

> I'm also getting this error, don't know if it's related...
> 
> ftable 8:
> unknown sound format 260(0x104)
> 
> when trying:
> f8  0 262144   -1 "beats.aiff" 0 4 0
> 
> That's the beats.aiff found in the examples folder in the manual module.

The switch to using libsndfile introduced a number of very
annoying but mostly easy to fix bugs. Does the table loading
work with WAV files ?


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-24 18:04
FromIstvan Varga
SubjectRe: [Cs-dev] Sound Loading Bug
Andres Cabrera wrote:

> I'm also getting this error, don't know if it's related...
> 
> ftable 8:
> unknown sound format 260(0x104)
> 
> when trying:
> f8  0 262144   -1 "beats.aiff" 0 4 0
> 
> That's the beats.aiff found in the examples folder in the manual module.

Does the latest developer CVS source fix this ? I have made
changes today that affect reading sound files, and may possibly
fix this bug (as well as loading stereo files both to ftables
and by the cvanal utility).


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-24 20:09
FromIstvan Varga
SubjectRe: [Cs-dev] Sound Loading Bug
Andres Cabrera wrote:

> I'm also getting this error, don't know if it's related...
> 
> ftable 8:
> unknown sound format 260(0x104)
> 
> when trying:
> f8  0 262144   -1 "beats.aiff" 0 4 0
> 
> That's the beats.aiff found in the examples folder in the manual module.

Does the latest developer CVS source fix this ? I have made
changes today that affect reading sound files, and may possibly
fix this bug (as well as loading stereo files both to ftables
and by the cvanal utility).



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-26 00:38
FromAndres Cabrera
SubjectRe: [Cs-dev] Sound Loading Bug
Thanks Istvan, it works now!

Andrés

Istvan Varga wrote:
> Andres Cabrera wrote:
> 
>> I'm also getting this error, don't know if it's related...
>>
>> ftable 8:
>> unknown sound format 260(0x104)
>>
>> when trying:
>> f8  0 262144   -1 "beats.aiff" 0 4 0
>>
>> That's the beats.aiff found in the examples folder in the manual module.
> 
> 
> Does the latest developer CVS source fix this ? I have made
> changes today that affect reading sound files, and may possibly
> fix this bug (as well as loading stereo files both to ftables
> and by the cvanal utility).
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net