Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: math.hpp
- Revision:
- 1:5b491fa83cb7
- Child:
- 2:da90c8eb0ca5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/math.hpp Mon Jul 22 16:35:45 2019 +0000 @@ -0,0 +1,31 @@ +#ifndef __math__ +#define __math__ +//notes variables +bool matchflagnotes; +float sumnotes = 0; +int randomnotes = 0; +int matchnotelower = 0; +int matchnotehigher = 0; +int probabalisednote = 0; + +//octive variables +bool matchflagoctive; +float sumoctives = 0; +int randomoctives = 0; +int matchoctivelower = 0; +int matchoctivehigher = 0; +int probabalisedoctive = 0; + +//duration variables +bool matchflagduration; +float sumduration = 0; +int randomduration = 0; +int matchdurationlower = 0; +int matchdurationhigher = 0; +int probabalisedduration = 0; + +//control variables +int note = 0; //1=c 2=c# 3=d 4=d# 5=e 6=f 7=f# 8=g 9=g# 10=a 11=a# 12=b +int octive = 0; //1=-2 //2=-1 //3=0 //4=+1 //5=+2 +int duration = 0; //1=1/16 2=1/8 3=1/4 4=1/2 5=1 6=2 +#endif \ No newline at end of file