« Return to Thread: Type of variable samples

Re: Type of variable samples

by Andres Cabrera :: Rate this Message:

Reply to Author | View in Thread

Have a look at:
http://www.csounds.com/manual/html/StringsTop.html
http://www.csounds.com/manual/html/stringconvert.html

Cheers,
Andres

On Thu, May 28, 2009 at 10:06 AM, davistro <davistro@...> wrote:

>
> How can I use a sample as a variable? Which type of variable should I use to
> do that? For example I want to do this:
>
> instr 1
>
>        ifilcod =       "pista.wav"
>
>        a1,a2 diskin ifilcod, p4
>
>        outs a1, a2
>
> endin
>
> but we have the following error message:
>
> Macro definition for omacro:MacCsound
> orch compiler:
> 31 lines read
>        instr   1
> error:  input arg '"pista.wav"' of type string not allowed when expecting i,
> line 12:
>        ifilcod =       "pista.wav"
>
> 1 syntax errors in orchestra.  compilation invalid
> -->CsoundLib Terminated...
> --
> View this message in context: http://www.nabble.com/Type-of-variable-samples-tp23763664p23763664.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



--


Andrés

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

 « Return to Thread: Type of variable samples