This method mirrors FRONT to BACK and now I need it to go BACK to FRONT:
public void mirrorFrontToBa ck()
{
int length = this.getLength( ); //save the length
int mirrorPoint = length / 2; //mirror around this
int value = 0; //hold the current value
//loop from 0 to mirrorPoint
for (int i=0; i < mirrorPoint; i++) {
value = this.getSampleV alueAt(i);
this.setSampleV alueAt(length - 1 - i, value);
}
}
public void mirrorFrontToBa ck()
{
int length = this.getLength( ); //save the length
int mirrorPoint = length / 2; //mirror around this
int value = 0; //hold the current value
//loop from 0 to mirrorPoint
for (int i=0; i < mirrorPoint; i++) {
value = this.getSampleV alueAt(i);
this.setSampleV alueAt(length - 1 - i, value);
}
}
Comment