New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opcode (udo) entry #115
Comments
Sorry but I failed to find that in the source of opcode.xml. Could you check to see if it is still wrong in the words and quote them to me here, or confirm it is OK now |
Digging up a fossil here... On opcode.xml/opcode.html the table showing input types and rates says: And the output table doesn't mention strings at all. I suggest both tables say: |
Re: #115 adds k-rate strings as input and strings as output.
I think this can be closed now, but would love confirmation from someone that knows better than I... Tests seem to indicate UDOs currently work these ways with strings. |
The entry for opcode (http://www.csounds.com/manual/html/opcode.html) states that strings are allowed as input to opcode, and only at i-rate.
It seems to me that string types does indeed work both as input and output, and that k-rate strings also work. The manual text should be updated to accordingly.
Here's an example:
opcode Kstring, S, Sk
Stest, kx xin
Stest1 sprintfk "%s %i", Stest, kx
xout Stest1
endop
instr 1
i1 0 .01 eSin = "test"
k1 init 0
k1 += 1
Sout Kstring Sin, k1
puts Sout, k1+1
endin
The text was updated successfully, but these errors were encountered: