Tool for playing 8bit like music on Piezo speaker.

Files at this revision

API Documentation at this revision

Comitter:
TeaPack_CZ
Date:
Sat Feb 25 22:20:47 2017 +0000
Parent:
1:90161871ad88
Commit message:
revert incremental transpose level to absolute.

Changed in this revision

PlayTone.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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[])