This is a part of the Kinetiszer project.
master.h@0:5a419ba2726d, 2014-10-28 (annotated)
- Committer:
- Clemo
- Date:
- Tue Oct 28 12:19:22 2014 +0000
- Revision:
- 0:5a419ba2726d
Error & warning free (I believe as I don't know how to clean).
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Clemo | 0:5a419ba2726d | 1 | #ifndef __MASTER_H__ |
Clemo | 0:5a419ba2726d | 2 | #define __MASTER_H__ |
Clemo | 0:5a419ba2726d | 3 | |
Clemo | 0:5a419ba2726d | 4 | |
Clemo | 0:5a419ba2726d | 5 | #define MASTER_BEATTICK (500) //length of beat in ticks. 500 = 120bpm i.e. 1 beat = 500ms (this is overridden when MIDI clock received) |
Clemo | 0:5a419ba2726d | 6 | |
Clemo | 0:5a419ba2726d | 7 | |
Clemo | 0:5a419ba2726d | 8 | extern volatile uint16_t master_index; //position in master_output wavetable |
Clemo | 0:5a419ba2726d | 9 | extern unsigned char master_output[WAVE_LEN]; //output wavetable |
Clemo | 0:5a419ba2726d | 10 | extern unsigned char master_output_ch2[WAVE_LEN]; //output wavetable |
Clemo | 0:5a419ba2726d | 11 | extern unsigned long master_tick; //current tick. used for all timing of lfos, arp and envs |
Clemo | 0:5a419ba2726d | 12 | extern unsigned long master_ocr1; //interrupt frequency (sets pitch of synth) |
Clemo | 0:5a419ba2726d | 13 | |
Clemo | 0:5a419ba2726d | 14 | |
Clemo | 0:5a419ba2726d | 15 | void Master_Let_SampleFreq(void); |
Clemo | 0:5a419ba2726d | 16 | unsigned long Master_Get_SampleFreq(void); |
Clemo | 0:5a419ba2726d | 17 | |
Clemo | 0:5a419ba2726d | 18 | |
Clemo | 0:5a419ba2726d | 19 | #endif // __MASTER_H__ |