stft_peak.m File Reference

Go to the source code of this file.

Functions

window size (odd) W2
 
multiply window by input frame fft_buffer (1:W2+1)
 
1:W2 xw ()
 
phase spectrum (unwrapped) ploc
 
 if (mod((g-p_start)/H+1,(floor(p_end/H/5)))==0)%select only 5 equally distributed frames of the sound figure subplot(2
 

Variables

function X
 
function w = w/sum(w)
 
function H
 
normalize window W = length(w)
 
half window N2 = N/2+1
 
half FFT size p_start = 1+W2
 
first frame pointer p_end = lengthx-W2
 
last frame pointer fft_buffer = zeros(N,1)
 
FFT buffer for g
 
FFT of current buffer mX = 20*log10(abs(X(1:N2)))
 
magnitude spectrum pX = unwrap(angle(X(1:N2)))
 
 pmag = mX(ploc)
 
 pphase = pX(ploc)
 
 plength = length(ploc)
 

Function Documentation

multiply window by input frame fft_buffer ( 1:W2 1)
if ( mod((g-p_start)/H+1,(floor(p_end/H/5)))  = =0)
window size ( odd  )
phase spectrum ( unwrapped  )
1:W2 xw ( )
virtual

Variable Documentation

last frame pointer fft_buffer = zeros(N,1)

Definition at line 16 of file stft_peak.m.

FFT buffer for g
Initial value:
=p_start:H:p_end % advance hop size each loop
% ANALYSIS
xw = w(1:W)'.*x(g-W2:g+W2)
window size(odd) W2
function H
Definition: stft_peak.m:1
static int loop
Definition: ffplay.c:305
function w
Definition: stft_peak.m:1
1:W2 xw()
first frame pointer p_end
Definition: stft_peak.m:15
half FFT size p_start
Definition: stft_peak.m:14
normalize window W
Definition: stft_peak.m:10

Definition at line 17 of file stft_peak.m.

Referenced by aac_encode_frame(), add_hfyu_left_prediction_bgr32_c(), add_opt(), adjust_frame_information(), apply_dependent_coupling(), apply_intensity_stereo(), apply_mid_side_stereo(), asf_build_simple_index(), asf_read_ext_stream_properties(), asf_read_header(), asf_read_stream_properties(), avcodec_string(), avpriv_set_systematic_pal2(), bfi_decode_frame(), bgr24ToUV_c(), bgr24ToUV_half_c(), bgr24ToY_c(), calc_thr_3gpp(), cdg_load_palette(), cdxl_decode_ham6(), cdxl_decode_ham8(), cinepak_decode_codebook(), config_output(), dct_quantize_refine(), decode_band_types(), decode_block(), decode_cce(), decode_frame(), decode_hybrid(), decode_mvc2(), decode_pal(), decode_rgb_frame(), decode_scalefactors(), decode_spectrum_and_dequant(), dump_stream_format(), dvbsub_init_decoder(), dvbsub_parse_clut_segment(), encode_dvb_subtitles(), encode_frame(), encode_rgb_frame(), ff_guidcmp(), ff_mov_read_stsd_entries(), ff_rgb24toyv12_c(), filter_frame(), find_best_vect(), finish_group(), flic_decode_frame_8BPP(), gbr24pToUV_half_c(), generate_joint_tables(), get_match_score(), guess_palette(), idcin_read_packet(), import_palette(), initPv(), lag_decode_frame(), mangle_rgb_planes(), mp_decode_layer3(), mp_yuv_to_rgb(), open_files(), paf_vid_decode(), paint_mouse_pointer(), parse_chunks(), parse_palette_segment(), planar_rgb16_to_uv(), planar_rgb16_to_y(), planar_rgb_to_uv(), planar_rgb_to_y(), png_filter_row(), process_ipmovie_chunk(), psy_3gpp_analyze_channel(), psy_3gpp_init(), put_pixel(), ra144_encode_subblock(), request_frame(), restore_rgb_planes(), rgb12to15(), rgb16_32ToUV_c_template(), rgb16_32ToUV_half_c_template(), rgb24_to_yuv420p(), rgb24to15(), rgb24to15_c(), rgb24to16(), rgb24to16_c(), rgb24tobgr15(), rgb24tobgr15_c(), rgb24tobgr16(), rgb24tobgr16_c(), rgb24ToUV_c(), rgb24ToUV_half_c(), rgb24ToY_c(), rgb48funcs(), rgb48ToUV_c_template(), rgb48ToUV_half_c_template(), rgb64funcs(), rgb64ToUV_c_template(), rgb64ToUV_half_c_template(), rgb64ToY_c_template(), sbr_hf_gen(), search_for_ms(), search_for_quantizers_anmr(), search_for_quantizers_faac(), search_for_quantizers_fast(), search_for_quantizers_twoloop(), set_palette(), sha256_transform(), shuffle_bytes_2103(), shuffle_bytes_2103_c(), sub_left_prediction_bgr32(), sub_left_prediction_rgb24(), subtitle_thread(), sws_scale(), update_palette_index(), vb_decode_framedata(), vmd_decode(), vmdvideo_decode_init(), vqa_decode_chunk(), write_stream_codec_info(), xan_decode_frame(), yuv2rgb_1_c_template(), yuv2rgb_2_c_template(), yuv2rgb_write(), yuv2rgb_write_full(), yuv2rgb_X_c_template(), and yuv_a_to_rgba().

Definition at line 1 of file stft_peak.m.

FFT of current buffer mX = 20*log10(abs(X(1:N2)))

Definition at line 23 of file stft_peak.m.

half window N2 = N/2+1

Definition at line 12 of file stft_peak.m.

half FFT size p_start = 1+W2

Definition at line 14 of file stft_peak.m.

plength = length(ploc)

Definition at line 28 of file stft_peak.m.

pmag = mX(ploc)

Definition at line 26 of file stft_peak.m.

pphase = pX(ploc)

Definition at line 27 of file stft_peak.m.

magnitude spectrum pX = unwrap(angle(X(1:N2)))

Definition at line 24 of file stft_peak.m.

length of sound signal w = w/sum(w)

Definition at line 1 of file stft_peak.m.

normalize window W = length(w)

Definition at line 10 of file stft_peak.m.

Referenced by evolve(), fill_rgb2yuv_table(), initPv(), ls_decode_line(), and ls_encode_line().

X
Initial value:
= stft_peak(x, w, N, H, threshold)
% Analysis/synthesis of a sound using the short-time fourier transform
% x: input sound
FFT size for synthesis(even) H
function H
Definition: stft_peak.m:1
#define N
Definition: vf_pp7.c:200
Discrete Time axis x
sound(x3, Fs)
function w
Definition: stft_peak.m:1

Definition at line 1 of file stft_peak.m.