Csound Csound-dev Csound-tekno Search About

Globall variables: newbee question

Date2006-01-03 21:23
From"Robson Cozendey"
SubjectGloball variables: newbee question
When I use the global variable "iamp" like this, my instr 1 dont recognize 
iamp. What I have to do to this global variable be really global? What I´m 
doing wrong?

Thanks in advance,
Robson



iamp = 1000
sr = 44100
kr = 44100
ksmps = 1
nchnls = 1

instr 1
    kcps = cpspch(p4)
    kfmd  = 10
    kgdur  = .1
    iovrlp = 160 ; 1600 por segundo
    kfn = 1
    iwfn = 2

    ares grain2 kcps, kfmd, kgdur, iovrlp, kfn, iwfn

    out ares*iamp
endin

_________________________________________________________________
Você sabia que com o seu MSN Messenger você faz ligações de PC-papa- PC, 
grátis e para qualquer lugar do mundo? É só acessar   
http://imagine-msn.com/messenger/default2.aspx?locale=pt-br

Date2006-01-03 21:29
FromIstvan Varga
SubjectRe: Globall variables: newbee question
AttachmentsNone  

Date2006-01-03 21:37
FromJean-Michel DARREMONT
SubjectRe: Globall variables: newbee question
any global variable has to begin with letter "g".
Here giamp. Could be gkamp as well if krate is needed.

Le 3 janv. 06, à 22:23, Robson Cozendey a écrit :

> When I use the global variable "iamp" like this, my instr 1 dont 
> recognize iamp. What I have to do to this global variable be really 
> global? What I´m doing wrong?
>
> Thanks in advance,
> Robson
>
> 
>
> iamp = 1000
> sr = 44100
> kr = 44100
> ksmps = 1
> nchnls = 1
>
> instr 1
>    kcps = cpspch(p4)
>    kfmd  = 10
>    kgdur  = .1
>    iovrlp = 160 ; 1600 por segundo
>    kfn = 1
>    iwfn = 2
>
>    ares grain2 kcps, kfmd, kgdur, iovrlp, kfn, iwfn
>
>    out ares*iamp
> endin
>
> _________________________________________________________________
> Você sabia que com o seu MSN Messenger você faz ligações de PC-papa- 
> PC, grátis e para qualquer lugar do mundo? É só acessar   
> http://imagine-msn.com/messenger/default2.aspx?locale=pt-br
>
> -- 
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>