Mozzi
version v1.1.0
sound synthesis library for Arduino
AudioConfigStandard9bitPwm.h
1
#
ifndef
AUDIOCONFIGSTANDARD9BITPWM_H
2
#
define
AUDIOCONFIGSTANDARD9BITPWM_H
3
4
5
/** @ingroup core
6
This is the dynamic range of Mozzi's audio output in STANDARD mode.
7
It is equal to Timer1.pwmPeriod calculated for interrupt rate 16384.
8
It's included in the documentation because it's a slightly unusual number and useful to know
9
about when you're writing sketches.
10
*/
11
#
define
STANDARD_PWM_RESOLUTION
488
12
13
/* PWM carrier frequency, for standard mode this will be the same as the audio rate. */
14
#
define
PWM_RATE
16384
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
22
#
define
AUDIO_CHANNEL_1_PIN
TIMER1_A_PIN
// defined in TimerOne/config/known_16bit_timers.h
23
24
#
endif
// #ifndef AUDIOCONFIGSTANDARD9BITPWM_H
AudioConfigStandard9bitPwm.h
Generated on Thu Mar 16 2023 14:01:35 for Mozzi by
1.8.14