help with a mlr(v) mod

  • hey guy's,

    I'm looking into adding a mod to my mlrV4live patch that makes it play the samples initially at the right octave when you load them into a track instead of whatever the default is or what it was previously set as...

    like when you load a 1 bar loop it would nudge it up one octave and be the right speed...

    or when you load a 4 bar loop it'd drop it down one (i think) to also be at the right speed.

    I guessing some of the calculations in the ch.maxpatch would help but i've got a little lost....

    like somehow reading the length of the original sample and calculating which way to alter it.....

    any ideas would be great, thanks