« Return to Thread: another (post-3.3?) pattern cleanup

Re: another (post-3.3?) pattern cleanup

by James Harkins-2 :: Rate this Message:

Reply to Author | View in Thread

On Apr 22, 2009, at 8:47 AM, James Harkins wrote:

Maybe this is better?

(Event.sc):

*silent { arg dur = 1.0, inEvent;
// ^Event.new(8, nil, defaultParentEvent, true).put(\type, \rest).put(\dur, dur)
^inEvent.copy.put(\type, \rest).put(\dur, \dur)
}

Erm, no, this:

*silent { arg dur = 1.0, inEvent;
inEvent.copy.put(\type, \rest).put(\dur, dur).put(\parent, defaultParentEvent)
inEvent[\delta] = inEvent.delta;
^inEvent
}

And I found how to handle Spawner:wait.

Diff attached.
hjh





: H. James Harkins
: jamshark70@...
: http://www.dewdrop-world.net
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman


rests.diff (2K) Download Attachment

 « Return to Thread: another (post-3.3?) pattern cleanup