Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Tempest Bug?

Date2007-03-07 09:03
FromColin Kahn
SubjectRe: [Cs-dev] Tempest Bug?
Hello Jonathan,

Sorry, looks like that was a mistake in my example. Originally i had a1  
going into the pitchamdf and was using the krms as the kin for tempest.  
It looks like no matter what is used tempest returns nan. When you set  
tempest to display mode it does look like it's receiving the signal  
correctly, but it just doesn't return a bpm.

Thanks,

  Colin

	instr	3
kx, ky	xyin	.1, 30, 1, 30, 1
ksig	oscili	32000, kx, 1
a1	oscili	ksig, 440, 1
kcps, krms pitchamdf a1, 150, 500, 200
ktempo	tempest	krms, .02, .1, 3, 2, 800, .005, 8, 60, 2, .04, .995
         tempo	ktempo, 60
kval	tempoval

	out	a1
	printks	"rms %f\ntempest %f\ntempo %f\n", 1, krms, ktempo, kval
	endin






Date: Tue, 06 Mar 2007 23:54:08 +0930
From: Jonathan Murphy 
Subject: Re: [Cs-dev] Tempest Bug?
To: Developer discussions 
Message-ID: 
Content-Type: text/plain; charset=us-ascii

Hi Colin,

The oscili that outputs ksig is reading from f1, not f2. If f1 goes
below zero, then that might explain why you're getting the nan
error.

Jonathan.

Colin Kahn  writes:

> I've tried to figure out what i'm doing wrong with this and i'm pretty
> sure it's a bug with tempest. When i run tempest and use printks to see
> its value it returns "nan". I'm using Csound 5.04.  I also tried it
> using Csound 5.01 and it only returned zero. Here's the orc file i'm
> using:
>
> 	instr	2
> kx, ky	xyin	.1, 30, 1, 30, 1
> ksig	oscili	32000, kx, 1
> a1	oscili	ksig, 440, 1
> kcps, krms pitchamdf a1, 150, 500, 200
> ktempo	tempest	ksig, .02, .1, 3, 2, 800, .005, 8, 60, 2, .04, .995
>          tempo	ktempo, 60
> kval	tempoval
>
> 	out	a1
> 	printks	"rms %f\ntempest %f\ntempo %f\n", 1, krms, ktempo, kval
> 	endin
>
>
> Here's the f statement:
> f2 0 128 16 1 128 1
>
> I'm really stumped and any insight would be greatly appreciated.
>
> Thanks,
>
> Colin
>
>
> ----------------------------------------------------------------------- 
> --
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-03-07 10:32
FromJonathan Murphy
SubjectRe: [Cs-dev] Tempest Bug?
Hi Colin,

I think that the problem is with the use of xyin.

Jonathan.







  sr	    =  48000
  ksmps	    =  16
  nchnls    =  1

  gistmd    ftgen     1, 0, 128, 16, 1, 128, 1
  gisin	    ftgen     2, 0, 16384, 10, 1

    instr   1

  kphs	    phasor    0.2
  kbias	    =  kphs + 1
  kx	    =  kbias * 15
  ksig	    oscili    10000, kx, gisin
  a1	    oscili    ksig, 440, gisin
  kcps, krms   pitchamdf  a1, 150, 500, 200
  ktempo    tempest   krms, .02, .1, 3, 2, 800, .005, 8, 60, gistmd

	    out	      a1

	    printks   "rms %f\ntempest %f\n", 1, krms, ktempo

 	endin




i1 0 30
e




Colin Kahn  writes:

> Hello Jonathan,
>
> Sorry, looks like that was a mistake in my example. Originally i had a1  
> going into the pitchamdf and was using the krms as the kin for tempest.  
> It looks like no matter what is used tempest returns nan. When you set  
> tempest to display mode it does look like it's receiving the signal  
> correctly, but it just doesn't return a bpm.
>
> Thanks,
>
>   Colin
>
> 	instr	3
> kx, ky	xyin	.1, 30, 1, 30, 1
> ksig	oscili	32000, kx, 1
> a1	oscili	ksig, 440, 1
> kcps, krms pitchamdf a1, 150, 500, 200
> ktempo	tempest	krms, .02, .1, 3, 2, 800, .005, 8, 60, 2, .04, .995
>          tempo	ktempo, 60
> kval	tempoval
>
> 	out	a1
> 	printks	"rms %f\ntempest %f\ntempo %f\n", 1, krms, ktempo, kval
> 	endin
>
>
>
>
>
>
> Date: Tue, 06 Mar 2007 23:54:08 +0930
> From: Jonathan Murphy 
> Subject: Re: [Cs-dev] Tempest Bug?
> To: Developer discussions 
> Message-ID: 
> Content-Type: text/plain; charset=us-ascii
>
> Hi Colin,
>
> The oscili that outputs ksig is reading from f1, not f2. If f1 goes
> below zero, then that might explain why you're getting the nan
> error.
>
> Jonathan.
>
> Colin Kahn  writes:
>
>> I've tried to figure out what i'm doing wrong with this and i'm pretty
>> sure it's a bug with tempest. When i run tempest and use printks to see
>> its value it returns "nan". I'm using Csound 5.04.  I also tried it
>> using Csound 5.01 and it only returned zero. Here's the orc file i'm
>> using:
>>
>> 	instr	2
>> kx, ky	xyin	.1, 30, 1, 30, 1
>> ksig	oscili	32000, kx, 1
>> a1	oscili	ksig, 440, 1
>> kcps, krms pitchamdf a1, 150, 500, 200
>> ktempo	tempest	ksig, .02, .1, 3, 2, 800, .005, 8, 60, 2, .04, .995
>>          tempo	ktempo, 60
>> kval	tempoval
>>
>> 	out	a1
>> 	printks	"rms %f\ntempest %f\ntempo %f\n", 1, krms, ktempo, kval
>> 	endin
>>
>>
>> Here's the f statement:
>> f2 0 128 16 1 128 1
>>
>> I'm really stumped and any insight would be greatly appreciated.
>>
>> Thanks,
>>
>> Colin
>>
>>
>> ----------------------------------------------------------------------- 
>> --
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>> share your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-03-07 11:25
FromColin Kahn
SubjectRe: [Cs-dev] Tempest Bug?
Hi Jonathan,

Still returns nan. I'm using Csound 5.04 on Mac 10.3.9 from the command  
line and most of the examples i've found online using tempest don't  
seem to work (which makes me think it's a bug).

Colin

On Mar 7, 2007, at 5:32 AM, Jonathan Murphy wrote:

> Hi Colin,
>
> I think that the problem is with the use of xyin.
>
> Jonathan.
>
> 
> 
>
> 
> 
>
>   sr	    =  48000
>   ksmps	    =  16
>   nchnls    =  1
>
>   gistmd    ftgen     1, 0, 128, 16, 1, 128, 1
>   gisin	    ftgen     2, 0, 16384, 10, 1
>
>     instr   1
>
>   kphs	    phasor    0.2
>   kbias	    =  kphs + 1
>   kx	    =  kbias * 15
>   ksig	    oscili    10000, kx, gisin
>   a1	    oscili    ksig, 440, gisin
>   kcps, krms   pitchamdf  a1, 150, 500, 200
>   ktempo    tempest   krms, .02, .1, 3, 2, 800, .005, 8, 60, gistmd
>
> 	    out	      a1
>
> 	    printks   "rms %f\ntempest %f\n", 1, krms, ktempo
>
>  	endin
>
>
> 
> 
> i1 0 30
> e
> 
> 
>
>
> Colin Kahn  writes:
>
>> Hello Jonathan,
>>
>> Sorry, looks like that was a mistake in my example. Originally i had  
>> a1
>> going into the pitchamdf and was using the krms as the kin for  
>> tempest.
>> It looks like no matter what is used tempest returns nan. When you set
>> tempest to display mode it does look like it's receiving the signal
>> correctly, but it just doesn't return a bpm.
>>
>> Thanks,
>>
>>   Colin
>>
>> 	instr	3
>> kx, ky	xyin	.1, 30, 1, 30, 1
>> ksig	oscili	32000, kx, 1
>> a1	oscili	ksig, 440, 1
>> kcps, krms pitchamdf a1, 150, 500, 200
>> ktempo	tempest	krms, .02, .1, 3, 2, 800, .005, 8, 60, 2, .04, .995
>>          tempo	ktempo, 60
>> kval	tempoval
>>
>> 	out	a1
>> 	printks	"rms %f\ntempest %f\ntempo %f\n", 1, krms, ktempo, kval
>> 	endin
>>
>>
>>
>>
>>
>>
>> Date: Tue, 06 Mar 2007 23:54:08 +0930
>> From: Jonathan Murphy 
>> Subject: Re: [Cs-dev] Tempest Bug?
>> To: Developer discussions 
>> Message-ID: 
>> Content-Type: text/plain; charset=us-ascii
>>
>> Hi Colin,
>>
>> The oscili that outputs ksig is reading from f1, not f2. If f1 goes
>> below zero, then that might explain why you're getting the nan
>> error.
>>
>> Jonathan.
>>
>> Colin Kahn  writes:
>>
>>> I've tried to figure out what i'm doing wrong with this and i'm  
>>> pretty
>>> sure it's a bug with tempest. When i run tempest and use printks to  
>>> see
>>> its value it returns "nan". I'm using Csound 5.04.  I also tried it
>>> using Csound 5.01 and it only returned zero. Here's the orc file i'm
>>> using:
>>>
>>> 	instr	2
>>> kx, ky	xyin	.1, 30, 1, 30, 1
>>> ksig	oscili	32000, kx, 1
>>> a1	oscili	ksig, 440, 1
>>> kcps, krms pitchamdf a1, 150, 500, 200
>>> ktempo	tempest	ksig, .02, .1, 3, 2, 800, .005, 8, 60, 2, .04, .995
>>>          tempo	ktempo, 60
>>> kval	tempoval
>>>
>>> 	out	a1
>>> 	printks	"rms %f\ntempest %f\ntempo %f\n", 1, krms, ktempo, kval
>>> 	endin
>>>
>>>
>>> Here's the f statement:
>>> f2 0 128 16 1 128 1
>>>
>>> I'm really stumped and any insight would be greatly appreciated.
>>>
>>> Thanks,
>>>
>>> Colin
>>>
>>>
>>> --------------------------------------------------------------------- 
>>> --
>>> --
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to
>>> share your
>>> opinions on IT & business topics through brief surveys-and earn cash
>>> http://www.techsay.com/default.php?
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ---------------------------------------------------------------------- 
>> ---
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>> share your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ----------------------------------------------------------------------- 
> --
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-03-07 12:08
FromJonathan Murphy
SubjectRe: [Cs-dev] Tempest Bug?
I get output like this:

rms 0.000000
tempest 0.000000
rms 1825.397827
tempest 68.174026
rms 778.083252
tempest 121.735634
rms 2237.835693
tempest 226.032257

I'm using Csound version 5.05 beta (float samples) Mar  1 2007, on
linux, so perhaps there was a bug that has been fixed recently. Are you
using floats or doubles?

Jonathan. 


Colin Kahn  writes:

> Hi Jonathan,
>
> Still returns nan. I'm using Csound 5.04 on Mac 10.3.9 from the command  
> line and most of the examples i've found online using tempest don't  
> seem to work (which makes me think it's a bug).
>
> Colin
>
> On Mar 7, 2007, at 5:32 AM, Jonathan Murphy wrote:
>
>> Hi Colin,
>>
>> I think that the problem is with the use of xyin.
>>
>> Jonathan.
>>
>> 
>> 
>>
>> 
>> 
>>
>>   sr	    =  48000
>>   ksmps	    =  16
>>   nchnls    =  1
>>
>>   gistmd    ftgen     1, 0, 128, 16, 1, 128, 1
>>   gisin	    ftgen     2, 0, 16384, 10, 1
>>
>>     instr   1
>>
>>   kphs	    phasor    0.2
>>   kbias	    =  kphs + 1
>>   kx	    =  kbias * 15
>>   ksig	    oscili    10000, kx, gisin
>>   a1	    oscili    ksig, 440, gisin
>>   kcps, krms   pitchamdf  a1, 150, 500, 200
>>   ktempo    tempest   krms, .02, .1, 3, 2, 800, .005, 8, 60, gistmd
>>
>> 	    out	      a1
>>
>> 	    printks   "rms %f\ntempest %f\n", 1, krms, ktempo
>>
>>  	endin
>>
>>
>> 
>> 
>> i1 0 30
>> e
>> 
>> 
>>
>>
>> Colin Kahn  writes:
>>
>>> Hello Jonathan,
>>>
>>> Sorry, looks like that was a mistake in my example. Originally i had  
>>> a1
>>> going into the pitchamdf and was using the krms as the kin for  
>>> tempest.
>>> It looks like no matter what is used tempest returns nan. When you set
>>> tempest to display mode it does look like it's receiving the signal
>>> correctly, but it just doesn't return a bpm.
>>>
>>> Thanks,
>>>
>>>   Colin
>>>
>>> 	instr	3
>>> kx, ky	xyin	.1, 30, 1, 30, 1
>>> ksig	oscili	32000, kx, 1
>>> a1	oscili	ksig, 440, 1
>>> kcps, krms pitchamdf a1, 150, 500, 200
>>> ktempo	tempest	krms, .02, .1, 3, 2, 800, .005, 8, 60, 2, .04, .995
>>>          tempo	ktempo, 60
>>> kval	tempoval
>>>
>>> 	out	a1
>>> 	printks	"rms %f\ntempest %f\ntempo %f\n", 1, krms, ktempo, kval
>>> 	endin
>>>
>>>
>>>
>>>
>>>
>>>
>>> Date: Tue, 06 Mar 2007 23:54:08 +0930
>>> From: Jonathan Murphy 
>>> Subject: Re: [Cs-dev] Tempest Bug?
>>> To: Developer discussions 
>>> Message-ID: 
>>> Content-Type: text/plain; charset=us-ascii
>>>
>>> Hi Colin,
>>>
>>> The oscili that outputs ksig is reading from f1, not f2. If f1 goes
>>> below zero, then that might explain why you're getting the nan
>>> error.
>>>
>>> Jonathan.
>>>
>>> Colin Kahn  writes:
>>>
>>>> I've tried to figure out what i'm doing wrong with this and i'm  
>>>> pretty
>>>> sure it's a bug with tempest. When i run tempest and use printks to  
>>>> see
>>>> its value it returns "nan". I'm using Csound 5.04.  I also tried it
>>>> using Csound 5.01 and it only returned zero. Here's the orc file i'm
>>>> using:
>>>>
>>>> 	instr	2
>>>> kx, ky	xyin	.1, 30, 1, 30, 1
>>>> ksig	oscili	32000, kx, 1
>>>> a1	oscili	ksig, 440, 1
>>>> kcps, krms pitchamdf a1, 150, 500, 200
>>>> ktempo	tempest	ksig, .02, .1, 3, 2, 800, .005, 8, 60, 2, .04, .995
>>>>          tempo	ktempo, 60
>>>> kval	tempoval
>>>>
>>>> 	out	a1
>>>> 	printks	"rms %f\ntempest %f\ntempo %f\n", 1, krms, ktempo, kval
>>>> 	endin
>>>>
>>>>
>>>> Here's the f statement:
>>>> f2 0 128 16 1 128 1
>>>>
>>>> I'm really stumped and any insight would be greatly appreciated.
>>>>
>>>> Thanks,
>>>>
>>>> Colin
>>>>
>>>>
>>>> --------------------------------------------------------------------- 
>>>> --
>>>> --
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
>>>> share your
>>>> opinions on IT & business topics through brief surveys-and earn cash
>>>> http://www.techsay.com/default.php?
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ---------------------------------------------------------------------- 
>>> ---
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>> share your
>>> opinions on IT & business topics through brief surveys-and earn cash
>>> http://www.techsay.com/default.php? 
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ----------------------------------------------------------------------- 
>> --
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>> share your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-03-07 12:17
From"Dr. Richard Boulanger"
SubjectRe: [Cs-dev] Tempest Bug?
AttachmentsNone  None  
On the mac, there is a bug still.  I get:

-->CSoundLib found.
PortMIDI real time MIDI plugin for Csound
PortAudio real-time audio module for Csound
virtual_keyboard real time MIDI plugin for Csound
-->WARNING: CsoundLib may not compatible with this version
-->Starting CsoundLib.
0dBFS level = 32768.0
Csound version 5.04.0 (float samples) Nov 10 2006
libsndfile-1.0.16
UnifiedCSD:  /Users/dB/Desktop/tempestBug.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/tmp.0.ogX5OH.orc
scorename: /tmp/tmp.1.RPyAeQ.sco
Loading command-line libraries:
  /Applications/MacCsound1.3b4/MacCsound.app/Contents/Resources/libMacCsoundOpcodes.dylib
Macro definition for omacro:MacCsound
Macro definition for omacro:MacCsound
orch compiler:
25 lines read
instr 1
Elapsed time at end of orchestra compile: real: 0.082s, CPU: 0.030s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.085s, CPU: 0.040s
Csound version 5.04.0 (float samples) Nov 10 2006
midi channel 1 using instr 1
midi channel 2 using instr 1
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
0dBFS level = 32768.0
ftable 1:
ftable 2:
orch now loaded
audio buffered in 128 sample-frame blocks
reading 512-byte blks of floats from adc (RAW)
writing 512-byte blks of floats to dac
SECTION 1:
new alloc for instr 1:
rms 0.000000
tempest 0.000000
rms 1158.552612
tempest nan
rms 1373.014648
tempest nan
rms 1572.771484
tempest nan
rms 1776.424805
tempest nan
rms 1977.412842
tempest nan
rms 1272.693970
tempest nan
rms 1486.443726
tempest nan
rms 1684.290161
tempest nan
rms 1886.415771
tempest nan
rms 2085.756104
tempest nan
rms 1388.293091
tempest nan
inactive allocs returned to freespace
end of score.   overall amps:   -10.31
0 errors in performance
Elapsed time at end of performance: real: 14.980s, CPU: 8.460s
4159 512-byte soundblks of floats written to dac
-->CsoundLib Terminated...



On Mar 7, 2007, at 7:08 AM, Jonathan Murphy wrote:

<CsoundSynthesizer>

<CsOptions>


</CsOptions>

<CsInstruments>


  sr     =  48000

  ksmps     =  16

  nchnls    =  1


  gistmd    ftgen     1, 0, 128, 16, 1, 128, 1

  gisin     ftgen     2, 0, 16384, 10, 1


    instr   1


  kphs     phasor    0.2

  kbias     =  kphs + 1

  kx     =  kbias * 15

  ksig     oscili    10000, kx, gisin

  a1     oscili    ksig, 440, gisin

  kcps, krms   pitchamdf  a1, 150, 500, 200

  ktempo    tempest   krms, .02, .1, 3, 2, 800, .005, 8, 60, gistmd


    out       a1


    printks   "rms %f\ntempest %f\n", 1, krms, ktempo


  endin



</CsInstruments>

<CsScore>

i1 0 30

e

</CsScore>

</CsoundSynthesizer>



Date2007-03-07 12:33
FromJonathan Murphy
SubjectRe: [Cs-dev] Tempest Bug?
Perhaps it's safe to assume that it's been fixed sometime over the
last few months, but that whoever fixed it has been busy doing other
stuff today? 

Jonathan.

"Dr. Richard Boulanger"  writes:

> On the mac, there is a bug still.  I get:
>
> -->CSoundLib found.
> PortMIDI real time MIDI plugin for Csound
> PortAudio real-time audio module for Csound
> virtual_keyboard real time MIDI plugin for Csound
> -->WARNING: CsoundLib may not compatible with this version
> -->Starting CsoundLib.
> 0dBFS level = 32768.0
> Csound version 5.04.0 (float samples) Nov 10 2006
> libsndfile-1.0.16
> UnifiedCSD:  /Users/dB/Desktop/tempestBug.csd
> STARTING FILE
> Creating options
> Creating orchestra
> Creating score
> orchname:  /tmp/tmp.0.ogX5OH.orc
> scorename: /tmp/tmp.1.RPyAeQ.sco
> Loading command-line libraries:
>   /Applications/MacCsound1.3b4/MacCsound.app/Contents/Resources/libMacCsoundOpcodes.dylib
> Macro definition for omacro:MacCsound
> Macro definition for omacro:MacCsound
> orch compiler:
> 25 lines read
> instr 1
> Elapsed time at end of orchestra compile: real: 0.082s, CPU: 0.030s
> sorting score ...
> ... done
> Elapsed time at end of score sort: real: 0.085s, CPU: 0.040s
> Csound version 5.04.0 (float samples) Nov 10 2006
> midi channel 1 using instr 1
> midi channel 2 using instr 1
> midi channel 3 using instr 1
> midi channel 4 using instr 1
> midi channel 5 using instr 1
> midi channel 6 using instr 1
> midi channel 7 using instr 1
> midi channel 8 using instr 1
> midi channel 9 using instr 1
> midi channel 10 using instr 1
> midi channel 11 using instr 1
> midi channel 12 using instr 1
> midi channel 13 using instr 1
> midi channel 14 using instr 1
> midi channel 15 using instr 1
> midi channel 16 using instr 1
> 0dBFS level = 32768.0
> ftable 1:
> ftable 2:
> orch now loaded
> audio buffered in 128 sample-frame blocks
> reading 512-byte blks of floats from adc (RAW)
> writing 512-byte blks of floats to dac
> SECTION 1:
> new alloc for instr 1:
> rms 0.000000
> tempest 0.000000
> rms 1158.552612
> tempest nan
> rms 1373.014648
> tempest nan
> rms 1572.771484
> tempest nan
> rms 1776.424805
> tempest nan
> rms 1977.412842
> tempest nan
> rms 1272.693970
> tempest nan
> rms 1486.443726
> tempest nan
> rms 1684.290161
> tempest nan
> rms 1886.415771
> tempest nan
> rms 2085.756104
> tempest nan
> rms 1388.293091
> tempest nan
> inactive allocs returned to freespace
> end of score.   overall amps:   -10.31
> 0 errors in performance
> Elapsed time at end of performance: real: 14.980s, CPU: 8.460s
> 4159 512-byte soundblks of floats written to dac
> -->CsoundLib Terminated...
>
> On Mar 7, 2007, at 7:08 AM, Jonathan Murphy wrote:
>
>             
>            
>             
>
>             
>            
>             
>
>               sr     =  48000
>            
>               ksmps     =  16
>            
>               nchnls    =  1
>
>               gistmd    ftgen     1, 0, 128, 16, 1, 128, 1
>            
>               gisin     ftgen     2, 0, 16384, 10, 1
>
>                 instr   1
>
>               kphs     phasor    0.2
>            
>               kbias     =  kphs + 1
>            
>               kx     =  kbias * 15
>            
>               ksig     oscili    10000, kx, gisin
>            
>               a1     oscili    ksig, 440, gisin
>            
>               kcps, krms   pitchamdf  a1, 150, 500, 200
>            
>               ktempo    tempest   krms, .02, .1, 3, 2, 800, .005, 8, 60, gistmd
>
>                 out       a1
>
>                 printks   "rms %f\ntempest %f\n", 1, krms, ktempo
>
>               endin
>
>             
>            
>             
>            
>             i1 0 30
>            
>             e
>            
>             
>            
>             
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-03-07 12:38
FromColin Kahn
SubjectRe: [Cs-dev] Tempest Bug?
AttachmentsNone  None  
Thanks for the confirmation on that.

Colin

On Mar 7, 2007, at 7:17 AM, Dr. Richard Boulanger wrote:

> On the mac, there is a bug still.  I get:
>
> -->CSoundLib found.
> PortMIDI real time MIDI plugin for Csound
> PortAudio real-time audio module for Csound
> virtual_keyboard real time MIDI plugin for Csound
> -->WARNING: CsoundLib may not compatible with this version
> -->Starting CsoundLib.
> 0dBFS level = 32768.0
> Csound version 5.04.0 (float samples) Nov 10 2006
> libsndfile-1.0.16
> UnifiedCSD:  /Users/dB/Desktop/tempestBug.csd
> STARTING FILE
> Creating options
> Creating orchestra
> Creating score
> orchname:  /tmp/tmp.0.ogX5OH.orc
> scorename: /tmp/tmp.1.RPyAeQ.sco
> Loading command-line libraries:
>    
> /Applications/MacCsound1.3b4/MacCsound.app/Contents/Resources/ 
> libMacCsoundOpcodes.dylib
> Macro definition for omacro:MacCsound
> Macro definition for omacro:MacCsound
> orch compiler:
> 25 lines read
>         instr        1
> Elapsed time at end of orchestra compile: real: 0.082s, CPU: 0.030s
> sorting score ...
>     ... done
> Elapsed time at end of score sort: real: 0.085s, CPU: 0.040s
> Csound version 5.04.0 (float samples) Nov 10 2006
> midi channel 1 using instr 1
> midi channel 2 using instr 1
> midi channel 3 using instr 1
> midi channel 4 using instr 1
> midi channel 5 using instr 1
> midi channel 6 using instr 1
> midi channel 7 using instr 1
> midi channel 8 using instr 1
> midi channel 9 using instr 1
> midi channel 10 using instr 1
> midi channel 11 using instr 1
> midi channel 12 using instr 1
> midi channel 13 using instr 1
> midi channel 14 using instr 1
> midi channel 15 using instr 1
> midi channel 16 using instr 1
> 0dBFS level = 32768.0
> ftable 1:
> ftable 2:
> orch now loaded
> audio buffered in 128 sample-frame blocks
> reading 512-byte blks of floats from adc (RAW)
> writing 512-byte blks of floats to dac
> SECTION 1:
> new alloc for instr 1:
> rms 0.000000
> tempest 0.000000
> rms 1158.552612
> tempest nan
> rms 1373.014648
> tempest nan
> rms 1572.771484
> tempest nan
> rms 1776.424805
> tempest nan
> rms 1977.412842
> tempest nan
> rms 1272.693970
> tempest nan
> rms 1486.443726
> tempest nan
> rms 1684.290161
> tempest nan
> rms 1886.415771
> tempest nan
> rms 2085.756104
> tempest nan
> rms 1388.293091
> tempest nan
> inactive allocs returned to freespace
> end of score.             overall amps:   -10.31
> 0 errors in performance
> Elapsed time at end of performance: real: 14.980s, CPU: 8.460s
> 4159 512-byte soundblks of floats written to dac
> -->CsoundLib Terminated...
>
>
>
> On Mar 7, 2007, at 7:08 AM, Jonathan Murphy wrote:
>
>>>> 
>>>> 
>>>>
>>>> 
>>>> 
>>>>
>>>>   sr       = 48000
>>>>   ksmps   = 16
>>>>   nchnls = 1
>>>>
>>>>   gistmd ftgen  1, 0, 128, 16, 1, 128, 1
>>>>   gisin        ftgen  2, 0, 16384, 10, 1
>>>>
>>>>   instr  1
>>>>
>>>>   kphs      phasor 0.2
>>>>   kbias  = kphs + 1
>>>>   kx = kbias * 15
>>>>   ksig oscili 10000, kx, gisin
>>>>   a1        oscili ksig, 440, gisin
>>>>   kcps, krms  pitchamdf a1, 150, 500, 200
>>>>   ktempo tempest  krms, .02, .1, 3, 2, 800, .005, 8, 60, gistmd
>>>>
>>>>         out      a1
>>>>
>>>>    printks  "rms %f\ntempest %f\n", 1, krms, ktempo
>>>>
>>>>       endin
>>>>
>>>>
>>>> 
>>>> 
>>>> i1 0 30
>>>> e
>>>> 
>>>> 
> ----------------------------------------------------------------------- 
> --
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV_________________________________ 
> ______________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2007-03-07 13:04
From"Dr. Richard Boulanger"
SubjectRe: [Cs-dev] Tempest Bug?
hoping it will work in the new release.

-dB

On Mar 7, 2007, at 7:33 AM, Jonathan Murphy wrote:

> Perhaps it's safe to assume that it's been fixed sometime over the
> last few months, but that whoever fixed it has been busy doing other
> stuff today?
>
> Jonathan.
>
> "Dr. Richard Boulanger"  writes:
>
>> On the mac, there is a bug still.  I get:
>>
>> -->CSoundLib found.
>> PortMIDI real time MIDI plugin for Csound
>> PortAudio real-time audio module for Csound
>> virtual_keyboard real time MIDI plugin for Csound
>> -->WARNING: CsoundLib may not compatible with this version
>> -->Starting CsoundLib.
>> 0dBFS level = 32768.0
>> Csound version 5.04.0 (float samples) Nov 10 2006
>> libsndfile-1.0.16
>> UnifiedCSD:  /Users/dB/Desktop/tempestBug.csd
>> STARTING FILE
>> Creating options
>> Creating orchestra
>> Creating score
>> orchname:  /tmp/tmp.0.ogX5OH.orc
>> scorename: /tmp/tmp.1.RPyAeQ.sco
>> Loading command-line libraries:
>>   /Applications/MacCsound1.3b4/MacCsound.app/Contents/Resources/ 
>> libMacCsoundOpcodes.dylib
>> Macro definition for omacro:MacCsound
>> Macro definition for omacro:MacCsound
>> orch compiler:
>> 25 lines read
>> instr 1
>> Elapsed time at end of orchestra compile: real: 0.082s, CPU: 0.030s
>> sorting score ...
>> ... done
>> Elapsed time at end of score sort: real: 0.085s, CPU: 0.040s
>> Csound version 5.04.0 (float samples) Nov 10 2006
>> midi channel 1 using instr 1
>> midi channel 2 using instr 1
>> midi channel 3 using instr 1
>> midi channel 4 using instr 1
>> midi channel 5 using instr 1
>> midi channel 6 using instr 1
>> midi channel 7 using instr 1
>> midi channel 8 using instr 1
>> midi channel 9 using instr 1
>> midi channel 10 using instr 1
>> midi channel 11 using instr 1
>> midi channel 12 using instr 1
>> midi channel 13 using instr 1
>> midi channel 14 using instr 1
>> midi channel 15 using instr 1
>> midi channel 16 using instr 1
>> 0dBFS level = 32768.0
>> ftable 1:
>> ftable 2:
>> orch now loaded
>> audio buffered in 128 sample-frame blocks
>> reading 512-byte blks of floats from adc (RAW)
>> writing 512-byte blks of floats to dac
>> SECTION 1:
>> new alloc for instr 1:
>> rms 0.000000
>> tempest 0.000000
>> rms 1158.552612
>> tempest nan
>> rms 1373.014648
>> tempest nan
>> rms 1572.771484
>> tempest nan
>> rms 1776.424805
>> tempest nan
>> rms 1977.412842
>> tempest nan
>> rms 1272.693970
>> tempest nan
>> rms 1486.443726
>> tempest nan
>> rms 1684.290161
>> tempest nan
>> rms 1886.415771
>> tempest nan
>> rms 2085.756104
>> tempest nan
>> rms 1388.293091
>> tempest nan
>> inactive allocs returned to freespace
>> end of score.   overall amps:   -10.31
>> 0 errors in performance
>> Elapsed time at end of performance: real: 14.980s, CPU: 8.460s
>> 4159 512-byte soundblks of floats written to dac
>> -->CsoundLib Terminated...
>>
>> On Mar 7, 2007, at 7:08 AM, Jonathan Murphy wrote:
>>
>>             
>>
>>             
>>
>>             
>>
>>             
>>
>>               sr     =  48000
>>
>>               ksmps     =  16
>>
>>               nchnls    =  1
>>
>>               gistmd    ftgen     1, 0, 128, 16, 1, 128, 1
>>
>>               gisin     ftgen     2, 0, 16384, 10, 1
>>
>>                 instr   1
>>
>>               kphs     phasor    0.2
>>
>>               kbias     =  kphs + 1
>>
>>               kx     =  kbias * 15
>>
>>               ksig     oscili    10000, kx, gisin
>>
>>               a1     oscili    ksig, 440, gisin
>>
>>               kcps, krms   pitchamdf  a1, 150, 500, 200
>>
>>               ktempo    tempest   krms, .02, .1, 3, 2, 800, .005,  
>> 8, 60, gistmd
>>
>>                 out       a1
>>
>>                 printks   "rms %f\ntempest %f\n", 1, krms, ktempo
>>
>>               endin
>>
>>             
>>
>>             
>>
>>             i1 0 30
>>
>>             e
>>
>>             
>>
>>             
>>
>> --------------------------------------------------------------------- 
>> ----
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>> share your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV_______________________________ 
>> ________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ---------------------------------------------------------------------- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-03-09 07:02
Fromjpff
SubjectRe: [Cs-dev] Tempest Bug?
On my machine tempest works as expected.  This suggests that the
problem is a Mac problem only.  

NaN is a possible answer only if the value of p->avglam is zero, and
tracing the algorithm I am having trouble seeing how that can happen
if there is any signal at all.


==John ffitch

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net