Csound Csound-dev Csound-tekno Search About

[Csnd] loscil bug(?)

Date2010-07-04 17:32
FromPeiman Khosravi
Subject[Csnd] loscil bug(?)
Hello,

Can someone please try this simple csd.

There seems to be a bug in loscil:  the playback ends before the end of the file. This is causing problem in Cecilia 4 as well (that's how I noticed this problem), which uses loscil by default. 

Am I missing something here?

Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff

Thanks

Peiman


+++++++++


<CsoundSynthesizer>
<CsOptions>
-odac        -d    
</CsOptions>
<CsInstruments>

sr = 96000
ksmps = 10
nchnls = 1


instr 1
   kamp = 30000
   kcps = 1
   ifn = 1
   ibas = 1

   a1 loscil kamp, kcps, ifn, ibas, 0
   out a1
endin


</CsInstruments>
<CsScore>

f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1

i 1 0 20
e

</CsScore>
</CsoundSynthesizer>


Date2010-07-04 20:04
Frommenno
Subject[Csnd] Re: loscil bug(?)
Hi Peiman,
i could not get acces to your sample so i took "beats.wav" and "fox.wav".
That works fine here.
Ubuntu, Csound doubles


peiman wrote:
> 
> Hello,
> 
> Can someone please try this simple csd.
> 
> There seems to be a bug in loscil:  the playback ends before the end  
> of the file. This is causing problem in Cecilia 4 as well (that's how  
> I noticed this problem), which uses loscil by default.
> 
> Am I missing something here?
> 
> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
> 
> Thanks
> 
> Peiman
> 
> 
> +++++++++
> 
> 
> 
> 
> -odac        -d
> 
> 
> 
> sr = 96000
> ksmps = 10
> nchnls = 1
> 
> 
> instr 1
>     kamp = 30000
>     kcps = 1
>     ifn = 1
>     ibas = 1
> 
>     a1 loscil kamp, kcps, ifn, ibas, 0
>     out a1
> endin
> 
> 
> 
> 
> 
> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
> 
> i 1 0 20
> e
> 
> 
> 
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 
> 
> 

Date2010-07-04 20:28
FromPeiman Khosravi
Subject[Csnd] Re: Re: loscil bug(?)
Thanks Menno,

It seems that the problem is with stereo files. In fact I just  
reinstalled csound to be sure that I have the very latest version and  
now I get this error with exactly the same csd (OS X, float).

In fact most likely the issue is in GEN01 rather than loscil itself  
(?). I think GEN01 is not reading the file header correctly, at least  
on os x. It happens with wav and aif files (44100 and 96000, 24bit).

Thanks

Peiman

  SECTION 1:
ftable 1:
deferred alloc
audio sr = 96000, stereo, reading channel 1
opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
   defer length 280226
ftable 1:	280226 points, scalemax 1.000
        '
           '
      .            .
____.____.__'__-____'__.__.__._-__-__._.._- 
_____________________________________
' '          .   .       _    - '' '  '  '  ' ' '' '  ''''''' '     '  
'     ' ''
            .  _ -  .  ' '  '
       .



    '
new alloc for instr 1:
INIT ERROR in instr 1: mono loscil cannot read from stereo ftable
a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
	  B  0.000 - note deleted.  i1 had 1 init errors
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.		   overall amps:      0.0
	   overall samples out of range:        0
1 errors in performance
Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
0 2048-byte soundblks of shorts written to dac
------- Compiler Ended -------


On 4 Jul 2010, at 20:04, menno wrote:

>
> Hi Peiman,
> i could not get acces to your sample so i took "beats.wav" and  
> "fox.wav".
> That works fine here.
> Ubuntu, Csound doubles
>
>
> peiman wrote:
>>
>> Hello,
>>
>> Can someone please try this simple csd.
>>
>> There seems to be a bug in loscil:  the playback ends before the end
>> of the file. This is causing problem in Cecilia 4 as well (that's how
>> I noticed this problem), which uses loscil by default.
>>
>> Am I missing something here?
>>
>> Here is my soundfile http://idisk.mac.com/peimankh/Public/ 
>> LidHit1.aiff
>>
>> Thanks
>>
>> Peiman
>>
>>
>> +++++++++
>>
>>
>> 
>> 
>> -odac        -d
>> 
>> 
>>
>> sr = 96000
>> ksmps = 10
>> nchnls = 1
>>
>>
>> instr 1
>>    kamp = 30000
>>    kcps = 1
>>    ifn = 1
>>    ibas = 1
>>
>>    a1 loscil kamp, kcps, ifn, ibas, 0
>>    out a1
>> endin
>>
>>
>> 
>> 
>>
>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>
>> i 1 0 20
>> e
>>
>> 
>> 
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/? 
>> group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe
>> csound"
>>
>>
>>
>
> -- 
> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-07-04 20:55
Fromjoachim heintz
Subject[Csnd] Re: Re: Re: loscil bug(?)
i think your file is really stereo, so you must use the stereo variant  
of loscil:
ar1, ar2 loscil xamp, kcps, ifn etc
?

	joachim


Am 04.07.2010 um 21:28 schrieb Peiman Khosravi:

> Thanks Menno,
>
> It seems that the problem is with stereo files. In fact I just  
> reinstalled csound to be sure that I have the very latest version  
> and now I get this error with exactly the same csd (OS X, float).
>
> In fact most likely the issue is in GEN01 rather than loscil itself  
> (?). I think GEN01 is not reading the file header correctly, at  
> least on os x. It happens with wav and aif files (44100 and 96000,  
> 24bit).
>
> Thanks
>
> Peiman
>
> SECTION 1:
> ftable 1:
> deferred alloc
> audio sr = 96000, stereo, reading channel 1
> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>  defer length 280226
> ftable 1:	280226 points, scalemax 1.000
>       '
>          '
>     .            .
> ____.____.__'__-____'__.__.__._-__-__._.._- 
> _____________________________________
> ' '          .   .       _    - '' '  '  '  ' ' '' '  ''''''' '      
> ' '     ' ''
>           .  _ -  .  ' '  '
>      .
>
>
>
>   '
> new alloc for instr 1:
> INIT ERROR in instr 1: mono loscil cannot read from stereo ftable
> a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
> 	  B  0.000 - note deleted.  i1 had 1 init errors
> Score finished in csoundPerform().
> inactive allocs returned to freespace
> end of score.		   overall amps:      0.0
> 	   overall samples out of range:        0
> 1 errors in performance
> Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
> 0 2048-byte soundblks of shorts written to dac
> ------- Compiler Ended -------
>
>
> On 4 Jul 2010, at 20:04, menno wrote:
>
>>
>> Hi Peiman,
>> i could not get acces to your sample so i took "beats.wav" and  
>> "fox.wav".
>> That works fine here.
>> Ubuntu, Csound doubles
>>
>>
>> peiman wrote:
>>>
>>> Hello,
>>>
>>> Can someone please try this simple csd.
>>>
>>> There seems to be a bug in loscil:  the playback ends before the end
>>> of the file. This is causing problem in Cecilia 4 as well (that's  
>>> how
>>> I noticed this problem), which uses loscil by default.
>>>
>>> Am I missing something here?
>>>
>>> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
>>>
>>> Thanks
>>>
>>> Peiman
>>>
>>>
>>> +++++++++
>>>
>>>
>>> 
>>> 
>>> -odac        -d
>>> 
>>> 
>>>
>>> sr = 96000
>>> ksmps = 10
>>> nchnls = 1
>>>
>>>
>>> instr 1
>>>   kamp = 30000
>>>   kcps = 1
>>>   ifn = 1
>>>   ibas = 1
>>>
>>>   a1 loscil kamp, kcps, ifn, ibas, 0
>>>   out a1
>>> endin
>>>
>>>
>>> 
>>> 
>>>
>>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>>
>>> i 1 0 20
>>> e
>>>
>>> 
>>> 
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>           https://sourceforge.net/tracker/? 
>>> group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe
>>> csound"
>>>
>>>
>>>
>>
>> -- 
>> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-07-04 21:03
FromPeiman Khosravi
Subject[Csnd] Re: Re: Re: Re: loscil bug(?)
Yes my file is stereo but I am only reading one channel into GEN01 so  
surely loscil should work as mono no?

Thanks

P

On 4 Jul 2010, at 20:55, joachim heintz wrote:

> i think your file is really stereo, so you must use the stereo  
> variant of loscil:
> ar1, ar2 loscil xamp, kcps, ifn etc
> ?
>
> 	joachim
>
>
> Am 04.07.2010 um 21:28 schrieb Peiman Khosravi:
>
>> Thanks Menno,
>>
>> It seems that the problem is with stereo files. In fact I just  
>> reinstalled csound to be sure that I have the very latest version  
>> and now I get this error with exactly the same csd (OS X, float).
>>
>> In fact most likely the issue is in GEN01 rather than loscil itself  
>> (?). I think GEN01 is not reading the file header correctly, at  
>> least on os x. It happens with wav and aif files (44100 and 96000,  
>> 24bit).
>>
>> Thanks
>>
>> Peiman
>>
>> SECTION 1:
>> ftable 1:
>> deferred alloc
>> audio sr = 96000, stereo, reading channel 1
>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>> defer length 280226
>> ftable 1:	280226 points, scalemax 1.000
>>      '
>>         '
>>    .            .
>> ____.____.__'__-____'__.__.__._-__-__._.._- 
>> _____________________________________
>> ' '          .   .       _    - '' '  '  '  ' ' '' '  ''''''' '      
>> ' '     ' ''
>>          .  _ -  .  ' '  '
>>     .
>>
>>
>>
>>  '
>> new alloc for instr 1:
>> INIT ERROR in instr 1: mono loscil cannot read from stereo ftable
>> a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>> Score finished in csoundPerform().
>> inactive allocs returned to freespace
>> end of score.		   overall amps:      0.0
>> 	   overall samples out of range:        0
>> 1 errors in performance
>> Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
>> 0 2048-byte soundblks of shorts written to dac
>> ------- Compiler Ended -------
>>
>>
>> On 4 Jul 2010, at 20:04, menno wrote:
>>
>>>
>>> Hi Peiman,
>>> i could not get acces to your sample so i took "beats.wav" and  
>>> "fox.wav".
>>> That works fine here.
>>> Ubuntu, Csound doubles
>>>
>>>
>>> peiman wrote:
>>>>
>>>> Hello,
>>>>
>>>> Can someone please try this simple csd.
>>>>
>>>> There seems to be a bug in loscil:  the playback ends before the  
>>>> end
>>>> of the file. This is causing problem in Cecilia 4 as well (that's  
>>>> how
>>>> I noticed this problem), which uses loscil by default.
>>>>
>>>> Am I missing something here?
>>>>
>>>> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
>>>>
>>>> Thanks
>>>>
>>>> Peiman
>>>>
>>>>
>>>> +++++++++
>>>>
>>>>
>>>> 
>>>> 
>>>> -odac        -d
>>>> 
>>>> 
>>>>
>>>> sr = 96000
>>>> ksmps = 10
>>>> nchnls = 1
>>>>
>>>>
>>>> instr 1
>>>>  kamp = 30000
>>>>  kcps = 1
>>>>  ifn = 1
>>>>  ibas = 1
>>>>
>>>>  a1 loscil kamp, kcps, ifn, ibas, 0
>>>>  out a1
>>>> endin
>>>>
>>>>
>>>> 
>>>> 
>>>>
>>>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>>>
>>>> i 1 0 20
>>>> e
>>>>
>>>> 
>>>> 
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>          https://sourceforge.net/tracker/? 
>>>> group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe
>>>> csound"
>>>>
>>>>
>>>>
>>>
>>> -- 
>>> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-07-04 21:09
FromPeiman Khosravi
Subject[Csnd] Re: Re: Re: Re: loscil bug(?)
The error says "mono loscil cannot read from stereo ftable", but the  
ftable I have defined is mono:

f 1 0 0 1 "LidHit1.aiff" 0 0 1

Or isn't it?

Peiman


On 4 Jul 2010, at 20:55, joachim heintz wrote:

> i think your file is really stereo, so you must use the stereo  
> variant of loscil:
> ar1, ar2 loscil xamp, kcps, ifn etc
> ?
>
> 	joachim
>
>
> Am 04.07.2010 um 21:28 schrieb Peiman Khosravi:
>
>> Thanks Menno,
>>
>> It seems that the problem is with stereo files. In fact I just  
>> reinstalled csound to be sure that I have the very latest version  
>> and now I get this error with exactly the same csd (OS X, float).
>>
>> In fact most likely the issue is in GEN01 rather than loscil itself  
>> (?). I think GEN01 is not reading the file header correctly, at  
>> least on os x. It happens with wav and aif files (44100 and 96000,  
>> 24bit).
>>
>> Thanks
>>
>> Peiman
>>
>> SECTION 1:
>> ftable 1:
>> deferred alloc
>> audio sr = 96000, stereo, reading channel 1
>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>> defer length 280226
>> ftable 1:	280226 points, scalemax 1.000
>>      '
>>         '
>>    .            .
>> ____.____.__'__-____'__.__.__._-__-__._.._- 
>> _____________________________________
>> ' '          .   .       _    - '' '  '  '  ' ' '' '  ''''''' '      
>> ' '     ' ''
>>          .  _ -  .  ' '  '
>>     .
>>
>>
>>
>>  '
>> new alloc for instr 1:
>> INIT ERROR in instr 1: mono loscil cannot read from stereo ftable
>> a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>> Score finished in csoundPerform().
>> inactive allocs returned to freespace
>> end of score.		   overall amps:      0.0
>> 	   overall samples out of range:        0
>> 1 errors in performance
>> Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
>> 0 2048-byte soundblks of shorts written to dac
>> ------- Compiler Ended -------
>>
>>
>> On 4 Jul 2010, at 20:04, menno wrote:
>>
>>>
>>> Hi Peiman,
>>> i could not get acces to your sample so i took "beats.wav" and  
>>> "fox.wav".
>>> That works fine here.
>>> Ubuntu, Csound doubles
>>>
>>>
>>> peiman wrote:
>>>>
>>>> Hello,
>>>>
>>>> Can someone please try this simple csd.
>>>>
>>>> There seems to be a bug in loscil:  the playback ends before the  
>>>> end
>>>> of the file. This is causing problem in Cecilia 4 as well (that's  
>>>> how
>>>> I noticed this problem), which uses loscil by default.
>>>>
>>>> Am I missing something here?
>>>>
>>>> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
>>>>
>>>> Thanks
>>>>
>>>> Peiman
>>>>
>>>>
>>>> +++++++++
>>>>
>>>>
>>>> 
>>>> 
>>>> -odac        -d
>>>> 
>>>> 
>>>>
>>>> sr = 96000
>>>> ksmps = 10
>>>> nchnls = 1
>>>>
>>>>
>>>> instr 1
>>>>  kamp = 30000
>>>>  kcps = 1
>>>>  ifn = 1
>>>>  ibas = 1
>>>>
>>>>  a1 loscil kamp, kcps, ifn, ibas, 0
>>>>  out a1
>>>> endin
>>>>
>>>>
>>>> 
>>>> 
>>>>
>>>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>>>
>>>> i 1 0 20
>>>> e
>>>>
>>>> 
>>>> 
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>          https://sourceforge.net/tracker/? 
>>>> group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe
>>>> csound"
>>>>
>>>>
>>>>
>>>
>>> -- 
>>> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-07-04 23:31
FromPeiman Khosravi
Subject[Csnd] GEN01 related bug [wasRe: Re: Re: Re: loscil bug(?)]
OK I've been testing this and found the source of the problem. No  
matter what I set  the 'channel' p-filed (p8) to for GEN01, ftchnls(x)  
returns the number of channels in the file rather than the table  
itself.  This should logically only happen if 'channel' is set to 0,  
otherwise it should always return 1. Test the csd below with any  
stereo file.

In the older version of csound loscil is actually miscalculating the  
length of stereo files that are being read one channel at a time  
(always dividing the number of samples by 2), in the latest version  
loscil returns an error.



-odac        -d



sr = 96000
ksmps = 10
nchnls = 1


instr 1
  inumbChans = ftchnls(1)
  print inumbChans
  endin





f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 2

i 1 0 .2






On 4 Jul 2010, at 20:55, joachim heintz wrote:

> i think your file is really stereo, so you must use the stereo  
> variant of loscil:
> ar1, ar2 loscil xamp, kcps, ifn etc
> ?
>
> 	joachim
>
>
> Am 04.07.2010 um 21:28 schrieb Peiman Khosravi:
>
>> Thanks Menno,
>>
>> It seems that the problem is with stereo files. In fact I just  
>> reinstalled csound to be sure that I have the very latest version  
>> and now I get this error with exactly the same csd (OS X, float).
>>
>> In fact most likely the issue is in GEN01 rather than loscil itself  
>> (?). I think GEN01 is not reading the file header correctly, at  
>> least on os x. It happens with wav and aif files (44100 and 96000,  
>> 24bit).
>>
>> Thanks
>>
>> Peiman
>>
>> SECTION 1:
>> ftable 1:
>> deferred alloc
>> audio sr = 96000, stereo, reading channel 1
>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>> defer length 280226
>> ftable 1:	280226 points, scalemax 1.000
>>      '
>>         '
>>    .            .
>> ____.____.__'__-____'__.__.__._-__-__._.._- 
>> _____________________________________
>> ' '          .   .       _    - '' '  '  '  ' ' '' '  ''''''' '      
>> ' '     ' ''
>>          .  _ -  .  ' '  '
>>     .
>>
>>
>>
>>  '
>> new alloc for instr 1:
>> INIT ERROR in instr 1: mono loscil cannot read from stereo ftable
>> a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>> Score finished in csoundPerform().
>> inactive allocs returned to freespace
>> end of score.		   overall amps:      0.0
>> 	   overall samples out of range:        0
>> 1 errors in performance
>> Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
>> 0 2048-byte soundblks of shorts written to dac
>> ------- Compiler Ended -------
>>
>>
>> On 4 Jul 2010, at 20:04, menno wrote:
>>
>>>
>>> Hi Peiman,
>>> i could not get acces to your sample so i took "beats.wav" and  
>>> "fox.wav".
>>> That works fine here.
>>> Ubuntu, Csound doubles
>>>
>>>
>>> peiman wrote:
>>>>
>>>> Hello,
>>>>
>>>> Can someone please try this simple csd.
>>>>
>>>> There seems to be a bug in loscil:  the playback ends before the  
>>>> end
>>>> of the file. This is causing problem in Cecilia 4 as well (that's  
>>>> how
>>>> I noticed this problem), which uses loscil by default.
>>>>
>>>> Am I missing something here?
>>>>
>>>> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
>>>>
>>>> Thanks
>>>>
>>>> Peiman
>>>>
>>>>
>>>> +++++++++
>>>>
>>>>
>>>> 
>>>> 
>>>> -odac        -d
>>>> 
>>>> 
>>>>
>>>> sr = 96000
>>>> ksmps = 10
>>>> nchnls = 1
>>>>
>>>>
>>>> instr 1
>>>>  kamp = 30000
>>>>  kcps = 1
>>>>  ifn = 1
>>>>  ibas = 1
>>>>
>>>>  a1 loscil kamp, kcps, ifn, ibas, 0
>>>>  out a1
>>>> endin
>>>>
>>>>
>>>> 
>>>> 
>>>>
>>>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>>>
>>>> i 1 0 20
>>>> e
>>>>
>>>> 
>>>> 
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>          https://sourceforge.net/tracker/? 
>>>> group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe
>>>> csound"
>>>>
>>>>
>>>>
>>>
>>> -- 
>>> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-07-04 23:38
FromPeiman Khosravi
Subject[Csnd] Re: GEN01 related bug [wasRe: Re: Re: Re: loscil bug(?)]
OK I've been testing this and found the source of the problem. No  
matter what I set  the 'channel' p-filed (p8) to for GEN01, ftchnls(x)  
returns the number of channels in the file rather than the table  
itself.  This should logically only happen if 'channel' is set to 0,  
otherwise it should always return 1. Test the csd below with any  
stereo file.

In the older version of csound loscil is actually miscalculating the  
length of stereo files that are being read one channel at a time  
(always dividing the number of samples by 2), in the latest version  
loscil returns an error.



-odac        -d



sr = 96000
ksmps = 10
nchnls = 1


instr 1
inumbChans = ftchnls(1)
print inumbChans
endin





f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 2

i 1 0 .2






> On 4 Jul 2010, at 20:55, joachim heintz wrote:
>
>> i think your file is really stereo, so you must use the stereo  
>> variant of loscil:
>> ar1, ar2 loscil xamp, kcps, ifn etc
>> ?
>>
>> 	joachim
>>
>>
>> Am 04.07.2010 um 21:28 schrieb Peiman Khosravi:
>>
>>> Thanks Menno,
>>>
>>> It seems that the problem is with stereo files. In fact I just  
>>> reinstalled csound to be sure that I have the very latest version  
>>> and now I get this error with exactly the same csd (OS X, float).
>>>
>>> In fact most likely the issue is in GEN01 rather than loscil  
>>> itself (?). I think GEN01 is not reading the file header  
>>> correctly, at least on os x. It happens with wav and aif files  
>>> (44100 and 96000, 24bit).
>>>
>>> Thanks
>>>
>>> Peiman
>>>
>>> SECTION 1:
>>> ftable 1:
>>> deferred alloc
>>> audio sr = 96000, stereo, reading channel 1
>>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>>> defer length 280226
>>> ftable 1:	280226 points, scalemax 1.000
>>>     '
>>>        '
>>>   .            .
>>> ____.____.__'__-____'__.__.__._-__-__._.._- 
>>> _____________________________________
>>> ' '          .   .       _    - '' '  '  '  ' ' '' '  '''''''  
>>> '     ' '     ' ''
>>>         .  _ -  .  ' '  '
>>>    .
>>>
>>>
>>>
>>> '
>>> new alloc for instr 1:
>>> INIT ERROR in instr 1: mono loscil cannot read from stereo ftable
>>> a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
>>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>>> Score finished in csoundPerform().
>>> inactive allocs returned to freespace
>>> end of score.		   overall amps:      0.0
>>> 	   overall samples out of range:        0
>>> 1 errors in performance
>>> Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
>>> 0 2048-byte soundblks of shorts written to dac
>>> ------- Compiler Ended -------
>>>
>>>
>>> On 4 Jul 2010, at 20:04, menno wrote:
>>>
>>>>
>>>> Hi Peiman,
>>>> i could not get acces to your sample so i took "beats.wav" and  
>>>> "fox.wav".
>>>> That works fine here.
>>>> Ubuntu, Csound doubles
>>>>
>>>>
>>>> peiman wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> Can someone please try this simple csd.
>>>>>
>>>>> There seems to be a bug in loscil:  the playback ends before the  
>>>>> end
>>>>> of the file. This is causing problem in Cecilia 4 as well  
>>>>> (that's how
>>>>> I noticed this problem), which uses loscil by default.
>>>>>
>>>>> Am I missing something here?
>>>>>
>>>>> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
>>>>>
>>>>> Thanks
>>>>>
>>>>> Peiman
>>>>>
>>>>>
>>>>> +++++++++
>>>>>
>>>>>
>>>>> 
>>>>> 
>>>>> -odac        -d
>>>>> 
>>>>> 
>>>>>
>>>>> sr = 96000
>>>>> ksmps = 10
>>>>> nchnls = 1
>>>>>
>>>>>
>>>>> instr 1
>>>>> kamp = 30000
>>>>> kcps = 1
>>>>> ifn = 1
>>>>> ibas = 1
>>>>>
>>>>> a1 loscil kamp, kcps, ifn, ibas, 0
>>>>> out a1
>>>>> endin
>>>>>
>>>>>
>>>>> 
>>>>> 
>>>>>
>>>>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>>>>
>>>>> i 1 0 20
>>>>> e
>>>>>
>>>>> 
>>>>> 
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>         https://sourceforge.net/tracker/? 
>>>>> group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>> "unsubscribe
>>>>> csound"
>>>>>
>>>>>
>>>>>
>>>>
>>>> -- 
>>>> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe csound"
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-07-05 07:39
Fromjoachim heintz
Subject[Csnd] Re: Re: Re: Re: Re: loscil bug(?)
yes, now i understand what you mean. i tested it and found that it  
works when you built the ftables in the header with ftgen, but not in  
the score with a f-statement. can you try?

	joachim


Am 04.07.2010 um 22:09 schrieb Peiman Khosravi:

> The error says "mono loscil cannot read from stereo ftable", but the  
> ftable I have defined is mono:
>
> f 1 0 0 1 "LidHit1.aiff" 0 0 1
>
> Or isn't it?
>
> Peiman
>
>
> On 4 Jul 2010, at 20:55, joachim heintz wrote:
>
>> i think your file is really stereo, so you must use the stereo  
>> variant of loscil:
>> ar1, ar2 loscil xamp, kcps, ifn etc
>> ?
>>
>> 	joachim
>>
>>
>> Am 04.07.2010 um 21:28 schrieb Peiman Khosravi:
>>
>>> Thanks Menno,
>>>
>>> It seems that the problem is with stereo files. In fact I just  
>>> reinstalled csound to be sure that I have the very latest version  
>>> and now I get this error with exactly the same csd (OS X, float).
>>>
>>> In fact most likely the issue is in GEN01 rather than loscil  
>>> itself (?). I think GEN01 is not reading the file header  
>>> correctly, at least on os x. It happens with wav and aif files  
>>> (44100 and 96000, 24bit).
>>>
>>> Thanks
>>>
>>> Peiman
>>>
>>> SECTION 1:
>>> ftable 1:
>>> deferred alloc
>>> audio sr = 96000, stereo, reading channel 1
>>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>>> defer length 280226
>>> ftable 1:	280226 points, scalemax 1.000
>>>     '
>>>        '
>>>   .            .
>>> ____.____.__'__-____'__.__.__._-__-__._.._- 
>>> _____________________________________
>>> ' '          .   .       _    - '' '  '  '  ' ' '' '  '''''''  
>>> '     ' '     ' ''
>>>         .  _ -  .  ' '  '
>>>    .
>>>
>>>
>>>
>>> '
>>> new alloc for instr 1:
>>> INIT ERROR in instr 1: mono loscil cannot read from stereo ftable
>>> a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
>>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>>> Score finished in csoundPerform().
>>> inactive allocs returned to freespace
>>> end of score.		   overall amps:      0.0
>>> 	   overall samples out of range:        0
>>> 1 errors in performance
>>> Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
>>> 0 2048-byte soundblks of shorts written to dac
>>> ------- Compiler Ended -------
>>>
>>>
>>> On 4 Jul 2010, at 20:04, menno wrote:
>>>
>>>>
>>>> Hi Peiman,
>>>> i could not get acces to your sample so i took "beats.wav" and  
>>>> "fox.wav".
>>>> That works fine here.
>>>> Ubuntu, Csound doubles
>>>>
>>>>
>>>> peiman wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> Can someone please try this simple csd.
>>>>>
>>>>> There seems to be a bug in loscil:  the playback ends before the  
>>>>> end
>>>>> of the file. This is causing problem in Cecilia 4 as well  
>>>>> (that's how
>>>>> I noticed this problem), which uses loscil by default.
>>>>>
>>>>> Am I missing something here?
>>>>>
>>>>> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
>>>>>
>>>>> Thanks
>>>>>
>>>>> Peiman
>>>>>
>>>>>
>>>>> +++++++++
>>>>>
>>>>>
>>>>> 
>>>>> 
>>>>> -odac        -d
>>>>> 
>>>>> 
>>>>>
>>>>> sr = 96000
>>>>> ksmps = 10
>>>>> nchnls = 1
>>>>>
>>>>>
>>>>> instr 1
>>>>> kamp = 30000
>>>>> kcps = 1
>>>>> ifn = 1
>>>>> ibas = 1
>>>>>
>>>>> a1 loscil kamp, kcps, ifn, ibas, 0
>>>>> out a1
>>>>> endin
>>>>>
>>>>>
>>>>> 
>>>>> 
>>>>>
>>>>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>>>>
>>>>> i 1 0 20
>>>>> e
>>>>>
>>>>> 
>>>>> 
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>         https://sourceforge.net/tracker/? 
>>>>> group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>> "unsubscribe
>>>>> csound"
>>>>>
>>>>>
>>>>>
>>>>
>>>> -- 
>>>> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe csound"
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-07-05 08:01
Fromjoachim heintz
Subject[Csnd] Re: Re: Re: Re: Re: Re: loscil bug(?)
sorry, forget my previous post; i made a typo with the f-statement.
for me it works (osx 10.5.8, csound 5.12.4). this is the code and the  
output:





0dbfs = 1
ksmps = 32
sr = 96000
instr 1
a1 loscil 1, 1, 1, 1, 0
out a1
endin


f 1 0 0 1 "LidHit1.aiff" 0 0 1
i 1 0 3



PortAudio: selected output device 'Ausgang (integriert)'
writing 2048-byte blks of shorts to dac
SECTION 1:
ftable 1:
deferred alloc
audio sr = 96000, stereo, reading channel 1
opening AIFF infile LidHit1.aiff
defer length 280226
new alloc for instr 1:
B 0.000 .. 3.000 T 3.000 TT 3.000 M: 1.00000
Score finished in csoundPerformKsmps().
inactive allocs returned to freespace
end of score.	 overall amps: 1.00000
overall samples out of range: 0
0 errors in performance
Elapsed time at end of performance: real: 5.088s, CPU: 0.744s
282 2048-byte soundblks of shorts written to dac

	joachim

Am 05.07.2010 um 08:39 schrieb joachim heintz:

> yes, now i understand what you mean. i tested it and found that it  
> works when you built the ftables in the header with ftgen, but not  
> in the score with a f-statement. can you try?
>
> 	joachim
>
>
> Am 04.07.2010 um 22:09 schrieb Peiman Khosravi:
>
>> The error says "mono loscil cannot read from stereo ftable", but  
>> the ftable I have defined is mono:
>>
>> f 1 0 0 1 "LidHit1.aiff" 0 0 1
>>
>> Or isn't it?
>>
>> Peiman
>>
>>
>> On 4 Jul 2010, at 20:55, joachim heintz wrote:
>>
>>> i think your file is really stereo, so you must use the stereo  
>>> variant of loscil:
>>> ar1, ar2 loscil xamp, kcps, ifn etc
>>> ?
>>>
>>> 	joachim
>>>
>>>
>>> Am 04.07.2010 um 21:28 schrieb Peiman Khosravi:
>>>
>>>> Thanks Menno,
>>>>
>>>> It seems that the problem is with stereo files. In fact I just  
>>>> reinstalled csound to be sure that I have the very latest version  
>>>> and now I get this error with exactly the same csd (OS X, float).
>>>>
>>>> In fact most likely the issue is in GEN01 rather than loscil  
>>>> itself (?). I think GEN01 is not reading the file header  
>>>> correctly, at least on os x. It happens with wav and aif files  
>>>> (44100 and 96000, 24bit).
>>>>
>>>> Thanks
>>>>
>>>> Peiman
>>>>
>>>> SECTION 1:
>>>> ftable 1:
>>>> deferred alloc
>>>> audio sr = 96000, stereo, reading channel 1
>>>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>>>> defer length 280226
>>>> ftable 1:	280226 points, scalemax 1.000
>>>>    '
>>>>       '
>>>>  .            .
>>>> ____.____.__'__-____'__.__.__._-__-__._.._- 
>>>> _____________________________________
>>>> ' '          .   .       _    - '' '  '  '  ' ' '' '  '''''''  
>>>> '     ' '     ' ''
>>>>        .  _ -  .  ' '  '
>>>>   .
>>>>
>>>>
>>>>
>>>> '
>>>> new alloc for instr 1:
>>>> INIT ERROR in instr 1: mono loscil cannot read from stereo ftable
>>>> a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
>>>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>>>> Score finished in csoundPerform().
>>>> inactive allocs returned to freespace
>>>> end of score.		   overall amps:      0.0
>>>> 	   overall samples out of range:        0
>>>> 1 errors in performance
>>>> Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
>>>> 0 2048-byte soundblks of shorts written to dac
>>>> ------- Compiler Ended -------
>>>>
>>>>
>>>> On 4 Jul 2010, at 20:04, menno wrote:
>>>>
>>>>>
>>>>> Hi Peiman,
>>>>> i could not get acces to your sample so i took "beats.wav" and  
>>>>> "fox.wav".
>>>>> That works fine here.
>>>>> Ubuntu, Csound doubles
>>>>>
>>>>>
>>>>> peiman wrote:
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> Can someone please try this simple csd.
>>>>>>
>>>>>> There seems to be a bug in loscil:  the playback ends before  
>>>>>> the end
>>>>>> of the file. This is causing problem in Cecilia 4 as well  
>>>>>> (that's how
>>>>>> I noticed this problem), which uses loscil by default.
>>>>>>
>>>>>> Am I missing something here?
>>>>>>
>>>>>> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Peiman
>>>>>>
>>>>>>
>>>>>> +++++++++
>>>>>>
>>>>>>
>>>>>> 
>>>>>> 
>>>>>> -odac        -d
>>>>>> 
>>>>>> 
>>>>>>
>>>>>> sr = 96000
>>>>>> ksmps = 10
>>>>>> nchnls = 1
>>>>>>
>>>>>>
>>>>>> instr 1
>>>>>> kamp = 30000
>>>>>> kcps = 1
>>>>>> ifn = 1
>>>>>> ibas = 1
>>>>>>
>>>>>> a1 loscil kamp, kcps, ifn, ibas, 0
>>>>>> out a1
>>>>>> endin
>>>>>>
>>>>>>
>>>>>> 
>>>>>> 
>>>>>>
>>>>>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>>>>>
>>>>>> i 1 0 20
>>>>>> e
>>>>>>
>>>>>> 
>>>>>> 
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>        https://sourceforge.net/tracker/? 
>>>>>> group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>> "unsubscribe
>>>>>> csound"
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> -- 
>>>>> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
>>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>        https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>> "unsubscribe csound"
>>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>        https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe csound"
>>>>
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-07-05 10:12
FromPeiman Khosravi
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: loscil bug(?)
Thanks Joachim,

I just checked and for some reason safari has automatically detected  
csound 5.12.3 as the latest version yesterday. So I installed csound  
5.12.4 and it is now working. However I get the error with your csd  
when running csound64. Could it be that the universal installer didn't  
install csound double?

Thanks

Peiman

On 5 Jul 2010, at 08:01, joachim heintz wrote:

> sorry, forget my previous post; i made a typo with the f-statement.
> for me it works (osx 10.5.8, csound 5.12.4). this is the code and  
> the output:
>
> 
> 
> 
> 
> 0dbfs = 1
> ksmps = 32
> sr = 96000
> instr 1
> a1 loscil 1, 1, 1, 1, 0
> out a1
> endin
> 
> 
> f 1 0 0 1 "LidHit1.aiff" 0 0 1
> i 1 0 3
> 
> 
>
> PortAudio: selected output device 'Ausgang (integriert)'
> writing 2048-byte blks of shorts to dac
> SECTION 1:
> ftable 1:
> deferred alloc
> audio sr = 96000, stereo, reading channel 1
> opening AIFF infile LidHit1.aiff
> defer length 280226
> new alloc for instr 1:
> B 0.000 .. 3.000 T 3.000 TT 3.000 M: 1.00000
> Score finished in csoundPerformKsmps().
> inactive allocs returned to freespace
> end of score.	 overall amps: 1.00000
> overall samples out of range: 0
> 0 errors in performance
> Elapsed time at end of performance: real: 5.088s, CPU: 0.744s
> 282 2048-byte soundblks of shorts written to dac
>
> 	joachim
>
> Am 05.07.2010 um 08:39 schrieb joachim heintz:
>
>> yes, now i understand what you mean. i tested it and found that it  
>> works when you built the ftables in the header with ftgen, but not  
>> in the score with a f-statement. can you try?
>>
>> 	joachim
>>
>>
>> Am 04.07.2010 um 22:09 schrieb Peiman Khosravi:
>>
>>> The error says "mono loscil cannot read from stereo ftable", but  
>>> the ftable I have defined is mono:
>>>
>>> f 1 0 0 1 "LidHit1.aiff" 0 0 1
>>>
>>> Or isn't it?
>>>
>>> Peiman
>>>
>>>
>>> On 4 Jul 2010, at 20:55, joachim heintz wrote:
>>>
>>>> i think your file is really stereo, so you must use the stereo  
>>>> variant of loscil:
>>>> ar1, ar2 loscil xamp, kcps, ifn etc
>>>> ?
>>>>
>>>> 	joachim
>>>>
>>>>
>>>> Am 04.07.2010 um 21:28 schrieb Peiman Khosravi:
>>>>
>>>>> Thanks Menno,
>>>>>
>>>>> It seems that the problem is with stereo files. In fact I just  
>>>>> reinstalled csound to be sure that I have the very latest  
>>>>> version and now I get this error with exactly the same csd (OS  
>>>>> X, float).
>>>>>
>>>>> In fact most likely the issue is in GEN01 rather than loscil  
>>>>> itself (?). I think GEN01 is not reading the file header  
>>>>> correctly, at least on os x. It happens with wav and aif files  
>>>>> (44100 and 96000, 24bit).
>>>>>
>>>>> Thanks
>>>>>
>>>>> Peiman
>>>>>
>>>>> SECTION 1:
>>>>> ftable 1:
>>>>> deferred alloc
>>>>> audio sr = 96000, stereo, reading channel 1
>>>>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>>>>> defer length 280226
>>>>> ftable 1:	280226 points, scalemax 1.000
>>>>>   '
>>>>>      '
>>>>> .            .
>>>>> ____.____.__'__-____'__.__.__._-__-__._.._- 
>>>>> _____________________________________
>>>>> ' '          .   .       _    - '' '  '  '  ' ' '' '  '''''''  
>>>>> '     ' '     ' ''
>>>>>       .  _ -  .  ' '  '
>>>>>  .
>>>>>
>>>>>
>>>>>
>>>>> '
>>>>> new alloc for instr 1:
>>>>> INIT ERROR in instr 1: mono loscil cannot read from stereo ftable
>>>>> a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
>>>>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>>>>> Score finished in csoundPerform().
>>>>> inactive allocs returned to freespace
>>>>> end of score.		   overall amps:      0.0
>>>>> 	   overall samples out of range:        0
>>>>> 1 errors in performance
>>>>> Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
>>>>> 0 2048-byte soundblks of shorts written to dac
>>>>> ------- Compiler Ended -------
>>>>>
>>>>>
>>>>> On 4 Jul 2010, at 20:04, menno wrote:
>>>>>
>>>>>>
>>>>>> Hi Peiman,
>>>>>> i could not get acces to your sample so i took "beats.wav" and  
>>>>>> "fox.wav".
>>>>>> That works fine here.
>>>>>> Ubuntu, Csound doubles
>>>>>>
>>>>>>
>>>>>> peiman wrote:
>>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> Can someone please try this simple csd.
>>>>>>>
>>>>>>> There seems to be a bug in loscil:  the playback ends before  
>>>>>>> the end
>>>>>>> of the file. This is causing problem in Cecilia 4 as well  
>>>>>>> (that's how
>>>>>>> I noticed this problem), which uses loscil by default.
>>>>>>>
>>>>>>> Am I missing something here?
>>>>>>>
>>>>>>> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Peiman
>>>>>>>
>>>>>>>
>>>>>>> +++++++++
>>>>>>>
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> -odac        -d
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> sr = 96000
>>>>>>> ksmps = 10
>>>>>>> nchnls = 1
>>>>>>>
>>>>>>>
>>>>>>> instr 1
>>>>>>> kamp = 30000
>>>>>>> kcps = 1
>>>>>>> ifn = 1
>>>>>>> ibas = 1
>>>>>>>
>>>>>>> a1 loscil kamp, kcps, ifn, ibas, 0
>>>>>>> out a1
>>>>>>> endin
>>>>>>>
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>>>>>>
>>>>>>> i 1 0 20
>>>>>>> e
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>       https://sourceforge.net/tracker/? 
>>>>>>> group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>> "unsubscribe
>>>>>>> csound"
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
>>>>>> Sent from the Csound - General mailing list archive at  
>>>>>> Nabble.com.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>       https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>> "unsubscribe csound"
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>       https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>> "unsubscribe csound"
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>        https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe csound"
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-07-05 10:19
FromPeiman Khosravi
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: loscil bug(?)
I tried the intel installer and csound64 and still getting this error:

Compiler arguments (added by WinXound):
-B4096 --displays --asciidisplay /Users/peimankh/Desktop/loscil.csd

------- Compiler Started -------
PortMIDI real time MIDI plugin for Csound
PortAudio real-time audio module for Csound
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 5.12 (double samples) May  4 2010
libsndfile-1.0.20
UnifiedCSD:  /Users/peimankh/Desktop/loscil.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-H6EtO7.orc
scorename: /tmp/csound-Ua1Uky.sco
rtaudio: PortAudio module enabled ... using callback interface
rtmidi: PortMIDI module enabled
orch compiler:
	instr	1	
Elapsed time at end of orchestra compile: real: 0.076s, CPU: 0.004s
sorting score ...
	... done
Elapsed time at end of score sort: real: 0.076s, CPU: 0.005s
Csound version 5.12 (double samples) May  4 2010
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 1024 sample-frame blocks
PortAudio V19-devel (built Feb 12 2010 09:42:54)
PortAudio: available output devices:
    0: PreSonus FIREBOX (1669)
    1: Built-in Output
    2: Aggregate Device
    3: Aggregate Device
PortAudio: selected output device 'Built-in Output'
writing 2048-byte blks of shorts to dac
SECTION 1:
ftable 1:
deferred alloc
audio sr = 96000, stereo, reading channel 2
opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
   defer length 280226
ftable 1:	280226 points, scalemax 1.000
        .

     --    '    _  _
____________'_______-__.__-__._.__._.- 
_.__._____________________________________
   '     .'   -   '   '  .- .  . '' '  '  ' '' '  ' ''''''''''  
''              ''
            .  ' '  -  '
       '



    _
new alloc for instr 1:
INIT ERROR in instr 1: mono loscil cannot read from stereo ftable
a1	loscil	30000	1	1	1	0	0	0	-1	0	0	
	  B  0.000 - note deleted.  i1 had 1 init errors
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.		   overall amps:      0.0
	   overall samples out of range:        0
1 errors in performance
Elapsed time at end of performance: real: 1.637s, CPU: 0.164s
0 2048-byte soundblks of shorts written to dac
------- Compiler Ended -------

On 5 Jul 2010, at 08:01, joachim heintz wrote:

> sorry, forget my previous post; i made a typo with the f-statement.
> for me it works (osx 10.5.8, csound 5.12.4). this is the code and  
> the output:
>
> 
> 
> 
> 
> 0dbfs = 1
> ksmps = 32
> sr = 96000
> instr 1
> a1 loscil 1, 1, 1, 1, 0
> out a1
> endin
> 
> 
> f 1 0 0 1 "LidHit1.aiff" 0 0 1
> i 1 0 3
> 
> 
>
> PortAudio: selected output device 'Ausgang (integriert)'
> writing 2048-byte blks of shorts to dac
> SECTION 1:
> ftable 1:
> deferred alloc
> audio sr = 96000, stereo, reading channel 1
> opening AIFF infile LidHit1.aiff
> defer length 280226
> new alloc for instr 1:
> B 0.000 .. 3.000 T 3.000 TT 3.000 M: 1.00000
> Score finished in csoundPerformKsmps().
> inactive allocs returned to freespace
> end of score.	 overall amps: 1.00000
> overall samples out of range: 0
> 0 errors in performance
> Elapsed time at end of performance: real: 5.088s, CPU: 0.744s
> 282 2048-byte soundblks of shorts written to dac
>
> 	joachim
>
> Am 05.07.2010 um 08:39 schrieb joachim heintz:
>
>> yes, now i understand what you mean. i tested it and found that it  
>> works when you built the ftables in the header with ftgen, but not  
>> in the score with a f-statement. can you try?
>>
>> 	joachim
>>
>>
>> Am 04.07.2010 um 22:09 schrieb Peiman Khosravi:
>>
>>> The error says "mono loscil cannot read from stereo ftable", but  
>>> the ftable I have defined is mono:
>>>
>>> f 1 0 0 1 "LidHit1.aiff" 0 0 1
>>>
>>> Or isn't it?
>>>
>>> Peiman
>>>
>>>
>>> On 4 Jul 2010, at 20:55, joachim heintz wrote:
>>>
>>>> i think your file is really stereo, so you must use the stereo  
>>>> variant of loscil:
>>>> ar1, ar2 loscil xamp, kcps, ifn etc
>>>> ?
>>>>
>>>> 	joachim
>>>>
>>>>
>>>> Am 04.07.2010 um 21:28 schrieb Peiman Khosravi:
>>>>
>>>>> Thanks Menno,
>>>>>
>>>>> It seems that the problem is with stereo files. In fact I just  
>>>>> reinstalled csound to be sure that I have the very latest  
>>>>> version and now I get this error with exactly the same csd (OS  
>>>>> X, float).
>>>>>
>>>>> In fact most likely the issue is in GEN01 rather than loscil  
>>>>> itself (?). I think GEN01 is not reading the file header  
>>>>> correctly, at least on os x. It happens with wav and aif files  
>>>>> (44100 and 96000, 24bit).
>>>>>
>>>>> Thanks
>>>>>
>>>>> Peiman
>>>>>
>>>>> SECTION 1:
>>>>> ftable 1:
>>>>> deferred alloc
>>>>> audio sr = 96000, stereo, reading channel 1
>>>>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>>>>> defer length 280226
>>>>> ftable 1:	280226 points, scalemax 1.000
>>>>>   '
>>>>>      '
>>>>> .            .
>>>>> ____.____.__'__-____'__.__.__._-__-__._.._- 
>>>>> _____________________________________
>>>>> ' '          .   .       _    - '' '  '  '  ' ' '' '  '''''''  
>>>>> '     ' '     ' ''
>>>>>       .  _ -  .  ' '  '
>>>>>  .
>>>>>
>>>>>
>>>>>
>>>>> '
>>>>> new alloc for instr 1:
>>>>> INIT ERROR in instr 1: mono loscil cannot read from stereo ftable
>>>>> a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
>>>>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>>>>> Score finished in csoundPerform().
>>>>> inactive allocs returned to freespace
>>>>> end of score.		   overall amps:      0.0
>>>>> 	   overall samples out of range:        0
>>>>> 1 errors in performance
>>>>> Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
>>>>> 0 2048-byte soundblks of shorts written to dac
>>>>> ------- Compiler Ended -------
>>>>>
>>>>>
>>>>> On 4 Jul 2010, at 20:04, menno wrote:
>>>>>
>>>>>>
>>>>>> Hi Peiman,
>>>>>> i could not get acces to your sample so i took "beats.wav" and  
>>>>>> "fox.wav".
>>>>>> That works fine here.
>>>>>> Ubuntu, Csound doubles
>>>>>>
>>>>>>
>>>>>> peiman wrote:
>>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> Can someone please try this simple csd.
>>>>>>>
>>>>>>> There seems to be a bug in loscil:  the playback ends before  
>>>>>>> the end
>>>>>>> of the file. This is causing problem in Cecilia 4 as well  
>>>>>>> (that's how
>>>>>>> I noticed this problem), which uses loscil by default.
>>>>>>>
>>>>>>> Am I missing something here?
>>>>>>>
>>>>>>> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Peiman
>>>>>>>
>>>>>>>
>>>>>>> +++++++++
>>>>>>>
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> -odac        -d
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> sr = 96000
>>>>>>> ksmps = 10
>>>>>>> nchnls = 1
>>>>>>>
>>>>>>>
>>>>>>> instr 1
>>>>>>> kamp = 30000
>>>>>>> kcps = 1
>>>>>>> ifn = 1
>>>>>>> ibas = 1
>>>>>>>
>>>>>>> a1 loscil kamp, kcps, ifn, ibas, 0
>>>>>>> out a1
>>>>>>> endin
>>>>>>>
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>>>>>>
>>>>>>> i 1 0 20
>>>>>>> e
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>       https://sourceforge.net/tracker/? 
>>>>>>> group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>> "unsubscribe
>>>>>>> csound"
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
>>>>>> Sent from the Csound - General mailing list archive at  
>>>>>> Nabble.com.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>       https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>> "unsubscribe csound"
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>       https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>> "unsubscribe csound"
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>        https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe csound"
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-07-05 10:29
FromPeiman Khosravi
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: loscil bug(?)
Also note that running the same csd with csound (float) the playback  
terminates too quickly, halfway through to be precise (try a longer  
file and set p3 of i1 to a larger value). I assume that GEN01 is still  
returning 2 as the number of channels so loscil divides the sample  
size of the table in half - thinking that the table is stereo.

Thanks

Peiman

On 5 Jul 2010, at 08:01, joachim heintz wrote:

> sorry, forget my previous post; i made a typo with the f-statement.
> for me it works (osx 10.5.8, csound 5.12.4). this is the code and  
> the output:
>
> 
> 
> 
> 
> 0dbfs = 1
> ksmps = 32
> sr = 96000
> instr 1
> a1 loscil 1, 1, 1, 1, 0
> out a1
> endin
> 
> 
> f 1 0 0 1 "LidHit1.aiff" 0 0 1
> i 1 0 3
> 
> 
>
> PortAudio: selected output device 'Ausgang (integriert)'
> writing 2048-byte blks of shorts to dac
> SECTION 1:
> ftable 1:
> deferred alloc
> audio sr = 96000, stereo, reading channel 1
> opening AIFF infile LidHit1.aiff
> defer length 280226
> new alloc for instr 1:
> B 0.000 .. 3.000 T 3.000 TT 3.000 M: 1.00000
> Score finished in csoundPerformKsmps().
> inactive allocs returned to freespace
> end of score.	 overall amps: 1.00000
> overall samples out of range: 0
> 0 errors in performance
> Elapsed time at end of performance: real: 5.088s, CPU: 0.744s
> 282 2048-byte soundblks of shorts written to dac
>
> 	joachim
>
> Am 05.07.2010 um 08:39 schrieb joachim heintz:
>
>> yes, now i understand what you mean. i tested it and found that it  
>> works when you built the ftables in the header with ftgen, but not  
>> in the score with a f-statement. can you try?
>>
>> 	joachim
>>
>>
>> Am 04.07.2010 um 22:09 schrieb Peiman Khosravi:
>>
>>> The error says "mono loscil cannot read from stereo ftable", but  
>>> the ftable I have defined is mono:
>>>
>>> f 1 0 0 1 "LidHit1.aiff" 0 0 1
>>>
>>> Or isn't it?
>>>
>>> Peiman
>>>
>>>
>>> On 4 Jul 2010, at 20:55, joachim heintz wrote:
>>>
>>>> i think your file is really stereo, so you must use the stereo  
>>>> variant of loscil:
>>>> ar1, ar2 loscil xamp, kcps, ifn etc
>>>> ?
>>>>
>>>> 	joachim
>>>>
>>>>
>>>> Am 04.07.2010 um 21:28 schrieb Peiman Khosravi:
>>>>
>>>>> Thanks Menno,
>>>>>
>>>>> It seems that the problem is with stereo files. In fact I just  
>>>>> reinstalled csound to be sure that I have the very latest  
>>>>> version and now I get this error with exactly the same csd (OS  
>>>>> X, float).
>>>>>
>>>>> In fact most likely the issue is in GEN01 rather than loscil  
>>>>> itself (?). I think GEN01 is not reading the file header  
>>>>> correctly, at least on os x. It happens with wav and aif files  
>>>>> (44100 and 96000, 24bit).
>>>>>
>>>>> Thanks
>>>>>
>>>>> Peiman
>>>>>
>>>>> SECTION 1:
>>>>> ftable 1:
>>>>> deferred alloc
>>>>> audio sr = 96000, stereo, reading channel 1
>>>>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>>>>> defer length 280226
>>>>> ftable 1:	280226 points, scalemax 1.000
>>>>>   '
>>>>>      '
>>>>> .            .
>>>>> ____.____.__'__-____'__.__.__._-__-__._.._- 
>>>>> _____________________________________
>>>>> ' '          .   .       _    - '' '  '  '  ' ' '' '  '''''''  
>>>>> '     ' '     ' ''
>>>>>       .  _ -  .  ' '  '
>>>>>  .
>>>>>
>>>>>
>>>>>
>>>>> '
>>>>> new alloc for instr 1:
>>>>> INIT ERROR in instr 1: mono loscil cannot read from stereo ftable
>>>>> a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
>>>>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>>>>> Score finished in csoundPerform().
>>>>> inactive allocs returned to freespace
>>>>> end of score.		   overall amps:      0.0
>>>>> 	   overall samples out of range:        0
>>>>> 1 errors in performance
>>>>> Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
>>>>> 0 2048-byte soundblks of shorts written to dac
>>>>> ------- Compiler Ended -------
>>>>>
>>>>>
>>>>> On 4 Jul 2010, at 20:04, menno wrote:
>>>>>
>>>>>>
>>>>>> Hi Peiman,
>>>>>> i could not get acces to your sample so i took "beats.wav" and  
>>>>>> "fox.wav".
>>>>>> That works fine here.
>>>>>> Ubuntu, Csound doubles
>>>>>>
>>>>>>
>>>>>> peiman wrote:
>>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> Can someone please try this simple csd.
>>>>>>>
>>>>>>> There seems to be a bug in loscil:  the playback ends before  
>>>>>>> the end
>>>>>>> of the file. This is causing problem in Cecilia 4 as well  
>>>>>>> (that's how
>>>>>>> I noticed this problem), which uses loscil by default.
>>>>>>>
>>>>>>> Am I missing something here?
>>>>>>>
>>>>>>> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Peiman
>>>>>>>
>>>>>>>
>>>>>>> +++++++++
>>>>>>>
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> -odac        -d
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> sr = 96000
>>>>>>> ksmps = 10
>>>>>>> nchnls = 1
>>>>>>>
>>>>>>>
>>>>>>> instr 1
>>>>>>> kamp = 30000
>>>>>>> kcps = 1
>>>>>>> ifn = 1
>>>>>>> ibas = 1
>>>>>>>
>>>>>>> a1 loscil kamp, kcps, ifn, ibas, 0
>>>>>>> out a1
>>>>>>> endin
>>>>>>>
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>>>>>>
>>>>>>> i 1 0 20
>>>>>>> e
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>       https://sourceforge.net/tracker/? 
>>>>>>> group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>> "unsubscribe
>>>>>>> csound"
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
>>>>>> Sent from the Csound - General mailing list archive at  
>>>>>> Nabble.com.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>       https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>> "unsubscribe csound"
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>       https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>> "unsubscribe csound"
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>        https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe csound"
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-07-05 10:33
FromPeiman Khosravi
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: loscil bug(?)
mhhh and now the stereo version doesn't work (with a stereo file)!



-odac -d


ksmps = 10
sr = 96000

instr 1
a1, a2 loscil 30000, 1, 1, 1, 0
out a1
endin


f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 0
i 1 0 20



audio sr = 96000, stereo, reading both channels
opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
   defer length 280226
ftable 1:	560452 points, scalemax 1.000
        .
           .
      _            _
____.____.__'__.____'__.__.__._-__- 
__._.._._____________________________________
' '          .   -      __ _  - '' '  '  '  ' ' '' '  ''''''' '     '  
'     ' ''
            .  . '  -  '
       '


    '
new alloc for instr 1:
INIT ERROR in instr 1: stereo loscil cannot read from mono ftable
a1	a2	loscil	30000	1	1	1	0	0	0	-1	0	0	
	  B  0.000 - note deleted.  i1 had 1 init errors
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.		   overall amps:      0.0
	   overall samples out of range:        0
1 errors in performance
Elapsed time at end of performance: real: 0.721s, CPU: 0.154s
0 2048-byte soundblks of shorts written to dac

> sorry, forget my previous post; i made a typo with the f-statement.
> for me it works (osx 10.5.8, csound 5.12.4). this is the code and  
> the output:
>
> 
> 
> 
> 
> 0dbfs = 1
> ksmps = 32
> sr = 96000
> instr 1
> a1 loscil 1, 1, 1, 1, 0
> out a1
> endin
> 
> 
> f 1 0 0 1 "LidHit1.aiff" 0 0 1
> i 1 0 3
> 
> 
>
> PortAudio: selected output device 'Ausgang (integriert)'
> writing 2048-byte blks of shorts to dac
> SECTION 1:
> ftable 1:
> deferred alloc
> audio sr = 96000, stereo, reading channel 1
> opening AIFF infile LidHit1.aiff
> defer length 280226
> new alloc for instr 1:
> B 0.000 .. 3.000 T 3.000 TT 3.000 M: 1.00000
> Score finished in csoundPerformKsmps().
> inactive allocs returned to freespace
> end of score.	 overall amps: 1.00000
> overall samples out of range: 0
> 0 errors in performance
> Elapsed time at end of performance: real: 5.088s, CPU: 0.744s
> 282 2048-byte soundblks of shorts written to dac
>
> 	joachim
>
> Am 05.07.2010 um 08:39 schrieb joachim heintz:
>
>> yes, now i understand what you mean. i tested it and found that it  
>> works when you built the ftables in the header with ftgen, but not  
>> in the score with a f-statement. can you try?
>>
>> 	joachim
>>
>>
>> Am 04.07.2010 um 22:09 schrieb Peiman Khosravi:
>>
>>> The error says "mono loscil cannot read from stereo ftable", but  
>>> the ftable I have defined is mono:
>>>
>>> f 1 0 0 1 "LidHit1.aiff" 0 0 1
>>>
>>> Or isn't it?
>>>
>>> Peiman
>>>
>>>
>>> On 4 Jul 2010, at 20:55, joachim heintz wrote:
>>>
>>>> i think your file is really stereo, so you must use the stereo  
>>>> variant of loscil:
>>>> ar1, ar2 loscil xamp, kcps, ifn etc
>>>> ?
>>>>
>>>> 	joachim
>>>>
>>>>
>>>> Am 04.07.2010 um 21:28 schrieb Peiman Khosravi:
>>>>
>>>>> Thanks Menno,
>>>>>
>>>>> It seems that the problem is with stereo files. In fact I just  
>>>>> reinstalled csound to be sure that I have the very latest  
>>>>> version and now I get this error with exactly the same csd (OS  
>>>>> X, float).
>>>>>
>>>>> In fact most likely the issue is in GEN01 rather than loscil  
>>>>> itself (?). I think GEN01 is not reading the file header  
>>>>> correctly, at least on os x. It happens with wav and aif files  
>>>>> (44100 and 96000, 24bit).
>>>>>
>>>>> Thanks
>>>>>
>>>>> Peiman
>>>>>
>>>>> SECTION 1:
>>>>> ftable 1:
>>>>> deferred alloc
>>>>> audio sr = 96000, stereo, reading channel 1
>>>>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>>>>> defer length 280226
>>>>> ftable 1:	280226 points, scalemax 1.000
>>>>>   '
>>>>>      '
>>>>> .            .
>>>>> ____.____.__'__-____'__.__.__._-__-__._.._- 
>>>>> _____________________________________
>>>>> ' '          .   .       _    - '' '  '  '  ' ' '' '  '''''''  
>>>>> '     ' '     ' ''
>>>>>       .  _ -  .  ' '  '
>>>>>  .
>>>>>
>>>>>
>>>>>
>>>>> '
>>>>> new alloc for instr 1:
>>>>> INIT ERROR in instr 1: mono loscil cannot read from stereo ftable
>>>>> a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
>>>>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>>>>> Score finished in csoundPerform().
>>>>> inactive allocs returned to freespace
>>>>> end of score.		   overall amps:      0.0
>>>>> 	   overall samples out of range:        0
>>>>> 1 errors in performance
>>>>> Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
>>>>> 0 2048-byte soundblks of shorts written to dac
>>>>> ------- Compiler Ended -------
>>>>>
>>>>>
>>>>> On 4 Jul 2010, at 20:04, menno wrote:
>>>>>
>>>>>>
>>>>>> Hi Peiman,
>>>>>> i could not get acces to your sample so i took "beats.wav" and  
>>>>>> "fox.wav".
>>>>>> That works fine here.
>>>>>> Ubuntu, Csound doubles
>>>>>>
>>>>>>
>>>>>> peiman wrote:
>>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> Can someone please try this simple csd.
>>>>>>>
>>>>>>> There seems to be a bug in loscil:  the playback ends before  
>>>>>>> the end
>>>>>>> of the file. This is causing problem in Cecilia 4 as well  
>>>>>>> (that's how
>>>>>>> I noticed this problem), which uses loscil by default.
>>>>>>>
>>>>>>> Am I missing something here?
>>>>>>>
>>>>>>> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Peiman
>>>>>>>
>>>>>>>
>>>>>>> +++++++++
>>>>>>>
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> -odac        -d
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> sr = 96000
>>>>>>> ksmps = 10
>>>>>>> nchnls = 1
>>>>>>>
>>>>>>>
>>>>>>> instr 1
>>>>>>> kamp = 30000
>>>>>>> kcps = 1
>>>>>>> ifn = 1
>>>>>>> ibas = 1
>>>>>>>
>>>>>>> a1 loscil kamp, kcps, ifn, ibas, 0
>>>>>>> out a1
>>>>>>> endin
>>>>>>>
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>>>>>>
>>>>>>> i 1 0 20
>>>>>>> e
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>       https://sourceforge.net/tracker/? 
>>>>>>> group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>> "unsubscribe
>>>>>>> csound"
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
>>>>>> Sent from the Csound - General mailing list archive at  
>>>>>> Nabble.com.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>       https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>> "unsubscribe csound"
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>       https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>> "unsubscribe csound"
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>        https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe csound"
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-07-05 10:51
Fromjoachim heintz
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: loscil bug(?)
yes i can confirm this.
	j


Am 05.07.2010 um 11:33 schrieb Peiman Khosravi:

> mhhh and now the stereo version doesn't work (with a stereo file)!
>
> 
> 
> -odac -d
> 
> 
> ksmps = 10
> sr = 96000
>
> instr 1
> a1, a2 loscil 30000, 1, 1, 1, 0
> out a1
> endin
> 
> 
> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 0
> i 1 0 20
> 
> 
>
> audio sr = 96000, stereo, reading both channels
> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>  defer length 280226
> ftable 1:	560452 points, scalemax 1.000
>       .
>          .
>     _            _
> ____.____.__'__.____'__.__.__._-__- 
> __._.._._____________________________________
> ' '          .   -      __ _  - '' '  '  '  ' ' '' '  ''''''' '      
> ' '     ' ''
>           .  . '  -  '
>      '
>
>
>   '
> new alloc for instr 1:
> INIT ERROR in instr 1: stereo loscil cannot read from mono ftable
> a1	a2	loscil	30000	1	1	1	0	0	0	-1	0	0	
> 	  B  0.000 - note deleted.  i1 had 1 init errors
> Score finished in csoundPerform().
> inactive allocs returned to freespace
> end of score.		   overall amps:      0.0
> 	   overall samples out of range:        0
> 1 errors in performance
> Elapsed time at end of performance: real: 0.721s, CPU: 0.154s
> 0 2048-byte soundblks of shorts written to dac
>
>> sorry, forget my previous post; i made a typo with the f-statement.
>> for me it works (osx 10.5.8, csound 5.12.4). this is the code and  
>> the output:
>>
>> 
>> 
>> 
>> 
>> 0dbfs = 1
>> ksmps = 32
>> sr = 96000
>> instr 1
>> a1 loscil 1, 1, 1, 1, 0
>> out a1
>> endin
>> 
>> 
>> f 1 0 0 1 "LidHit1.aiff" 0 0 1
>> i 1 0 3
>> 
>> 
>>
>> PortAudio: selected output device 'Ausgang (integriert)'
>> writing 2048-byte blks of shorts to dac
>> SECTION 1:
>> ftable 1:
>> deferred alloc
>> audio sr = 96000, stereo, reading channel 1
>> opening AIFF infile LidHit1.aiff
>> defer length 280226
>> new alloc for instr 1:
>> B 0.000 .. 3.000 T 3.000 TT 3.000 M: 1.00000
>> Score finished in csoundPerformKsmps().
>> inactive allocs returned to freespace
>> end of score.	 overall amps: 1.00000
>> overall samples out of range: 0
>> 0 errors in performance
>> Elapsed time at end of performance: real: 5.088s, CPU: 0.744s
>> 282 2048-byte soundblks of shorts written to dac
>>
>> 	joachim
>>
>> Am 05.07.2010 um 08:39 schrieb joachim heintz:
>>
>>> yes, now i understand what you mean. i tested it and found that it  
>>> works when you built the ftables in the header with ftgen, but not  
>>> in the score with a f-statement. can you try?
>>>
>>> 	joachim
>>>
>>>
>>> Am 04.07.2010 um 22:09 schrieb Peiman Khosravi:
>>>
>>>> The error says "mono loscil cannot read from stereo ftable", but  
>>>> the ftable I have defined is mono:
>>>>
>>>> f 1 0 0 1 "LidHit1.aiff" 0 0 1
>>>>
>>>> Or isn't it?
>>>>
>>>> Peiman
>>>>
>>>>
>>>> On 4 Jul 2010, at 20:55, joachim heintz wrote:
>>>>
>>>>> i think your file is really stereo, so you must use the stereo  
>>>>> variant of loscil:
>>>>> ar1, ar2 loscil xamp, kcps, ifn etc
>>>>> ?
>>>>>
>>>>> 	joachim
>>>>>
>>>>>
>>>>> Am 04.07.2010 um 21:28 schrieb Peiman Khosravi:
>>>>>
>>>>>> Thanks Menno,
>>>>>>
>>>>>> It seems that the problem is with stereo files. In fact I just  
>>>>>> reinstalled csound to be sure that I have the very latest  
>>>>>> version and now I get this error with exactly the same csd (OS  
>>>>>> X, float).
>>>>>>
>>>>>> In fact most likely the issue is in GEN01 rather than loscil  
>>>>>> itself (?). I think GEN01 is not reading the file header  
>>>>>> correctly, at least on os x. It happens with wav and aif files  
>>>>>> (44100 and 96000, 24bit).
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Peiman
>>>>>>
>>>>>> SECTION 1:
>>>>>> ftable 1:
>>>>>> deferred alloc
>>>>>> audio sr = 96000, stereo, reading channel 1
>>>>>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>>>>>> defer length 280226
>>>>>> ftable 1:	280226 points, scalemax 1.000
>>>>>>  '
>>>>>>     '
>>>>>> .            .
>>>>>> ____.____.__'__-____'__.__.__._-__-__._.._- 
>>>>>> _____________________________________
>>>>>> ' '          .   .       _    - '' '  '  '  ' ' '' '  '''''''  
>>>>>> '     ' '     ' ''
>>>>>>      .  _ -  .  ' '  '
>>>>>> .
>>>>>>
>>>>>>
>>>>>>
>>>>>> '
>>>>>> new alloc for instr 1:
>>>>>> INIT ERROR in instr 1: mono loscil cannot read from stereo ftable
>>>>>> a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
>>>>>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>>>>>> Score finished in csoundPerform().
>>>>>> inactive allocs returned to freespace
>>>>>> end of score.		   overall amps:      0.0
>>>>>> 	   overall samples out of range:        0
>>>>>> 1 errors in performance
>>>>>> Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
>>>>>> 0 2048-byte soundblks of shorts written to dac
>>>>>> ------- Compiler Ended -------
>>>>>>
>>>>>>
>>>>>> On 4 Jul 2010, at 20:04, menno wrote:
>>>>>>
>>>>>>>
>>>>>>> Hi Peiman,
>>>>>>> i could not get acces to your sample so i took "beats.wav" and  
>>>>>>> "fox.wav".
>>>>>>> That works fine here.
>>>>>>> Ubuntu, Csound doubles
>>>>>>>
>>>>>>>
>>>>>>> peiman wrote:
>>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> Can someone please try this simple csd.
>>>>>>>>
>>>>>>>> There seems to be a bug in loscil:  the playback ends before  
>>>>>>>> the end
>>>>>>>> of the file. This is causing problem in Cecilia 4 as well  
>>>>>>>> (that's how
>>>>>>>> I noticed this problem), which uses loscil by default.
>>>>>>>>
>>>>>>>> Am I missing something here?
>>>>>>>>
>>>>>>>> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>>
>>>>>>>> Peiman
>>>>>>>>
>>>>>>>>
>>>>>>>> +++++++++
>>>>>>>>
>>>>>>>>
>>>>>>>> 
>>>>>>>> 
>>>>>>>> -odac        -d
>>>>>>>> 
>>>>>>>> 
>>>>>>>>
>>>>>>>> sr = 96000
>>>>>>>> ksmps = 10
>>>>>>>> nchnls = 1
>>>>>>>>
>>>>>>>>
>>>>>>>> instr 1
>>>>>>>> kamp = 30000
>>>>>>>> kcps = 1
>>>>>>>> ifn = 1
>>>>>>>> ibas = 1
>>>>>>>>
>>>>>>>> a1 loscil kamp, kcps, ifn, ibas, 0
>>>>>>>> out a1
>>>>>>>> endin
>>>>>>>>
>>>>>>>>
>>>>>>>> 
>>>>>>>> 
>>>>>>>>
>>>>>>>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>>>>>>>
>>>>>>>> i 1 0 20
>>>>>>>> e
>>>>>>>>
>>>>>>>> 
>>>>>>>> 
>>>>>>>>
>>>>>>>>
>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>      https://sourceforge.net/tracker/? 
>>>>>>>> group_id=81968&atid=564599
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>>> "unsubscribe
>>>>>>>> csound"
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> -- 
>>>>>>> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
>>>>>>> Sent from the Csound - General mailing list archive at  
>>>>>>> Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>      https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>> "unsubscribe csound"
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>      https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>> "unsubscribe csound"
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>       https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>> "unsubscribe csound"
>>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>        https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe csound"
>>>>
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-07-05 14:05
FromPeiman Khosravi
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: loscil bug(?)
Thanks for confirming this. So I will file a bug report on sourceforge.

Best,

Peiman
]
On 5 Jul 2010, at 10:51, joachim heintz wrote:

> yes i can confirm this.
> 	j
>
>
> Am 05.07.2010 um 11:33 schrieb Peiman Khosravi:
>
>> mhhh and now the stereo version doesn't work (with a stereo file)!
>>
>> 
>> 
>> -odac -d
>> 
>> 
>> ksmps = 10
>> sr = 96000
>>
>> instr 1
>> a1, a2 loscil 30000, 1, 1, 1, 0
>> out a1
>> endin
>> 
>> 
>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 0
>> i 1 0 20
>> 
>> 
>>
>> audio sr = 96000, stereo, reading both channels
>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>> defer length 280226
>> ftable 1:	560452 points, scalemax 1.000
>>      .
>>         .
>>    _            _
>> ____.____.__'__.____'__.__.__._-__- 
>> __._.._._____________________________________
>> ' '          .   -      __ _  - '' '  '  '  ' ' '' '  ''''''' '      
>> ' '     ' ''
>>          .  . '  -  '
>>     '
>>
>>
>>  '
>> new alloc for instr 1:
>> INIT ERROR in instr 1: stereo loscil cannot read from mono ftable
>> a1	a2	loscil	30000	1	1	1	0	0	0	-1	0	0	
>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>> Score finished in csoundPerform().
>> inactive allocs returned to freespace
>> end of score.		   overall amps:      0.0
>> 	   overall samples out of range:        0
>> 1 errors in performance
>> Elapsed time at end of performance: real: 0.721s, CPU: 0.154s
>> 0 2048-byte soundblks of shorts written to dac
>>
>>> sorry, forget my previous post; i made a typo with the f-statement.
>>> for me it works (osx 10.5.8, csound 5.12.4). this is the code and  
>>> the output:
>>>
>>> 
>>> 
>>> 
>>> 
>>> 0dbfs = 1
>>> ksmps = 32
>>> sr = 96000
>>> instr 1
>>> a1 loscil 1, 1, 1, 1, 0
>>> out a1
>>> endin
>>> 
>>> 
>>> f 1 0 0 1 "LidHit1.aiff" 0 0 1
>>> i 1 0 3
>>> 
>>> 
>>>
>>> PortAudio: selected output device 'Ausgang (integriert)'
>>> writing 2048-byte blks of shorts to dac
>>> SECTION 1:
>>> ftable 1:
>>> deferred alloc
>>> audio sr = 96000, stereo, reading channel 1
>>> opening AIFF infile LidHit1.aiff
>>> defer length 280226
>>> new alloc for instr 1:
>>> B 0.000 .. 3.000 T 3.000 TT 3.000 M: 1.00000
>>> Score finished in csoundPerformKsmps().
>>> inactive allocs returned to freespace
>>> end of score.	 overall amps: 1.00000
>>> overall samples out of range: 0
>>> 0 errors in performance
>>> Elapsed time at end of performance: real: 5.088s, CPU: 0.744s
>>> 282 2048-byte soundblks of shorts written to dac
>>>
>>> 	joachim
>>>
>>> Am 05.07.2010 um 08:39 schrieb joachim heintz:
>>>
>>>> yes, now i understand what you mean. i tested it and found that  
>>>> it works when you built the ftables in the header with ftgen, but  
>>>> not in the score with a f-statement. can you try?
>>>>
>>>> 	joachim
>>>>
>>>>
>>>> Am 04.07.2010 um 22:09 schrieb Peiman Khosravi:
>>>>
>>>>> The error says "mono loscil cannot read from stereo ftable", but  
>>>>> the ftable I have defined is mono:
>>>>>
>>>>> f 1 0 0 1 "LidHit1.aiff" 0 0 1
>>>>>
>>>>> Or isn't it?
>>>>>
>>>>> Peiman
>>>>>
>>>>>
>>>>> On 4 Jul 2010, at 20:55, joachim heintz wrote:
>>>>>
>>>>>> i think your file is really stereo, so you must use the stereo  
>>>>>> variant of loscil:
>>>>>> ar1, ar2 loscil xamp, kcps, ifn etc
>>>>>> ?
>>>>>>
>>>>>> 	joachim
>>>>>>
>>>>>>
>>>>>> Am 04.07.2010 um 21:28 schrieb Peiman Khosravi:
>>>>>>
>>>>>>> Thanks Menno,
>>>>>>>
>>>>>>> It seems that the problem is with stereo files. In fact I just  
>>>>>>> reinstalled csound to be sure that I have the very latest  
>>>>>>> version and now I get this error with exactly the same csd (OS  
>>>>>>> X, float).
>>>>>>>
>>>>>>> In fact most likely the issue is in GEN01 rather than loscil  
>>>>>>> itself (?). I think GEN01 is not reading the file header  
>>>>>>> correctly, at least on os x. It happens with wav and aif files  
>>>>>>> (44100 and 96000, 24bit).
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Peiman
>>>>>>>
>>>>>>> SECTION 1:
>>>>>>> ftable 1:
>>>>>>> deferred alloc
>>>>>>> audio sr = 96000, stereo, reading channel 1
>>>>>>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>>>>>>> defer length 280226
>>>>>>> ftable 1:	280226 points, scalemax 1.000
>>>>>>> '
>>>>>>>    '
>>>>>>> .            .
>>>>>>> ____.____.__'__-____'__.__.__._-__-__._.._- 
>>>>>>> _____________________________________
>>>>>>> ' '          .   .       _    - '' '  '  '  ' ' '' '  '''''''  
>>>>>>> '     ' '     ' ''
>>>>>>>     .  _ -  .  ' '  '
>>>>>>> .
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> '
>>>>>>> new alloc for instr 1:
>>>>>>> INIT ERROR in instr 1: mono loscil cannot read from stereo  
>>>>>>> ftable
>>>>>>> a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
>>>>>>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>>>>>>> Score finished in csoundPerform().
>>>>>>> inactive allocs returned to freespace
>>>>>>> end of score.		   overall amps:      0.0
>>>>>>> 	   overall samples out of range:        0
>>>>>>> 1 errors in performance
>>>>>>> Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
>>>>>>> 0 2048-byte soundblks of shorts written to dac
>>>>>>> ------- Compiler Ended -------
>>>>>>>
>>>>>>>
>>>>>>> On 4 Jul 2010, at 20:04, menno wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Hi Peiman,
>>>>>>>> i could not get acces to your sample so i took "beats.wav"  
>>>>>>>> and "fox.wav".
>>>>>>>> That works fine here.
>>>>>>>> Ubuntu, Csound doubles
>>>>>>>>
>>>>>>>>
>>>>>>>> peiman wrote:
>>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> Can someone please try this simple csd.
>>>>>>>>>
>>>>>>>>> There seems to be a bug in loscil:  the playback ends before  
>>>>>>>>> the end
>>>>>>>>> of the file. This is causing problem in Cecilia 4 as well  
>>>>>>>>> (that's how
>>>>>>>>> I noticed this problem), which uses loscil by default.
>>>>>>>>>
>>>>>>>>> Am I missing something here?
>>>>>>>>>
>>>>>>>>> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>>
>>>>>>>>> Peiman
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> +++++++++
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> -odac        -d
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> sr = 96000
>>>>>>>>> ksmps = 10
>>>>>>>>> nchnls = 1
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> instr 1
>>>>>>>>> kamp = 30000
>>>>>>>>> kcps = 1
>>>>>>>>> ifn = 1
>>>>>>>>> ibas = 1
>>>>>>>>>
>>>>>>>>> a1 loscil kamp, kcps, ifn, ibas, 0
>>>>>>>>> out a1
>>>>>>>>> endin
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>>>>>>>>
>>>>>>>>> i 1 0 20
>>>>>>>>> e
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>>     https://sourceforge.net/tracker/? 
>>>>>>>>> group_id=81968&atid=564599
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>>>> "unsubscribe
>>>>>>>>> csound"
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> -- 
>>>>>>>> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
>>>>>>>> Sent from the Csound - General mailing list archive at  
>>>>>>>> Nabble.com.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>     https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>>> "unsubscribe csound"
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>     https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>> "unsubscribe csound"
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>      https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>> "unsubscribe csound"
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>       https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>> "unsubscribe csound"
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>        https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe csound"
>>>>
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-07-05 14:22
FromPeiman Khosravi
Subject[Csnd] GEN01 bug [was Re: Re: Re: Re: Re: Re: Re: Re: Re: loscil bug(?)]
I have filed a bug report https://sourceforge.net/tracker/?func=detail&aid=3025445&group_id=81968&atid=564599

P

On 5 Jul 2010, at 10:51, joachim heintz wrote:

> yes i can confirm this.
> 	j
>
>
> Am 05.07.2010 um 11:33 schrieb Peiman Khosravi:
>
>> mhhh and now the stereo version doesn't work (with a stereo file)!
>>
>> 
>> 
>> -odac -d
>> 
>> 
>> ksmps = 10
>> sr = 96000
>>
>> instr 1
>> a1, a2 loscil 30000, 1, 1, 1, 0
>> out a1
>> endin
>> 
>> 
>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 0
>> i 1 0 20
>> 
>> 
>>
>> audio sr = 96000, stereo, reading both channels
>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>> defer length 280226
>> ftable 1:	560452 points, scalemax 1.000
>>      .
>>         .
>>    _            _
>> ____.____.__'__.____'__.__.__._-__- 
>> __._.._._____________________________________
>> ' '          .   -      __ _  - '' '  '  '  ' ' '' '  ''''''' '      
>> ' '     ' ''
>>          .  . '  -  '
>>     '
>>
>>
>>  '
>> new alloc for instr 1:
>> INIT ERROR in instr 1: stereo loscil cannot read from mono ftable
>> a1	a2	loscil	30000	1	1	1	0	0	0	-1	0	0	
>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>> Score finished in csoundPerform().
>> inactive allocs returned to freespace
>> end of score.		   overall amps:      0.0
>> 	   overall samples out of range:        0
>> 1 errors in performance
>> Elapsed time at end of performance: real: 0.721s, CPU: 0.154s
>> 0 2048-byte soundblks of shorts written to dac
>>
>>> sorry, forget my previous post; i made a typo with the f-statement.
>>> for me it works (osx 10.5.8, csound 5.12.4). this is the code and  
>>> the output:
>>>
>>> 
>>> 
>>> 
>>> 
>>> 0dbfs = 1
>>> ksmps = 32
>>> sr = 96000
>>> instr 1
>>> a1 loscil 1, 1, 1, 1, 0
>>> out a1
>>> endin
>>> 
>>> 
>>> f 1 0 0 1 "LidHit1.aiff" 0 0 1
>>> i 1 0 3
>>> 
>>> 
>>>
>>> PortAudio: selected output device 'Ausgang (integriert)'
>>> writing 2048-byte blks of shorts to dac
>>> SECTION 1:
>>> ftable 1:
>>> deferred alloc
>>> audio sr = 96000, stereo, reading channel 1
>>> opening AIFF infile LidHit1.aiff
>>> defer length 280226
>>> new alloc for instr 1:
>>> B 0.000 .. 3.000 T 3.000 TT 3.000 M: 1.00000
>>> Score finished in csoundPerformKsmps().
>>> inactive allocs returned to freespace
>>> end of score.	 overall amps: 1.00000
>>> overall samples out of range: 0
>>> 0 errors in performance
>>> Elapsed time at end of performance: real: 5.088s, CPU: 0.744s
>>> 282 2048-byte soundblks of shorts written to dac
>>>
>>> 	joachim
>>>
>>> Am 05.07.2010 um 08:39 schrieb joachim heintz:
>>>
>>>> yes, now i understand what you mean. i tested it and found that  
>>>> it works when you built the ftables in the header with ftgen, but  
>>>> not in the score with a f-statement. can you try?
>>>>
>>>> 	joachim
>>>>
>>>>
>>>> Am 04.07.2010 um 22:09 schrieb Peiman Khosravi:
>>>>
>>>>> The error says "mono loscil cannot read from stereo ftable", but  
>>>>> the ftable I have defined is mono:
>>>>>
>>>>> f 1 0 0 1 "LidHit1.aiff" 0 0 1
>>>>>
>>>>> Or isn't it?
>>>>>
>>>>> Peiman
>>>>>
>>>>>
>>>>> On 4 Jul 2010, at 20:55, joachim heintz wrote:
>>>>>
>>>>>> i think your file is really stereo, so you must use the stereo  
>>>>>> variant of loscil:
>>>>>> ar1, ar2 loscil xamp, kcps, ifn etc
>>>>>> ?
>>>>>>
>>>>>> 	joachim
>>>>>>
>>>>>>
>>>>>> Am 04.07.2010 um 21:28 schrieb Peiman Khosravi:
>>>>>>
>>>>>>> Thanks Menno,
>>>>>>>
>>>>>>> It seems that the problem is with stereo files. In fact I just  
>>>>>>> reinstalled csound to be sure that I have the very latest  
>>>>>>> version and now I get this error with exactly the same csd (OS  
>>>>>>> X, float).
>>>>>>>
>>>>>>> In fact most likely the issue is in GEN01 rather than loscil  
>>>>>>> itself (?). I think GEN01 is not reading the file header  
>>>>>>> correctly, at least on os x. It happens with wav and aif files  
>>>>>>> (44100 and 96000, 24bit).
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Peiman
>>>>>>>
>>>>>>> SECTION 1:
>>>>>>> ftable 1:
>>>>>>> deferred alloc
>>>>>>> audio sr = 96000, stereo, reading channel 1
>>>>>>> opening AIFF infile /Volumes/Data/sd702/LidHit1.aiff
>>>>>>> defer length 280226
>>>>>>> ftable 1:	280226 points, scalemax 1.000
>>>>>>> '
>>>>>>>    '
>>>>>>> .            .
>>>>>>> ____.____.__'__-____'__.__.__._-__-__._.._- 
>>>>>>> _____________________________________
>>>>>>> ' '          .   .       _    - '' '  '  '  ' ' '' '  '''''''  
>>>>>>> '     ' '     ' ''
>>>>>>>     .  _ -  .  ' '  '
>>>>>>> .
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> '
>>>>>>> new alloc for instr 1:
>>>>>>> INIT ERROR in instr 1: mono loscil cannot read from stereo  
>>>>>>> ftable
>>>>>>> a1	loscil	kamp	kcps	ifn	ibas	0	0	0	-1	0	0	
>>>>>>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>>>>>>> Score finished in csoundPerform().
>>>>>>> inactive allocs returned to freespace
>>>>>>> end of score.		   overall amps:      0.0
>>>>>>> 	   overall samples out of range:        0
>>>>>>> 1 errors in performance
>>>>>>> Elapsed time at end of performance: real: 0.854s, CPU: 0.168s
>>>>>>> 0 2048-byte soundblks of shorts written to dac
>>>>>>> ------- Compiler Ended -------
>>>>>>>
>>>>>>>
>>>>>>> On 4 Jul 2010, at 20:04, menno wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Hi Peiman,
>>>>>>>> i could not get acces to your sample so i took "beats.wav"  
>>>>>>>> and "fox.wav".
>>>>>>>> That works fine here.
>>>>>>>> Ubuntu, Csound doubles
>>>>>>>>
>>>>>>>>
>>>>>>>> peiman wrote:
>>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> Can someone please try this simple csd.
>>>>>>>>>
>>>>>>>>> There seems to be a bug in loscil:  the playback ends before  
>>>>>>>>> the end
>>>>>>>>> of the file. This is causing problem in Cecilia 4 as well  
>>>>>>>>> (that's how
>>>>>>>>> I noticed this problem), which uses loscil by default.
>>>>>>>>>
>>>>>>>>> Am I missing something here?
>>>>>>>>>
>>>>>>>>> Here is my soundfile http://idisk.mac.com/peimankh/Public/LidHit1.aiff
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>>
>>>>>>>>> Peiman
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> +++++++++
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> -odac        -d
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> sr = 96000
>>>>>>>>> ksmps = 10
>>>>>>>>> nchnls = 1
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> instr 1
>>>>>>>>> kamp = 30000
>>>>>>>>> kcps = 1
>>>>>>>>> ifn = 1
>>>>>>>>> ibas = 1
>>>>>>>>>
>>>>>>>>> a1 loscil kamp, kcps, ifn, ibas, 0
>>>>>>>>> out a1
>>>>>>>>> endin
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> f 1 0 0 1 "/Volumes/Data/sd702/LidHit1.aiff" 0 0 1
>>>>>>>>>
>>>>>>>>> i 1 0 20
>>>>>>>>> e
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>>     https://sourceforge.net/tracker/? 
>>>>>>>>> group_id=81968&atid=564599
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>>>> "unsubscribe
>>>>>>>>> csound"
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> -- 
>>>>>>>> View this message in context: http://old.nabble.com/loscil-bug%28-%29-tp29069771p29070608.html
>>>>>>>> Sent from the Csound - General mailing list archive at  
>>>>>>>> Nabble.com.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>     https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>>> "unsubscribe csound"
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>     https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>> "unsubscribe csound"
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>      https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>> "unsubscribe csound"
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>       https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>> "unsubscribe csound"
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>        https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe csound"
>>>>
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"