src/codeandchords/Instrument.java
public void stopNote()
	{
		this.gainEnvelope.clear();
		this.wavePlayer.pause(true);
		
		// Clearing dependents didn't stop the note immediately:
//		this.volume.clearDependents();
		/*
	
		// Killing the players directly worked to stop,
		// but then they wouldn't start again when play was pressed:
		this.wavePlayer.kill();
		this.frequencyGlide.kill();
		this.gainEnvelope.kill();
		/*
		// KillTriggers work, but don't stop the note immediately:
		new KillTrigger(this.wavePlayer);
		new KillTrigger(this.frequencyGlide);
		new KillTrigger(this.gainEnvelope);
		*/
	}
/**
	 * Stops the playing Note by clearing this.gainEnvelope and pausing this.wavePlayer.
	 */
Stops the playing Note by clearing this.gainEnvelope and pausing this.wavePlayer.
Stops the playing Note by clearing this . gainEnvelope and pausing this . wavePlayer .
public void stopNote()
	{
		this.gainEnvelope.clear();
		this.wavePlayer.pause(true);
		/*
		// Killing the players directly worked to stop,
		// but then they wouldn't start again when play was pressed:
		this.wavePlayer.kill();
		this.frequencyGlide.kill();
		this.gainEnvelope.kill();
		/*
		// KillTriggers work, but don't stop the note immediately:
		new KillTrigger(this.wavePlayer);
		new KillTrigger(this.frequencyGlide);
		new KillTrigger(this.gainEnvelope);
		*/
	}
public void stopNote ( ) { this . gainEnvelope . clear ( ) ; this . wavePlayer . pause ( true ) ; /*
	
		// Killing the players directly worked to stop,
		// but then they wouldn't start again when play was pressed:
		this.wavePlayer.kill();
		this.frequencyGlide.kill();
		this.gainEnvelope.kill();
		/*
		// KillTriggers work, but don't stop the note immediately:
		new KillTrigger(this.wavePlayer);
		new KillTrigger(this.frequencyGlide);
		new KillTrigger(this.gainEnvelope);
		*/ }
Stops the playing Note by clearing this.gainEnvelope and pausing this.wavePlayer.
Stops the playing Note by clearing this . gainEnvelope and pausing this . wavePlayer .
// Clearing dependents didn't stop the note immediately: //		this.volume.clearDependents();