I have a set of CHOPs based on a longer chop that is at 60 Hz. I then resample chops from that and trim them to give me time quantized samples at different rates in a specific time range of the original chop.
I’d like to iterate through the lower sample rate chops and add samples to a set of keyframe data at only those frames that the new chops have samples on. The frame range remains intact from the original chop, but I’m having difficulty iterating through and determining the frame to write into for each sample because I can only get the start index of the resampled/trimmed chop in index format, not frames. I know I can do the math, but I seem to be slightly off in terms of the exact frame when dividing my new sample rate by the start index and then multiplying that by the old sample rate. I think this may be because of rounding that is occurring when trimming the chop after resampling it.
It seems like it would be a nice python function for a chop to be able to get the corresponding frame of a particular index. Something like myChop.getFrame(index)?