I'm not very familiar with using audio objects, but am trying to figure out a pulse train based on mixing a few different approaches from a few tutorials. I have something quite decent going, but seem to be getting this occasional creeping in of an incomplete phase cycle (see output of second wrap~ on right). No other signal is going in, yet I can't seem to see how this kind of half-cycle is creeping in. Anyone have any thoughts? I'm guessing something is happening between the samphold~ and the *~
-
incomplete phase with wrap~?
-
@RT-Chris What you're seeing is the expected behavior unless you can guarantee that the output of [samphold~] is always an integer. You can think of that runt cycle (no offense intended ) as the floating point remainder modulo 1.
seeWhatImSayin.pd -
Thanks @jameslo. I found int_fract~ an external which seems to parse signal integers from the fractal part of their float number, hopefully that will help.