教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 文库大全 > 资格考试 >

十段图示均衡器实验报告(2)

来源:网络收集 时间:2026-08-23
导读: pSB=(CScrollBar*) GetDlgItem(IDC_SCR8); pSB-EnableScrollBar(ESB_ENABLE_BOTH ); pSB=(CScrollBar*) GetDlgItem(IDC_SCR9); pSB-EnableScrollBar(ESB_ENABLE_BOTH ); pSB=(CScrollBar*) GetDlgItem(IDC_SCR10);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR8);

pSB->EnableScrollBar(ESB_ENABLE_BOTH );

pSB=(CScrollBar*) GetDlgItem(IDC_SCR9);

pSB->EnableScrollBar(ESB_ENABLE_BOTH );

pSB=(CScrollBar*) GetDlgItem(IDC_SCR10);

pSB->EnableScrollBar(ESB_ENABLE_BOTH );

pSB=(CScrollBar*) GetDlgItem(IDC_SCRG);

pSB->EnableScrollBar(ESB_ENABLE_BOTH );

if(isset)

{

for (int i=0;i<10;i++) bandpow[i]+=m_editg;

mwavefile.SetEQ(bandpow,10);

}

}

//禁用均衡

void CEQDlg::OnBtnclose() //禁用均衡

{

// TODO: Add your control notification handler code here isset=false;

CScrollBar* pSB=(CScrollBar*) GetDlgItem(IDC_SCR1);

pSB->EnableScrollBar(ESB_DISABLE_BOTH);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR2);

pSB->EnableScrollBar(ESB_DISABLE_BOTH);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR3);

pSB->EnableScrollBar(ESB_DISABLE_BOTH);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR4);

pSB->EnableScrollBar(ESB_DISABLE_BOTH);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR5);

pSB->EnableScrollBar(ESB_DISABLE_BOTH);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR6);

pSB->EnableScrollBar(ESB_DISABLE_BOTH);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR7);

pSB->EnableScrollBar(ESB_DISABLE_BOTH);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR8);

pSB->EnableScrollBar(ESB_DISABLE_BOTH);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR9);

pSB->EnableScrollBar(ESB_DISABLE_BOTH);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR10);

pSB->EnableScrollBar(ESB_DISABLE_BOTH);

pSB=(CScrollBar*) GetDlgItem(IDC_SCRG);

pSB->EnableScrollBar(ESB_DISABLE_BOTH);

mwavefile.StopEQ();

}

//归零

void CEQDlg::OnBtnzero() //归零

{

// TODO: Add your control notification handler code here if (isset)

{

CScrollBar* pSB=(CScrollBar*) GetDlgItem(IDC_SCR1);

pSB->SetScrollPos(0);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR2);

pSB->SetScrollPos(0);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR3);

pSB->SetScrollPos(0);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR4);

pSB->SetScrollPos(0);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR5);

pSB->SetScrollPos(0);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR6);

pSB->SetScrollPos(0);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR7);

pSB->SetScrollPos(0);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR8);

pSB->SetScrollPos(0);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR9);

pSB->SetScrollPos(0);

pSB=(CScrollBar*) GetDlgItem(IDC_SCR10);

pSB->SetScrollPos(0);

UpdateData();

bandpow[0]=m_edit1=0;

bandpow[1]=m_edit2=0;

bandpow[2]=m_edit3=0;

bandpow[3]=m_edit4=0;

bandpow[4]=m_edit5=0;

bandpow[5]=m_edit6=0;

bandpow[6]=m_edit7=0;

bandpow[7]=m_edit8=0;

bandpow[8]=m_edit9=0;

bandpow[9]=m_edit10=0;

m_editg=0;

UpdateData(FALSE);

if(isset) mwavefile.SetEQ(bandpow,10);

}

}

//选择下拉效果菜单

void CEQDlg::OnSelchangePresent() //效果选择下拉框

{

isset=true;

int ix=m_PresentEf.GetCurSel();

bandpow[0]=m_edit1=PreEft[ix][0];

bandpow[1]=m_edit2=PreEft[ix][1];

bandpow[2]=m_edit3=PreEft[ix][2];

bandpow[3]=m_edit4=PreEft[ix][3];

bandpow[4]=m_edit5=PreEft[ix][4];

bandpow[5]=m_edit6=PreEft[ix][5];

bandpow[6]=m_edit7=PreEft[ix][6];

bandpow[7]=m_edit8=PreEft[ix][7];

bandpow[8]=m_edit9=PreEft[ix][8];

bandpow[9]=m_edit10=PreEft[ix][9];

m_scr1=-m_edit1;

m_scr2=-m_edit2;

m_scr3=-m_edit3;

m_scr4=-m_edit4;

m_scr5=-m_edit5;

m_scr6=-m_edit6;

m_scr7=-m_edit7;

m_scr8=-m_edit8;

m_scr9=-m_edit9;

m_scr10=-m_edit10;

UpdateData(FALSE);

if(isset)

{

for (int i=0;i<10;i++) bandpow[i]+=m_editg;

mwavefile.SetEQ(bandpow,10);

}

// mwavefile.SetEQ(bandpow,10);

}

五、 实验效果测试

音质评价采用主观测听的方式进行,预设 10 种均衡风格,从 3 个维度进行 音质评价,即低频、中频、高频。以下是对这 3 个维度的详细描述:

低频:给人形成的主观听感包括丰满度、柔和度、清晰度等。测听重点是声 音要有通透感,不能发闷,感觉厚但不能混,有弹性。

中频:给人形成的主观听感包括圆润度、真实度、力度感等。测听重点是人 声部分,要有甜美、温暖的感觉,吉他部分不能干瘪,不刺耳,音色亮但不尖。

高频:给人形成的主观听感包括清晰度、通透感等。测听重点是声音通透, 不发闷,不尖,有余音袅袅的味道。

六、 实验总结

实验刚开始时,由于对十段均衡器的原理不是很明白,做得比较纠结,查阅了有关数字信号的书籍了解了如何改变增益和控制各个典型频率来达到调节音效的目的。这次的GUI界面按钮比较多,对MFC编程不是很熟悉,导致出现了很多错误,在同学的帮助下都一一解决了。

…… 此处隐藏:1675字,全部文档内容请下载后查看。喜欢就下载吧 ……
十段图示均衡器实验报告(2).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wenku/105408.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)