Browse Source

Print CPU usage in Guitar example

dds
PaulStoffregen 8 years ago
parent
commit
682a797f12
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      examples/Synthesis/Guitar/Guitar.ino

+ 4
- 0
examples/Synthesis/Guitar/Guitar.ino View File

delay(hand_delay); delay(hand_delay);
strum_dn(chord, 0.7); strum_dn(chord, 0.7);
delay(hand_delay); delay(hand_delay);

Serial.print("Max CPU Usage = ");
Serial.print(AudioProcessorUsageMax(), 1);
Serial.println("%");
} }


void strum_up(const float *chord, float velocity) void strum_up(const float *chord, float velocity)

Loading…
Cancel
Save