Thank for explaining T and S types! It's a lot clearer now for me. On 9/8/05, Istvan Varga wrote: > Steven Yi wrote: > > > Well, using invalue/outvalue doesn't sound like a good idea for the > > purpose I mentioned due to what you mentioned, and I seem to remember > > Matt having something like string values in MacCsound now. > > I think passing string values by invalue/outvalue in MacCsound is > implemented using strset. > > > I had done"csound -z1" and it's opcode signature showed "T" and not "S", > > and I didn't think they were compatible. Are they? > > 'T' means a string or i-rate ('S' is string only, and 'U' is string, i-rate, > or k-rate) input. So, if you specify a string as the channel name for invalue > or outvalue, it will be used as it is; it does not matter if it is a constant > in double quotes or {{ }}, or an S-rate variable. If you use an i-rate value > as the channel name instead, it is converted to a string with sprintf(). > > All the following uses of invalue are equivalent: > > Sfoo = "1" > ichn = 1 > > k1 invalue "1" > k2 invalue {{1}} > k3 invalue Sfoo > k4 invalue 1 > k5 invalue ichn > -- > Send bugs reports to this list. > To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk > -- Send bugs reports to this list. To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk