Question about going back and forth between ms and samples

f.e's icon

Hello,

I'm building some kind of wave editor. When i do some manipulations like crossfades, using a buffer~ and peek~ objects, things are fine if length in ms are like 4000. But things go wrong when it's 4111.2358...

After a bunch of tests, i'm sure this is happening because of the conversion of ms to samples. Indexes to read/write become wrong...

Is there something i need to know ? tips ?

max 5.0.6 / xp pro sp2

thanks in advance

f.e

Ben Bracken's icon

f.e.,

Can you be more specific? Post a simple example patch that shows what you are seeing?

-Ben

Jean-Francois Charles's icon

Are you using mstosamples~ and samplestoms~?