Csound Csound-dev Csound-tekno Search About

[Cs-dev] GEN34 bug (new in csound 5.18)

Date2012-10-03 08:09
Fromjoachim heintz
Subject[Cs-dev] GEN34 bug (new in csound 5.18)
Attachmentsgen34.csd  None  None  
hi all -

i discovered a bug which might be introduced by some internal changes, i 
suppose. GEN34 no longer allows to use non-power-of-two function tables 
in the source function table (containing partial number, strength and 
phase in n sections).
this worked up to csound 5.17. tested on ubuntu and osx 10.6.
a simple example is attached. best -
	joachim



; Select audio/midi flags here according to platform
-odac      ;;;realtime audio out
;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o gen34.wav -W ;;; for file output any platform



sr = 44100
ksmps = 32
nchnls = 2
0dbfs  = 1

giPartials ftgen 1, 0, -6, -2, 1, 1, 0, 2, .5, 0
giMix    ftgen 2, 0, 262144, -34, 1, giPartials, 1

instr 1	
asig    poscil .5, 400, giMix
          outs asig, asig
endin


i 1 0 2





Date2012-10-03 22:05
FromSteven Yi
SubjectRe: [Cs-dev] GEN34 bug (new in csound 5.18)
Hi Joachim,

I know there were a number of changes for power-of-two tables in 5.18.
 Perhaps the gen routines were missed in the change over to using
csoundFTnp2Find internally? I think John may be out on holiday and am
not sure when he is returning, and I did not follow that code change
to know the details in full.  Perhaps Tito or Victor can comment?

steven

On Wed, Oct 3, 2012 at 8:09 AM, joachim heintz  wrote:
> hi all -
>
> i discovered a bug which might be introduced by some internal changes, i
> suppose. GEN34 no longer allows to use non-power-of-two function tables in
> the source function table (containing partial number, strength and phase in
> n sections).
> this worked up to csound 5.17. tested on ubuntu and osx 10.6.
> a simple example is attached. best -
>         joachim
>
> 
> 
> ; Select audio/midi flags here according to platform
> -odac      ;;;realtime audio out
> ;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
> ; For Non-realtime ouput leave only the line below:
> ; -o gen34.wav -W ;;; for file output any platform
> 
> 
>
> sr = 44100
> ksmps = 32
> nchnls = 2
> 0dbfs  = 1
>
> giPartials ftgen 1, 0, -6, -2, 1, 1, 0, 2, .5, 0
> giMix    ftgen 2, 0, 262144, -34, 1, giPartials, 1
>
> instr 1
> asig    poscil .5, 400, giMix
>          outs asig, asig
> endin
> 
> 
> i 1 0 2
> 
> 
>
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-10-07 10:57
Fromjoachim heintz
SubjectRe: [Cs-dev] GEN34 bug (new in csound 5.18)
hi steven -

thanks for the reply. it would be great if this could be fixed for the 
next release.
all best -

	joachim



Am 03.10.2012 23:05, schrieb Steven Yi:
> Hi Joachim,
>
> I know there were a number of changes for power-of-two tables in 5.18.
>   Perhaps the gen routines were missed in the change over to using
> csoundFTnp2Find internally? I think John may be out on holiday and am
> not sure when he is returning, and I did not follow that code change
> to know the details in full.  Perhaps Tito or Victor can comment?
>
> steven
>
> On Wed, Oct 3, 2012 at 8:09 AM, joachim heintz  wrote:
>> hi all -
>>
>> i discovered a bug which might be introduced by some internal changes, i
>> suppose. GEN34 no longer allows to use non-power-of-two function tables in
>> the source function table (containing partial number, strength and phase in
>> n sections).
>> this worked up to csound 5.17. tested on ubuntu and osx 10.6.
>> a simple example is attached. best -
>>          joachim
>>
>> 
>> 
>> ; Select audio/midi flags here according to platform
>> -odac      ;;;realtime audio out
>> ;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
>> ; For Non-realtime ouput leave only the line below:
>> ; -o gen34.wav -W ;;; for file output any platform
>> 
>> 
>>
>> sr = 44100
>> ksmps = 32
>> nchnls = 2
>> 0dbfs  = 1
>>
>> giPartials ftgen 1, 0, -6, -2, 1, 1, 0, 2, .5, 0
>> giMix    ftgen 2, 0, 262144, -34, 1, giPartials, 1
>>
>> instr 1
>> asig    poscil .5, 400, giMix
>>           outs asig, asig
>> endin
>> 
>> 
>> i 1 0 2
>> 
>> 
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Don't let slow site performance ruin your business. Deploy New Relic APM
>> Deploy New Relic app performance management and know exactly
>> what is happening inside your Ruby, Python, PHP, Java, and .NET app
>> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
>> http://p.sf.net/sfu/newrelic-dev2dev
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net