Mozzi
version 2016-12-11-17:03
sound synthesis library for Arduino
AudioConfigStandardPlus.h
1
#ifndef AUDIOCONFIGSTANDARDPLUS_H
2
#define AUDIOCONFIGSTANDARDPLUS_H
3
4
11
#define STANDARD_PWM_RESOLUTION 488
12
13
/* Used internally for standard mode because the audio gets updated every alternate ISR, so the PWM rate is double the audio update rate */
14
#define PWM_RATE 32768
15
16
/* Used internally to put the 0-biased generated audio into the right range for PWM output.*/
17
#define AUDIO_BIAS ((uint8_t) 244)
18
19
// Used internally. If there was a channel 2, it would be OCR1B.
20
#define AUDIO_CHANNEL_1_OUTPUT_REGISTER OCR1A
21
#define AUDIO_CHANNEL_2_OUTPUT_REGISTER OCR1B
22
23
#define AUDIO_CHANNEL_1_PIN TIMER1_A_PIN // defined in TimerOne/config/known_16bit_timers.h
24
#define AUDIO_CHANNEL_2_PIN TIMER1_B_PIN
25
26
#endif // #ifndef AUDIOCONFIGSTANDARDPLUS_H
27
AudioConfigStandardPlus.h
Generated on Sun Dec 11 2016 17:03:11 for Mozzi by
1.8.12