Sample-accurate line~?

Jul 18, 2010 at 2:46am

Sample-accurate line~?

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.

#51396
Jul 18, 2010 at 4:12am

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

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

– Pasted Max Patch, click to expand. –
#184275
Jul 18, 2010 at 7:13am

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

I think some combination of those objects will help.

Best,
Andrew

#184278
Jul 18, 2010 at 12:06pm

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

#184279

You must be logged in to reply to this topic.