Wavetables, buffers, cycle, and the DSP chain

    Jan 08 2007 | 8:49 am
    Hello, I created a simple wavetable-generator for sine functions with some parameters like power, amplitude, number of cycles, and cycle frequency and phase. It all works fine and there's some interesting basic waveforms there. The problem is that when I peek~ a list of new values into the buffer~, the cycle~ won't play those new values until I stop and restart the DSP. Is this unavoidable? Is there a workaround that avoids such a large discontinuity?
    I thought about using multiple buffers, and maybe that's the ticket, but I wanted to put it out there first.

    • Jan 08 2007 | 8:55 am
      not sure, but try using the "set buffer" message to the cycle each time the waveform has changed...
      there's a similar problem with groove~, and doing this fixes it, i'd try,- but i'm a long way from my Max computer at the time..
    • Jan 08 2007 | 9:45 am
      Fantastic -- that's way better than turning the DSP off and on. Much smoother.
      I shoulda tried that... doh!