浏览代码

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)

正在加载...
取消
保存