Graduate Institute of Electronics Engineering, NTU Audio Equalizer

Similar documents
Graduate Institute of Electronics Engineering, NTU FIR Filter Design, Implement, and Applicate on Audio Equalizing System ~System Architecture

ECE4703 B Term Laboratory Assignment 2 Floating Point Filters Using the TMS320C6713 DSK Project Code and Report Due at 3 pm 9-Nov-2017

Digital Signal Processing Introduction to Finite-Precision Numerical Effects

Digital Signal Processing and Applications with the TMS320C6713 DSK

REAL-TIME DIGITAL SIGNAL PROCESSING

D. Richard Brown III Associate Professor Worcester Polytechnic Institute Electrical and Computer Engineering Department

D. Richard Brown III Professor Worcester Polytechnic Institute Electrical and Computer Engineering Department

Workshop Goals. Page 2 of 68

REAL TIME DIGITAL SIGNAL PROCESSING

Signal Processing and Computer Vision Using MATLAB and Simulink

REAL TIME DIGITAL SIGNAL PROCESSING

REAL TIME DIGITAL SIGNAL PROCESSING

University of Massachusetts Amherst Department of Electrical & Computer Engineering

A DSP Systems Design Course based on TI s C6000 Family of DSPs

Introduction to Test Driven Development (To be used throughout the course)

Development Tool (Tool Installation)

ECE4703 Laboratory Assignment 5

EECS 452 Lab 2 Basic DSP Using the C5515 ezdsp Stick

Evaluating MMX Technology Using DSP and Multimedia Applications

EE 354 Fall 2013 Lecture 9 The Sampling Process and Evaluation of Difference Equations

MPATE-GE 2618: C Programming for Music Technology. Syllabus

Implementing Biquad IIR filters with the ASN Filter Designer and the ARM CMSIS DSP software framework

Digital Signal Processing Laboratory 7: IIR Notch Filters Using the TMS320C6711

Graduate Institute of Electronics Engineering, NTU 9/16/2004

Transition from Simulink to MATLAB in Real-Time Digital Signal Processing Education*

SEE2030: Introduction to Computer Systems (Fall 2017) Programming Assignment #2:

ECE4703 Mid-term Exam B-16. Name: Box #:

AC : INCORPORATING SYSTEM-LEVEL DESIGN TOOLS INTO UPPER-LEVEL DIGITAL DESIGN AND CAPSTONE COURSES

University of Saskatchewan 5-1 EE 392 Electrical Engineering Laboratory III

Network Programming Concepts

EE482: Digital Signal Processing Applications

EECS 452 Lab 2 Basic DSP Using the C5515 ezdsp Stick

Operators to calculate the derivative of digital signals

5655 Chapter 6. April 18, 2016

Filter Design HDL Coder 2 User s Guide

CS 110 Computer Architecture. Lecture 2: Introduction to C, Part I. Instructor: Sören Schwertfeger.

Nuno Vasconcelos ECE 271A

Experiment 3. Getting Start with Simulink

2IN35 VLSI Programming Lab Work Assignment 1: Hardware design using Verilog

ENGINEERING PROGRAMMING

Design of Adaptive Filters Using Least P th Norm Algorithm

Experiment 6 Finite Impulse Response Digital Filter (FIR).

Summer 2017 ECE 3056

An efficient multiplierless approximation of the fast Fourier transform using sum-of-powers-of-two (SOPOT) coefficients

SigmaStudio User Manual

Implementation of a Low Power Decimation Filter Using 1/3-Band IIR Filter

Pointers. A pointer is simply a reference to a variable/object. Compilers automatically generate code to store/retrieve variables from memory

RISC IMPLEMENTATION OF OPTIMAL PROGRAMMABLE DIGITAL IIR FILTER

The World Leader in High-Performance Signal Processing Solutions. February, 2008

Real-Time DSP for Educators

C Programming Language: C ADTs, 2d Dynamic Allocation. Math 230 Assembly Language Programming (Computer Organization) Thursday Jan 31, 2008

CHAPTER 6 Audio compression in practice

Advanced Design System 1.5. Digital Filter Designer

DSP Platforms Lab (AD-SHARC) Session 05

ECE4703 B Term Laboratory Assignment 1

Using the DSK In CalPoly EE Courses - Dr Fred DePiero

Setup the environment for first time use

Image Manipulation in MATLAB Due Monday, July 17 at 5:00 PM

WS_CCESSH-OUT-v1.00.doc Page 1 of 8

Audio Signal Processing in MATLAB Youssef Abdelilah Senior Product Manager

Rapid Prototyping System for Teaching Real-Time Digital Signal Processing

High Performance Computing MPI and C-Language Seminars 2009

Academic Course Description

ECE 5655/4655 Laboratory Problems

Carleton University Department of Systems and Computer Engineering SYSC Foundations of Imperative Programming - Winter Lab 8 - Structures

Physics 2660: Fundamentals of Scientific Computing. Lecture 3 Instructor: Prof. Chris Neu

LABORATORIO DI ARCHITETTURE E PROGRAMMAZIONE DEI SISTEMI ELETTRONICI INDUSTRIALI

We first learn one useful option of gcc. Copy the following C source file to your

DIGITAL VS. ANALOG SIGNAL PROCESSING Digital signal processing (DSP) characterized by: OUTLINE APPLICATIONS OF DIGITAL SIGNAL PROCESSING

Simple Experiments Involving External Control of Algorithm Parameters for an EET Undergraduate DSP Course

BEE 235 Continuous-Time Linear Systems

Lab - Create User Accounts in Windows 8

Fraction Arithmetic. A proper fraction is a fraction with a smaller numerator than denominator.

Anu Kalidas Muralidharan Pillai and Håkan Johansson

DSX - Digital Systems Using Embedded Linux

The World Leader in High Performance Signal Processing Solutions. DSP Processors

EL2310 Scientific Programming

Data Representation and Storage. Some definitions (in C)

Lecture 12: Algorithmic Strength 2 Reduction in Filters and Transforms Saeid Nooshabadi

SKILL: Fraction arithmetic and reducing fractions back to top

Get the Second-Order Section Coefficients

Lecture 05 I/O statements Printf, Scanf Simple statements, Compound statements

Introduction to VisualAudio

Academic Course Description. VL2003 Digital Processing Structures for VLSI First Semester, (Odd semester)

ELCT 501: Digital System Design

TigerSHARC processor and evaluation board

Pointers, Arrays and Parameters

CSCE 210/2201 Data Structures and Algorithms. Prof. Amr Goneid

CS1114 Section 8: The Fourier Transform March 13th, 2013

Integers II. CSE 351 Autumn Instructor: Justin Hsia

CIS* Programming

Section Notes - Week 1 (9/17)

Real-Time Systems / Real-Time Operating Systems EE445M/EE380L.6, Spring 2015

Lab 2 Power Functions

CSCE 210/2201 Data Structures and Algorithms. Prof. Amr Goneid. Fall 2018

Filterbanks and transforms

Lab 1: A Simple Audio Pipeline

Lecture 8: Structs & File I/O

HERIOT-WATT UNIVERSITY DEPARTMENT OF COMPUTING AND ELECTRICAL ENGINEERING. B35SD2 Matlab tutorial 1 MATLAB BASICS

Fall 2017 CISC124 9/16/2017

Transcription:

Audio Equalizer Instructor: Prof. Andy Wu ACCESS IC LAB

Basic Network Structure for FIR System M y[ n] = h[ k] x[ n k] k = 0 Direct-form Transposition of direct-form P2

Cascade Form Cascade 2nd-ordered direct-form FIR filter to get a polynomial system function. M Ms n 1 2 0k 1k 2k n= 0 k = 1 H( z) = h[ n] z = ( b + b z + b z ) P3

Coding for FIR at High-Level Programming Language P4

Use FIR Function in DSP Library #include <filter.h> const fract16 x[]; /* Input sample vector x */ fract16 y[]; /* Output sample vector y */ int inum; /* Number of input samples */ fir_state_fr16 *state; /* Pointer to filter state structure */ int main() { fir_init(state,coeffs_array,delayline,num_coeffs interpolation_idx); fir_fr16(x,y,inum,state) ; } The function uses the following structure to maintain the state of filter. typedef struct { fract16 *h, /* filter coefficients */ fract16 *d, /* start of delay line */ fract16 *p, /* read/write pointer */ int k; /* number of coefficients */ int l; /* interpolation/decimation index */ } fir_state_fr16; P5

Note Blackfin BF533 is a fixed-point DSP, there is no floating-point data type. frac16 is used to for fraction number representation. -1~1, resolution is 2/2 16 Data obtained from ADC is integer, not fraction, remember to do proper normalization P6

Obtain FIR Filter Coefficients from MATLAB Filter Design Toolbox Filter Design & Analysis Tool (FDATool) P7

5. 1. 2. 3. 4. 6. P8

1. Type Step-by by-step (1) FIR or IIR, Low-pass or Band-pass 2. Order 7, 8 or more 3. Frequency Specification Fs, Fpass, Fstop 頻率響應的參數 4. Magnitude Specification 邊緣變化情形 P9

5. 選擇不同的 view Step-by by-step (2) Magnitude response, Filter coefficient 6. Design Filter 得到實驗所需的 Filter coefficient P10

Implement Filter at Frequency Domain Spectrum analysis Transform input audio signal from time-domain magnitude to frequency domain coefficients. Determine filter frequency response directly. P11

1D Discrete Cosine Transform N-point 1D DCT and Inverse DCT DCT F( k) = c( k) N x= 0 kπ (2x + 1) f ( x)cos( ) 2N Time domain signal IDCT f ( x) = N k = 0 kπ (2x + 1) c( k) F( k)cos( ) 2N Coefficient of cosine wave c( i) = { 1/ N, 2 / N, i = 0 otherwise P12

Mix Stereo Audio Note the weighting should be normalized [4] P13

Exercise Lab Run FIR example @..\Analog Devices\VisualDSP 3.5 16-Bit\Blackfin\Examples\FIR\ Add equalizer function to your audio talk-through system Design at least 3 FIR filter coefficients sets (such as bass enhance, treble enhance, bandpass, notch ), implement them in your system. You should use the button on EVB to switch between those preset equalizer modes. Bonus: Design a transform-based equalizer and allow user to adjust its frequency response at runtime. Add left/right channel mixing function to your system and allow user to choose enable or not at runtime. P14

Submission Due: 2004/11/11 Thursday Mailto: tommy@access.ee.ntu.edu.tw Requirement: Architecture of your system Plot input and output signal (time and frequency domain) and compare Discussion Suggest to this slide: content, teaching skill anything you feel inadequate. P15

Reference [1] Alan V. Oppenheim, Ronald W. Schafer, John R. Buck, Discrete-Time Signal Processing, 2 nd edition, Prentice Hall, ISBN 0-13-083443-2 [2] MATLAB Help [3] Visual DSP++ 3.5 Compiler and Library Manual for Blackfin Processors, Revision 2.2, October 2003 [4] http://www.enel.ucalgary.ca/people/smith/ece-adi- Project/AudioProject/AudioLectureMaterial/Lecture_AudioCourseInfoFr ame.htm P16