Synthesizer / Mbed 2 deprecated DBSMUSICPROJ2

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers math.hpp Source File

math.hpp

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