| 30 | // 140219 - correct storage class (not static) |
| 31 | |
| 32 | boolean AudioEffectChorus::begin(short *delayline,int d_length,int n_chorus) |
| 33 | { |
| 34 | Serial.print("AudioEffectChorus.begin(Chorus delay line length = "); |
| 35 | Serial.print(d_length); |
| 36 | Serial.print(", n_chorus = "); |
| 37 | Serial.print(n_chorus); |
| 38 | Serial.println(")"); |
| 39 | |
| 40 | l_delayline = NULL; |
| 41 | delay_length = 0; |
| 42 | l_circ_idx = 0; |
| 43 | |
| 44 | if(delayline == NULL) { |
| 45 | return(false); |
| 46 | } |
| 47 | if(d_length < 10) { |
| 48 | return(false); |
| 49 | } |
| 50 | if(n_chorus < 1) { |
| 51 | return(false); |
| 52 | } |
| 53 | |
| 54 | l_delayline = delayline; |
| 55 | delay_length = d_length/2; |
| 56 | num_chorus = n_chorus; |
| 57 | |
| 58 | return(true); |
| 59 | } |
| 60 | |
| 61 | void AudioEffectChorus::voices(int n_chorus) |
| 62 | { |
nothing calls this directly
no outgoing calls
no test coverage detected