pratt手册的脚本程序.docVIP

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
pratt手册的脚本程序

(一)提取二维频谱中某个频率位置的能量值 # 点击主窗口的Control 菜单下的New praat script 按钮,以建立一个新的脚 本语言编辑窗口,然后将脚本语言拷贝到脚本语言编辑窗口中; # 然后在对象列表窗口选定并编辑 Edit 一个二维频谱对象 Spectrum ,再在 二维频谱对象上将游标定位到您需要测量其能量的频率位置; # 然后按脚本编辑器的Run 菜单下的Run 按钮; # 执行结束后,您将在弹出的信息窗口中看见该频率位置的能量值。 clearinfo spectrumN$ selected$ Spectrum editor Spectrum spectrumN$ pitchV Get cursor endeditor binNum Get number of bins binW Get bin width binN Get bin number from frequency... pitchV binNQ floor binN binNH ceiling binN pitchQ Get frequency from bin number... binNQ pitchH Get frequency from bin number... binNH if pitchH-pitchQ 0 rV Get real value in bin... binNQ rV rV iV Get imaginary value in bin... binNQ iV iV shengYaQ rV*rV+iV*iV ^0.5 dBQ 20*log10 shengYaQ/2*10^5 +15 rV Get real value in bin... binNH rV rV iV Get imaginary value in bin... binNH iV iV shengYaH rV*rV+iV*iV ^0.5 dBH 20*log10 shengYaH/2*10^5 +15 juli pitchV-pitchQ / pitchH-pitchQ dB dBQ+ dBH-dBQ *juli endif if pitchH-pitchQ 0 rV Get real value in bin... binN rV rV iV Get imaginary value in bin... binN iV iV shengYa rV*rV+iV*iV ^0.5 dB 20*log10 shengYa/2*10^5 +15 endif print dB (二)提取二维频谱中前n 个谐波峰的能量值 # 点击主窗口的Control 菜单下的New praat script 按钮,以建立一个新的脚 本语言编辑窗口,然后将脚本语言拷贝到脚本语言编辑窗口中; # 然后在对象列表窗口选定并编辑 Edit 一个二维频谱对象 Spectrum ,并测 量其第10 个谐波的中心频率,再除以10 以得到这个时点的基频值; # 然后按脚本编辑器的Run 菜单下的Run 按钮,接下来在弹出的对话窗口 里输入您刚才测定的基频值和需要测量的谐波峰数目n; # 执行结束后,您将在弹出的信息窗口中看见n 个谐波峰位置的能量值。 form 对话框 positive Frequency_Zero_ Hz 100 positive The_Number_of_harmonics 10 endform fZero frequency_Zero fNum the_Number_of_harmonics print fNum clearinfo for j from 1 to fNum pitchV fZero*j binNum Get number of bins binW Get bin width binN Get bin number from frequency... pitchV binNQ floor binN binNH ceiling binN pitchQ Get frequency from bin number... binNQ pitchH Get frequency from bin number... binNH if pitchH-pitchQ 0 rV Get real value in bin... binNQ rV rV iV Get imaginary value in bin... binNQ iV iV shengYaQ rV*rV+iV*iV ^0.5 dBQ 20*log10 shengYaQ/2*10^5 +15 rV Get real value in bin... binNH rV rV iV Get imagi

文档评论(0)

hhax1 + 关注
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档