瀏覽代碼

Print CPU usage in Guitar example

dds
PaulStoffregen 9 年之前
父節點
當前提交
682a797f12
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      examples/Synthesis/Guitar/Guitar.ino

+ 4
- 0
examples/Synthesis/Guitar/Guitar.ino 查看文件

@@ -100,6 +100,10 @@ void loop() {
delay(hand_delay);
strum_dn(chord, 0.7);
delay(hand_delay);

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

void strum_up(const float *chord, float velocity)

Loading…
取消
儲存