MCPcopy Create free account
hub / github.com/PaulStoffregen/Audio / begin

Method begin

effect_chorus.cpp:32–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30// 140219 - correct storage class (not static)
31
32boolean AudioEffectChorus::begin(short *delayline,int d_length,int n_chorus)
33{
34Serial.print("AudioEffectChorus.begin(Chorus delay line length = ");
35Serial.print(d_length);
36Serial.print(", n_chorus = ");
37Serial.print(n_chorus);
38Serial.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
61void AudioEffectChorus::voices(int n_chorus)
62{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected