Buffer~ contents clearing inside Pfft~

Robert Rethwisch's icon

Hi! I have a buffer~ inside a pfft~ abstraction which I am filling with basic waveforms via uzi's & whatnot. The issue is that any time I create or delete any signal connection anywhere within the parent patch, the buffer inside the pfft~ clears. I'm wondering if anyone else has run into this problem + any possible solutions. This does not seem to happen when the buffer contains an actual audio file, only when it contains arbitrary waveforms. Thanks!!

Roman Thilenius's icon

you might want to check if you did the initialisation of the buffer content right, it should not depend on DSP status (i cannot reproduce.)
a solution is of course to put the buffer objects elsewhere unless there is a specific reason to have them inside a pfft.

Robert Rethwisch's icon

Hey Roman, thanks for the response. what do you mean exactly by initialization of the buffer? i'll attach a screenshot of what the buffer portion is doing

Source Audio's icon

fftinfo~ resets buffer

Roman Thilenius's icon

yep, the left one is the bad guy. "sizeinsamps" clears.

Robert Rethwisch's icon

ahhhh thanks! i got rid of sizeinsamps but it's still happening. do I need to get rid of all fftinfo~ objects entirely? i'm also considering just attaching a trigger to fftinfo~ that will resend the previously selected waveform every time fftinfo resets

Robert Rethwisch's icon

okay think I figured it out... int connected to fftinfo~ crashes max for some reason so I've deleted every fftinfo~ from the patch and now i'm using a replaceable argument instead to obtain the spectral frame size. thanks!!