[Csnd] K-rate I/O for UDOs
Date | 2011-09-01 20:38 |
From | Jim Aikin |
Subject | [Csnd] K-rate I/O for UDOs |
According to the manual, a capital K can be used to denote an in or out type for a UDO. The implication is that this is different from a lower-case k in that it's "with initialization." But this phrase doesn't seem to be explained on that manual page, and I have been unable to determine experimentally whether there is any difference between K and k. They seem to function identically. Is there a functional difference? If so, what is it? Thanks! --Jim Aikin -- View this message in context: http://csound.1045644.n5.nabble.com/K-rate-I-O-for-UDOs-tp4759760p4759760.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-09-02 20:46 |
From | Victor Lazzarini |
Subject | Re: [Csnd] K-rate I/O for UDOs |
It does what it says on the tin! k does not work at the init-pass, but K does. These examples should give you an idea of how this works: opcode Test1,i,k kvar xin xout i(kvar) endop opcode Test2,i,K kvar xin xout i(kvar) endop instr 1 k1 init 10 i1 Test1 k1 i2 Test2 k1 print i1 print i2 endin ====== new alloc for instr 1: instr 1: i1 = 0.000 instr 1: i2 = 10.000 On 1 Sep 2011, at 20:38, Jim Aikin wrote: > According to the manual, a capital K can be used to denote an in or > out type > for a UDO. The implication is that this is different from a lower- > case k in > that it's "with initialization." But this phrase doesn't seem to be > explained on that manual page, and I have been unable to determine > experimentally whether there is any difference between K and k. They > seem to > function identically. > > Is there a functional difference? If so, what is it? Thanks! > > --Jim Aikin > > -- > View this message in context: http://csound.1045644.n5.nabble.com/K-rate-I-O-for-UDOs-tp4759760p4759760.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-09-03 03:30 |
From | Jim Aikin |
Subject | [Csnd] Re: K-rate I/O for UDOs |
> It does what it says on the tin! k does not work at the init-pass, > but K does. Thanks, Victor. That explains it. The manual page, I'm constrained to point out, doesn't say that. It simply says, "k-rate with initialization." This is not a clear explanation; really, it's not an explanation at all. By now I've forgotten the rather convoluted steps that are needed to update manual pages, or I'd fix it myself. Maybe I can dig out the instructions. They should still be around here somewhere ... but I seem to recall something about the code having been moved from SVN to GIT or something. That may have nothing to do with updating the manual, or I may be remembering backwards. But how would I know? Anyway, thanks. --JA -- View this message in context: http://csound.1045644.n5.nabble.com/K-rate-I-O-for-UDOs-tp4759760p4764526.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-10-20 13:55 |
From | Louis Cohen |
Subject | Re: [Csnd] K-rate I/O for UDOs |
I've been catching up on old postings and came across this one, which I don't understand. Victor, in your example the K-rate parameter apparently somehow gets set to 0, I guess because of the line: xout i(kvar) This example seems to bump up against my continuing inability to completely understand what happens at i-time vs k-time, and what the real differences are between i-rate and k-rate variables. Would you be so kind as to explain why opcode Test1 returns a zero and Test2 does not? Many thanks. -Lou Cohen On Sep 2, 2011, at 3:46 PM, Victor Lazzarini wrote: > It does what it says on the tin! k does not work at the init-pass, > but K does. > These examples should give you an idea of how this works: > > opcode Test1,i,k > kvar xin > xout i(kvar) > endop > > opcode Test2,i,K > kvar xin > xout i(kvar) > endop > > instr 1 > > k1 init 10 > i1 Test1 k1 > i2 Test2 k1 > print i1 > print i2 > > endin > ====== > > new alloc for instr 1: > instr 1: i1 = 0.000 > instr 1: i2 = 10.000 > > > > On 1 Sep 2011, at 20:38, Jim Aikin wrote: > >> According to the manual, a capital K can be used to denote an in or >> out type >> for a UDO. The implication is that this is different from a lower- >> case k in >> that it's "with initialization." But this phrase doesn't seem to be >> explained on that manual page, and I have been unable to determine >> experimentally whether there is any difference between K and k. >> They seem to >> function identically. >> >> Is there a functional difference? If so, what is it? Thanks! >> >> --Jim Aikin >> >> -- >> View this message in context: http://csound.1045644.n5.nabble.com/K-rate-I-O-for-UDOs-tp4759760p4759760.html >> Sent from the Csound - General mailing list archive at Nabble.com. >> >> >> Send bugs reports to the Sourceforge bug tracker >> https://sourceforge.net/tracker/?group_id=81968&atid=564599 >> Discussions of bugs and features can be posted here >> To unsubscribe, send email sympa@lists.bath.ac.uk with body >> "unsubscribe csound" >> > > Dr Victor Lazzarini > Senior Lecturer > Dept. of Music > NUI Maynooth Ireland > tel.: +353 1 708 3545 > Victor dot Lazzarini AT nuim dot ie > > > > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |