| Thanks Partev, this is the kind of method that many of us newer Csound users love to hear about!
John Clements
On Sep 4, 2011, at 7:45 PM, "Partev Barr Sarkissian" wrote:
> "Used before defined" --- happens to me often,....
>
> go from this---
>
> ifreqa init 0
> ifreqb init 0
>
> instr 1
>
> ifreqa = ifreqb
> ifreqb = cpsoct (p4)
>
>
> to this---
>
> ifreqa init 0
> ifreqb init 0
>
> instr 1
>
> ifreqb = cpsoct (p4) <-- specified, declared, defined
> ifreqa = ifreqb <-- then used
>
>
> Happens to me more often than I like, but less often now.
> -Partev
>
>
> ==================================
>
>
> --- sounddesign3003@gmail.com wrote:
>
> From: Dima Bak
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] Used before defined?
> Date: Wed, 31 Aug 2011 13:46:56 +0300
>
> I have error when try to execute this csd. It says "input arg
> 'ifreqb' used before defined, line 17:"
>
> Whats wrong? Thanks.
>
>
>
>
>
>
> sr = 44100
> kr = 4410
> ksmps = 10
> nchnls = 1
> 0dbfs = 4
>
> ifreqa init 0
> ifreqb init 0
>
> instr 1
>
> ifreqa = ifreqb
> ifreqb = cpsoct (p4)
>
> kfreqm line ifreqa,p3,ifreqb
> aout oscil 1,kfreqm,1
> out aout
> endin
>
>
>
>
> f 1 0 16384 9 1 1 90
> i1 0 2 8.0
> i1 + 2 8.7
>
>
>
>
>
>
>
> _____________________________________________________________
> Netscape. Just the Net You Need.
>
>
> 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"
|