Hi, Roger. It's past 3 am so I may be missing something. For example, I couldn't find os.impulsetrain in the libraries. If you referred to os.imptrain, I'm not sure if that's good to use as a trigger for en.ar as it is the band-limited impulse train.
I've put together a few lines for a hard-synced pulse train that you might adapt to your case: import("stdfaust.lib"); phasor(reset, freq) = (+(freq / ma.SR) : ma.frac) ~ *(1 - (reset != 0)); // phasor with phase reset duty = .25; // 25% duty cycle primary = phasor(0, 472); // primary oscillator clock = primary : \(x).(x <= x'); // syncing clock secondary = phasor(clock, 727) < duty; // hard-synced pulse train process = primary , secondary , en.ar(.001, .002, secondary); Ciao, Dr Dario Sanfilippo http://dariosanfilippo.com On Sat, 25 Sept 2021 at 09:25, Roger Pibernat <rogerpiber...@gmail.com> wrote: > Hi, > > I'd like to hard sync an (os.pulsetrain) with (os.impulsetrain : en.ar(atk, > dec)), I don't have a clue on how to do it. Any pointers would be very > much appreciated. > > Thanks! > > Roger > > _______________________________________________ > Faudiostream-users mailing list > Faudiostream-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/faudiostream-users >
_______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users