Sample-accurate line~?

digiology's icon

Hi people,

I'm making a patch to synthesis sound using a bank of oscillators. I am using sigmund~ to get the data and have the hop size and max's signal vector size at 128 samples with audio interrupt enabled.

This means that each oscillator should updated every 2.9ms and I need these values to be interpolated during the 2.9ms. The problem is that line~ will only allow me to specify 2 or 3ms but not 128 samples.

I was thinking about rampsmooth~ but I'm not sure what's actually going on under the hood. I reckon I would have to give it a signal with a single updated value every 128 samples (which I suppose isn't impossible) but I'm hoping someone has a better idea.

Christopher Dobrian's icon

I suspect what would work best for you is the ioscbank~ object (see its 'magsmooth' message).

Max Patch
Copy patch and select New From Clipboard in Max.

For the record, you can give line~ the equivalent of a 128-sample ramp time using sampstoms~.

Andrew Benson's icon

You might check out the ab-signal objects under Andrew Benson here: https://cycling74.com/share.html

I think some combination of those objects will help.

Best,
Andrew

digiology's icon

Line allows for fractions of a millisecond to be specified? Ah, I didn't realize that!