Composing Music with Computers

The majority of computer music today is undertaken using commercial software that does not require knowledge of mathematics, algorithms, etc. However, such systems have a limited scope: sequencers, accompaniment systems, recording and playback gear. This book intends to broaden the horizons for those musicians who want to go further: hence the need to become familiar with fundamental computer music concepts and be prepared to use systems that either embody some interesting compositional model, allow for programming, or both.
Whilst geometry, numerical proportions and esoteric numbers served to scaffold great compositional minds in past centuries (James 1993), logic, probabilities, set theory and algorithms inspire some contemporary composers. This chapter begins by introducing fundamental mathematical concepts that are crucial for mastering computer music, from discrete mathematics and set theory, to logic and formal grammars. Then, it gives a primer in general computer programming with examples followed by an overview of two historical landmarks for the development of computer music: Schoenberg's serialism and Xenakis' formalised music.
The term discrete is defined in the Oxford English Dictionary as separate, detached from others, individually distinct; opposed to continuous . Discrete mathematics is therefore appropriate when objects are counted rather than weighed or measured and it often involves relations between sets of objects. Discrete mathematics is the essence of computation because the objects a computer manipulates are discrete, e.g. on/off or 0/1 values in memory.
Mathematical modelling is perhaps one of the most powerful scientific and designing tools created by mankind. The fact...