FFmpeg
|
Go to the source code of this file.
Functions | |
overlap indexes | sw (ovidx) |
Variables | |
function [y] | |
Initialize | M = length(w) |
analysis window size | Ns = 1024 |
FFT size for synthesis | H = 256 |
hop size for analysis and synthesis | soundlength = length(x) |
length of input sound array | hNs = Ns/2 |
half synthesis window size | hM = (M-1)/2 |
half analysis window size | pin = max(hNs+1,1+hM) |
initialize sound pointer to middle of analysis window | pend = soundlength-max(hM,hNs) |
last sample to start a frame | fftbuffer = zeros(N,1) |
initialize buffer for FFT | y = zeros(soundlength+Ns/2,1) |
output sine component | w = w/sum(w) |
normalize analysis window | sw = zeros(Ns,1) |
ow = triang(2*H-1) | |
overlapping window | ovidx = Ns/2+1-H+1:Ns/2+H |
bh = blackmanharris(Ns) | |
Load melody file | melody = loadMelodyFile(melodyFile) |
i =0 | |
Function Documentation
overlap indexes sw | ( | ovidx | ) |
Variable Documentation
Definition at line 21 of file extractInstrumental.m.
Definition at line 14 of file extractInstrumental.m.
function[y] |
Definition at line 1 of file extractInstrumental.m.
Definition at line 8 of file extractInstrumental.m.
i =0 |
Definition at line 29 of file extractInstrumental.m.
Definition at line 6 of file extractInstrumental.m.
melody = loadMelodyFile(melodyFile) |
Definition at line 27 of file extractInstrumental.m.
Definition at line 7 of file extractInstrumental.m.
ow = triang(2*H-1) |
Definition at line 18 of file extractInstrumental.m.
Definition at line 13 of file extractInstrumental.m.
Definition at line 12 of file extractInstrumental.m.
Definition at line 9 of file extractInstrumental.m.
Definition at line 17 of file extractInstrumental.m.
output sine component w = w/sum(w) |
Definition at line 16 of file extractInstrumental.m.
initialize buffer for FFT y = zeros(soundlength+Ns/2,1) |
Definition at line 15 of file extractInstrumental.m.
Generated on Mon Nov 18 2024 06:52:05 for FFmpeg by 1.8.11