Skip to main content

MATLAB TUTORIAL-2

                  Effects of the the echos in MATLAB 

HELLO FRIEND'S,

 here i have posted the code which paste in the matlab and enjoy the echo effect in music processing,do it yourself and understand what is really effect of the echos.

Echo Generation The most basic of all audio effects is that of time delay, or echoes. It is used as the building block of more complicated effects such as reverb or flanging. In a listening space such as a room, sound waves arriving at our ears consist of direct sound from the source as well as reflected off the walls, arriving with different amounts of attenuation and delays. Echoes are delayed signals, and as such are generated using delay units. For example, the combination of the direct sound represented by discrete signal y[n] and a single echo appearing D samples later (which is related to delay in seconds) can be generated by the equation of the form (called a difference equation)

                                                     x[n] = y[n] + αy[n − D], |α| < 1


where x[n] is the resulting signal and α models attenuation of the direct sound. Difference equations are implemented in MATLAB using the filter function. Available in  MATLAB is a short snippet of Handel’s hallelujah chorus, which is a digital sound about 9 seconds long, sampled at 8192 sam/sec. To experience the sound with echo in (1.2), execute the following fragment at the command window. The echo is delayed by D = 4196 samples, which amount to 0.5 sec of delay.

CODE:-

                load handel; % the signal is in y and sampling freq in Fs
                sound(y,Fs); pause(10); % Play the original sound
                alpha = 0.9; D = 4196; % Echo parameters
                b = [1,zeros(1,D),alpha]; % Filter parameters
                x = filter(b,1,y); % Generate sound plus its echo
                sound(x,Fs); % Play sound with echo

You should be able to hear the distinct echo of the chorus in about a

half second.


Comments

Popular posts from this blog

Design Engineer at Infineon Bangalore

  Hello Dear Readers, Currently at Infineon Bangalore vacancy for the Design Engineer role. Design analog and mixed-signal modules in CMOS and Smart PowerTechnologies, with a particular focus on achieving high-efficiency power conversion for applications using GaN devices; In your new role you will: Design analog and mixed-signal modules  in CMOS and Smart PowerTechnologies, with a particular focus on achieving high-efficiency power conversion for applications using GaN devices; Design and verify pre-silicon analog/mixed-signal integrated circuit blocks, including incorporating features for testing and quality assurance, and providing support for top-level integration; Assist in defining the requirements  for analog and mixed-signal blocks,aligning them with IP Module architecture, and ensuring compliance with requirements through documentation; Estimate effort and planning design work packages to meet project milestones; Provide essential support to physical design ...

Tutorial on EasyEDA desktop software for PCB and schematic design

In this article, I am going to write a tutorial on how to use EasyEDA desktop application for creating a schematic and for PCB design. One of best advantage of this software is that you can create design offline and can automatically synchronize your design with your online EasyEDA account.  It can be used for circuits simulation, PCB deign and electronics circuits design. You can download EasyEDA desktop application by clicking on following link and it will work on windows 7 or its greater version. They are also releasing soon offline application OSX and Linux users. So keep visiting their website for more information.                                                    https://easyeda.com/page/download So let’s start and see how to design a schematic and PCB using EasyEDA offline desktop application. So first of all lets see how to create a schema...

Engineer II - Analog Design Engineering at Microchip

Hello Dear Readers,   Currently at Microchip  vacancy for Engineer II - Analog Design Engineering role. Job Description: The Mixed Signal Development Group is responsible for delivering analog, digital and mixed-signal IP to divisions within Microchip. We work with leading edge CMOS processes to produce analog integrated circuits for wireline applications. From 112Gb/s+ SERDES to high-speed FEC engines, we enable technology that allows Microchip’s products to interface to the outside world.  Job Descriptions: As a member of the Mixed-Signal Development Group, the candidate will be supervised by a team leader/manager, and be engaged in the design of SERDES/DSP blocks, and other high-speed Digital Signal Processing blocks. This will involve taking a design from initial concept to production form. Throughout you will be mentored and coached by experienced engineers and be exposed to Microchip's Best-In-Class engineering practices. Job Responsibilities: Ramping up o...