Linear Recurrence Relations in Music By Chris Hall.

Slides:



Advertisements
Similar presentations
MathCAD Data.
Advertisements

General Linear Model With correlated error terms  =  2 V ≠  2 I.
Applied Informatics Štefan BEREŽNÝ
Lect.3 Modeling in The Time Domain Basil Hamed
Slide deck by Dr. Greg Reese Miami University MATLAB An Introduction With Applications, 5 th Edition Dr. Amos Gilat The Ohio State University Chapter 3.
Fundamentals of Data Analysis Lecture 12 Methods of parametric estimation.
Chapter 9 – Network Theorems
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Statistics: Data Analysis and Presentation Fr Clinic II.
Lecture 27: Graph Theory in Circuit Analysis Suppose we wish to find the node voltages of the circuit below. We know how to do this by hand. For large-scale.
T T18-05 Trend Adjusted Exponential Smoothing Forecast Purpose Allows the analyst to create and analyze the "Trend Adjusted Exponential Smoothing"
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Ordinary least squares regression (OLS)
Monica Garika Chandana Guduru. METHODS TO SOLVE LINEAR SYSTEMS Direct methods Gaussian elimination method LU method for factorization Simplex method of.
CSE554SimplificationSlide 1 CSE 554 Lecture 7: Simplification Fall 2014.
Matrix Mathematics in MATLAB and Excel
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
Chapter 15 Fourier Series and Fourier Transform
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
1 Chapter 3 Matrix Algebra with MATLAB Basic matrix definitions and operations were covered in Chapter 2. We will now consider how these operations are.
1 Chapter 2 Matrices Matrices provide an orderly way of arranging values or functions to enhance the analysis of systems in a systematic manner. Their.
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
1 Calculating Polynomials We will use a generic polynomial form of: where the coefficient values are known constants The value of x will be the input and.
Chapter 10 Review: Matrix Algebra
Computer Engineering Majors Authors: Autar Kaw
1. 2 Overview of the Previous Lecture Gap-QS[O(n), ,2|  | -1 ] Gap-QS[O(1), ,2|  | -1 ] QS[O(1),  ] Solvability[O(1),  ] 3-SAT This will imply a.
Presentation on Matrices and some special matrices In partial fulfillment of the subject Vector calculus and linear algebra ( ) Submitted by: Agarwal.
Linear Codes.
Presentation by: H. Sarper
ELECTRICAL TECHNOLOGY EET 103/4
Chapter 8. Section 8. 1 Section Summary Introduction Modeling with Recurrence Relations Fibonacci Numbers The Tower of Hanoi Counting Problems Algorithms.
1 Channel Coding (II) Cyclic Codes and Convolutional Codes.
Simplex method (algebraic interpretation)
Analysis of Algorithms
1. Definition and General Structure 2. Small Example 1 3. Simplified Structure 4. Short Additional Examples 5. Full Example 2 6. Common Error The for loop.
Basic Concepts in Number Theory Background for Random Number Generation 1.For any pair of integers n and m, m  0, there exists a unique pair of integers.
Modern Navigation Thomas Herring
Chapter 3 Solution of Algebraic Equations 1 ChE 401: Computational Techniques for Chemical Engineers Fall 2009/2010 DRAFT SLIDES.
SUPA Advanced Data Analysis Course, Jan 6th – 7th 2009 Advanced Data Analysis for the Physical Sciences Dr Martin Hendry Dept of Physics and Astronomy.
Progress in identification of damping: Energy-based method with incomplete and noisy data Marco Prandina University of Liverpool.
AGC DSP AGC DSP Professor A G Constantinides©1 Hilbert Spaces Linear Transformations and Least Squares: Hilbert Spaces.
Solving Linear Systems of Equations
CSE554SimplificationSlide 1 CSE 554 Lecture 7: Simplification Fall 2013.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 4. Least squares.
Colorado Center for Astrodynamics Research The University of Colorado 1 STATISTICAL ORBIT DETERMINATION ASEN 5070 LECTURE 11 9/16,18/09.
A n = c 1 a n-1 + c2an-2 + … + c d a n-d d= degree and t= the number of training data (notes) The assumption is that the notes in the piece are generated.
AGC DSP AGC DSP Professor A G Constantinides©1 Signal Spaces The purpose of this part of the course is to introduce the basic concepts behind generalised.
ADALINE (ADAptive LInear NEuron) Network and
1  The Problem: Consider a two class task with ω 1, ω 2   LINEAR CLASSIFIERS.
1 EEE 431 Computational Methods in Electrodynamics Lecture 18 By Dr. Rasime Uyguroglu
1  Problem: Consider a two class task with ω 1, ω 2   LINEAR CLASSIFIERS.
The parity bits of linear block codes are linear combination of the message. Therefore, we can represent the encoder by a linear system described by matrices.
Error Detection and Correction – Hamming Code
International Iran conference on Quantum Information September 2007, Kish Island Evaluation of bounds of codes defined over hexagonal and honeycomb lattices.
Fall 2006AE6382 Design Computing1 Advanced Matrix Applications in Matlab Now we’ll show a few relatively simple examples to illustrate some of the powerful.
Objectives: Students will be able to… Determine the number of zeros of a polynomial function Find ALL solutions to a polynomial function Write a polynomial.
Elements of Datapath for the fetch and increment The first element we need: a memory unit to store the instructions of a program and supply instructions.
Section 2.1 Determinants by Cofactor Expansion. THE DETERMINANT Recall from algebra, that the function f (x) = x 2 is a function from the real numbers.
Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar Dr Nazir A. Zafar Advanced Algorithms Analysis and Design.
10.4 Matrix Algebra. 1. Matrix Notation A matrix is an array of numbers. Definition Definition: The Dimension of a matrix is m x n “m by n” where m =
Fundamentals of Data Analysis Lecture 11 Methods of parametric estimation.
President UniversityErwin SitompulSMI 10/1 Lecture 10 System Modeling and Identification Dr.-Ing. Erwin Sitompul President University
GCSE/IGCSE-FM Functions
Physics 114: Lecture 13 Probability Tests & Linear Fitting
Algorithm An algorithm is a finite set of steps required to solve a problem. An algorithm must have following properties: Input: An algorithm must have.
5.2 Least-Squares Fit to a Straight Line
Linear Recurrence Relations in Music
Maths for Signals and Systems Linear Algebra in Engineering Lectures 4-5, Tuesday 18th October 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN.
Presentation transcript:

Linear Recurrence Relations in Music By Chris Hall

The Aim of My Project The goal was to take a composition by Beethoven and generate a linear recurrence relation that best represents the tonality of the music. Sonata No. 1, Op. 12 in D Major

Linear Recurrence Relations x n = a 1 x n-1 + a 2 x n-2 + … + a k x n-k

Premises only the melodic line was used; no chords. This allows the counting of only a single note at a time. The range of notes used was restricted to the audible range as determined by MIDI: Z 128. The value of a single note was determined by MIDI format with middle C being 60. All notes were sequentially valued based on their pitch relative to the pitch of the notes immediately above and below (i.e. if E is 20, D# is 19 and F is 21).

What was investigated The degree of the recurrence relation The range for coefficients The best algorithm for finding the relation The best-fit solution

Establishing the quality of results The standard deviation of the original set of notes was considered the maximum allowable error for the notes being generated by the relation. The calculated errors considered for comparison were the square errors of the generated notes from the original notes. The average square error of all the notes generated was then compared to the standard deviation of the original note set. Only those errors below the standard deviation were considered acceptable. The highest quality results were considered to be acceptable results with the farthest distance from the standard deviation.

The Method The first avenue taken was to consider the same number of equations as unknowns, where the unknowns were the coefficients of the recurrence relation. Like all following methods, MATLAB was used to generate notes, errors and comparisons. The MATLAB program was written to allow the user to enter in their desired degree of relation (which corresponds to the number of unknowns). For the sake of comparison, more than one degree could be entered at a time. The program then produces a series of average square errors on a graph that correspond to the number of equations used, the theory behind which will be discussed a bit later.

The First Program

Using more equations In order to vary the number of equations used, the least squares method was used. Because the rank of each matrix was full, a unique solution could be obtained. Moreover, since the function considered was the sum of the square errors, the Hessian Matrix of the function was always a multiple of the product of the matrix with its transpose.

A simple 4x2 example

Other definitive information I know that the point zero is a local minimum because the Hessian Matrix of my original function is positive definite.

The Discreet Case The next path for investigation was to analyze coefficients with discreet rather than continuous ranges. It should be noted that these ranges included but were not limited to finite fields. Since the notes themselves were elements of finite range (remember, Z 128 ) the ranges for the coefficient vectors investigated were covered by the range of the notes

The Discreet Case cont’d Another MATLAB program was written that allowed the user to input a desired range of coefficients and the desired number of equations. For reasons to be discussed shortly, only degrees two and three were used. In the degree two case, the square errors were calculated in arrays for all possible combinations of the range of coefficients and then stored in a square matrix that was Range(C)xRange(C) for comparison. The output is the coefficient vector along with the least square error. A graph is also generated that compares the original note set along the total number of notes use with the generated notes. The difference in the degree three case was in the storage of the square errors. In this case, three dimensional storage was required.

The Discreet Program

Output for Range 3 with 10 Equations

Testing With an Actual Recurrence Relation An actual recurrence relation was written to test the program. When the chosen range covered the range of the original coefficients, the program generated the sequence exactly. Otherwise, it produced a best approximation.

Test with [1,4,6] as the Coefficient Vector and a Range of 5 with 7 Equations

Test with [1,4,6] as the Coefficient Vector and a Range of 7 with 7 Equations

Future Work For more discreet analysis, writing a MATLAB program that allows for the continual expansion of the degree should be done. Applying the same methods to other, perhaps less complex, pieces of music (portions of Pachelbel’s Cannon in D Major, for instance). For musical analysis, writing a MATLAB program that would export the generated notes, replacing the originals in the original MIDI file. We might not be producing Beethoven, but it might still be musically interesting.

References Steven J. Leon, Linear Algebra With Applications. 7 ed. pp.51, , (2006). C.W. Groetsch and J. Thomas King, Matrix Methods & Applications. pp , 283 (1988). Carla D. Martin, PhD, James Madison University. Ken Schutte, Massachusetts Institute of Technology Mei Chen, PhD, The Military College of South Carolina