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
00001 #ifndef __math__ 00002 #define __math__ 00003 //notes variables 00004 bool matchflagnotes; 00005 float sumnotes = 0; 00006 int randomnotes = 0; 00007 int matchnotelower = 0; 00008 int matchnotehigher = 0; 00009 int probabalisednote = 0; 00010 00011 //octive variables 00012 bool matchflagoctive; 00013 float sumoctives = 0; 00014 int randomoctives = 0; 00015 int matchoctivelower = 0; 00016 int matchoctivehigher = 0; 00017 int probabalisedoctive = 0; 00018 00019 //duration variables 00020 bool matchflagduration; 00021 float sumduration = 0; 00022 int randomduration = 0; 00023 int matchdurationlower = 0; 00024 int matchdurationhigher = 0; 00025 int probabalisedduration = 0; 00026 00027 //control variables 00028 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 00029 int octive = 0; //1=-2 //2=-1 //3=0 //4=+1 //5=+2 00030 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) 00031 #endif
Generated on Tue Dec 12 2023 21:12:23 by
1.7.2