Tool for playing 8bit like music on Piezo speaker.
Diff: PlayTone.cpp
- Revision:
- 2:9a8ae3a8e5ea
- Parent:
- 0:b8d34e475dd9
diff -r 90161871ad88 -r 9a8ae3a8e5ea PlayTone.cpp --- a/PlayTone.cpp Sun Oct 02 11:59:32 2016 +0000 +++ b/PlayTone.cpp Sat Feb 25 22:20:47 2017 +0000 @@ -128,7 +128,7 @@ void PlayTone::transpose(int level) { - offset += level; + offset = level; } void PlayTone::playSequence(int sequence_length, int notes[], float values[])