Added two Filters that enhance and dampen around a target range
Filter format matches readme. Can handle dual channel audio
This commit is contained in:
parent
cef36db11f
commit
95a079e224
@ -1,4 +1,4 @@
|
||||
function output_x = AnuragDampenTarget(x, Fs,TARGET, AreaPercentage)
|
||||
function output_x = AnuragDampenTarget(x, Fs,LOW, MID, HIGH)
|
||||
%Dampen a range of frequencies a percentage around the target frequency
|
||||
%Also maintain the other frequencies so that the target is muted
|
||||
%percentage is expressed as a number between 0 and 1.
|
||||
@ -8,6 +8,8 @@ function output_x = AnuragDampenTarget(x, Fs,TARGET, AreaPercentage)
|
||||
% Anurag Jadhav: function creator
|
||||
|
||||
% Detailed explanation goes here
|
||||
TARGET = MID;
|
||||
AreaPercentage = 0.15;
|
||||
[dim,len] = size(x); %get length of the input
|
||||
F = Fs * ((-len/2) : ((len/2) - 1)) / len;
|
||||
lenf = length(F);
|
||||
|
@ -1,4 +1,4 @@
|
||||
function output_x = AnuragEnchanceTarget(x, Fs,TARGET, AreaPercentage)
|
||||
function output_x = AnuragEnchanceTarget(x, Fs,LOW, MID, HIGH)
|
||||
%Amplify a range of frequencies a percentage around the target frequency
|
||||
%Also damnpen the other frequencies so that the target is easier to hear
|
||||
%percentage is expressed as a number between 0 and 1.
|
||||
@ -8,6 +8,8 @@ function output_x = AnuragEnchanceTarget(x, Fs,TARGET, AreaPercentage)
|
||||
% Anurag Jadhav: function creator
|
||||
|
||||
% Detailed explanation goes here
|
||||
TARGET = MID;
|
||||
AreaPercentage = 0.15;
|
||||
[dim,len] = size(x); %get length of the input
|
||||
F = Fs * ((-len/2) : ((len/2) - 1)) / len;
|
||||
lenf = length(F);
|
||||
|
Reference in New Issue
Block a user