This is a part of the Kinetiszer project.

Dependents:   SoundEngine

master.h

Committer:
Clemo
Date:
2014-10-28
Revision:
0:5a419ba2726d

File content as of revision 0:5a419ba2726d:

#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__