void pasteEvents() {
		int offset = 0;
		int minTime = 0;
		for (int i=0;i<copySel.size();i++) {
			Event e=(Event)copySel.get(i);
			if (minTime ==0 || minTime>e.eventTime){minTime=e.eventTime;}
		}
		for (int i=0;i<copySel.size();i++) {
			Event e=(Event)copySel.get(i);
			// extend timeline if too short
			Event eventCopy = e.getCopy(timeLineObject);
			if (shift) { // paste at cursor
				eventCopy.eventTime = eventCopy.eventTime - minTime +timeLineObject.pos;
			}
			if (timeLineObject.timeLineLength<eventCopy.eventTime) {
				timeLineObject.timeLineLength = (int) eventCopy.eventTime+10;
			}
			timeLineObject.timeLine.add( eventCopy );
		} 
		timeLineObject.rebuildTimeLine();
	}