public void togglePlayMode(String c,TimeLineObject currentTimeLine) {
		while (currentTimeLine!=null) {
			if ("P".equals(c)) {// if P then stop all playing timelines
				currentTimeLine.playMode="";
				playing.remove(currentTimeLine);
				if (playing.size()>0) {currentTimeLine=(TimeLineObject) playing.get(0);}
				else {currentTimeLine=null;}
			}
			else {// otherwise just stop/play/loop this timeline.
				currentTimeLine.setPlayMode((currentTimeLine.playMode==c)?"":c);
				if ("".equals(currentTimeLine.playMode) ) {	  playing.remove(currentTimeLine);	}  
				else {	 
					if (!playing.contains(currentTimeLine)){playing.add(currentTimeLine);}
					if ("r".equals(c)) {oscUtil.lastRecEventTime=currentTimeLine.pos;}
				}
				currentTimeLine=null;
			}
		}
		
	}