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 sp_TopicIcon
allpass filter for parametric equalizer
No permission to create posts
January 27, 2016
12:16 am
Avatar
cristofergr
Member
Members
Forum Posts: 5
Member Since:
January 26, 2016
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: 36

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 47

Peter: 41

Derek: 41

clau_ste: 39

Frodson: 38

Gwen: 32

EZB: 24

lppier: 23

Msaldaña: 18

Jorge: 17

Member Stats:

Guest Posters: 1

Members: 476

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 30

Topics: 482

Posts: 1876

Newest Members:

sam, annaharris, Marie Weaver, kev, Steven, Mr Anderson, mguy, omelc

Moderators: W Pirkle: 143

Administrators: Tom: 65, JD Young: 80, Will Pirkle: 0, W Pirkle: 143