Design of a Guitar Tab Player in MATLAB Summary Lecture Module 1: Modeling a Guitar Signal.

Slides:



Advertisements
Similar presentations
4.1Different Audio Attributes 4.2Common Audio File Formats 4.3Balancing between File Size and Audio Quality 4.4Making Audio Elements Fit Our Needs.
Advertisements

Information Sources And Signals
CMPS1371 Introduction to Computing for Engineers PROCESSING SOUNDS.
EE2F2 - Music Technology 9. Additive Synthesis & Digital Techniques.
Intro to Spectral Analysis and Matlab. Time domain Seismogram - particle position over time Time Amplitude.
The frequency spectrum
1 Lecture 27 Physical Layer (Data and Signals) University of Nevada – Reno Computer Science & Engineering Department Fall 2010 CPE 400 / 600 Computer Communication.
Chapter 7 Principles of Analog Synthesis and Voltage Control Contents Understanding Musical Sound Electronic Sound Generation Voltage Control Fundamentals.
Image and Sound Editing Raed S. Rasheed Sound What is sound? How is sound recorded? How is sound recorded digitally ? How does audio get digitized.
Computability and Complexity 20-1 Computability and Complexity Andrei Bulatov Random Sources.
Digital Voice Communication Link EE 413 – TEAM 2 April 21 st, 2005.
Signals Processing Second Meeting. Fourier's theorem: Analysis Fourier analysis is the process of analyzing periodic non-sinusoidal waveforms in order.
EET 450 Chapter 18 – Audio. Analog Audio Sound is analog Consists of air pressure that has a variety of characteristics  Frequencies  Amplitude (loudness)
EE2F1 Speech & Audio Technology Sept. 26, 2002 SLIDE 1 THE UNIVERSITY OF BIRMINGHAM ELECTRONIC, ELECTRICAL & COMPUTER ENGINEERING Digital Systems & Vision.
Chapter 14 Recording and Editing Sound. Getting Started FAQs: − How does audio capability enhance my PC? − How does your PC record, store, and play digital.
Advanced Lecture. Audio Distortion  Distortion is the name given to anything that alters a pure input signal in any way other than changing its magnitude.
Fundamentals of Digital Audio. The Central Problem n Waves in nature, including sound waves, are continuous: Between any two points on the curve, no matter.
Joshua “Rock Star” Jenkins Jeff “Tremolo” Smith Jairo “the boss” Rojas
Digital Audio Multimedia Systems (Module 1 Lesson 1)
Basic Acoustics + Digital Signal Processing September 11, 2014.
Vibrations, Waves and Sound
infinity-project.org Engineering education for today’s classroom 53 Design Problem - Digital Band Build a digital system that can create music of any.
A Brief Exploration of Electronic Music and its Theory By: Zac Changnon.
 Continuous sequence of vibrations of air  (Why no sound in space? Contrary to Star Wars etc.)  Abstraction of an audio wave:  Ear translates vibrations.
Audio Fundamentals Lesson 2 Sound, Sound Wave and Sound Perception
Dr Martin Hendry, Dept of Physics and Astronomy University of Glasgow, UK Astronomical Data Analysis I 11 lectures, beginning autumn 2008.
Numerical algorithms for power system protection Prof. dr. sc. Ante Marušić, doc. dr. sc. Juraj Havelka University of Zagreb Faculty of Electrical Engineering.
Digital audio. In digital audio, the purpose of binary numbers is to express the values of samples that represent analog sound. (contrasted to MIDI binary.
Digital Audio What do we mean by “digital”? How do we produce, process, and playback? Why is physics important? What are the limitations and possibilities?
McGraw-Hill©The McGraw-Hill Companies, Inc., 2001 Data Transmission Techniques Data to be transmitted is of two types 1.Analog data 2.Digital data Therefore,
Where we’re going Speed, Storage Issues Frequency Space.
Lab #8 Follow-Up: Sounds and Signals* * Figures from Kaplan, D. (2003) Introduction to Scientific Computation and Programming CLI Engineering.
Lecture 1 Introduction to Electronics Rabie A. Ramadan
Mr. Thilak de Silva. BSc. Eng., MSc, CEng, FIE(SL), FIET(UK), CITP(UK), MBCS(UK), MIEEE (USA) M.Sc. in IT - Year 1 Semester II
EE 319K Introduction to Microcontrollers
Computing with Digital Media: A Study of Humans and Technology Mark Guzdial, School of Interactive Computing.
“TMS320C5505 USB Stick Teaching Materials”
Chapter 15 Outline Mechanical Waves
Motivation Music as a combination of sounds at different frequencies
Physics 1251 The Science and Technology of Musical Sound Unit 4 Session 37 MWF Synthesizers Unit 4 Session 37 MWF Synthesizers.
Harmonics. Introduction Harmonic is obtained by a method of playing stringed instruments - playing the instrument while holding a finger against the string,
Han Q Le© ECE 3336 Introduction to Circuits & Electronics Lecture Set #9 Linear Circuit-Fourier-Digital Dr. Han Le ECE Dept.
EE210 Digital Electronics Class Lecture 2 March 20, 2008.
Chapter 15 Recording and Editing Sound. 2Practical PC 5 th Edition Chapter 15 Getting Started In this Chapter, you will learn: − How sound capability.
ECE 1100: Introduction to Electrical and Computer Engineering Dr. Dave Shattuck Associate Professor, ECE Dept. Set #8 – Sinusoids, Paradigms and Electronics.
Digital Recording. Digital recording is different from analog in that it doesn’t operate in a continuous way; it breaks a continuously varying waveform.
EE 113D Fall 2008 Patrick Lundquist Ryan Wong
SuperCollider Sounds, Interactive Visuals By Simon Katan For Openlab Workshops
Complex Auditory Stimuli
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2009.
Chapter 12 The Principles of Computer Music Contents Digital Audio Processing Noise Reduction Audio Compression Digital Rights Management (DRM)
ENGI 1100, November 2005 Dr. Dave Shattuck Associate Professor Electrical and Computer Engineering Department Sinusoids, Paradigms and Electronics
Sonia Hingorany & Liza Cyriac EE113D – Professor Rajeev Jain & TA Rick Huang– Winter 2008.
What’s that scale?? 1 Note Grades should be available on some computer somewhere. The numbers are based on the total number of correct answers, so 100%
Hearing: Physiology and Psychoacoustics 9. The Function of Hearing The basics Nature of sound Anatomy and physiology of the auditory system How we perceive.
Chapter 21 Musical Sounds.
Automatic Equalization for Live Venue Sound Systems Damien Dooley, Final Year ECE Progress To Date, Monday 21 st January 2008.
Encoding How is information represented?. Way of looking at techniques Data Medium Digital Analog Digital Analog NRZ Manchester Differential Manchester.
Engineering Vocabulary By: David Flores. Additive Synthesis A synthesis technique that creates a periodic signal by adding sinusoids together.
Sampling of Continuous-Time Signals Quote of the Day Optimist: "The glass is half full." Pessimist: "The glass is half empty." Engineer: "That glass is.
Closed Pipe Pipe closed at ONE end: closed end pressure antinode air press. L = /4 L.
Signal Analyzers. Introduction In the first 14 chapters we discussed measurement techniques in the time domain, that is, measurement of parameters that.
3.3 Waves and Stuff Science of Music 2007 Last Time  Dr. Koons talked about consonance and beats.  Let’s take a quick look & listen at what this means.
Design of a Guitar Tab Player in MATLAB Background Lecture
MATHS IN MUSIC.
Unit 2 Discrete System 中華技術學院電子系 蔡樸生 副教授 林盈灝 副教授.
Lifecycle from Sound to Digital to Sound. Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre Hearing: [20Hz – 20KHz] Speech: [200Hz.
CS 591 S1 – Computational Audio
Analog to Digital Encoding
An Android Application to Evaluate Piano Playing Using Fast Fourier Transform (FFT) Algorithm Green Mandias1, Andria Wahyudi2, Hendriawan Jumawan3 and.
Presentation transcript:

Design of a Guitar Tab Player in MATLAB Summary Lecture Module 1: Modeling a Guitar Signal

What Was the Problem? To design and implement a guitar tab player Primarily for amateur guitar players Guitar tabs don’t always seem to represent the song Is the amateur player playing it wrong or is the guitar tab wrong? Research shows that there is not exactly such a device available (even if some are very close). If one existed, it could be worthwhile to try to make it better or less expensive.

How Does One Begin? First you need knowledge. In this case you need to learn more about guitar tabs and guitar sounds. However already two steps seem to appear: 1. How to generate the guitar sound automatically without playing the guitar (module 1) 2. How do you translate/enter the guitar tab information so the device can play the music (module 2)

How to Generate Guitar Signals? 1. Using a bunch of analog oscillators 2. Using the computer sound card (speaker output) and creating guitar string waveforms with a program 3. Converting guitar tabs to operate a programmable electronic keyboard 4. Making a robotic arm that could play the guitar Generally one starts by brainstorming some possible solutions and then starts eliminating some of them

Creating Sounds How does one create sounds using the computer? You need a program that can control the sound card (media player and.wav files) or use MATLAB and it sound.m function What goes into a.wav file? PCM, 8000Hz, 16bits mono, or other settings. This means direct samples (no compression algorithm), 8000 samples per second, 16 bits of precision per sample (65536 possible voltage levels), mono for one guitar signal. The sampling rate is therefore very important. You will need to learn more about how the sampling rate is chosen (an engineer should never guess the value!!!)

Sound Card in Windows

Sampling Good amount of samples Not enough samples Sampling Theorem: One must sample at least twice as fast as the highest frequency contained in the signal

Guitar String Theory StringFundamental Frequency Low E82 Hz A110 Hz D147 Hz g196 Hz b247 Hz High e330 Hz A 1, A 2, A 3, A 4, etc are NOT given by the theory

Checking with Measurements Difficult to describe (model) Cannot find A 1, A 2, A 3, A 4, etc from the time waveform. Cannot even tell if this is a sum of harmonic sine functions

Frequency Spectrum Single sinewave Sum of several sinewaves

Fast Fourier Transform

fundamental (82 Hertz) second harmonic (164 Hertz) third harmonic (246 Hertz) forth harmonic (328 Hertz) fifth harmonic (410 Hertz) f = 82 Hz, amplitude = f = 164 Hz, amplitude = f = 246 Hz, amplitude = f = 328 Hz, amplitude = Spectrum of Guitar Signal The values of A 1, A 2, A 3, A 4, etc, can be easily found but we can also check that the frequency spectrum is very consistent with the theory

Checking Model Against Measurements The model does not decay over time as the actual signal does. The model does “sound” close to the actual signal

Improvements Based on the Measurements Addition of a decay function:

Final Model A1A2A3A4A5A6A7A8A9A10 Low E A D g b High e StringFundamental Frequency Low E82 Hz A110 Hz D147 Hz g196 Hz b247 Hz High e330 Hz Using measured A 1, A 2, A 3, A 4, etc for all 144 string/fret combination will not drastically improve the model but will add much more complexity.

Evaluation The model for the guitar string follows a logical method and everything seems to fit. When listening to the model and the actual signal, one cannot hear significant differences. However when running the guitar tab player, one feels that it sounds more like an electronic keyboard than a guitar These differences do not seem to be easy to characterize mathematically. Therefore, it will difficult to improve the model without significant effort and time.

Suitability for the Project The project is not about making the perfect synthesized guitar sound. The project needs a fairly good sound so that the amateur guitar player can recognize the melodies in the song, and in particular check to see if the guitar tab “sounds” strange or not. As a result the amateur player can decide to learn how to play the song with this guitar tab or not. In this case, the model seems adequate.

Importance to Society The project benefits society since a guitar tab player can be used by amateur guitar players to select the best guitar tab to use when learning how to play the guitar. This solution shows how with the current technology (computer sound card), one could use techniques that in the past were not practical such as the use of Fast Fourier Transform to advance our general scientific knowledge.