⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 corr_06.cc

📁 这是一个从音频信号里提取特征参量的程序
💻 CC
字号:
// file: $isip/class/algo/Correlation/corr_06.cc// version: $Id: corr_06.cc,v 1.11 2002/05/31 21:57:25 picone Exp $//// isip include files//#include "Correlation.h"// method: getLeadingPad//// arguments: none //// return: a long value indicating leading pad (in units of frames)//long Correlation::getLeadingPad() const {  // in FRAME_INTERNAL mode, we only deal with the current frame  //  if (cmode_d == FRAME_INTERNAL) {    return DEF_LEADING_PAD;  }    // in CROSS_FRAME mode, we need to compute the overlap.  //  else if (cmode_d == CROSS_FRAME) {    // only algorithm_d == CROSS requires a leading pad. all other    // algorithms only require access to previous data.    //    if (algorithm_d == CROSS) {      float overlap = (float)order_d / (frame_dur_d * sample_freq_d);      return (long)Integral::ceil(overlap);    }    else      return DEF_LEADING_PAD;        }  // else: exit ungracefully  //  else {    return Error::handle(name(), L"getLeadingPad",			 ERR_UNSUPM, __FILE__, __LINE__);  }}// method: getTrailingPad//// arguments: none //// return: a long value indicating the trailing pad (in units of frames)//long Correlation::getTrailingPad() const {  // in FRAME-INTERNAL mode, we only deal with the current frame  //  if (cmode_d == FRAME_INTERNAL) {    return DEF_TRAILING_PAD;  }  // in CROSS_FRAME mode, we need to compute the overlap.  //  else if (cmode_d == CROSS_FRAME) {    // only two algorithms (AUTO and CONV) need a leading pad    //    if (algorithm_d == AUTO || algorithm_d == CONV) {      float overlap = (float)order_d / (frame_dur_d*sample_freq_d);      return (long)Integral::ceil(overlap);    }    else      return DEF_TRAILING_PAD;        }      // else: exit ungracefully  //  else {    return Error::handle(name(), L"getTrailingPad",			 ERR_UNSUPM, __FILE__, __LINE__);  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -