private void addToAdjBuffer (double in)	{
		double lossAverage=25.0;
		if (NOISY) lossAverage=60.0;
		// If the buffer average percentage difference is more than lossAverage then we have lost the signal
		if (absAverage()>lossAverage)	{
			if (display==true)	{
				// Tell the user how many bits were received
				String line="("+Long.toString(bitsReceived)+" bits received)";
				theApp.writeLine(line,Color.BLACK,theApp.italicFont);
				// Add a new line after this
				theApp.newLineWrite();
			}	
			// Is there a trigger in progress
			if (activeTrigger==true)	{
				charactersRemaining=0;
				display=false;
				activeTrigger=false;
			}
			// Set to state 1 to try and regain a signal
			setState(1);
		}
		else	{
			adjBuffer[adjCounter]=in;
			adjCounter++;
			if (adjCounter==adjBuffer.length) adjCounter=0;
		}
	}