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
math.hpp@2:da90c8eb0ca5, 2019-07-24 (annotated)
- Committer:
- liam_grazier
- Date:
- Wed Jul 24 11:23:34 2019 +0000
- Revision:
- 2:da90c8eb0ca5
- Parent:
- 1:5b491fa83cb7
- Child:
- 3:086e556b57f9
party
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
liam_grazier | 1:5b491fa83cb7 | 1 | #ifndef __math__ |
liam_grazier | 1:5b491fa83cb7 | 2 | #define __math__ |
liam_grazier | 1:5b491fa83cb7 | 3 | //notes variables |
liam_grazier | 1:5b491fa83cb7 | 4 | bool matchflagnotes; |
liam_grazier | 1:5b491fa83cb7 | 5 | float sumnotes = 0; |
liam_grazier | 1:5b491fa83cb7 | 6 | int randomnotes = 0; |
liam_grazier | 1:5b491fa83cb7 | 7 | int matchnotelower = 0; |
liam_grazier | 1:5b491fa83cb7 | 8 | int matchnotehigher = 0; |
liam_grazier | 1:5b491fa83cb7 | 9 | int probabalisednote = 0; |
liam_grazier | 1:5b491fa83cb7 | 10 | |
liam_grazier | 1:5b491fa83cb7 | 11 | //octive variables |
liam_grazier | 1:5b491fa83cb7 | 12 | bool matchflagoctive; |
liam_grazier | 1:5b491fa83cb7 | 13 | float sumoctives = 0; |
liam_grazier | 1:5b491fa83cb7 | 14 | int randomoctives = 0; |
liam_grazier | 1:5b491fa83cb7 | 15 | int matchoctivelower = 0; |
liam_grazier | 1:5b491fa83cb7 | 16 | int matchoctivehigher = 0; |
liam_grazier | 1:5b491fa83cb7 | 17 | int probabalisedoctive = 0; |
liam_grazier | 1:5b491fa83cb7 | 18 | |
liam_grazier | 1:5b491fa83cb7 | 19 | //duration variables |
liam_grazier | 1:5b491fa83cb7 | 20 | bool matchflagduration; |
liam_grazier | 1:5b491fa83cb7 | 21 | float sumduration = 0; |
liam_grazier | 1:5b491fa83cb7 | 22 | int randomduration = 0; |
liam_grazier | 1:5b491fa83cb7 | 23 | int matchdurationlower = 0; |
liam_grazier | 1:5b491fa83cb7 | 24 | int matchdurationhigher = 0; |
liam_grazier | 1:5b491fa83cb7 | 25 | int probabalisedduration = 0; |
liam_grazier | 1:5b491fa83cb7 | 26 | |
liam_grazier | 1:5b491fa83cb7 | 27 | //control variables |
liam_grazier | 1:5b491fa83cb7 | 28 | 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 |
liam_grazier | 1:5b491fa83cb7 | 29 | int octive = 0; //1=-2 //2=-1 //3=0 //4=+1 //5=+2 |
liam_grazier | 2:da90c8eb0ca5 | 30 | int duration = 0; //1=1/16(1 clock) 2=1/8(2 clocks) 3=1/4(4 clocks) 4=1/2(8clocks) 5=1(16 clocks) 6=2(32 clocks) |
liam_grazier | 1:5b491fa83cb7 | 31 | #endif |