SlideShare a Scribd company logo
1 of 9
Download to read offline
A PROJECT REPORT ON
Beat Detection
By
Aditya Gudipudi (930111-2919)
Rohit Raghav (951228-P297)
Kunadha Raju R V Krishnam raju (931113-7971)
Avinash Goud Chekkilla (931218-2430)
Contents
1. Abstract
2. Software
3. Hardware
4. Conclusion
Chapter 1
Abstract
In signal analysis, beat detection is detecting the beats in a musical tone using
computerized software. Feeling the beat of a song comes naturally to humans. Indeed
it is only a feeling one gets when listening to a melody. There can be several methods
in beat detection, but entirely dependent on speed hand accuracy. The project is a
demonstration of variation of leds in accordance to the beats in a music note with
the help of a digital signal processor.
We will study the variation of beats on a streaming source and calculating its beats
per minute.
The Project aims to know how the codes of these various algorithms work and be
able to adapt and create necessary changes in the code to meet the necessity.
CHAPTER 2
Software Used:
1. Matlab 2014
2. Visual Dsp++ 5.0
MATLAB
We first take an audio signal as an input and then divide the signal into equal block
sizes. Zeros are padded and the energy of the audio signal is computed, then we later
computed the FFT of the signal. We get the figure of the various energy signal. Then
the whole audio signal is converted to BPM (beats per minute), then we plot the
signal for the absolute FFT. After we run the program all the necessary plots are
obtained which show the drops in the beats and show its variation which is used to
detect the beat.
Matlab code and graphs obtained are shown below:
Code:
clc;
close all;
[x,fs] = audioread('C:Usersrohit kDesktoptoms.wav');
m=buffer(x,100);
[M,N]=size(m);
p=zeros(N,1);
penergy=zeros(N,1);
alpha=0.95;
for i=2:N
penergy(i)=sum(m(:,i).^2)/M;
p(i)=alpha*(p(i-1))+(1-alpha)*penergy(i);
end
figure(1),
x1=(abs(fft(penergy)));
s=0:2852-1;
bpm= 60*( s./6.46);
plot(bpm,x1)
xlabel('beats per minute');
ylabel('Frequency');
figure(2),
plot(abs(fft(p)))
figure(3),plot(penergy);
figure(4),plot(p);
Matlab Output:
Figure 1
Figure 2
Figure 3
Figure 4
Visual Dsp ++ 5.0
The Matlab code is then represented in C logic. It is then compiled using Visual Dsp
5 ++, an
Environment highly compatible for compiling the C logic into the Dsp processer.
The processor used in our project is ADSP 21262. It is a SHARC processor which
is used in speech, sound and various signal processing applications. C code used for
implementation of our project is shown below.
Chapter 3
Hardware Setup:
The various hardware components used in the project:
Sennheiser HD515 Head Phones
Computer System
ADSP 21262 Sharc Processor
Usb Data Cable
ADZS-HPUSB-ICE Emulator
Power Adaptor
Circuit Setup:
The Power Input is given to the Emulator and another power adaptor is used to power
the Sharc Processor. An Usb Data Cable is connected to the emulator which acts as
an interface between the Visual Dsp software and the processor hardware. A cable
from the HPUSB-Ice emulator is connected to the processor. An Audio input is given
to the processor and the output is taken from the processor device and given to the
speaker output to test the processor working condition. If you get the same output as
given by input simultaneously, the dsp is in working condition.
CHAPTER 4
CONCLUSION
We have observed the variation of led in accordance with the variation of beats to
the supplied input Music Audio signal found by calculating the fast Fourier
transform of the power spectral density of the given signal.

More Related Content

What's hot

Data Structures - Lecture 8 - Study Notes
Data Structures - Lecture 8 - Study NotesData Structures - Lecture 8 - Study Notes
Data Structures - Lecture 8 - Study Notes
Haitham El-Ghareeb
 
Mapping Parallel Programs into Hierarchical Distributed Computer Systems
Mapping Parallel Programs into Hierarchical Distributed Computer SystemsMapping Parallel Programs into Hierarchical Distributed Computer Systems
Mapping Parallel Programs into Hierarchical Distributed Computer Systems
Mikhail Kurnosov
 

What's hot (20)

Digital Signal Processing[ECEG-3171]-Ch1_L02
Digital Signal Processing[ECEG-3171]-Ch1_L02Digital Signal Processing[ECEG-3171]-Ch1_L02
Digital Signal Processing[ECEG-3171]-Ch1_L02
 
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
 
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
 
Digital Signal Processing[ECEG-3171]-Ch1_L05
Digital Signal Processing[ECEG-3171]-Ch1_L05Digital Signal Processing[ECEG-3171]-Ch1_L05
Digital Signal Processing[ECEG-3171]-Ch1_L05
 
Inference accelerators
Inference acceleratorsInference accelerators
Inference accelerators
 
Digital Signal Processing[ECEG-3171]-Ch1_L04
Digital Signal Processing[ECEG-3171]-Ch1_L04Digital Signal Processing[ECEG-3171]-Ch1_L04
Digital Signal Processing[ECEG-3171]-Ch1_L04
 
Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problem
 
Run length encoding
Run length encodingRun length encoding
Run length encoding
 
Modulation techniques matlab_code
Modulation techniques matlab_codeModulation techniques matlab_code
Modulation techniques matlab_code
 
Tscd pweb
Tscd pwebTscd pweb
Tscd pweb
 
Data Structures - Lecture 8 - Study Notes
Data Structures - Lecture 8 - Study NotesData Structures - Lecture 8 - Study Notes
Data Structures - Lecture 8 - Study Notes
 
El text.tokuron a(2019).jung190711
El text.tokuron a(2019).jung190711El text.tokuron a(2019).jung190711
El text.tokuron a(2019).jung190711
 
Parallel computation
Parallel computationParallel computation
Parallel computation
 
Mapping Parallel Programs into Hierarchical Distributed Computer Systems
Mapping Parallel Programs into Hierarchical Distributed Computer SystemsMapping Parallel Programs into Hierarchical Distributed Computer Systems
Mapping Parallel Programs into Hierarchical Distributed Computer Systems
 
Parallel sorting algorithm
Parallel sorting algorithmParallel sorting algorithm
Parallel sorting algorithm
 
fft using labview
fft using labviewfft using labview
fft using labview
 
Multi-core GPU – Fast parallel SAR image generation
Multi-core GPU – Fast parallel SAR image generationMulti-core GPU – Fast parallel SAR image generation
Multi-core GPU – Fast parallel SAR image generation
 
Digital Signal Processing Assignment Help
Digital Signal Processing Assignment HelpDigital Signal Processing Assignment Help
Digital Signal Processing Assignment Help
 
Dsp Lab Record
Dsp Lab RecordDsp Lab Record
Dsp Lab Record
 

Similar to report

Basic simulation lab manual1
Basic simulation lab manual1Basic simulation lab manual1
Basic simulation lab manual1
Janardhana Raju M
 
Adaptive blind multiuser detection under impulsive noise using principal comp...
Adaptive blind multiuser detection under impulsive noise using principal comp...Adaptive blind multiuser detection under impulsive noise using principal comp...
Adaptive blind multiuser detection under impulsive noise using principal comp...
csandit
 
ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...
ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...
ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...
csandit
 
ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...
ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...
ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...
cscpconf
 
Application of bpcs steganography to wavelet compressed video (synopsis)
Application of bpcs steganography to wavelet compressed video (synopsis)Application of bpcs steganography to wavelet compressed video (synopsis)
Application of bpcs steganography to wavelet compressed video (synopsis)
Mumbai Academisc
 

Similar to report (20)

Real Time System Identification of Speech Signal Using Tms320c6713
Real Time System Identification of Speech Signal Using Tms320c6713Real Time System Identification of Speech Signal Using Tms320c6713
Real Time System Identification of Speech Signal Using Tms320c6713
 
Real time signal processing
Real time signal processingReal time signal processing
Real time signal processing
 
Dsp lab manual
Dsp lab manualDsp lab manual
Dsp lab manual
 
dsp.pdf
dsp.pdfdsp.pdf
dsp.pdf
 
The method of comparing two audio files
The method of comparing two audio filesThe method of comparing two audio files
The method of comparing two audio files
 
Dsp ppt
Dsp pptDsp ppt
Dsp ppt
 
The method of comparing two audio files
The method of comparing two audio filesThe method of comparing two audio files
The method of comparing two audio files
 
Basic simulation lab manual1
Basic simulation lab manual1Basic simulation lab manual1
Basic simulation lab manual1
 
Adaptive blind multiuser detection under impulsive noise using principal comp...
Adaptive blind multiuser detection under impulsive noise using principal comp...Adaptive blind multiuser detection under impulsive noise using principal comp...
Adaptive blind multiuser detection under impulsive noise using principal comp...
 
ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...
ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...
ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...
 
ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...
ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...
ADAPTIVE BLIND MULTIUSER DETECTION UNDER IMPULSIVE NOISE USING PRINCIPAL COMP...
 
Chapter2.pptx
Chapter2.pptxChapter2.pptx
Chapter2.pptx
 
Application of bpcs steganography to wavelet compressed video (synopsis)
Application of bpcs steganography to wavelet compressed video (synopsis)Application of bpcs steganography to wavelet compressed video (synopsis)
Application of bpcs steganography to wavelet compressed video (synopsis)
 
Lab manual
Lab manualLab manual
Lab manual
 
SRGM with Imperfect Debugging by Genetic Algorithms
SRGM with Imperfect Debugging by Genetic AlgorithmsSRGM with Imperfect Debugging by Genetic Algorithms
SRGM with Imperfect Debugging by Genetic Algorithms
 
Real Time Speech Enhancement in the Waveform Domain
Real Time Speech Enhancement in the Waveform DomainReal Time Speech Enhancement in the Waveform Domain
Real Time Speech Enhancement in the Waveform Domain
 
DSP 2.pdf
DSP 2.pdfDSP 2.pdf
DSP 2.pdf
 
Chaotic signals denoising using empirical mode decomposition inspired by mult...
Chaotic signals denoising using empirical mode decomposition inspired by mult...Chaotic signals denoising using empirical mode decomposition inspired by mult...
Chaotic signals denoising using empirical mode decomposition inspired by mult...
 
Rsa Signature: Behind The Scenes
Rsa Signature: Behind The Scenes Rsa Signature: Behind The Scenes
Rsa Signature: Behind The Scenes
 
Fast Fourier Transform (FFT) of Time Series in Kafka Streams
Fast Fourier Transform (FFT) of Time Series in Kafka StreamsFast Fourier Transform (FFT) of Time Series in Kafka Streams
Fast Fourier Transform (FFT) of Time Series in Kafka Streams
 

report

  • 1. A PROJECT REPORT ON Beat Detection By Aditya Gudipudi (930111-2919) Rohit Raghav (951228-P297) Kunadha Raju R V Krishnam raju (931113-7971) Avinash Goud Chekkilla (931218-2430)
  • 2. Contents 1. Abstract 2. Software 3. Hardware 4. Conclusion
  • 3. Chapter 1 Abstract In signal analysis, beat detection is detecting the beats in a musical tone using computerized software. Feeling the beat of a song comes naturally to humans. Indeed it is only a feeling one gets when listening to a melody. There can be several methods in beat detection, but entirely dependent on speed hand accuracy. The project is a demonstration of variation of leds in accordance to the beats in a music note with the help of a digital signal processor. We will study the variation of beats on a streaming source and calculating its beats per minute. The Project aims to know how the codes of these various algorithms work and be able to adapt and create necessary changes in the code to meet the necessity.
  • 4. CHAPTER 2 Software Used: 1. Matlab 2014 2. Visual Dsp++ 5.0 MATLAB We first take an audio signal as an input and then divide the signal into equal block sizes. Zeros are padded and the energy of the audio signal is computed, then we later computed the FFT of the signal. We get the figure of the various energy signal. Then the whole audio signal is converted to BPM (beats per minute), then we plot the signal for the absolute FFT. After we run the program all the necessary plots are obtained which show the drops in the beats and show its variation which is used to detect the beat. Matlab code and graphs obtained are shown below: Code: clc; close all; [x,fs] = audioread('C:Usersrohit kDesktoptoms.wav'); m=buffer(x,100); [M,N]=size(m); p=zeros(N,1); penergy=zeros(N,1); alpha=0.95; for i=2:N penergy(i)=sum(m(:,i).^2)/M; p(i)=alpha*(p(i-1))+(1-alpha)*penergy(i); end figure(1), x1=(abs(fft(penergy))); s=0:2852-1;
  • 5. bpm= 60*( s./6.46); plot(bpm,x1) xlabel('beats per minute'); ylabel('Frequency'); figure(2), plot(abs(fft(p))) figure(3),plot(penergy); figure(4),plot(p); Matlab Output: Figure 1
  • 7. Figure 4 Visual Dsp ++ 5.0 The Matlab code is then represented in C logic. It is then compiled using Visual Dsp 5 ++, an Environment highly compatible for compiling the C logic into the Dsp processer. The processor used in our project is ADSP 21262. It is a SHARC processor which is used in speech, sound and various signal processing applications. C code used for implementation of our project is shown below.
  • 8. Chapter 3 Hardware Setup: The various hardware components used in the project: Sennheiser HD515 Head Phones Computer System ADSP 21262 Sharc Processor Usb Data Cable ADZS-HPUSB-ICE Emulator Power Adaptor Circuit Setup: The Power Input is given to the Emulator and another power adaptor is used to power the Sharc Processor. An Usb Data Cable is connected to the emulator which acts as an interface between the Visual Dsp software and the processor hardware. A cable from the HPUSB-Ice emulator is connected to the processor. An Audio input is given to the processor and the output is taken from the processor device and given to the speaker output to test the processor working condition. If you get the same output as given by input simultaneously, the dsp is in working condition.
  • 9. CHAPTER 4 CONCLUSION We have observed the variation of led in accordance with the variation of beats to the supplied input Music Audio signal found by calculating the fast Fourier transform of the power spectral density of the given signal.