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

Electronic Engineer at Thinture Technologies Pvt. Ltd

Hello Dear Readers, Currently, at Thinture Technologies Pvt. Ltd vacancy for Electronic Engineer role. Thinture Technologies Pvt. Ltd. is a vehicle control systems manufacturer, with a primary focus on road speed limitation and GPS-based tracking systems. All of our products are designed in-house from basic circuit designing to firmware, algorithm to PCB designing, online software platforms to mechanical assembly drawings, and standard operating procedures for aftermarket usage. Role Description: This is a full-time on-site role for an Electronic Engineer located in Bengaluru. The Electronic Engineer will be responsible for the day-to-day tasks associated with electronic engineering, including electronics, electrical engineering, circuit design, testing, and more. Qualifications: Strong electronic engineering skills Sound knowledge of circuit design and electrical engineering Experience with electronics testing and quality assurance Proficient in using software tools for schematic capt

R&D Intern (Electronics Engineering) at Greaves Electric Mobility

Hello Dear Readers, Currently, at Greaves Electric Mobility vacancy for an R&D Intern (Electronics Engineering) role. At Greaves Electric Mobility, we build products and solutions that are designed to democratize smart and sustainable mobility and do our bit to heal the Planet. Backed by the 164 year engineering legacy of Greaves, our portfolio of electric two and three wheelers are made in India at manufacturing sites across Tamil Nadu, Telangana and Uttar Pradesh. Key Responsibilities: Collaborate with experienced engineers in the research and development of electric mobility technologies. Participate in the design, prototyping, and testing of electronic and electrical systems for electric vehicles. Contribute to the analysis and improvement of automotive electrical systems, ensuring compliance with industry standards. Assist in troubleshooting and problem-solving activities related to electric vehicle components. Stay updated on the latest advancements in the electric mobility s

Hardware Design Engineer at TSC Tech Labs

  Hello Dear Readers, Currently, at TSC Tech Labs  vacancy for a Hardware Design Engineer role. Company Description: TSC Tech Labs is a Space and Defence Startup based in Bengaluru. The company has a legacy of developing three Satellites with Space Heritage and holds five active Defence Contracts with the Indian Navy. Role Description: This is a Senior Hardware Design Engineer role and is a full-time on-site position located in Bengaluru. The Senior Hardware Design Engineer will be responsible for designing and developing electronics hardware, circuit design, hardware architecture and hardware development for satellite and defense systems. Responsibilities: Review and understand electrical schematic designs Perform design reviews with other team members Perform layout design based on these schematic designs, complying with product requirements Close collaboration with other project members (system, mechanical, hardware, and firmware engineers, etc.) Prepare PCB/PCBA production document