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

📄 filterdlg.h

📁 能够读取wav格式的音频文件
💻 H
字号:
// filterDlg.h : header file
//

#if !defined(AFX_FILTERDLG_H__76A3A105_11CC_42E1_BA28_4819C51F2EC9__INCLUDED_)
#define AFX_FILTERDLG_H__76A3A105_11CC_42E1_BA28_4819C51F2EC9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Signal.h"
#include "complex.h"
#include "number.h"
/////////////////////////////////////////////////////////////////////////////
// CFilterDlg dialog

class CFilterDlg : public CDialog
{
// Construction
public:
	CFilterDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CFilterDlg)
	enum { IDD = IDD_FILTER_DIALOG };
	double	m_num1;
	double	m_num2;
	long	m_num3;
	CString	m_file;
	int		m_filterkind;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFilterDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CFilterDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnRadio1();
	afx_msg void OnRadio2();
	afx_msg void OnRadio3();
	afx_msg void OnRadio4();
	afx_msg void OnBtnBrouse();
	afx_msg void OnBtnPro();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	void ClearDraw();
	void DrawSignal(CSignal &thesignal);
	void setsignal(CSignal &);
	void getsignal(CSignal &, Cnumber &);
	void setkind(CSignal &);
	void processing(CSignal &thesignal, Ccomplex *thefilter,Cnumber &thenum);
	void conv(Ccomplex *x, Ccomplex *h, UINT l);
	void wwindow(double *wwin, UINT length, int kind);
	void wbandstop(double *wfil, UINT length, double w1, double w2);
	void wbandpass(double *wfil, UINT length, double w1, double w2);
	void whighpass(double *wfil, UINT length, double w);
	void wlowpass(double *wfil, UINT length, double w);
	void ifft(Ccomplex a[], UINT l);
	void fft(Ccomplex a[],UINT l);
	float Var(unsigned char *x,DWORD nTotal);
	float Equ(unsigned char *x,DWORD nTotal);
	UINT Max(unsigned char *x,DWORD nTotal);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FILTERDLG_H__76A3A105_11CC_42E1_BA28_4819C51F2EC9__INCLUDED_)

⌨️ 快捷键说明

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