Sending trigger pulse with pattern features

If I was trying to send trigger pulses out a dc coupled interface, to external analog gear, but wanted the power of patterns, what would be the way to go? Create a Synthdef that makes a pulse and play it with patterns? Or would the demand Ugens be better? Or any other ideas? Thanks

All possible. To employ Patterns directly, you could do something like this:

(
SynthDef(\dcSetter, { |out, val|
	Out.ar(out, K2A.ar(val))
}).add;
)

	
(	
x = Pmono(\dcSetter,
	\dur, 0.2,
	\val, Pwhite(0.0, 0.05),
	\out, 2 // suppose this is your out to analog device
).play
)	


x.stop
1 Like

If the goal is to generate trigger pulses, I would write:

(
SynthDef(\dcSetter, { |out, trigDur = 0.01|
	var val = NamedControl.tr(\val, 0);
	Out.ar(out, K2A.ar(Trig.kr(val, trigDur)))
}).add;
)

… because you need the signal to fall back to zero between triggers.

hjh

1 Like

I want to send triggers at specified times. Like a sequencer.

Just to be clear

This looks good. Thank you