Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

51 lines
1.7KB

  1. #ifndef Audio_h_
  2. #define Audio_h_
  3. // When changing multiple audio object settings that must update at
  4. // the same time, these functions allow the audio library interrupt
  5. // to be disabled. For example, you may wish to begin playing a note
  6. // in response to reading an analog sensor. If you have "velocity"
  7. // information, you might start the sample playing and also adjust
  8. // the gain of a mixer channel. Use AudioNoInterrupts() first, then
  9. // make both changes to the 2 separate objects. Then allow the audio
  10. // library to update with AudioInterrupts(). Both changes will happen
  11. // at the same time, because AudioNoInterrupts() prevents any updates
  12. // while you make changes.
  13. //
  14. #define AudioNoInterrupts() (NVIC_DISABLE_IRQ(IRQ_SOFTWARE))
  15. #define AudioInterrupts() (NVIC_ENABLE_IRQ(IRQ_SOFTWARE))
  16. // include all the library headers, so a sketch can use a single
  17. // #include <Audio.h> to get the whole library
  18. //
  19. #include "analyze_fft256.h"
  20. #include "analyze_print.h"
  21. #include "analyze_tonedetect.h"
  22. #include "control_sgtl5000.h"
  23. #include "control_wm8731.h"
  24. #include "effect_chorus.h"
  25. #include "effect_fade.h"
  26. #include "effect_flange.h"
  27. #include "filter_biquad.h"
  28. #include "filter_fir.h"
  29. #include "input_adc.h"
  30. #include "input_i2s.h"
  31. #include "mixer.h"
  32. #include "output_dac.h"
  33. #include "output_i2s.h"
  34. #include "output_pwm.h"
  35. #include "play_memory.h"
  36. #include "play_sd_raw.h"
  37. #include "play_sd_wav.h"
  38. #include "synth_tonesweep.h"
  39. #include "synth_waveform.h"
  40. // TODO: more audio processing objects....
  41. // sine wave with frequency modulation (phase)
  42. // waveforms with bandwidth limited tables for synth
  43. // envelope: attack-decay-sustain-release, maybe other more complex?
  44. #endif