hw/hw1/synthesizer/GuitarString.java
public void tic() {
        // TODO: Dequeue the front sample and enqueue a new sample that is
        //       the average of the two multiplied by the DECAY factor.
        //       Do not call StdAudio.play().

        double firstItem = buffer.dequeue();
        double secondItem = buffer.peek();

        double newItem = (firstItem + secondItem) * 0.5 * DECAY;

        buffer.enqueue(newItem);

    }
/* Advance the simulation one time step by performing one iteration of
     * the Karplus-Strong algorithm.
     */
Advance the simulation one time step by performing one iteration of
the Karplus-Strong algorithm.
Advance the simulation one time step by performing one iteration of the Karplus - Strong algorithm .
public void tic() {
        double firstItem = buffer.dequeue();
        double secondItem = buffer.peek();
        double newItem = (firstItem + secondItem) * 0.5 * DECAY;
        buffer.enqueue(newItem);
    }
public void tic ( ) { double firstItem = buffer . dequeue ( ) ; double secondItem = buffer . peek ( ) ; double newItem = ( firstItem + secondItem ) * 0.5 * DECAY ; buffer . enqueue ( newItem ) ; }
Advance the simulation one time step by performing one iteration of
 the Karplus-Strong algorithm.
Advance the simulation one time step by performing one iteration of the Karplus - Strong algorithm .
// TODO: Dequeue the front sample and enqueue a new sample that is //       the average of the two multiplied by the DECAY factor. //       Do not call StdAudio.play().