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

Similar documents
Artificial Intelligence Approaches to Music Composition

Algorithmic Music Composition

Music Composition with Interactive Evolutionary Computation

Music/Lyrics Composition System Considering User s Image and Music Genre

Evolutionary Computation Applied to Melody Generation

Various Artificial Intelligence Techniques For Automated Melody Generation

Building a Better Bach with Markov Chains

A Real-Time Genetic Algorithm in Human-Robot Musical Improvisation

Musical Creativity. Jukka Toivanen Introduction to Computational Creativity Dept. of Computer Science University of Helsinki

TOWARD AN INTELLIGENT EDITOR FOR JAZZ MUSIC

DJ Darwin a genetic approach to creating beats

Music Segmentation Using Markov Chain Methods

Rethinking Reflexive Looper for structured pop music

A Novel Approach to Automatic Music Composing: Using Genetic Algorithm

Frankenstein: a Framework for musical improvisation. Davide Morelli

PLANE TESSELATION WITH MUSICAL-SCALE TILES AND BIDIMENSIONAL AUTOMATIC COMPOSITION

WASD PA Core Music Curriculum

University of Huddersfield Repository

Doctor of Philosophy

Evolutionary jazz improvisation and harmony system: A new jazz improvisation and harmony system

Comparison of Dictionary-Based Approaches to Automatic Repeating Melody Extraction

Improvised Duet Interaction: Learning Improvisation Techniques for Automatic Accompaniment

Jazz Melody Generation from Recurrent Network Learning of Several Human Melodies

Algorithmic Composition: The Music of Mathematics

A PERPLEXITY BASED COVER SONG MATCHING SYSTEM FOR SHORT LENGTH QUERIES

II. Prerequisites: Ability to play a band instrument, access to a working instrument

NCEA Level 2 Music (91275) 2012 page 1 of 6. Assessment Schedule 2012 Music: Demonstrate aural understanding through written representation (91275)

CSC475 Music Information Retrieval

MELONET I: Neural Nets for Inventing Baroque-Style Chorale Variations

Piano Transcription MUMT611 Presentation III 1 March, Hankinson, 1/15

Using machine learning to support pedagogy in the arts

Hidden Markov Model based dance recognition

The Human Features of Music.

PRESCOTT UNIFIED SCHOOL DISTRICT District Instructional Guide January 2016

Analysis of local and global timing and pitch change in ordinary

Automated Accompaniment

Higher National Unit Specification. General information. Unit title: Music: Songwriting (SCQF level 7) Unit code: J0MN 34. Unit purpose.

6.UAP Project. FunPlayer: A Real-Time Speed-Adjusting Music Accompaniment System. Daryl Neubieser. May 12, 2016

Trevor de Clercq. Music Informatics Interest Group Meeting Society for Music Theory November 3, 2018 San Antonio, TX

PRESCOTT UNIFIED SCHOOL DISTRICT District Instructional Guide January 2016

Evolutionary Computation Systems for Musical Composition

Computational Modelling of Harmony

Robert Alexandru Dobre, Cristian Negrescu

A Bayesian Network for Real-Time Musical Accompaniment

Fugue generation using genetic algorithms

Chapter Five: The Elements of Music

Advances in Algorithmic Composition

Figured Bass and Tonality Recognition Jerome Barthélemy Ircam 1 Place Igor Stravinsky Paris France

Computer Coordination With Popular Music: A New Research Agenda 1

Piano Teacher Program

2nd Grade Music Music

Copyright 2009 Pearson Education, Inc. or its affiliate(s). All rights reserved. NES, the NES logo, Pearson, the Pearson logo, and National

Music Composition with RNN

LSTM Neural Style Transfer in Music Using Computational Musicology

Shrewsbury Borough School Visual and Performing Arts Curriculum 2012 Music Grade 1

Jazz Melody Generation and Recognition

Lesson 9: Scales. 1. How will reading and notating music aid in the learning of a piece? 2. Why is it important to learn how to read music?

A Logical Approach for Melodic Variations

PRESCOTT UNIFIED SCHOOL DISTRICT District Instructional Guide January 2016

Considering Vertical and Horizontal Context in Corpus-based Generative Electronic Dance Music

A Case Based Approach to the Generation of Musical Expression

How to Read Just Enough Music Notation. to Get by in Pop Music

Sample assessment task. Task details. Content description. Task preparation. Year level 9

2 2. Melody description The MPEG-7 standard distinguishes three types of attributes related to melody: the fundamental frequency LLD associated to a t

Research Article. ISSN (Print) *Corresponding author Shireen Fathima

WASD PA Core Music Curriculum

Automatic Music Composition with AMCTIES

A probabilistic approach to determining bass voice leading in melodic harmonisation

Automatic Rhythmic Notation from Single Voice Audio Sources

About Importance of Truth

Specifying Features for Classical and Non-Classical Melody Evaluation

A repetition-based framework for lyric alignment in popular songs

Machine Learning Term Project Write-up Creating Models of Performers of Chopin Mazurkas

WATSON BEAT: COMPOSING MUSIC USING FORESIGHT AND PLANNING

FINE ARTS Institutional (ILO), Program (PLO), and Course (SLO) Alignment

The Mathematics of Music and the Statistical Implications of Exposure to Music on High. Achieving Teens. Kelsey Mongeau

Automatic Generation of Four-part Harmony

Curriculum Mapping Piano and Electronic Keyboard (L) Semester class (18 weeks)

COMPOSING WITH INTERACTIVE GENETIC ALGORITHMS

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

COURSE OUTLINE. Corequisites: None

Evolving Musical Counterpoint

Bach-Prop: Modeling Bach s Harmonization Style with a Back- Propagation Network

On the Music of Emergent Behaviour What can Evolutionary Computation bring to the Musician?

Study Guide. Solutions to Selected Exercises. Foundations of Music and Musicianship with CD-ROM. 2nd Edition. David Damschroder

Analysis and Clustering of Musical Compositions using Melody-based Features

Extracting Significant Patterns from Musical Strings: Some Interesting Problems.

Robert Rowe MACHINE MUSICIANSHIP

A Genetic Algorithm for the Generation of Jazz Melodies

Paulo V. K. Borges. Flat 1, 50A, Cephas Av. London, UK, E1 4AR (+44) PRESENTATION

Key-based scrambling for secure image communication

Computational Intelligence in Music Composition: A Survey

A Creative Improvisational Companion Based on Idiomatic Harmonic Bricks 1

A Fast Alignment Scheme for Automatic OCR Evaluation of Books

Music Preschool. Aesthetic Valuation of Music. Self awareness. Theory of Music. Creation of Music

Key Skills to be covered: Year 5 and 6 Skills

Arts, Computers and Artificial Intelligence

Statistical Modeling and Retrieval of Polyphonic Music

Growing Music: musical interpretations of L-Systems

Outline. Why do we classify? Audio Classification

Transcription:

International Journal of Scientific Research in Computer Science, Engineering and Information Technology 2018 IJSRCSEIT Volume 3 Issue 3 ISSN : 2456-3307 Artificial Intelligence Techniques for Music Composition Sudhanshu Gautam *1, Sarita Soni 2 1 M-Tech Computer Science, BBAU Central University, Lucknow, Uttar Pradesh, India 2 Assistance Professor Computer Science, BBAU Central University, Lucknow, Uttar Pradesh, India ABSTRACT Artificial Intelligence (AI) has different computational techniques which can be applied in music industry for creating creative compositions. Computer has no creative ability hence, it can be achieved via AI research by substituting something inventive to meet the same creative spark as humans possess. This survey aims to compare three different AI algorithms applied in music composition. Keywords : Music Composition, Markov Chain, Routing Plaining, Genetic Algorithm. I. INTRODUCTION Artificial Intelligence (AI) based problem solving systems are capable in identification and decision making. AI techniques can be applied to solve several problems related to designing, diagnosis, and optimization. For accuracy, solutions provided by AI techniques are to be compared with similar solutions provided by the human experts. The creative task like composing music can be achieved via AI research by substituting something inventive to meet the same creative spark as humans possess. AI applied to music composition varies in both aspects. In one method, music composition spectrum is used to generate a musical accompaniment in real time scenario. In other, AI system composes music from scratch. Moreover, AI systems which uses both methods are used to create similar sounding compositions by training based on previously composed music. AI based music composition is different from computer generated music such as MIDI technology. Humans perform music composition in many ways. Some people hear music and transcribe it into sheet music. Some create music through a thoughtful process and others creates music via random jamming process. Musician might also merge these three approaches to create music theory. Knowledge based reasoning is done with a stochastic approach, routing planning, and genetic algorithms respectively. In AI research into music composition, genetic algorithm is the most preferred technique. Other approaches includes fractal geometry, neural network, and stochastic approaches using Markov chains. II. LITERATURE REVIEW This section introduces three algorithms which might be used for generating music composition. A. Markov Chain A Markov chain is a state transition diagram with probabilities annotated over the links. It s a statistical model which can be used to generate a possible sequence of events along with the probability of sequence might arise. Figure 1 illustrates a simple Markov chain of daily diet patterns. If today s diet is of grains, then the probability of diet for the next three days consisting grains, grains, seafood, would be.4*.4*.2. Respectively, the probability of diet for the next three days consisting vegetables, vegetables, grains would be.4*.6*.3. CSEIT1833141 Received : 10 March 2018 Accepted : 18 March 2018 March-April-2018 [ (3) 3 : 385-389 ] 385

Figure 2 shows plan decomposition along with the plan steps available to design each (sub)component. Figure 1. A Markov Chain The statistical model can be easily generated from a database of events. For instance, the data from figure 1 could come from several months of diet data. B. Routing Plaining Routine planning (or routine design) captures the prototypical sequence of problem solving activities undertaken in planning or designing an artifact. It is a knowledge based approach that provides the solution to a problem using the routine knowledge of domain expert on the basis of past experiences. Routine planning (or routine design) has been used to solve a number of routine problems such as air force mission planning and nutritional meal planning. The knowledge base breaks into various categories. First is a hierarchy of the components involved in the routine design or planning problem. Plan decomposition is done to construct an artifact for which each components and subcomponents are designed individually. Second, to design any given subcomponent with different specific plan steps done by experts. An appropriate plan step is selected on the basis of pattern-matching knowledge that identifies the plan step with the greatest chance of providing success in the designed artifact meeting user specifications, along with decisions already made on the design of other components. Redesign steps are available for instance decreasing a component s size to avoid the nullification of partial design. Lastly, failure handling knowledge can be applied if designed artifact fails to meet its intended functionality or user specifications. Figure 2. Routine Design Plan Decomposition C. Genetic Algorithm The genetic algorithm (GA) is a process of natural selection to provide a better solution. The GA models consists of a genetic representation string called a chromosome and a fitness function. The evolution starts from a base set of chromosomes treated as parents through a series of genetic operations (mutation, inversion and crossover). Mutation changes one or more values in a chromosome from its initial state. Inversion reverses or re-arranges a sequence of chromosome. Crossover swaps portions of the parents chromosomes and generate children. The population evolved in each iteration is called a generation. Fitness function is used to evaluate evolved child chromosomes. The fittest chromosomes are selected through a selection mechanism and acts as parents for next iteration (generation). The cycle continues until a child has been found whose fitness exceeds some desired threshold. III. METHODOLOGY Music composition is a creative task and required some basic specifications to determine the type of song. These specifications are as follows. Transition between two chords or notes determines the melody of song. A higher transition size leads to create a song with more 386

dissonant sound while a small transition size leads to create a boring song. Repetition of chords or notes determines the creativity of song. The lower the repetition, the higher the creativity. Variety of chords, notes and song structure determines the complexity of song. A higher variety with more parts and more diversity within parts leads to a complex song. Range of octaves covered by the variety of chords or notes. Major/Minor key and tempo of the song determines the mood of song. A minor key with slower tempo leads to somber mood. A major key with faster tempo leads to upbeat mood. An intermediate mood may cause by using major and minor keys for different parts of the song. The selection of instruments may also affect the mood of the song. Each of the three algorithms (stochastic approach, planning approach, genetic algorithm approach) generates a song via planning decomposition, as shown in figure 3. The first task is to generate song s structure. Song structure consists of few components: introduction (I), verses (V), choruses (C), bridges (B), solo sections (S) and outros (O). A simple song may have less components with structure of I-V-C-V-C-O and more complex song may have more components with structure of I-V-V-C-V-B-C-S-C-O. After deciding the song structure or song components, the next step is to generate the structure within components. This structure is based on the number of and types of measures. For example, a verse might consist of 4 or 8 measures. These measures may identical or alternate between different chord sequences. A 8-measure component may follow a pattern like 1-1-1-2-1-1-1-2 or 1-2-1-3-1-2-1-3 or 1-1-1-1-1-1-1-1 or even 1-2-3-4-1-2-3-4. Each measure consist of number of beats. In 4/4 timing a measure might consist of 4 quarter notes or 8 eighth notes or 1 whole note. The variety in notes (quarter, eighth, whole) will help to decide duration of chords i.e. whether all chords have the same duration or whether some chords will be longer and/or shorter than others. A more diverse measure might consist variety of notes for example, a half note followed by a quarter note followed by two eighth notes. Each of the three algorithms (stochastic approach, planning approach, genetic algorithm approach) performs planning decomposition in different ways. IV. DATA ACQUISITION This section examines and compares two sets of songs, each of them generated using three algorithms. For the first set of songs, the user specified high variety, high transition, low repetition highly rhythmic and high range. Excerpts from the stochastic, planning and genetic algorithm are shown in figures 5, 6 and 7 respectively. Figure 5. Excerpt from Stochastic Approach Figure 3. Four Steps to Generate a Song 387

Figure 6. Excerpt from Planning Approach Figure 9. Excerpt from Planning Approach Figure 7. Excerpt from Genetic Algorithm Approach figure 5, the melody of the stochastic approach has large transitions between notes along with rapidly changing notes resulting into chaotic and uneven sound. The melody generated by the genetic algorithm (figure 7) is sparser than melody generated by other two songs leading to more listenable melody. However, the chord sequences have a rhythmic pattern which makes the song less listenable as chords are played continuously in the measure. The melody generated by the planning approach (figure 6) offers a compromise between these two extremes. The melody is neither chaotic nor with large step sizes. It does not suffer from a lack of rhythm also the chord structure is not as diverse as the genetic algorithm approach. The melody generated from the planning approach is far more listenable. For the second set of songs, the user specified low variety, low transition, low range, high repetition and less rhythmic. The low range leads to slower tempo for all three generated songs. Excerpts from the stochastic, planning and genetic algorithm are shown in figures 8, 9 and 10 respectively. Figure 10. Excerpt from Genetic Algorithm Approach In figure 8, the melody of the stochastic approach is highly repetitive and quite simple to the point of being boring. The melody of planning approach (figure 9) is slightly more interesting while remaining basic. The melody of the genetic algorithm shows variability however, the large step sizes between notes cause this song to lack coherence. V. CONCLUSIONS While looking at the results of three algorithms it is concluded that the stochastic algorithm is at a disadvantage because it does not apply any explicit strategy to either follow music theory or compositional strategies that make a song listenable. The main depreciator of the songs generated by the genetic algorithm is the overly random nature of the notes. The planning approach does not suffer from either of these problems but may lack in originality because it is impacted the least by randomness. VI. REFERENCES Figure 8. Excerpt from Stochastic Approach [1]. Simon, I., Morris, D., and Basu, S (2008). "MySong: automatic accompaniment generation for vocal melodies." Proceedings of 388

the twenty-sixth annual SIGCHI conference on Human factors in computing systems. p. 727-734, ACM. [2]. Assayag, G., Bloch, G, Chemillier, M., Cont, A., and Dubnov, S. (2006). "Omax brothers: a dynamic yopology of agents for improvization learning." Proceedings of the 1st ACM workshop on Audio and music computing multimedia, p. 125-132, ACM. [3]. Blackwell, T (2007). "Swarming and music." Evolutionary Computer Music, p. 194-217, Springer. [4]. Waschka, R (2007). "Composing with Genetic Algorithms: GenDash." Evolutionary Computer Music, p. 117-136, Springer. [5]. Donnelly, P., and Sheppard, J (2011). "Evolving four-part harmony using genetic algorithms." Applications of Evolutionary Computation, p. 273-282, Springer. [6]. Tokui, Nao, and Hitoshi Iba. "Music composition with interactive evolutionary computation." Proceedings of the 3rd International Conference on Generative Art. Vol. 17. No. 2. 2000, Generative Design Lab. [7]. P. Hamel and D. Eck. Learning features from music audio with deep belief networks. In 11th International Society for Music Information Retrieval Conference (ISMIR 2010), 2010. [8]. Zhang, Q., and Miranda, E (2006). "Evolving musical performance profiles using genetic algorithms with structural fitness." Proceedings of the 8th annual conference on Genetic and evolutionary computation, p. 1833-1840, ACM. [9]. Ozcan, E., and Erçal, T (2008). "A genetic algorithm for generating improvised music." Artificial Evolution, p. 266-277, Springer. [10]. Hazewinkel, M. ed. (2001), "Markov chain", Encyclopedia of Mathematics, Springer. [11]. Brinkop, A., Laudwein, N., and Maasen R (1995). "Routine Design for Mechanical Engineering." AI Magazine, p 74-85, AAAI. [12]. Holland, J (1992). Adaptation in Natural and Artificial Systems. Cambridge, MIT Press. 389