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

Re: [sc-users] making patterns dependent on each other?



excellent. I've read the tutorials and it seems like exactly what I need!
I'll give it a try later on today. 

James Harkins wrote:
> 
> On Dec 30, 2009, at 10:36 PM, James Harkins wrote:
> 
>> On Dec 30, 2009, at 9:49 PM, mr.proxxxy wrote:
>>
>>> question:
>>>
>>> I am trying to do the following-
>>> when one pattern finishes, it checks the state of the other  
>>> running patterns
>>> (say, through a global dictionary, or array, or some other sort of  
>>> common
>>> structure) and then decides to play another pattern sequence based  
>>> off of
>>> that. (think of cellular automata)
>>>
>>> I've been reading the documentation and going through the forums,  
>>> but I
>>> haven't yet found a way to trigger a function at the end of an  
>>> instance of a
>>> pattern. Anyone have any ideas or tips how to achieve this?
>>
>> The easiest way to do this is to link them into a single pattern.  
>> You could use Psym to pull the subpatterns out of a dictionary, or  
>> something like this to use a two-dimensional matrix:
> 
> PS It's also possible through dependants and notifications -- that  
> documentation is unfortunately hidden in the Task helpfile, though it  
> applies to patterns too -- I find that a bit more cumbersome though.
> 
> Another good option is Pfset - use 'cleanupFunc' for your post- 
> pattern action.
> hjh
> 
> 
> : H. James Harkins
> : jamshark70@xxxxxxxxxxxxxxxxx
> : http://www.dewdrop-world.net
> .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:
> 
> "Come said the Muse,
> Sing me a song no poet has yet chanted,
> Sing me the universal."  -- Whitman
> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/making-patterns-dependent-on-each-other-tp4235022p4236251.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/