diff --git a/_audio_effect_8h_source.html b/_audio_effect_8h_source.html index 587997c41e..234a95671e 100644 --- a/_audio_effect_8h_source.html +++ b/_audio_effect_8h_source.html @@ -451,7 +451,7 @@
467 public:
469  Compressor(const Compressor &copy) = default;
470 
-
472  Compressor(uint32_t sampleRate = 44100, int32_t attackMs=30, int32_t releaseMs=20, int32_t holdMs=10, uint8_t thresholdPercent=10, float compressionRatio=0.5){
+
472  Compressor(uint32_t sampleRate = 44100, uint16_t attackMs=30, uint16_t releaseMs=20, uint16_t holdMs=10, uint8_t thresholdPercent=10, float compressionRatio=0.5){
473  //assuming 1 sample = 1/96kHz = ~10us
474  //Attack -> 30 ms -> 3000
475  //Release -> 20 ms -> 2000
@@ -470,17 +470,17 @@
488  recalculate();
489  }
490 
-
492  void setAttack(int32_t attackMs){
+
492  void setAttack(uint16_t attackMs){
493  attack_count = sample_rate * attackMs / 1000;
494  recalculate();
495  }
496 
-
498  void setRelease(int32_t releaseMs){
+
498  void setRelease(uint16_t releaseMs){
499  release_count = sample_rate * releaseMs / 1000;
500  recalculate();
501  }
502 
-
504  void setHold(int32_t holdMs){
+
504  void setHold(uint16_t holdMs){
505  hold_count = sample_rate * holdMs / 1000;
506  recalculate();
507  }
@@ -601,14 +601,14 @@
audio_tools::Boost::process
effect_t process(effect_t input)
calculates the effect output from the input
Definition: AudioEffect.h:85
audio_tools::Boost::Boost
Boost(float volume=1.0)
Definition: AudioEffect.h:77
audio_tools::Compressor
Compressor inspired by https://github.com/YetAnotherElectronicsChannel/STM32_DSP_COMPRESSOR/blob/mast...
Definition: AudioEffect.h:466
-
audio_tools::Compressor::setRelease
void setRelease(int32_t releaseMs)
Defines the release duration in ms.
Definition: AudioEffect.h:498
-
audio_tools::Compressor::Compressor
Compressor(uint32_t sampleRate=44100, int32_t attackMs=30, int32_t releaseMs=20, int32_t holdMs=10, uint8_t thresholdPercent=10, float compressionRatio=0.5)
Default Constructor.
Definition: AudioEffect.h:472
+
audio_tools::Compressor::setAttack
void setAttack(uint16_t attackMs)
Defines the attack duration in ms.
Definition: AudioEffect.h:492
+
audio_tools::Compressor::setRelease
void setRelease(uint16_t releaseMs)
Defines the release duration in ms.
Definition: AudioEffect.h:498
+
audio_tools::Compressor::Compressor
Compressor(uint32_t sampleRate=44100, uint16_t attackMs=30, uint16_t releaseMs=20, uint16_t holdMs=10, uint8_t thresholdPercent=10, float compressionRatio=0.5)
Default Constructor.
Definition: AudioEffect.h:472
+
audio_tools::Compressor::setHold
void setHold(uint16_t holdMs)
Defines the hold duration in ms.
Definition: AudioEffect.h:504
audio_tools::Compressor::Compressor
Compressor(const Compressor &copy)=default
Copy Constructor.
audio_tools::Compressor::setCompressionRatio
void setCompressionRatio(float compressionRatio)
Defines the compression ratio from 0 to 1.
Definition: AudioEffect.h:515
-
audio_tools::Compressor::setHold
void setHold(int32_t holdMs)
Defines the hold duration in ms.
Definition: AudioEffect.h:504
audio_tools::Compressor::process
effect_t process(effect_t inSample)
Processes the sample.
Definition: AudioEffect.h:523
audio_tools::Compressor::setThresholdPercent
void setThresholdPercent(uint8_t thresholdPercent)
Defines the threshod in %.
Definition: AudioEffect.h:510
-
audio_tools::Compressor::setAttack
void setAttack(int32_t attackMs)
Defines the attack duration in ms.
Definition: AudioEffect.h:492
audio_tools::Delay
Delay/Echo AudioEffect. See https://wiki.analog.com/resources/tools-software/sharc-audio-module/barem...
Definition: AudioEffect.h:253
audio_tools::Delay::Delay
Delay(uint16_t duration_ms=1000, float depth=0.5, float feedbackAmount=1.0, uint32_t sampleRate=44100, bool zeroIfBufferEmpty=false)
e.g. depth=0.5, ms=1000, sampleRate=44100
Definition: AudioEffect.h:256
audio_tools::Delay::process
effect_t process(effect_t input)
calculates the effect output from the input
Definition: AudioEffect.h:306
diff --git a/classaudio__tools_1_1_compressor-members.html b/classaudio__tools_1_1_compressor-members.html index e372aca1c9..4f8343cf09 100644 --- a/classaudio__tools_1_1_compressor-members.html +++ b/classaudio__tools_1_1_compressor-members.html @@ -80,7 +80,7 @@ clone() (defined in Compressor)Compressorinlinevirtual compress(float inSampleF) (defined in Compressor)Compressorinlineprotected Compressor(const Compressor &copy)=defaultCompressor - Compressor(uint32_t sampleRate=44100, int32_t attackMs=30, int32_t releaseMs=20, int32_t holdMs=10, uint8_t thresholdPercent=10, float compressionRatio=0.5)Compressorinline + Compressor(uint32_t sampleRate=44100, uint16_t attackMs=30, uint16_t releaseMs=20, uint16_t holdMs=10, uint8_t thresholdPercent=10, float compressionRatio=0.5)Compressorinline CompStates enum name (defined in Compressor)Compressorprotected copyParent(AudioEffect *copy) (defined in AudioEffect)AudioEffectinlineprotected gain (defined in Compressor)Compressorprotected @@ -99,11 +99,11 @@ S_Release enum value (defined in Compressor)Compressorprotected sample_rate (defined in Compressor)Compressorprotected setActive(bool value)AudioEffectinlinevirtual - setAttack(int32_t attackMs)Compressorinline + setAttack(uint16_t attackMs)Compressorinline setCompressionRatio(float compressionRatio)Compressorinline - setHold(int32_t holdMs)Compressorinline + setHold(uint16_t holdMs)Compressorinline setId(int id)AudioEffectinline - setRelease(int32_t releaseMs)Compressorinline + setRelease(uint16_t releaseMs)Compressorinline setThresholdPercent(uint8_t thresholdPercent)Compressorinline state (defined in Compressor)Compressorprotected threshold (defined in Compressor)Compressorprotected diff --git a/classaudio__tools_1_1_compressor.html b/classaudio__tools_1_1_compressor.html index 93142376ca..4dce9ed0d5 100644 --- a/classaudio__tools_1_1_compressor.html +++ b/classaudio__tools_1_1_compressor.html @@ -96,10 +96,10 @@  Compressor (const Compressor &copy)=default  Copy Constructor.
  -Compressor (uint32_t sampleRate=44100, int32_t attackMs=30, int32_t releaseMs=20, int32_t holdMs=10, uint8_t thresholdPercent=10, float compressionRatio=0.5) - Default Constructor.
-  +Compressor (uint32_t sampleRate=44100, uint16_t attackMs=30, uint16_t releaseMs=20, uint16_t holdMs=10, uint8_t thresholdPercent=10, float compressionRatio=0.5) + Default Constructor.
virtual bool active ()  determines if the effect is active
@@ -119,26 +119,26 @@ virtual void setActive (bool value)  sets the effect active/inactive
  - -void setAttack (int32_t attackMs) - Defines the attack duration in ms.
-  + +void setAttack (uint16_t attackMs) + Defines the attack duration in ms.
void setCompressionRatio (float compressionRatio)  Defines the compression ratio from 0 to 1.
  - -void setHold (int32_t holdMs) - Defines the hold duration in ms.
-  + +void setHold (uint16_t holdMs) + Defines the hold duration in ms.
void setId (int id)  Allows to identify an effect.
  - -void setRelease (int32_t releaseMs) - Defines the release duration in ms.
-  + +void setRelease (uint16_t releaseMs) + Defines the release duration in ms.
void setThresholdPercent (uint8_t thresholdPercent)  Defines the threshod in %.
diff --git a/functions_func_s.html b/functions_func_s.html index cbd1f856e7..908ef799a7 100644 --- a/functions_func_s.html +++ b/functions_func_s.html @@ -127,7 +127,7 @@

- s -