src/codeandchords/Instrument.java
public void pauseNote(boolean pause)
	{
		// Using PauseTrigger becausing calling .pause() allowed multiple notes to start playing
		// when play was pressed again,
		// and sometimes one note would be held indefinitely when the UGens were supposedly paused.
		
		if(pause)
		{
			new PauseTrigger(this.wavePlayer);
			new PauseTrigger(this.frequencyGlide);
			new PauseTrigger(this.gainEnvelope);
		} else {
			new StartTrigger(this.wavePlayer);
			new StartTrigger(this.frequencyGlide);
			new StartTrigger(this.gainEnvelope);
		} // if


	}
/**
	 * Pauses or un-pauses the Instrument by passing this.wavePlayer, this.frequencyGlide and 
	 * this.gainEnvelope to either a PauseTrigger or StartTrigger.
	 * 
	 * @param pause boolean indicating whether to pause or un-pause the Instrument
	 */
Pauses or un-pauses the Instrument by passing this.wavePlayer, this.frequencyGlide and
this.gainEnvelope to either a PauseTrigger or StartTrigger.

@param pause boolean indicating whether to pause or un-pause the Instrument
Pauses or un - pauses the Instrument by passing this . wavePlayer this . frequencyGlide and this . gainEnvelope to either a PauseTrigger or StartTrigger . @param pause boolean indicating whether to pause or un - pause the Instrument
public void pauseNote(boolean pause)
	{
		if(pause)
		{
			new PauseTrigger(this.wavePlayer);
			new PauseTrigger(this.frequencyGlide);
			new PauseTrigger(this.gainEnvelope);
		} else {
			new StartTrigger(this.wavePlayer);
			new StartTrigger(this.frequencyGlide);
			new StartTrigger(this.gainEnvelope);
		} 
	}
public void pauseNote ( boolean pause ) { if ( pause ) { new PauseTrigger ( this . wavePlayer ) ; new PauseTrigger ( this . frequencyGlide ) ; new PauseTrigger ( this . gainEnvelope ) ; } else { new StartTrigger ( this . wavePlayer ) ; new StartTrigger ( this . frequencyGlide ) ; new StartTrigger ( this . gainEnvelope ) ; } }
Pauses or un-pauses the Instrument by passing this.wavePlayer, this.frequencyGlide and
 this.gainEnvelope to either a PauseTrigger or StartTrigger.
Pauses or un - pauses the Instrument by passing this . wavePlayer this . frequencyGlide and this . gainEnvelope to either a PauseTrigger or StartTrigger .
// Using PauseTrigger becausing calling .pause() allowed multiple notes to start playing // when play was pressed again, // and sometimes one note would be held indefinitely when the UGens were supposedly paused. // if