Author |
Message |
H4T
Joined: Oct 23, 2007 Posts: 2 Location: Nebraska, USA
|
Posted: Tue Oct 23, 2007 6:40 pm Post subject:
Problems with Wiki sequencer |
 |
|
I'd really like to use this sequencer located on the Wiki:
http://wiki.cs.princeton.edu/forums.html/ChucK/sequencer.ck
But after fixing some of the errors that I received after running the file the first couple times, I'm now stuck on an error that I cannot get past. Here are the errors exactly as given to me in the command line, can someone help me out with revising this code for the wiki? It seems really useful!
[sequencer.ck]:line<9>: cannot declare static non-primitive objects <yet>...
[sequencer.ck]:line<9>: ...<hint: declare as ref <@> & initialize outside for now> |
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Wed Oct 24, 2007 4:47 am Post subject:
|
 |
|
Hey there, welcome!
I fear you picked one of our darkest, strangest corners to explore! (very ChucKian, you should keep that up).
I set Google loose on the list archives (publicly available on the Princeton ChucK site), looking for "static event" and the third or so hit covered EXACTLY what you need;
https://lists.cs.princeton.edu/pipermail/chuck-users/2007-January/001496.html
However, for some odd reason that proposed fix isn't on the wiki as prommissed.
Anyway, see how far that gets you. _________________ Kassen |
|
Back to top
|
|
 |
H4T
Joined: Oct 23, 2007 Posts: 2 Location: Nebraska, USA
|
Posted: Wed Oct 24, 2007 5:00 pm Post subject:
|
 |
|
Yay, fixed by an @ sign. Also, the original author left a lot of function names uncapitalized, which ChucK complained about. Fixed all that and got it working.
One note, the sound sample must be in the same folder as the ck file you use to instantiate the sequencer. Kind of annoying, but must be an internal chuck issue.
I updated the Wiki page with a working version of the sequencer and also prettied up the page a little bit.
http://wiki.cs.princeton.edu/forums.html/ChucK/sequencer.ck
Enjoy!
Look for more updates over the next couple weeks, I'll try to add some more functionality as I learn more about Chuck...this looks like a very promising project! |
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Wed Oct 24, 2007 7:02 pm Post subject:
|
 |
|
H4T wrote: | Yay, fixed by an @ sign. |
H4T, if you liked that @ sign, you'll like this: @(ºoº)@ it's a koala bear! In fact, maybe ChucK should have ASCII graphics operators like that, eh? Here is a cat (^.^)~ some mice <:3)~ ~(,_,º> and a fish ><}}}º> For example, here is some code for accessing the computer's mouse:
Code: |
0 => int (^.^)~; // declare cat
while ( (^.^)~ < 10 ) { // set limit on cat's motion
if ( <:3)~ > 0 ) { // if the mouse moved
<:3)~ +=> (^.^)~; // add mouse to cat
}
}
|
Hmmm, on second thought maybe I should just save the ASCII graphics for the comments...
Just kidding around. I'm glad you solved your problem and it will be interesting to read about your future results. |
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Fri Oct 26, 2007 6:14 am Post subject:
|
 |
|
H4T wrote: | Also, the original author left a lot of function names uncapitalized, which ChucK complained about. Fixed all that and got it working.
|
Well, the original author is Spencer who's also one of the developers of ChucK, he didn't make a mistake there, back when he wrote it ChucK didn't yet have all capitalised Ugen names.
This was all very confusing, some Ugens were capitalised (the ones that came from the STK) and others weren't (basically all the other ones, I think). This was very confusing, you had to memorise them all or look them up all the time so at one point it was all made to conform to one standard (of capitalising all Ugens). Much more convenient but now old code gives warnings. _________________ Kassen |
|
Back to top
|
|
 |
|