private void addNoteAsFingerMarker(byte[] dat) {
		final int command = dat[0] & 0xf0;
		final int channel = dat[0] & 0x0f;
		int note = dat[1];
		final int velocity = dat[2];
		// if (type == NOTE_ON || type == NOTE_OFF) 
		if ((command & 0x80) == 0x80) {
			// only show if channel switch is on
			if (GuitarChannel.isChannelEnabled(chanTog, channel)) {
				GuitarChannel guitarchannel = GuitarChannel.get(gchannels,
						channel);
				if (command == NOTEON && velocity != 0) {
					printMessage(dat);
					guitarchannel.noteOn(note);
				} else /* if (command == NOTEOFF || velocity == 0) */{
					guitarchannel.noteOff(note);
				}
			}
			// update progress slider periodically
			if (noteCount % 30 == 0) {
				// need to figure out why this doesn't work
				// float percent = sequencer.getTickPosition() /
				// sequence.getTickLength() * 100;
				GuitarView.getProgSlide().setValue(sequencer.getTickPosition());
				// GuitarView.getProgSlide().setValueLabel(String.format("%d",
				// percent));
				// GuitarView.myTextarea.append(String.format("%d", percent) +
				// "\n");
			}
			noteCount++;
		}
	}
private void addNoteAsFingerMarker(byte[] dat) {
		final int command = dat[0] & 0xf0;
		final int channel = dat[0] & 0x0f;
		int note = dat[1];
		final int velocity = dat[2];
	
		if ((command & 0x80) == 0x80) {
		
			if (GuitarChannel.isChannelEnabled(chanTog, channel)) {
				GuitarChannel guitarchannel = GuitarChannel.get(gchannels,
						channel);
				if (command == NOTEON && velocity != 0) {
					printMessage(dat);
					guitarchannel.noteOn(note);
				} else{
					guitarchannel.noteOff(note);
				}
			}
		
			if (noteCount % 30 == 0) {
			
			
			
				GuitarView.getProgSlide().setValue(sequencer.getTickPosition());
			
			
			
			
			}
			noteCount++;
		}
	}
private void addnoteasfingermarker(byte[] dat) { final int command = dat[0] & 0xf0; final int channel = dat[0] & 0x0f; int note = dat[1]; final int velocity = dat[2]; if ((command & 0x80) == 0x80) { if (guitarchannel.ischannelenabled(chantog, channel)) { guitarchannel guitarchannel = guitarchannel.get(gchannels, channel); if (command == noteon && velocity != 0) { printmessage(dat); guitarchannel.noteon(note); } else{ guitarchannel.noteoff(note); } } if (notecount % 30 == 0) { guitarview.getprogslide().setvalue(sequencer.gettickposition()); } notecount++; } }