ok so i can imagine that a time clock is ticking for every sample, by 1 idx = time = idx = time
uhhhh so in the first period, the sample would be original_signal[int(idx * len(original_signal) / period_length)] ... i think? >>> int(0 * len(original_signal) / period_length) 0 >>> int(1 * len(original_signal) / period_length) 6195 >>> int(2 * len(original_signal) / period_length) 12391 yeah, that looks right so, um ... i would just take the modulo of that number with the length. that could happen anywhere in the index formula. maybe i'll make a .py file!
