Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
allpass filter for parametric equalizer
Avatar
cristofergr
Member
Members
January 27, 2016 - 12:16 am
Member Since: January 26, 2016
Forum Posts: 5
sp_UserOfflineSmall Offline

Hallo everyone
thank you for accepting me as member of this forum i have a code which implements a 1 order lowshelving filter using a 1 order allpass filter
but i have some questions can i make some questions the code is thisone some parts of this code are from a book, some parts are my
Now can i ask some questions????????????????

function [ Hd] = lowshelving( x,Wc,G )
V0=10^(G/20);
H0=V0-1;
H01=H0/2;
if G >=0
c=(tan(pi*Wc/2)-1)/(tan(pi*Wc/2)+1); %b
else
c=(tan(pi*Wc/2)-V0)/(tan(pi*Wc/2)+V0); %c
end;
xh=0;
for n=1:length(x)
xh_new=x(n)-c*xh;
ap_y=c*xh_new+xh;
xh=xh_new;
y(n)=0.5*H0*(x(n)+ap_y)+x(n);
end;
b0=1+(1+c)*H01
b1=c+(1+c)*H01
a0=1
a1=c

b = [ b0,b1]
a = [ a0,a1]
[sos,g]=tf2sos(b,a);
Hd=dfilt.df2sos(sos,g);

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
6 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 51

Skyler: 48

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

clau_ste: 39

jim: 34

JimmyM: 33

Gwen: 32

Member Stats:

Guest Posters: 1

Members: 697

Moderators: 1

Admins: 5

Forum Stats:

Groups: 13

Forums: 41

Topics: 757

Posts: 2894

Newest Members:

Mistahbrock, Jas, Rowan, sojourn, fabhenr, rg1, Niklas, Wutru, Tim Campbell, Danny Jonel

Moderators: W Pirkle: 573

Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 573, VariableCook: 3