Hard Sync with Gen Saw Example

Peter McCulloch's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I've got hard sync working with the gen~ blit saw. I notice that there's pulse when moving from harmonic to harmonic with the fundamental vs the sync signal. Any thoughts on how to smooth this out?

stkr's icon

hi peter

great

please explain more.

Peter McCulloch's icon

There's a swell in amplitude as it locks into the next harmonic. It seems logical, but undesirable, and I'm trying to figure out if I can lessen this characteristic when sweeping the slave frequency.

nViz's icon

Hi Peter,
unfortunately I don't read very well genexpr and I find difficult to help you with the code, but I'm studying blit and hardsync.
My solution starts from the consideration that in hardsync we have a series of complete and sliced waves: my idea is that the sliced one can be interpreted like a wave with higher frequency and lower amplitude.
To create a smooth transition between harmonics I use a linear interpolation between two blits with differents harmonic contents, as found on the bottom of this useful tutorial:

Mine isn't a real solution, it is more a fake simulation of hardsync, but gives decent results even with bleps and sinusoids.
I hope it can be helpful

BlitHardSyncSmooth.maxpat
Max Patch
Peter McCulloch's icon

Thanks, this is really helpful!

Man, my hard-sync algorithm doesn't look great against saw~...