Forums > MaxMSP

Sample-accurate line~?

July 18, 2010 | 2:46 am

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.


July 18, 2010 | 4:12 am

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. –

July 18, 2010 | 7:13 am

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


July 18, 2010 | 12:06 pm

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


Viewing 4 posts - 1 through 4 (of 4 total)