Question

Make a simple code of matlab, of autotune or a vocoder

Make a simple code of matlab, of autotune or a vocoder

Homework Answers

Answer #1

We consider a code of building an LPC vocoder.

function [A,G,a,r]=autolpc(x,p)

%

% function to computer the autocorrelation method solution

%

% Inputs:

% x is the signal frame (usually speech weighted by a window)

% p is the lpc model order

%

% Outputs:

% A is the denominator vector for the lpc solution, i.e.,

% A=1-a1z^{-1}-a2z^{-2}-...-apz^{-p}

% G is the lpc model gain (rms prediction error)

% a is the lpc polynomial (without the 1 term)

% r is the vector of autocorrelation coefficients

% see also ATOK, KTOA, RTOA

% solve for the lpc polynomial using a simple matrix inversion method

L=length(x);

r=[];

for i=0:p

r=[r; sum(x(1:L-i).*x(1+i:L))];

end

R=toeplitz(r(1:p));

a=inv(R)*r(2:p+1);

A=[1; -a];

G=sqrt(sum(A.*r));

end

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Matlab equation solve code please show me the code for how to solve x=1-e^-2x in Matlab...
Matlab equation solve code please show me the code for how to solve x=1-e^-2x in Matlab with explanation show me the code and result
MATLAB question dont change subject Give the matlab code for the following, i need to find...
MATLAB question dont change subject Give the matlab code for the following, i need to find the critical damping coefficient of a system User will enter mass and stiffness and the code will print the critical damping coefficient Give working code or else i will badly downvote
MATLAB only. Dont change subject, if you dont know leave it Give me a matlab code...
MATLAB only. Dont change subject, if you dont know leave it Give me a matlab code which takes input mass , stiffness and damping from user the code will calculate natural frequency and the damping ratio use matlab dont give wrong or i will dislike badly
MATLAB , dont change the subject Give me a MATLAB code for obtaining principal stress from...
MATLAB , dont change the subject Give me a MATLAB code for obtaining principal stress from a given tensor of stress which is input by the user. Take input from user Use tensor method to obtain stress Give only correct code and if ans is wrong slightly it will be downvoted badly
I need a simple code for the shift cipher i find this wb page , it...
I need a simple code for the shift cipher i find this wb page , it explains the encryption and decryption process but i dont know how to implement this in Matlab https://www.khanacademy.org/computing/computer-science/cryptography/ciphers/a/shift-cipher Please write the code and i need in 2 hours
Code in Matlab. I need to make a diamond shape with * I get part of...
Code in Matlab. I need to make a diamond shape with * I get part of it with the code below. Instructions are: " Given the value of N print diamond of N + (N-1) rows. For example, if N = 5 it should print a diamond." clc clear n = input ('number of rows \n') o = input ('number of inverted rows \n') t = (o-1) for i = 1:n for k = 1:n-i fprintf (' '); end for...
if subtraction and scaling on images is possible in matlab then provide the source code for...
if subtraction and scaling on images is possible in matlab then provide the source code for them??
The following code must be written in Matlab I want to print the following in Matlab...
The following code must be written in Matlab I want to print the following in Matlab (x1,x2, x3, ....xn) = (0.33333, 0.33333, 0.33333,....) That is for n variables . The whole thing should be on the same line. I need to use fprintf and write out the coordinates with 5 decimal places of variable xn = (0.33333, 0.33333, 0.33333,....) Thanks!
MATLAB CODE REQUIRED Consider the problem of estimating y(0.5) for the boundary-value problem y''+ y' =...
MATLAB CODE REQUIRED Consider the problem of estimating y(0.5) for the boundary-value problem y''+ y' = y + 2, y(0) = 0, y'(1) = 2. Find the solution using 2 approaches: (b) Use finite difference with n = 10.Please provide Matlab code. What is y(0.5) value with Matlab? (c) Using bvp4c. Please provide Matlab code. What is y(0.5) value with Matlab?
I need code for a problem in Matlab Create a single Matlab script that accomplishes the...
I need code for a problem in Matlab Create a single Matlab script that accomplishes the following: Defines a blank tic tac toe board, a 3 x 3 matrix, called board with blank spots represented by zeros. Asks player 1 for a row and column, then puts 1 in a given location. Asks player 2 for a row and column, then puts 2 in a given location
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT