[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] OSC Pattern Scheduling



James Harkins <jamshark70@xxxxxxxxx> writes:

> Why do you need tsched?

So I can trigger on an exact time, instead of whole beat. I want to
trigger some synths some milliseconds before or after the beat.

> I can't see any concrete benefits of it over the scheduling methods
> in SystemClock and TempoClock.

All is foggy, so I don't see much either;)

> In your example you have two clocks 

Not intentional;)

> Could you clarify what you mean by "too many calculations"?

I'm trying to trigger some synths before the actual beat. I do simple
calculations to get close with tsched. The best thing would be if I
had a function to trigger it f.ex 5% before the beat. This would take
into consideration the length in time between each beat. (if I change
tempo)

Now, when I use tsched, when getting further into the beat, I have to
use high values for tsched, like 5s. I'm sure this is the wrong way to
do it, but I haven't figured it out yet.

> 8.0.wait;
> Something like that?

Damn, of course;). Thank you. 

It seems to not work when I insert a tsched:

(
d = Routine({
   var c = thisThread.clock;
   20.do({
       c.sched(1.0, {Synth("tutorial-sine",[\gate,1]); });
       c.tsched(0.5, {Synth("tutorial-sine",[\gate,1]); });
       c.sched(5.0, {Synth("tutorial-sine",[\gate,1]); });
       8.0.wait;
   });
});
SystemClock.play(d);
)

Thank you for the help, so far;)

-- 
Esben Stien is b0ef@e     s      a             
         http://www. s     t    n m
          irc://irc.  b  -  i  .   e/%23contact
          [sip|iax]:   e     e 
           jid:b0ef@    n     n