MidiMessage::MidiMessage (const MidiMessage& other, const double newTimeStamp) : timeStamp (newTimeStamp), size (other.size) { if (isHeapAllocated()) memcpy (allocateSpace (size), other.getData(), (size_t) size); else packedData.allocatedData = other.packedData.allocatedData; }