#include <FastLED.h>

void setup() {
  Serial.begin(2000000);
}

void loop() {
  static uint32_t phase_beat = 0;
  static uint32_t phase_output = 0;

  phase_beat += 5 * 256;
  // phase_beat += beatsin88(5 * 256, 1 * 256, 25 * 256);
  uint16_t beatrate = 32767 + sin16(phase_beat >> 8);

  phase_output += beatrate;
  uint16_t outputty = 32767 + sin16(phase_output >> 8);

  Serial.print(beatrate);
  Serial.print(" ");
  Serial.println(outputty);

  analogWrite(11, beatrate >> 8);
  analogWrite(10, outputty >> 8);
}