Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

79 rindas
2.5KB

  1. /* Audio Library for Teensy 3.X
  2. * Copyright (c) 2018, Paul Stoffregen, paul@pjrc.com
  3. *
  4. * Development of this audio library was funded by PJRC.COM, LLC by sales of
  5. * Teensy and Audio Adaptor boards. Please support PJRC's efforts to develop
  6. * open source software by purchasing Teensy or other PJRC products.
  7. *
  8. * Permission is hereby granted, free of charge, to any person obtaining a copy
  9. * of this software and associated documentation files (the "Software"), to deal
  10. * in the Software without restriction, including without limitation the rights
  11. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. * copies of the Software, and to permit persons to whom the Software is
  13. * furnished to do so, subject to the following conditions:
  14. *
  15. * The above copyright notice, development funding notice, and this permission
  16. * notice shall be included in all copies or substantial portions of the Software.
  17. *
  18. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  24. * THE SOFTWARE.
  25. */
  26. #ifndef effect_freeverb_h_
  27. #define effect_freeverb_h_
  28. #include <Arduino.h>
  29. #include "AudioStream.h"
  30. class AudioEffectFreeverb : public AudioStream
  31. {
  32. public:
  33. //AudioEffectFreeverb() : AudioStream(1, inputQueueArray);
  34. AudioEffectFreeverb();
  35. virtual void update();
  36. private:
  37. audio_block_t *inputQueueArray[2];
  38. int16_t comb1buf[1116];
  39. int16_t comb2buf[1188];
  40. int16_t comb3buf[1277];
  41. int16_t comb4buf[1356];
  42. int16_t comb5buf[1422];
  43. int16_t comb6buf[1491];
  44. int16_t comb7buf[1557];
  45. int16_t comb8buf[1617];
  46. uint16_t comb1index;
  47. uint16_t comb2index;
  48. uint16_t comb3index;
  49. uint16_t comb4index;
  50. uint16_t comb5index;
  51. uint16_t comb6index;
  52. uint16_t comb7index;
  53. uint16_t comb8index;
  54. int16_t comb1filter;
  55. int16_t comb2filter;
  56. int16_t comb3filter;
  57. int16_t comb4filter;
  58. int16_t comb5filter;
  59. int16_t comb6filter;
  60. int16_t comb7filter;
  61. int16_t comb8filter;
  62. int16_t combdamp1;
  63. int16_t combdamp2;
  64. int16_t combfeeback;
  65. int16_t allpass1buf[556];
  66. int16_t allpass2buf[441];
  67. int16_t allpass3buf[341];
  68. int16_t allpass4buf[225];
  69. uint16_t allpass1index;
  70. uint16_t allpass2index;
  71. uint16_t allpass3index;
  72. uint16_t allpass4index;
  73. };
  74. #endif