PaulStoffregen
a8fd397ba1
Move DSP instruction stuff to its own header file
10 lat temu
PaulStoffregen
6490ee9155
Move control objects to their own files
10 lat temu
PaulStoffregen
2bb856fa95
Move input & output objects to their own files
10 lat temu
PaulStoffregen
7b16c9dc0c
Fix compiler warnings
10 lat temu
Paul Stoffregen
f771e3cfe2
Merge pull request #6 from el-supremo/master
My own version of AudioSynthWaveform. Sine is generated with arm_sin_q15...
10 lat temu
Pete (El Supremo)
28a58248d9
My own version of AudioSynthWaveform. Sine is generated with arm_sin_q15() (but is slower) and the other three waveforms are generated without using tables.
10 lat temu
PaulStoffregen
f2fa19d39b
Merge branch 'master' of git://github.com/el-supremo/Audio
Conflicts:
Audio.cpp
Audio.h
10 lat temu
Pete (El Supremo)
dd1c6bdb72
Remove debugging statement from AudioToneSweep and add ToneSweep example sketch
10 lat temu
PaulStoffregen
3c31127761
Fix compiler warnings
10 lat temu
Pete (El Supremo)
62698957fb
Add an audio sweep. User defined start and end frequencies and length of time of sweep.
10 lat temu
PaulStoffregen
c2c35827c7
Merge branch 'master' of github.com:PaulStoffregen/Audio (Pete's changes)
Conflicts:
Audio.cpp
Audio.h
10 lat temu
Paul Stoffregen
06555e188a
Merge pull request #4 from robsoles/master
Some filter additions, some SGTL5000 additions
10 lat temu
Pete (El Supremo)
1d58a8e996
Correct storage class of some variables in FIR
10 lat temu
robsoles
1498a6e60a
Added filter 'tone' examples and trimmed fat in balance examples
The 'tone' filter examples are both using calcBiquad(..); but one uses
AudioFilterBiquad and other uses SGTL5000 PEQ filters. Had included code
for volume level control optionally and decided to drop it from both.
10 lat temu
robsoles
f6e459c3a1
Syncing changes to level & volume setting routines
I forgot to sync the changes relating to things like 'dac_vol_right(..)'
& 'dac_vol_left(..)' removed in favor of 'dac_vol(left,right)' instead;
applies to 'volume(..)', 'lo_lvl(..)' & 'dac_vol(..)'.
10 lat temu
robsoles
56466edaae
Added DAC & HP balance examples
Changed method for setting level/gains for left & right from
'item_left(..); item_right(..);' style to 'volume(left,right)' style
instead.
10 lat temu
robsoles
fcf9987c16
Various corrections and addition of calcBiquad(..);
removed 'route(..)' due not easily supportable atm. Updated
'dap_enable(..)' in lieu of route. Fixed dap_audio_eq_band(..) bad use
of unsigned. Changed 'updateCoefs(..)' so default behavior is not reset
other three elements of state.
10 lat temu
robsoles
99de614f24
Revert line out level value
Something wrong with my attempt to apply the math in the datasheet,
CHIP_LINE_OUT_VALUE is better set to 0x0505 rather than 0x0D0D.
10 lat temu
robsoles
998bfc2668
Add delay to coefficient loader fix.
I thought the time taken to read back and then write zero back to the
DAP_FILTER_COEF_ACCESS WR bit would be enough but coefficients did not
load to the selected filter, tried 1ms delay instead still didn't work -
chances are that either not zero-ing or only zero-ing just before
writing the DAP_COEF_WR_xx_xSB registers would be fine but for now I'd
prefer to zero it sooner than later.
10 lat temu
robsoles
c0efade772
Fix SGTL5000 filter coefficent loader
load_peq(..); wasn't writing the INDEX and WR bits in
DAP_FILTER_COEF_ACCESS
10 lat temu
Pete (El Supremo)
2f0383f501
Correct the calculation of delay_rate_incr
10 lat temu
Pete (El Supremo)
3e6e912dd9
Cosmetic fix to Flange.begin
10 lat temu
robsoles
f62bd8ef11
Some filter additions, some SGTL5000 additions
added AudioBiquadFilter::
public:
void updateCoefs(int *source, bool noReset);
void updateCoefs(int *source);
added AudioControlSGTL5000::
private:
unsigned int modify(unsigned int reg, unsigned int val, unsigned int
iMask);
public:
unsigned int micGain(unsigned int n) { return modify(0x002A, n&3, 3); }
unsigned short lo_lvl_right(uint8_t n);
unsigned short lo_lvl_left(uint8_t n);
unsigned short lo_lvl(uint8_t n);
unsigned short dac_vol_right(float n);
unsigned short dac_vol_left(float n);
unsigned short dac_vol(float n);
unsigned short dap_mix_enable(uint8_t n);
unsigned short dap_enable(uint8_t n);
unsigned short dap_peqs(uint8_t n);
unsigned short dap_audio_eq(uint8_t n);
unsigned short dap_audio_eq_band(uint8_t bandNum, float n);
void dap_audio_eq_geq(float bass, float mid_bass, float midrange, float
mid_treble, float treble);
void dap_audio_eq_tone(float bass, float treble);
void load_peq(uint8_t filterNum, int *filterParameters);
void route(uint8_t via_i2s, uint8_t via_dap);
10 lat temu
Pete (El Supremo)
a27b78fc24
AudioSynthWaveform updated to add tone ramping when a tone starts and ends
PlayMidiTones example modified to work with ramping.
10 lat temu
Pete (El Supremo)
0b64ca0e24
Add chorus and flange effects and an example sketch for each
10 lat temu
Pete (El Supremo)
19bc87c838
Add the fir_filer sketch to the examples directory
10 lat temu
Pete (El Supremo)
bb1117e933
Delete *.bak
10 lat temu
Pete (El Supremo)
3e4d82e9c5
Removed extraneous comment lines
10 lat temu
Pete (El Supremo)
3b1570c6ec
Added AudioFilterFIR which performs FIR filter
using user-supplied coefficients
10 lat temu
PaulStoffregen
bf8cffdf02
Fix memory leaks in AudioPlaySDcardWAV
10 lat temu
PaulStoffregen
ba7c3d8080
Add AudioEffectFade object
10 lat temu
PaulStoffregen
14e2019092
clean up old TODO comments
10 lat temu
PaulStoffregen
c98b062518
Dial tone example using only analog input (no audio shield)
10 lat temu
PaulStoffregen
e1e5a34c73
Fix update scheduling with AudioInputAnalog
10 lat temu
PaulStoffregen
8cac457d8f
Add comment to filter example
11 lat temu
PaulStoffregen
aa53af053a
Add DTMF Dial Tone decode + transmit example
11 lat temu
PaulStoffregen
2a63896a70
Add AudioAnalyzeToneDetect
11 lat temu
Paul Stoffregen
8020f09e02
Merge pull request #1 from MickMad/master
Add objects to use with Mikroe Audio Codec PROTO (AudioContolWM8731master, AudioInputI2Sslave, AudioOutpuI2Sslave), with example
11 lat temu
Michele Perla
7281ae2031
Add objects to use with Mikroe Audio Codec PROTO (AudioContolWM8731master, AudioInputI2Sslave, AudioOutpuI2Sslave), with example
11 lat temu
PaulStoffregen
85609adbac
Add AudioFilterBiquad object
11 lat temu
PaulStoffregen
886b2f63b7
Fix PassThroughAnalog example
11 lat temu
PaulStoffregen
67e7db35a6
Add AudioNoInterrupts() and AudioInterrupts()
11 lat temu
PaulStoffregen
759a8e2439
Document analogReference in PlayFromSketch example
11 lat temu
PaulStoffregen
533e753cb5
change format for new_objects files
11 lat temu
PaulStoffregen
773b35a6d7
Add preliminary documentation on creating new objects
11 lat temu
PaulStoffregen
e6ee6db33c
Add analogReference() to AudioOutputAnalog
11 lat temu
PaulStoffregen
6431c2f185
Fix mixer gain function
11 lat temu
PaulStoffregen
da835d59df
fix AudioOutputAnalog update scheduling
11 lat temu
PaulStoffregen
e6f99d8b04
Add AudioOutputAnalog object, for audio to Teensy 3.1 DAC
11 lat temu
PaulStoffregen
7763119ac1
Remove leftover debugging print
11 lat temu