Hello. Perhaps you could attach a PD patch to give an example. If you're talking about the "metro" object in PD, then [metro 1200] would send a bang every 1200/1000 second.
Consider that in Faust there is no distinction between message and audio domain: everything is a signal ticking at samplerate so you should design what the equivalent of a "bang" (a trigger) could be in your specific case so that your functions can respond accordingly, considering also that the scheduling would be constrained to time steps given by the sampling period. For example, metro(interval) = ba.pulse(interval*ma.SR/1000); outputs one-sample-full-amp pulses every ~"interval" msecs. Or, seconds(bang) = ba.pulse(ma.SR) : fi.pole(bang : !=(1000)); counts seconds and is reset whenever it receives the value 1000. D On Wed, 31 Jul 2019 at 20:43, Japina <bost...@japina.eu> wrote: > I am porting a code written in puredata to Faust. More or less I get what > I need to do with commands, but I just can’t wrap my head around metro > command. > In puredata it is basically a metronome. > A command metro 1200 would start a “procedure” every 1/1200 seconds. Is > there a way to do something similar in Faust? > > Thanks. > > B._______________________________________________ > 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