/* ======================= copying ======================*/ void copyGrid(ChannelData cd) { ampRes = cd.getAmpRes(); frameClass = cd.getFrameClass(); envCount = cd.getEnvCount(); noiseCount = cd.getNoiseCount(); System.arraycopy(cd.getFrequencyResolutions(), 0, freqRes, 0, envCount); System.arraycopy(cd.getTe(), 0, te, 0, te.length); System.arraycopy(cd.getTq(), 0, tq, 0, tq.length); pointer = cd.getPointer(); }