Csound Csound-dev Csound-tekno Search About

[Cs-dev] Type of variable samples

Date2009-05-28 16:06
Fromdavistro
Subject[Cs-dev] Type of variable samples
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@lists.sourceforge.net

Date2009-05-28 16:10
Fromvictor
SubjectRe: [Cs-dev] Type of variable samples
You mean a string? Use S-variables.

Victor
----- Original Message ----- 
From: "davistro" 
To: 
Sent: Thursday, May 28, 2009 4:06 PM
Subject: [Cs-dev] Type of variable samples


>
> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


------------------------------------------------------------------------------
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@lists.sourceforge.net

Date2009-05-28 16:14
Fromdavistro
SubjectRe: [Cs-dev] Type of variable samples
Thanks for your help :D


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-tp23763664p23763864.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@lists.sourceforge.net