Kyma Forum
  Kyma Support
  alignWith:

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   alignWith:
cristian_vogel
Member
posted 24 May 2007 09:10         Edit/Delete Message   Reply w/Quote
Hi SSC

I was just exploring your DiskLooper sounds over at the Twiki which are really interesting BTW , and i can see you have used an expression I didn't know about - alignWith: Could you explain a little more about what this does?

eg. (!LoopEnd alignWith: (1 bpm: !BPM)) switchedOn asToggle

IP: Logged

SSC
Administrator
posted 24 May 2007 09:45         Edit/Delete Message   Reply w/Quote
The alignWith: message delays an incoming a trigger so that it lines up with the next beat. This is useful for accurate triggering of loops so that they continue to line up with one another. For example, if you wanted to trigger the start of a loop and you knew the BPM of that loop, you could use:

!Trigger alignWith: (1 bpm: !BPM)

In the case of the DiskLooper Sounds, !LoopEnd is actually a trigger marking the end of the time interval you want to loop. The expression

(1 bpm: !BPM)) switchedOn asToggle

is detecting the rising edge of each beat (beginning of each beat) and using it as a toggle (so it alternates between on and off on alternate beats).

(!LoopEnd alignWith: (1 bpm: !BPM)) switchedOn asToggle

When you press the !LoopEnd button, it will be "delayed" so that it occurs on the beat (or in this case, every other beat).

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c