Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
find_harm.m
Package: melp.rar [view]
Upload User: xxy784
Upload Date: 2015-01-28
Package Size: 726k
Code Size: 1k
Category:
Compress-Decompress algrithms
Development Platform:
Matlab
- %Find harmonics of the base frequency
- %Input:
- % res(residual signal of the quantized LPC)
- % p3(final pitch)
- %Output:
- % mag(fourier spectrum magnitude)
- function mag=find_harm(res,p3)
- down=fix(256/p3); %floor level of the base frequency
- M=fix(p3/4); %Get the number of the harmonics
- if M<10
- for n=1:M
- up=fix((n+0.5)*512/p3);
- mag(n)=max(res(down:up));
- down=up+1;
- end
- mag=mag*sqrt(M)/norm(mag);
- mag(M+1:10)=1;
- else
- for n=1:10
- up=fix((n+0.5)*512/p3);
- mag(n)=max(res(down:up));
- down=up+1;
- end
- mag=mag*sqrt(10)/norm(mag);
- end