Musical Representations of the Fibonacci String and Proteins Using Mathematica

Similar documents
INTRODUCTION TO GOLDEN SECTION JONATHAN DIMOND OCTOBER 2018

Prehistoric Patterns: A Mathematical and Metaphorical Investigation of Fossils

The Bartók Controversy

Ruta Vitkauskaite. Fairies and Elephants for flexible ensemble

Fun with Fibonacci Numbers: Applications in Nature and Music

Norman Public Schools MUSIC ASSESSMENT GUIDE FOR GRADE 8

DJ Darwin a genetic approach to creating beats

Music, nature and structural form

THE BASIS OF MOLECULAR GEOMETRY: POLYGONS, PYRAMIDS AND PRISMS

Wednesday, April 14, 2010 COMPUTER MUSIC

Pitch correction on the human voice

Typography & Page Layout

Growing Music: musical interpretations of L-Systems

Computer Music Journal, Vol. 19, No. 2. (Summer, 1995), pp

The following content is provided under a Creative Commons license. Your support

Music Curriculum Kindergarten

Self similar syncopations: Fibonacci, L systems, limericks and ragtime

Lecture 1: What we hear when we hear music

Content Map For Fine Arts - Music

Algorithmic Composition: The Music of Mathematics

Standard 1 PERFORMING MUSIC: Singing alone and with others

Golden Ratio and Its Effect on Handwritings Using Golden Line

Sounds of Music. Definitions 1 Hz = 1 hertz = 1 cycle/second wave speed c (or v) = f f = (k/m) 1/2 / 2

N12/5/MATSD/SP2/ENG/TZ0/XX. mathematical STUDIES. Wednesday 7 November 2012 (morning) 1 hour 30 minutes. instructions to candidates

PRECEDING PAGE BLANK NOT t_ilmed

School District of Palm Beach County COURSE DESCRIPTION - GRADES 6-8

Harmony, the Union of Music and Art

Connecticut State Department of Education Music Standards Middle School Grades 6-8

SENSE AND INTUITION IN MUSIC (ARGUMENTS ON BACH AND MOZART)

Melody Extraction from Generic Audio Clips Thaminda Edirisooriya, Hansohl Kim, Connie Zeng

Please fax your students rhythms from p.7 to us AT LEAST THREE DAYS BEFORE the video conference. Our fax number is

K-12 Performing Arts - Music Standards Lincoln Community School Sources: ArtsEdge - National Standards for Arts Education

MorpheuS: constraining structure in automatic music generation

ILLINOIS LICENSURE TESTING SYSTEM

DEPARTMENT OF FINE & PERFORMING ARTS Symphonic Band Curriculum Map

Music. Last Updated: May 28, 2015, 11:49 am NORTH CAROLINA ESSENTIAL STANDARDS

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output

Roche Court Seminars

Similarity and Categorisation in Boulez Parenthèse from the Third Piano Sonata: A Formal Analysis.

Music Curriculum Map

Music Curriculum Maps Revised 2016 KINDERGARTEN

COMMUNITY UNIT SCHOOL DISTRICT 200

An analysis of beauty as it is related to the ratio 1:1.618

Building a Better Bach with Markov Chains

Game of Life music. Chapter 1. Eduardo R. Miranda and Alexis Kirke

Sudhanshu Gautam *1, Sarita Soni 2. M-Tech Computer Science, BBAU Central University, Lucknow, Uttar Pradesh, India

COURSE: Elementary General Music

Acoustic and musical foundations of the speech/song illusion

Automatic Composition from Non-musical Inspiration Sources

Music Composition with RNN

PERFORMING ARTS Curriculum Framework K - 12

Observations and Thoughts on the Opening Phrase of Webern's Symphony Op.21. Mvt. I. by Glen Charles Halls. (for teaching purposes)

Automated extraction of motivic patterns and application to the analysis of Debussy s Syrinx

MUSIC CURRICULUM FRAMEWORK 1 Based on UbD Template 2.0 (2011): Stage 1 Desired Results

THE GOLDEN SECTION AND PRODUCT DESIGN

LFSRs as Functional Blocks in Wireless Applications Author: Stephen Lim and Andy Miller

Benchmarks: Perform alone on instruments (or with others) a varied repertoire Perform assigned part in an ensemble

6 th Grade Instrumental Music Curriculum Essentials Document

A Model of Musical Motifs

(Refer Slide Time: 2:05)

A Model of Musical Motifs

Jazz Melody Generation from Recurrent Network Learning of Several Human Melodies

ALGEBRAIC PURE TONE COMPOSITIONS CONSTRUCTED VIA SIMILARITY

Third Grade Music Curriculum

SACRED GEOMETRY: DECIPHERING THE CODE BY STEPHEN SKINNER DOWNLOAD EBOOK : SACRED GEOMETRY: DECIPHERING THE CODE BY STEPHEN SKINNER PDF

2016 HSC Music 1 Aural Skills Marking Guidelines Written Examination

WASD PA Core Music Curriculum

THE INTERACTION BETWEEN MELODIC PITCH CONTENT AND RHYTHMIC PERCEPTION. Gideon Broshy, Leah Latterner and Kevin Sherwin

TEST SUMMARY AND FRAMEWORK TEST SUMMARY

The Rhythm of a Pattern

Analysis of Different Pseudo Noise Sequences

MUSIC THEORY CURRICULUM STANDARDS GRADES Students will sing, alone and with others, a varied repertoire of music.

The beauty of numbers

NETFLIX MOVIE RATING ANALYSIS

BAND Grade 7. NOTE: Throughout this document, learning target types are identified as knowledge ( K ), reasoning ( R ), skill ( S ), or product ( P ).

Power Standards and Benchmarks 3 rd Grade

Storyboard. Look Closer. Fannin Musical Productions Storyboard by Jason Shelby (270)

Curriculum Development In the Fairfield Public Schools FAIRFIELD PUBLIC SCHOOLS FAIRFIELD, CONNECTICUT MUSIC THEORY I

UNIT OBJECTIVES: Students will be able to. STATE STANDARDS: #9.1.3 Production, Performance and Exhibition of Music Sing Read music

Synthesis of Sequential Reversible Circuits through Finite State Machine

5 th Grade General Music Benchmarks

Elementary Music Curriculum Objectives

Analysis and Clustering of Musical Compositions using Melody-based Features

Curriculum Standard One: The student will listen to and analyze music critically, using the vocabulary and language of music.

COMPOSING MUSIC WITH COMPLEX NETWORKS

Proceedings of the Third International DERIVE/TI-92 Conference

PRESCOTT UNIFIED SCHOOL DISTRICT District Instructional Guide January 2016

MATHEMATICAL APPROACH FOR RECOVERING ENCRYPTION KEY OF STREAM CIPHER SYSTEM

Music and Mathematics: On Symmetry

KINDERGARTEN GENERAL MUSIC

World Music. Music of Africa: choral and popular music

Greenwich Music Objectives Grade 2 General Music

Comparison of Dictionary-Based Approaches to Automatic Repeating Melody Extraction

Grade One General Music

Visual Arts, Music, Dance, and Theater Personal Curriculum

Data Mining. Dr. Raed Ibraheem Hamed. University of Human Development, College of Science and Technology Department of CS

1. Takadimi method. (Examples may include: Sing rhythmic examples.)

Visual and Aural: Visualization of Harmony in Music with Colour. Bojan Klemenc, Peter Ciuha, Lovro Šubelj and Marko Bajec

How can recurring patterns and forms found in nature be explained mathematically and why are humans visually drawn to recreating these patterns?

MMSD 6-12 th Grade Level Choral Music Standards

Transcription:

Paper #55 Musical Representations of the Fibonacci String and Proteins Using Mathematica I) Fibonacci Strings. Erik Jensen 1 and Ronald J. Rusay 1, 2 1) Diablo Valley College, Pleasant Hill, California 94523 2) University of California, Berkeley 94720 The Fibonacci Sequence is a list of numbers derived from a mathematical model for the population growth of rabbits published by Leonardo da Piza (Fibonacci) in the early thirteenth century. The model assumes that the system starts with one young pair of rabbits, one male and one female. The young pair matures and then produces another young pair as offspring. No rabbits die. If a young pair is represented by 0, and a mature pair by 1, then the succession of generations can be represented by the following recursive mapping: 0->1, 1->10. Starting with 0, this endomorphism can be iterated ad infinitum to compose a string which represents the growth of a population. 1 Iteration String Total # of pairs 0 {0} 1 1 {1} 1 2 {10} 2 3 {101} 3 4 {10110} 5 5 {10110101} 8 The sequence of Fibonacci numbers (total # of pairs) and Fibonacci-like sequences are characteristic of many natural systems. There are many examples of the same repetitive pattern which is observed in the breeding of rabbits, such as the morphology of plants and flowers: buttercups have 5 petals, lilies have 3, delphiniums have 8, marigolds have 13, asters have 21 and so forth. Other examples are also observed in nature with this numerical pattern such as a pine cone, snail shell, and nautilus shell in the proportions of their spirals. 2 The Fibonacci string is aperiodic. Given that the length of one space is equal to the length of the substring (L) minus 1 when L > 1, and the length of one space = 1 when L = 1; substrings of any size repeat with spaces between them equal to {1,0,1,1,0.} in succession. This sequence is the Fibonacci string, itself. Thus, the Fibonacci string exhibits self-similarity, a type of symmetry. 1 The following Mathematica algorithm demonstrates this property of self-similarity in the Fibonacci string: A = "1 0 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 1 0 1 10 1 0 1 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 0 1 0 11 0 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 1" a = (2Range[25-1]); b=drop[(2(range[25])-1)1]; B=Flatten[StringPosition[A,"10"] x=(1/2)(part[b,b]-part[b,a])

x/.{(1/2)->1} This algorithm creates a list of the positions for each character in a substring of the first 25 "10" substrings and condenses it into one list. {1, 2, 4, 5, 6,7 } or {y 1, z 1, y 2, z 2, y 3, z 3 } where y= character 1 of "10" "1 0" 1 "1 0" 2 "1 0" 3 z= character 2 of "10" The equation [y n - z (n-1) ] / 2 ; {n n = an integer > or =2} is applied to the list of substring character positions for increasing values of n. If there are no spaces between "1 0" n and "1 0" (n-1), then the corresponding value in the string created by step 2 is 1/2. If there is one space between "1 0" n and "1 0" (n-1), then the corresponding value generated by step two is 1. When the transformation (1/2) -> 0 is performed on the previous string, the Fibonacci string re-emerges. The Mathematica algorithm written to create music from the Fibonacci string employs the following steps: 1) Generation of a string of a particular length. The length of the string determines the length of the song. The total number of characters must be divisible by the total number of substrings. The total number of characters can be determined by the equation: F = (G -n ) / (5) 1/2 1. Where F is rounded down to the nearest integer. 2. G = ([square root of 5] - 1) / 2 = Golden Mean 3. n = the level the string is composed to: for iteration 0, n = 1; for iteration 1, n=2; for iteration 2, n=3; and so forth. 3 2) Division of the string into substrings of a particular length. The choice of substring length is arbitrary. Different lengths will yield different musical characteristics. A longer substring yields more complex music since there are more possible combinations of characters and therefore more possible substrings. Comparison of songs based on substrings of different lengths reveals the organizational characteristics of the string. 3) Assignment of note duration and pitch to the substrings. Although there are no explicit mathematical rules for assigning sound characteristics to substrings in the string, a logical ordering of the substrings based

on the patterns of their characters is the criteria by which notes of increasing frequency are assigned. Two parallel scales have been applied. In one scale, each of the notes is played for a shorter duration and with a different tonal quality. All of the substrings that begin with 0 are apportioned to one scale, and all of the substrings that begin with 1 belong to the other. A simple example follows: SCALE 1 SCALE 2 Substring Note Duration Substring Note Duration {10101} C.5 sec {01010} C.75 sec {10110} D.5 sec {01011} D.75 sec {11010} E.5 sec {01101} E.75 sec There is not always the same number of substrings per group. Note that in the Fibonacci string there are never more than two 1's in succession nor more than one 0 in succession. An additional tonal dimension is added by employing two groups of tonal qualities within one of the scales based on patterns of the characters in the substrings. This simple system creates music with rhythmic and melodic properties. The degree to which the order and musical properties of the song describe or correspond to order within the Fibonacci string is dependent on the means by which notes and duration are assigned to substrings. Different logical orderings yield music with many different properties, and to an extent show ordered similarities. One way to determine the extent to which the music describes the order of the Fibonacci string is to analyze a randomized set of substrings through the algorithm. Any significant differences in the resultant music must be caused by the order within the Fibonacci string. The algorithm does not employ any permutations of the string. Thus, the music is based on the order of characters in the Fibonacci string. Since the string is self-similar, the music may reflect inherent symmetry. 4) Playing the sequence of notes. The notes are played in succession with standard Mathematica commands. The music package is not necessary for this step or any other step of the program.

The following algorithm was used to create music from the Fibonacci string based on seven character substrings. The scale chosen is C minor. x={1,0}; Flatten[ReplaceRepeated[0,{0->1,1->x},MaxIterations->16]] \[Phi]=Partition[%,7] a={0,1,0,1,0,1,0}; b={0,1,0,1,0,1,1}; c={0,1,0,1,1,0,1}; d={0,1,1,0,1,0,1}; e={0,1,1,0,1,1,0}; f={1,0,1,0,1,0,1}; g={1,0,1,0,1,1,0}; h={1,0,1,1,0,1,0}; i={1,0,1,1,0,1,1}; j={1,1,0,1,0,1,0}; k={1,1,0,1,0,1,1}; l={1,1,0,1,1,0,1}; a'=play[sin[2(pi)262t]-sin[2(pi)263t],{t,0,.5}]; b'=play[sin[2(pi)294t]-sin[2(pi)295t],{t,0,.5}]; c'=play[sin[2(pi)311t]-sin[2[(pi)312t],{t,0,.5}]; d'=play[sin[2(pi)349t]-sin[2(pi)350t],{t,0,.5}]; e'=play[sin[2(pi)392t]-sin[2(pi)393t],{t,0,.5}]; f'=play[abs[sin[2(pi)262t]],{t,0,.35}]; g'=play[abs[sin[2(pi)294t]],{t,0,.35}]; h'=play[abs[sin[2(pi)311t]],{t,0,.35}]; i'=play[abs[sin[2(pi)349t]],{t,0,.35}]; j'=play[sin[2(pi)392t],{t,0,.35}]; k'=play[sin[2(pi)415t],{t,0,.35}]; l'=play[sin[2(pi)466t],{t,0,.35}]; Show[\[Phi]/.{a->a',b->b',c->c',d->d',e->e',f->f',g->g',h->h',i->i',j- >j',k->k',l->l'}] II. Music based on the sequence of amino acids in a protein. A program, which is very similar to the one just shown, is used to create music from the primary structure of proteins. Twenty different amino acids are usually observed in a protein. A note and duration is assigned to each of the amino acids on the basis of their physical and chemical characteristics. Increasing pitch corresponds to increasing complexity of the substituted side chain in the acid. A dual scale, which is variable, is divided on the basis of the polarity of the molecules. Different assignments will produce different musical characteristics. For example, pitch can be assigned on a relative basis to the molecule s atomic weight rather than the amino acid side chain. This will produce different music. The goal is to develop sounds which capture as much as possible of the structural and chemical information of the amino acid sequence so that the macromolecule, the protein, may be recognizable by its musical signature. Each protein has a unique amino acid sequence. Similarities in primary structure will be reflected by similarities in their

corresponding songs. A sample has been produced in C minor which is based on a portion of the enzymatic protein, lysozyme. III. Further Possibilities. Music from the Fibonacci string based on substrings of different lengths combined melodically into one song. The resultant music could reveal different characteristics of order within the string. Music from: 1) Strings that occur in mathematical problems (e.g. Tower of Hanoi and Lucas Number). 2) Strings that represent socio-economic behavior such as stock market indices and consumer prices. Combining related strings into a single composition: For example, the amino acid sequence of a protein and its corresponding DNA sequence being played simultaneously. A harmonious synchronization of notes between the two strings could be produced where the DNA sequence serves as a rhythmic percussion sequence. Web Bibliography: 1) http://www.ee.surrey.ac.uk/personal/r.knott/fibonacci/fibrab.html 2) http://www.ee.surrey.ac.uk/personal/r.knott/fibonacci/fibnat.html 3) http://www.ee.surrey.ac.uk/personal/r.knott/fibonacci/fibformula.html Other related resources: http://ep.llnl.gov/msds/music/midi-dna.html http://www.math.holycross.edu/~davids/fibonacci/fibonacci.html http://ulcar.uml.edu/~iag/cs/fibonacci.html http://pass.maths.org.uk/issue3/fibonacci/index.html