extra/f0detection.m File Reference

Go to the source code of this file.

Functions

initialize output if (nPeaks >3)%at least 3 peaks in spectrum for trying to find f0 nf0peaks
 
 if (f0 >0 &&f0error >ef0max)%limit the possible error by ethreshold f0=0
 

Variables

function f0
 
function fs
 
function ploc
 
function pmag
 
function ef0max
 
function minf0
 
function maxf0
 
size of complex spectrum nPeaks = length(ploc)
 
use a maximum of peaks [f0, f0error] = TWM(ploc(1:nf0peaks),pmag(1:nf0peaks),N,fs,minf0,maxf0)
 
end end
 

Function Documentation

initialize output if ( nPeaks  ,
 
)

Referenced by aac_encode_init(), aacPlus_encode_frame(), adpcm_encode_init(), adx_encode_frame(), amr_decode_fix_avctx(), amr_wb_encode_frame(), ape_decode_value_3900(), ape_read_header(), apply_lpc(), asf_read_pts(), av_buffersink_set_frame_size(), av_buffersrc_add_frame_internal(), av_ext2dbl(), av_opt_query_ranges(), av_reduce(), av_timecode_init_from_string(), average_quantized_coeffs(), avisynth_context_create(), avisynth_open_file(), binkb_read_bundle(), blend_subrect(), buffer_needs_copy(), buffer_offset(), build_frame_code(), cavsvideo_probe(), check_header_mismatch(), cinaudio_decode_frame(), cmv_decode_inter(), cng_encode_frame(), commit_bitstream_and_slice_buffer(), compute_pkt_fields(), config_input(), config_props(), construct_perm_table(), dca_decode_frame(), dca_parse_audio_coding_header(), decode_5(), decode_cabac_mb_skip(), decode_channel(), decode_exp_vlc(), decode_frame(), decode_i2_frame(), decode_init(), decode_init_thread_copy(), decode_slice_header(), decode_subframe(), decode_tilehdr(), dpcm_decode_frame(), dshow_set_audio_buffer_size(), dv_extract_audio(), dv_inject_audio(), dvdsub_parse_extradata(), ebml_parse_elem(), encode_frame(), encode_mb_internal(), event_loop(), evrc_decode_frame(), expand_timestamps(), ff_ac3_compute_coupling_strategy(), ff_alloc_picture(), ff_dvvideo_init(), ff_h264_decode_ref_pic_list_reordering(), ff_id3v2_write_apic(), ff_interleave_add_packet(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_sos(), ff_mpeg4_encode_mb(), ff_MPV_common_init(), ff_print_debug_info2(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_sws_init_swScale_mmx(), ff_thread_await_progress(), ff_thread_report_progress(), ff_vdpau_add_data_chunk(), ff_xvmc_decode_mb(), ff_xvmc_field_start(), ff_yadif_init_x86(), fill_picture_parameters(), filter_frame(), find_next_parse_unit(), flashsv_encode_frame(), flic_decode_init(), flush(), free_section(), g723_1_decode_frame(), generate_intervals(), generate_joint_tables(), get_block_sizes(), get_delayed_pic(), h263_probe(), h264_probe(), handle_packet(), hl_decode_mb_444(), hls_read_header(), hls_write_header(), hyscale(), iff_read_header(), imc_decode_block(), init(), init_dequant_tables(), init_poc(), ipmovie_read_header(), ipvideo_decode_block_opcode_0x8(), ipvideo_decode_block_opcode_0xA(), ism_write_packet(), j2kenc_init(), libgsm_encode_frame(), libspeex_decode_frame(), loop_filter(), main(), matroska_probe(), mc_part_std(), mc_part_weighted(), mc_subpel(), mct_decode(), mlp_parse(), mm_decode_inter(), mmsh_close(), motion_search(), mov_parse_mpeg2_frame(), mov_parse_vc1_frame(), mov_read_extradata(), mov_read_seek(), mpeg4video_probe(), mpeg_decode_mb(), mpeg_decode_slice(), mpeg_mux_init(), mpegps_probe(), mpegvideo_probe(), mxf_interleave_get_packet(), mxf_parse_mpeg2_frame(), mxf_parse_structural_metadata(), nut_probe(), nut_read_seek(), ogg_read_page(), optimum_use15_7(), pcm_encode_frame(), pnm_decode_frame(), postfilter(), pred_spatial_direct_motion(), pred_temp_direct_motion(), predictor_calc_error(), put_dc(), qcelp_decode_frame(), qdm2_decode(), qdm2_fft_tone_synthesizer(), ra144_encode_frame(), read_header(), read_major_sync(), read_thread(), read_var_block_data(), remove_wasted_bits(), request_frame(), rpza_decode_stream(), rtmp_calc_swf_verification(), rtsp_read_packet(), s302m_decode_frame(), sbr_hf_calc_npatches(), sbr_make_f_master(), select_input_picture(), seqvideo_decode(), set_channel_info(), set_palette(), shorten_decode_frame(), smc_decode_stream(), Stagefright_close(), Stagefright_decode_frame(), Stagefright_init(), store_packet(), svq3_decode_frame(), svq3_decode_init(), svq3_decode_mb(), synth_block_fcb_acb(), synth_superframe(), tiff_decode_tag(), tm2_decode_blocks(), transcode_init(), uninit_options(), unpack_superblocks(), unpack_vlcs(), utvideo_decode_init(), utvideo_encode_frame(), vaapi_mpeg4_start_frame(), vc1_decode_b_mb(), vc1_decode_b_mb_intfi(), vc1_decode_b_mb_intfr(), vc1_decode_p_mb_intfi(), vc1_decode_p_mb_intfr(), vc1_mc_4mv_luma(), vc1_put_signed_blocks_clamped(), vda_h264_end_frame(), vmd_decode(), vmdaudio_decode_frame(), vorbis_encode_frame(), vorbis_parse_setup_hdr_codebooks(), vp8_decode_mb_row_no_filter(), wiener_denoise(), wma_decode_superframe(), wsvqa_read_header(), XAVS_init(), yuv2rgb_1_c_template(), and yuv2rgb_2_c_template().

if ( f0  ,
0 &&  f0error,
ef0max   
)
pure virtual

Variable Documentation

function ef0max

Definition at line 1 of file extra/f0detection.m.

end end

Definition at line 15 of file extra/f0detection.m.

Referenced by ac3_eac3_probe(), add_metadata_from_side_data(), add_to_pool(), adjust_write_index(), adts_aac_probe(), analyze_plane(), apply_tns(), asf_read_frame_header(), ass_get_duration(), ass_read_header(), ast_write_header(), av_asprintf(), av_audio_convert(), av_base64_decode(), av_base64_encode(), av_crc(), av_expr_parse(), av_get_token(), av_opencl_create_kernel(), av_opencl_init(), av_opencl_register_kernel_code(), av_opencl_release_kernel(), av_opencl_uninit(), av_strncasecmp(), avcodec_encode_audio2(), avcodec_open2(), avfilter_graph_parse(), avfilter_graph_parse2(), avpriv_find_start_code(), avpriv_new_chapter(), avpriv_strtod(), avpriv_vorbis_parse_reset(), bethsoftvid_decode_frame(), bidir_refine(), buffer_needs_copy(), build_frame_code(), check_header_mismatch(), check_pixel(), choose_qop(), close_output_stream(), commit_bitstream_and_slice_buffer(), compile_kernel_file(), compute_chapters_end(), compute_rematrixing_strategy(), configure_audio_filters(), copy_input_samples(), dct_quantize(), decode_info_header(), decode_main_header(), decode_nal_units(), decode_p_block(), decode_slice(), decode_stream_header(), decode_subframe(), decode_syncpoint(), decode_transform_coeffs(), decode_var_block_data(), decode_wave_header(), decouple_info(), dnxhd_encode_rdo(), do_plane(), do_rematrixing(), doTest(), dshow_cycle_formats(), dshow_set_audio_buffer_size(), encode_frame(), expand_function(), ff_ac3_apply_rematrixing(), ff_ac3_bit_alloc_calc_psd(), ff_avc_find_startcode_internal(), ff_avc_parse_nal_units(), ff_dxva2_common_end_frame(), ff_h263_decode_mb(), ff_h263_find_resync_marker(), ff_h263_find_resync_marker_reverse(), ff_id3v2_parse(), ff_init_rl(), ff_init_scantable(), ff_isom_write_avcc(), ff_load_image(), ff_mjpeg_encode_picture_header(), ff_mms_asf_header_parser(), ff_mpeg4_decode_picture_header(), ff_mpeg4_init_partitions(), ff_MPV_encode_picture(), ff_rtp_send_h263(), ff_rtp_send_h263_rfc2190(), ff_rtp_send_h264(), ff_rtp_send_mpegvideo(), ff_rtsp_open_transport_ctx(), ff_samples_to_time_base(), ff_scale_image(), ff_vorbis_comment(), ff_wma_init(), fill_colmap(), filter(), filter_frame(), find_and_decode_index(), find_new_headers(), find_next_marker(), for(), geq_init(), get_channel_layout_single(), get_device_list(), get_floor_average(), get_pts(), get_sockaddr(), gif_encode_frame(), gxf_write_trailer(), init(), init_dict(), interpolate(), jacosub_decode_frame(), kalman_smoothen(), lag_decode_zero_run_line(), lavfi_read_header(), lex_double(), lex_name(), lex_wsword(), libquvi_read_header(), load_mask(), loas_probe(), main(), matroska_decode_buffer(), matroska_parse_block(), microdvd_decode_frame(), mov_create_chapter_track(), mov_parse_vc1_frame(), mov_read_chapters(), mov_read_mac_string(), mov_text_decode_frame(), mov_write_dvc1_structs(), mov_write_moof_tag(), mov_write_subtitle_end_packet(), mp3_read_probe(), mp_decode_frame(), mpeg1_decode_block_inter(), mpeg1_fast_decode_block_inter(), mpeg2_decode_block_non_intra(), mpeg2_fast_decode_block_non_intra(), mpeg4_decode_mb(), mpl2_probe(), mpsub_read_header(), mxf_decrypt_triplet(), mxf_probe(), mxf_write_d10_audio_packet(), mxg_find_startmarker(), mxg_read_packet(), new_video_stream(), ogg_get_length(), old_codec1(), paf_vid_decode(), parse_fmtp_config(), parse_fragment(), parse_frames(), parse_interval(), parse_psfile(), parse_times(), pcx_decode_frame(), pjs_probe(), plot_spectrum_column(), postProcess(), preview_obmc(), probe_codec(), probe_file(), process_line(), put_id3v2_tags(), qdm2_parse_packet(), queue_length(), rac_get_model256_sym(), rac_get_model_sym(), read_access_unit(), read_apic(), read_chapter(), read_huffman_tables(), read_ts(), real_parse_asm_rule(), real_parse_asm_rulebook(), realtext_read_header(), recode_subtitle(), revert_channel_correlation(), rgb12to15(), rgb15to16(), rgb15to16_c(), rgb15to24(), rgb15to32(), rgb15to32_c(), rgb15tobgr24(), rgb15tobgr24_c(), rgb15tobgr32(), rgb16to15(), rgb16to15_c(), rgb16to24(), rgb16to32(), rgb16to32_c(), rgb16tobgr24(), rgb16tobgr24_c(), rgb16tobgr32(), rgb24to15(), rgb24to15_c(), rgb24to16(), rgb24to16_c(), rgb24tobgr15(), rgb24tobgr15_c(), rgb24tobgr16(), rgb24tobgr16_c(), rgb24tobgr32(), rgb24tobgr32_c(), rgb32to15(), rgb32to15_c(), rgb32to16(), rgb32to16_c(), rgb32tobgr15(), rgb32tobgr15_c(), rgb32tobgr16(), rgb32tobgr16_c(), rgb32tobgr24(), rgb32tobgr24_c(), rt_event_to_ass(), rtp_asf_fix_header(), rv34_decode_slice(), sami_paragraph_to_ass(), sami_read_header(), sbr_hf_gen_c(), segment_end(), shift_data(), srt_decode_frame(), srt_read_header(), srt_to_ass(), str_probe(), str_to_time(), subviewer_read_header(), sunrast_decode_frame(), tqi_decode_frame(), transcode_subtitles(), tta_check_crc64(), udp_get_file_handle(), unpack_parse_unit(), var_diamond_search(), vc1_decode_frame(), vc1_decode_init(), vc1_decode_p_mb(), vc1_extract_headers(), vp3_dequant(), vp3_h_loop_filter_c(), vp3_v_loop_filter_c(), webvtt_read_header(), worker(), write_header(), write_packet(), xbm_decode_frame(), and xmv_fetch_video_packet().

number of peaks f0
Initial value:
= f0detection(mX, fs, ploc, pmag, ef0max, minf0, maxf0)
% Fundamental frequency detection function
function ploc
FFT of current buffer mX
Definition: stft_peak.m:23
Plot spectral magnitude
phase spectrum(unwrapped) ploc
function ef0max
function maxf0
function pmag
function fs
function minf0

Definition at line 1 of file extra/f0detection.m.

Referenced by decide_frame_length(), print_aff_and_breaks(), ulti_decode_frame(), and xa_decode().

function maxf0

Definition at line 1 of file extra/f0detection.m.

function minf0

Definition at line 1 of file extra/f0detection.m.

size of complex spectrum nPeaks = length(ploc)

Definition at line 7 of file extra/f0detection.m.

use a maximum of peaks[f0, f0error] = TWM(ploc(1:nf0peaks),pmag(1:nf0peaks),N,fs,minf0,maxf0)

Definition at line 11 of file extra/f0detection.m.

function ploc

Definition at line 1 of file extra/f0detection.m.

function pmag

Definition at line 1 of file extra/f0detection.m.