to be completed institute of technical acoustics, rwth ... · tutorial demos, test routines svn...

1
P. Dietrich, B. Masiero, R. Scharrer, M. M¨ uller-Trapet, M. Pollow, M. Vorl¨ ander Institute of Technical Acoustics, RWTH Aachen University [email protected] Application of the MATLAB ITA-Toolbox: Laboratory Course on Cross-talk Cancellation Anwendung der MATLAB ITA-Toolbox: Praktikumsversuch zur ¨ Ubersprechkompensation (CTC) About the Laboratory Courses We offer a laboratory course for students in the Master‘s program where students step into 11 dif- ferent acoustical fields in teams of two. Data ac- quisition and post-processing is realized using the ITA-Toolbox . It offers functionality for a wide range of acoustic measurement and signal process- ing tasks. Students have access to the source code enabling them to follow, comprehend and even modify parts of the signal processing chain. CTC Laboratory In this 3 hour practical course students must design their own loudspeaker based binaural reproduction system. The task starts with understanding the concepts of binaural hearing, by measuring a set of HRTFs and finally design own crosstalk cancel- lation filters. At the end, their results are tested by listening to filtered binaural signals. The ITA- Toolbox is used to provide a framework where the students can solely concentrate on the algorithm. Theoretical Background First the transfer function from the two loudspeak- ers is measured with a dummy head. These results are post-processed and used for the inversion in the CTC filter generation. mono signal HRTF playback CTC Measurement playback HRTF [H matrix] s(t) s(t) Laboratory Laboratory Classes Operators Units Kernel www.akustik.rwth-aachen.de/toolbox developer Knowledge Documentation in-line help/PDF Tutorial Demos, test routines SVN Plots/GUI Time/Frequency Balloon–Directivity Geometry/Mesh Parametric GUI GLE (export) DSP Convolution Filtering/Windowing Levels dB(A)/dB(C) Transformations STFT/cepstrum/hilbert Loudspeaker Tools Data IO PortAudio/PortMedia Acoustic Measurement MIDI, RS232 Turntable/Arm, X-Y-Bench, Measurement Hardware Im-/Export Measurement/Simulation LMS Virtual Lab, BK Pulse, ArtemiS, Sysnoise, MonkeyForest, ANSYS Universal File Format, ASCII Laboratory To be completed by students: Sound Power Kundt’s Tube (3-mics) Filter Design Applications CTC Lab HRTF Knowledge Measurement Deconvolution Time-Windowing Invertation Filtering Binaural Processing Psychoacoustics Non-linear Models Listening Tests Sound Field Classification Room Acoustics Measurement Calibration Radiation Analysis (O)TPA/BTPA and TPS Numerical FEM/BEM Spherical Harmonics Scattering Laboratory Students and academic stuff during instruction and testing of the CTC-filters in the new course. Script Example %% ***** CTC filter generation ***** beta = 1e -6; % [a b; c d] = H'.H + beta * I a = HLL * conj(HLL) + HLR * conj(HLR) + beta; b = HRL * conj(HLL) + HRR * conj(HLR); c = HLL * conj(HRL) + HLR * conj(HRR); d = HRL * conj(HRL) + HRR * conj(HRR) + beta; determinant = a * d - b * c; % [LL RL; LR RR] = inv(H'.H +beta) H' CTC LL = (d * conj(HLL) - b * conj(HRL))/determinant; CTC LR = (a * conj(HRL) - c * conj(HLL))/determinant; CTC RL = (d * conj(HLR) - b * conj(HRR))/determinant; CTC RR = (a * conj(HRR) - c * conj(HLR))/determinant; %% ***** CTC filtering ***** outL = inL * CTC LL + inR * CTC RL; outR = inL * CTC LR + inR * CTC RR; %% ***** Test Channel Separation ***** LL = HLL * CTC LL + HRL * CTC LR; LR = HLR * CTC LL + HRR * CTC LR; RL = HLL * CTC RL + HRL * CTC RR; RR = HLR * CTC RL + HRR * CTC RR; Acknowledgment The authors would like to thank the electrical and mechanical workshop at ITA for their support. PortMusic and playRec were used to realize stable audio data acquisi- tion with MATLAB. Thanks to all users and students and users for their feedback and bug reports. References [1] M. R. Schroeder and B. S. Atal, ”Computer Simulation of Sound Transmission in Rooms,” in IEEE Cony. Rec., pt. 7, pp. 150-155 (1963). [2] Bauck, Jerald L, and D H Cooper. 1996. Generalized transaural stereo and applica- tions. J. Audio Eng. Soc. 44:683-705. [3] Kirkeby, Ole, Philip A. Nelson, and Hareo Hamada. The Stereo Dipole-a virtual source imaging system using two closely spaced loudspeakers. J. Audio Eng. Soc. 46, pp.387–395, 1998 [4] Dietrich, P., Masiero, B., M¨ uller-Trapet, M., Pollow, M., Scharrer, R.: MATLAB Toolbox for the Comprehension of Acoustic Measurement and Signal Processing, DAGA, 2010 [5]Fingerhuth, S., Dietrich, P., Kaldenbach, R.: Mess-’Blackbox’ zum Verst¨ andnis des ¨ Ubertraungsverhaltens und der akustischen Messtechnik, DAGA, 2010

Upload: dinhhuong

Post on 22-May-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: To be completed Institute of Technical Acoustics, RWTH ... · Tutorial Demos, test routines SVN Plots/GUI Time/Frequency BalloonÐ Directivity ... ArtemiS, Sysnoise, MonkeyForest,

P. Dietrich, B. Masiero, R. Scharrer,M. Muller-Trapet, M. Pollow, M. Vorlander

Institute of Technical Acoustics, RWTH Aachen [email protected]

Application of the MATLAB ITA-Toolbox: Laboratory Course on Cross-talk CancellationAnwendung der MATLAB ITA-Toolbox: Praktikumsversuch zur Ubersprechkompensation (CTC)

About the Laboratory CoursesWe offer a laboratory course for students in the

Master‘s program where students step into 11 dif-

ferent acoustical fields in teams of two. Data ac-

quisition and post-processing is realized using the

ITA-Toolbox . It offers functionality for a wide

range of acoustic measurement and signal process-

ing tasks. Students have access to the source code

enabling them to follow, comprehend and even

modify parts of the signal processing chain.

CTC LaboratoryIn this 3 hour practical course students must design

their own loudspeaker based binaural reproduction

system. The task starts with understanding the

concepts of binaural hearing, by measuring a set

of HRTFs and finally design own crosstalk cancel-

lation filters. At the end, their results are tested

by listening to filtered binaural signals. The ITA-

Toolbox is used to provide a framework where the

students can solely concentrate on the algorithm.

Theoretical BackgroundFirst the transfer function from the two loudspeak-

ers is measured with a dummy head. These results

are post-processed and used for the inversion in the

CTC filter generation.

mono signal HRTF playbackCTC

Measurement playback HRTF

[H matrix]

s(t)

s(t)

Laboratory

Laboratory

ClassesOperatorsUnits

Kernel

www.akustik.rwth-aachen.de/toolbox

deve

loper

Knowledge

Documentationin-line help/PDF

TutorialDemos, test routines

SVN

Plots/GUI

Time/FrequencyBalloon–DirectivityGeometry/MeshParametric GUIGLE (export)

DSP

ConvolutionFiltering/WindowingLevels dB(A)/dB(C)TransformationsSTFT/cepstrum/hilbert

LoudspeakerTools

Data IO

PortAudio/PortMediaAcoustic Measurement

MIDI, RS232Turntable/Arm, X-Y-Bench, Measurement Hardware

Im-/Export

Measurement/SimulationLMS Virtual Lab, BK Pulse, ArtemiS, Sysnoise, MonkeyForest, ANSYSUniversal File Format, ASCII

LaboratoryTo be completed by students:Sound Power Kundt’s Tube (3-mics)Filter Design

Applications

CTC Lab

HRTF KnowledgeMeasurementDeconvolutionTime-WindowingInvertationFiltering

BinauralProcessing

Psychoacoustics

Non-linearModels

Listening Tests

Sound FieldClassification

RoomAcoustics

MeasurementCalibration

RadiationAnalysis

(O)TPA/BTPAand TPS

NumericalFEM/BEM

Spherical Harmonics

Scattering

LaboratoryStudents and academic stuff during instruction and

testing of the CTC-filters in the new course.

Script Example%% ***** CTC filter generation *****beta = 1e−6;

% [a b; c d] = H'.H + beta*Ia = HLL*conj(HLL) + HLR*conj(HLR) + beta;b = HRL*conj(HLL) + HRR*conj(HLR);c = HLL*conj(HRL) + HLR*conj(HRR);d = HRL*conj(HRL) + HRR*conj(HRR) + beta;determinant = a*d − b*c;

% [LL RL; LR RR] = inv(H'.H +beta) H'CTC LL = (d*conj(HLL) − b*conj(HRL))/determinant;CTC LR = (a*conj(HRL) − c*conj(HLL))/determinant;CTC RL = (d*conj(HLR) − b*conj(HRR))/determinant;CTC RR = (a*conj(HRR) − c*conj(HLR))/determinant;

%% ***** CTC filtering *****outL = inL*CTC LL + inR*CTC RL;outR = inL*CTC LR + inR*CTC RR;

%% ***** Test Channel Separation *****LL = HLL*CTC LL + HRL*CTC LR;LR = HLR*CTC LL + HRR*CTC LR;RL = HLL*CTC RL + HRL*CTC RR;RR = HLR*CTC RL + HRR*CTC RR;

AcknowledgmentThe authors would like to thank the electrical and mechanical workshop at ITA fortheir support. PortMusic and playRec were used to realize stable audio data acquisi-tion with MATLAB. Thanks to all users and students and users for their feedback andbug reports.

References[1] M. R. Schroeder and B. S. Atal, ”Computer Simulation of Sound Transmission in

Rooms,” in IEEE Cony. Rec., pt. 7, pp. 150-155 (1963).

[2] Bauck, Jerald L, and D H Cooper. 1996. Generalized transaural stereo and applica-tions. J. Audio Eng. Soc. 44:683-705.

[3] Kirkeby, Ole, Philip A. Nelson, and Hareo Hamada. The Stereo Dipole-a virtualsource imaging system using two closely spaced loudspeakers. J. Audio Eng. Soc. 46,pp.387–395, 1998

[4] Dietrich, P., Masiero, B., Muller-Trapet, M., Pollow, M., Scharrer, R.: MATLABToolbox for the Comprehension of Acoustic Measurement and Signal Processing,DAGA, 2010

[5] Fingerhuth, S., Dietrich, P., Kaldenbach, R.: Mess-’Blackbox’ zum Verstandnis desUbertraungsverhaltens und der akustischen Messtechnik, DAGA, 2010