This is a part of the Kinetiszer project.

Dependents:   SoundEngine

Revision:
0:5a419ba2726d
diff -r 000000000000 -r 5a419ba2726d master.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/master.h	Tue Oct 28 12:19:22 2014 +0000
@@ -0,0 +1,19 @@
+#ifndef __MASTER_H__
+#define __MASTER_H__
+
+
+#define MASTER_BEATTICK  (500) //length of beat in ticks. 500 = 120bpm i.e. 1 beat = 500ms (this is overridden when MIDI clock received)
+
+
+extern volatile uint16_t master_index;  //position in master_output wavetable
+extern unsigned char master_output[WAVE_LEN];   //output wavetable
+extern unsigned char master_output_ch2[WAVE_LEN];   //output wavetable
+extern unsigned long master_tick;  //current tick.  used for all timing of lfos, arp and envs
+extern unsigned long master_ocr1;  //interrupt frequency (sets pitch of synth)
+
+
+void Master_Let_SampleFreq(void);
+unsigned long Master_Get_SampleFreq(void);
+
+
+#endif // __MASTER_H__