Professional Documents
Culture Documents
// 20200416
// CSE 143
// Chandan Hegde
// Assessment #2: Guitar Hero pt. 2
// A Guitar37 class, a model of a guitar with 37 strings that can be played with the keyboard
// advances time forward one tic, applying tic to all the strings
// increases time by 1
// post: Karplus-Strong update applied once to each string
public void tic(){
for (int i = 0; i < strings.length; i++){
strings[i].tic();
}
time++;
}