user
2416c39b74
Fix discontinuity in frequency stepping in tonesweep, remove unnecessary/incorrect masking of phase
pirms 4 gadiem
PaulStoffregen
8fb976cf20
Include Arduino.h first in all cpp files, for precompiled header speedup
pirms 6 gadiem
PaulStoffregen
88535e1164
ToneSweep improvements (thanks Pio)
https://forum.pjrc.com/threads/45246-Issues-with-tonesweep-in-audio-library
pirms 7 gadiem
PaulStoffregen
9b283ea102
fix tonesweep
pirms 8 gadiem
Frank
f9e116b4ec
oops :) the dead was living, sry.
time to sleep....
pirms 8 gadiem
Frank
b39702fe52
rmv dead code,+ some optimization
pirms 8 gadiem
Frank
671bc5fff9
use AUDIO_SAMPLE_RATE_EXACT
pirms 8 gadiem
Bill Pugh
4103b9d08a
Bug fix so that downward tone sweeps will work.
Fixed problem with tone_hi - tone_lo computation being done
with unsigned arithmetic, and thus always giving a positive result.
pirms 9 gadiem
Pete (El Supremo)
456a59dc0c
Fix up synth_tonesweep and the example to conform (more closely) to the naming conventions
pirms 10 gadiem
PaulStoffregen
795e43ddb6
Fix compile error
pirms 10 gadiem
Pete (El Supremo)
b09b9d3c89
cosmetic changes to synth_tonesweep.cpp and .h
pirms 10 gadiem
Pete (El Supremo)
f4237e51ec
Cosmetic fixes to AudioSynthToneSweep.cpp and .h
pirms 10 gadiem
PaulStoffregen
4d67342153
Rename AudioToneSweep to AudioSynthToneSweep
pirms 10 gadiem
PaulStoffregen
e3cb8ba481
Add MIT license for Pete's files
pirms 10 gadiem
PaulStoffregen
c274463185
Each object includes only required headers
pirms 10 gadiem
PaulStoffregen
bdc11e316d
Move the last couple ojects to their own files
pirms 10 gadiem
PaulStoffregen
f16fb938bf
Move other objects to their own files
pirms 10 gadiem
PaulStoffregen
a8fd397ba1
Move DSP instruction stuff to its own header file
pirms 10 gadiem
PaulStoffregen
6490ee9155
Move control objects to their own files
pirms 10 gadiem
PaulStoffregen
2bb856fa95
Move input & output objects to their own files
pirms 10 gadiem
PaulStoffregen
7b16c9dc0c
Fix compiler warnings
pirms 10 gadiem
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.
pirms 10 gadiem
Pete (El Supremo)
dd1c6bdb72
Remove debugging statement from AudioToneSweep and add ToneSweep example sketch
pirms 10 gadiem
PaulStoffregen
3c31127761
Fix compiler warnings
pirms 10 gadiem
Pete (El Supremo)
62698957fb
Add an audio sweep. User defined start and end frequencies and length of time of sweep.
pirms 10 gadiem
Pete (El Supremo)
1d58a8e996
Correct storage class of some variables in FIR
pirms 10 gadiem
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(..)'.
pirms 10 gadiem
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.
pirms 10 gadiem
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.
pirms 11 gadiem
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.
pirms 11 gadiem
robsoles
c0efade772
Fix SGTL5000 filter coefficent loader
load_peq(..); wasn't writing the INDEX and WR bits in
DAP_FILTER_COEF_ACCESS
pirms 11 gadiem
Pete (El Supremo)
2f0383f501
Correct the calculation of delay_rate_incr
pirms 11 gadiem
Pete (El Supremo)
3e6e912dd9
Cosmetic fix to Flange.begin
pirms 11 gadiem
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);
pirms 11 gadiem
Pete (El Supremo)
a27b78fc24
AudioSynthWaveform updated to add tone ramping when a tone starts and ends
PlayMidiTones example modified to work with ramping.
pirms 11 gadiem
Pete (El Supremo)
0b64ca0e24
Add chorus and flange effects and an example sketch for each
pirms 11 gadiem
Pete (El Supremo)
3e4d82e9c5
Removed extraneous comment lines
pirms 11 gadiem
Pete (El Supremo)
3b1570c6ec
Added AudioFilterFIR which performs FIR filter
using user-supplied coefficients
pirms 11 gadiem
PaulStoffregen
bf8cffdf02
Fix memory leaks in AudioPlaySDcardWAV
pirms 11 gadiem
PaulStoffregen
ba7c3d8080
Add AudioEffectFade object
pirms 11 gadiem
PaulStoffregen
e1e5a34c73
Fix update scheduling with AudioInputAnalog
pirms 11 gadiem
PaulStoffregen
8cac457d8f
Add comment to filter example
pirms 11 gadiem
PaulStoffregen
2a63896a70
Add AudioAnalyzeToneDetect
pirms 11 gadiem
Michele Perla
7281ae2031
Add objects to use with Mikroe Audio Codec PROTO (AudioContolWM8731master, AudioInputI2Sslave, AudioOutpuI2Sslave), with example
pirms 11 gadiem
PaulStoffregen
85609adbac
Add AudioFilterBiquad object
pirms 11 gadiem
PaulStoffregen
e6ee6db33c
Add analogReference() to AudioOutputAnalog
pirms 11 gadiem
PaulStoffregen
da835d59df
fix AudioOutputAnalog update scheduling
pirms 11 gadiem
PaulStoffregen
e6f99d8b04
Add AudioOutputAnalog object, for audio to Teensy 3.1 DAC
pirms 11 gadiem
PaulStoffregen
7763119ac1
Remove leftover debugging print
pirms 11 gadiem
PaulStoffregen
c6962f58b4
AudioPlayMemory using u-law and simpler header
pirms 11 gadiem