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 
 Forum index » DIY Hardware and Software » ChucK programming language
weird event timing issue
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
gotascii



Joined: Mar 08, 2007
Posts: 4
Location: usa

PostPosted: Thu Apr 26, 2007 8:27 am    Post subject: weird event timing issue Reply with quote  Mark this post and the followings unread

In the attached code I have a shred and the parent shred both waiting on an event signaled in another shred. Yet for some reason they appear to be signaled not at the same time. Can anyone explain why they aren't picking up the event at the same time? Thanks!


ClockTest.ck
 Description:

Download (listen)
 Filename:  ClockTest.ck
 Filesize:  231 Bytes
 Downloaded:  576 Time(s)

Back to top
View user's profile Send private message
gotascii



Joined: Mar 08, 2007
Posts: 4
Location: usa

PostPosted: Thu Apr 26, 2007 8:41 am    Post subject: signal vs broadcast... Reply with quote  Mark this post and the followings unread

I realized right after I posted this that I should be using e.broadcast no e.signal so all shreds waiting on the event get triggered...rtfm Wink
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: Sat Apr 28, 2007 5:07 am    Post subject: Re: signal vs broadcast... Reply with quote  Mark this post and the followings unread

gotascii wrote:
rtfm Wink


Smile

Don't feel too bad, you solved your own problem so that's cool.

Actually you gave me a idea; I've been thinking about how to make all instances of a certain class do something at once (for example resetting them all) and that would be quite easy to acomplish using "signal" and I missed that entirely.

_________________
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 [3 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