tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
604 stars 188 forks source link

The definition of tone is off by an octave. #420

Open sago35 opened 2 years ago

sago35 commented 2 years ago

Originally, A5 is at 880 Hz, but actually it is at 440 Hz.

I have at least verified this with atsamd51, but I am a little unsure and would like someone else to verify this as well.

The following is the sound when tone.A5 is played. image

sago35 commented 2 years ago

An example of tone is shown below.

https://github.com/tinygo-org/drivers/blob/release/examples/tone/tone.go