[CM] defining Csound ftables

peiman khosravi peimankhosravi at gmail.com
Sat Nov 20 11:33:49 PST 2010


On 20 November 2010 19:00, Heinrich Taube <taube at uiuc.edu> wrote:
> oh i see.  is it the case that if you ever pass a string to the  'f'
> statement then that string should be explicitly quoted in the score file?
> if so then i should add this to the cs:f function.

Yes that is correct. Otherwise it will not be considered a string by csound.

>
> On Nov 20, 2010, at 12:14 PM, peiman khosravi wrote:
>
>>> send ("cs:f", 2, 0, 32768, 1, sound, 0, 0, 0) ;set f_table 2
>>
>
>
> also in your example you are appear to be sending statements directly, but
> then you are generating a .sco file after than . i dont think you should do
> this.
> that is, if you use sprout at all all .sco output should be done under the
> sprout. you can use a second process to do the other sends
>

I see, thanks. It makes perfect sense. However this returns an error.

process csound(len, p2, seg)
  for frq = between( 220, 5000)
  for t = elapsed(#t) ; get true score time
  for a = interp( t, seg)
  while t < len
  send( "cs:i", 1, t, .1, frq)
  wait a
end


process otherprocess (tim)
 send ("cs:f", 1, tim, 32768, 10, 1) ;set f_table 1
 send ("cs:f", 2, tim, 32768, 1, sound, 0, 0, 0) ;set f_table 2
end


sprout (list( otherprocess(0), csound(10, 0.05, {0 0.01 10 0.05}), "test.sco"))

;;;;;;;;;;

csound
otherprocess
>>> Error: (#<closure> #<closure> "test.sco") is not a process






> process otherprocess (tim)
>  send ("cs:f", 1, tim, 32768, 10, 1) ;set f_table 1
>  send ("cs:f", 2, tim, 32768, 1, sound, 0, 0, 0) ;set f_table 2
> end
>
> ...
>
> sprout (list( otherprocess(0), csound(10, 0.05, {0 0.01 10 0.05}),
> "test.sco"))
>
> or something like that
>



More information about the Cmdist mailing list