Clemens Valens / inc

Dependents:   SoundEngine

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers master.h Source File

master.h

00001 #ifndef __MASTER_H__
00002 #define __MASTER_H__
00003 
00004 
00005 #define MASTER_BEATTICK  (500) //length of beat in ticks. 500 = 120bpm i.e. 1 beat = 500ms (this is overridden when MIDI clock received)
00006 
00007 
00008 extern volatile uint16_t master_index;  //position in master_output wavetable
00009 extern unsigned char master_output[WAVE_LEN];   //output wavetable
00010 extern unsigned char master_output_ch2[WAVE_LEN];   //output wavetable
00011 extern unsigned long master_tick;  //current tick.  used for all timing of lfos, arp and envs
00012 extern unsigned long master_ocr1;  //interrupt frequency (sets pitch of synth)
00013 
00014 
00015 void Master_Let_SampleFreq(void);
00016 unsigned long Master_Get_SampleFreq(void);
00017 
00018 
00019 #endif // __MASTER_H__