electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
go to the radio page Live at electro-music.com radio 1 Please visit the chat
  host / artist show at your time
today> Modulator ESP Adventures In Sound
poster
 Forum index » DIY Hardware and Software » ChucK programming language
Problems with Wiki sequencer
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
H4T



Joined: Oct 23, 2007
Posts: 2
Location: Nebraska, USA

PostPosted: Tue Oct 23, 2007 6:40 pm    Post subject: Problems with Wiki sequencer Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Wed Oct 24, 2007 4:47 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail Visit poster's website
H4T



Joined: Oct 23, 2007
Posts: 2
Location: Nebraska, USA

PostPosted: Wed Oct 24, 2007 5:00 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Wed Oct 24, 2007 7:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Fri Oct 26, 2007 6:14 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use