src/codeandchords/Melody.java
public void stop()
	{
		this.melodyThreadRunning = false;
		this.instrument.stopNote();
	}
/**
	 * Stops the Instrument instance variable by calling stopNote() on it
	 * and sets the melodyThreadRunning boolean instance var to false.
	 */
Stops the Instrument instance variable by calling stopNote() on it
and sets the melodyThreadRunning boolean instance var to false.
Stops the Instrument instance variable by calling stopNote () on it and sets the melodyThreadRunning boolean instance var to false .
public void stop()
	{
		this.melodyThreadRunning = false;
		this.instrument.stopNote();
	}
public void stop ( ) { this . melodyThreadRunning = false ; this . instrument . stopNote ( ) ; }
Stops the Instrument instance variable by calling stopNote() on it
 and sets the melodyThreadRunning boolean instance var to false.
Stops the Instrument instance variable by calling stopNote () on it and sets the melodyThreadRunning boolean instance var to false .