[Csnd] tableshuffle and QuteCsound for doubles
Date | 2011-07-29 20:22 |
From | Nye Parry |
Subject | [Csnd] tableshuffle and QuteCsound for doubles |
Hi again some more rookie questions. I'm trying to use tableshuffle. I've upgraded to 5.13 and it still reports no legal opcode. I tried csound64 in the command line and it reports the same as the floats version What I want to do is a simple non - repeating random sequence such as you get from Urn in Max - is there another opcode I can use for this? Also I can't seem to find a pre-compiled QuteCsound that runs Csound64 - I normally use Run in Terminal in QuteCsound anyway is there any way to set CSound64 as a preference for this? best Nye 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-07-30 01:45 |
From | Jim Aikin |
Subject | [Csnd] Re: tableshuffle and QuteCsound for doubles |
I had the same question. Check out this thread: http://csound.1045644.n5.nabble.com/tableshuffle-not-working-td4548730.html. At present it's only available in the doubles build, not in the floats build. Presumably that will be corrected in the next release. What I did, in the meantime, was to research shuffling algorithms on the Web and then write an UDO to shuffle a table. I don't know what folder I put it in, though, or I'd post it. Sorry. --Jim Aikin -- View this message in context: http://csound.1045644.n5.nabble.com/tableshuffle-and-QuteCsound-for-doubles-tp4648087p4648736.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-07-30 01:47 |
From | Jim Aikin |
Subject | [Csnd] Re: tableshuffle and QuteCsound for doubles |
Found it. Try this: opcode TableShuffle, 0, i iTabNum xin ilen tableng iTabNum kctr init ilen - 1 ktemp1 init 3.00 ktemp2 init 3.00 loop: krand random 0, kctr krand = int(krand) ktemp1 table krand, iTabNum ktemp2 table kctr, iTabNum tablew ktemp1, kctr, iTabNum tablew ktemp2, krand, iTabNum kctr = kctr - 1 if kctr >= 1 goto loop endop -- View this message in context: http://csound.1045644.n5.nabble.com/tableshuffle-and-QuteCsound-for-doubles-tp4648087p4648740.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-07-30 12:37 |
From | Nye Parry |
Subject | Re: [Csnd] Re: tableshuffle and QuteCsound for doubles |
Great thanks just the trick (and I've now discovered UDOs) N On 30 July 2011 01:47, Jim Aikin |