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
- Committer:
- liam_grazier
- Date:
- 2019-07-24
- Revision:
- 2:da90c8eb0ca5
- Parent:
- 1:5b491fa83cb7
- Child:
- 3:086e556b57f9
File content as of revision 2:da90c8eb0ca5:
#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(1 clock) 2=1/8(2 clocks) 3=1/4(4 clocks) 4=1/2(8clocks) 5=1(16 clocks) 6=2(32 clocks) #endif