Representation of musical notation in Haskell Edward Lilley - - PowerPoint PPT Presentation

representation of musical notation in haskell
SMART_READER_LITE
LIVE PREVIEW

Representation of musical notation in Haskell Edward Lilley - - PowerPoint PPT Presentation

Representation of musical notation in Haskell Edward Lilley Institute of Astronomy, University of Cambridge September 9, 2017 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


slide-1
SLIDE 1

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Representation of musical notation in Haskell

Edward Lilley

Institute of Astronomy, University of Cambridge

September 9, 2017

Edward Lilley Representation of musical notation in Haskell

slide-2
SLIDE 2

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Motivation

Edward Lilley Representation of musical notation in Haskell

slide-3
SLIDE 3

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Theory

(Notated) musical pitches are the points on a lattice (Notated) musical intervals connect the points, forming a ‘ee Abelian group’ with two generators

Edward Lilley Representation of musical notation in Haskell

slide-4
SLIDE 4

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Theory

a♮ b♮ c♯ d♯ e♯ f𝄫 g𝄫 a♭ b♭ c♮ d♮ e♮ f♯ g♯ A♯ B♯ a♯ b♯ c𝄫 d𝄫 b𝄬 c♭ d♭ e♭ f♮ g♮ A♮ B♮ d𝄬 e𝄬 f♭ g♭ A♭ B♭

Edward Lilley Representation of musical notation in Haskell

slide-5
SLIDE 5

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Theory

a♮ b♮ c♯ d♯ e♯ f𝄫 g𝄫 a♭ b♭ c♮ d♮ e♮ f♯ g♯ A♯ B♯ a♯ b♯ c𝄫 d𝄫 b𝄬 c♭ d♭ e♭ f♮ g♮ A♮ B♮ d𝄬 e𝄬 f♭ g♭ A♭ B♭

M2 m2

Edward Lilley Representation of musical notation in Haskell

slide-6
SLIDE 6

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Theory

a♮ b♮ c♯ d♯ e♯ f𝄫 g𝄫 a♭ b♭ c♮ d♮ e♮ f♯ g♯ A♯ B♯ a♯ b♯ c𝄫 d𝄫 b𝄬 c♭ d♭ e♭ f♮ g♮ A♮ B♮ d𝄬 e𝄬 f♭ g♭ A♭ B♭

P5 P8

Edward Lilley Representation of musical notation in Haskell

slide-7
SLIDE 7

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Theory

a♮ b♮ c♯ d♯ e♯ f𝄫 g𝄫 a♭ b♭ c♮ d♮ e♮ f♯ g♯ A♯ B♯ a♯ b♯ c𝄫 d𝄫 b𝄬 c♭ d♭ e♭ f♮ g♮ A♮ B♮ d𝄬 e𝄬 f♭ g♭ A♭ B♭

A1 d2

Edward Lilley Representation of musical notation in Haskell

slide-8
SLIDE 8

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Theory

‘Syntonic’ temperaments assign two equency ratios to the two generators ‘Equal’ temperaments project the two dimensions down to one

Edward Lilley Representation of musical notation in Haskell

slide-9
SLIDE 9

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Theory

Pythagorean P5 → 3/2, P8 → 2 ‘Quarter-comma meantone’ M3 → 5/4, P8 → 2 12-equal temperament d2 → 1, P8 → 2 19-equal temperament dd2 → 1, P8 → 2 31-equal temperament dddd3 → 1, P8 → 2

Edward Lilley Representation of musical notation in Haskell

slide-10
SLIDE 10

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Theory

Pythagorean P5 → 3/2, P8 → 2 ‘Quarter-comma meantone’ M3 → 5/4, P8 → 2 12-equal temperament d2 → 1, P8 → 2 19-equal temperament dd2 → 1, P8 → 2 31-equal temperament dddd3 → 1, P8 → 2

Edward Lilley Representation of musical notation in Haskell

slide-11
SLIDE 11

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Implementation

Flexibility (via typeclasses) in what counts as a Pitch, Interval

  • r Duration

A Note is an ordered pair (Pitch, Duration) A Phrase is just a linked list, [Note] A piece of music consists of a Rose tree of musical phrases Internally the preferred lattice basis is (A1, d2) Have to invert a 2 ∗ 2 matrix to calculate tuning map

Edward Lilley Representation of musical notation in Haskell