Question about going back and forth between ms and samples

    Mar 12 2009 | 10:59 am
    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

    • Mar 12 2009 | 11:15 pm
      Can you be more specific? Post a simple example patch that shows what you are seeing?
    • Mar 13 2009 | 12:54 am
      Are you using mstosamples~ and samplestoms~?