Spectral toolkit: practical music technology for spectralism-curious composers MICHAEL NORRIS

Similar documents
Simple Harmonic Motion: What is a Sound Spectrum?

Music Representations

CSC475 Music Information Retrieval

Pitch. The perceptual correlate of frequency: the perceptual dimension along which sounds can be ordered from low to high.

DAT335 Music Perception and Cognition Cogswell Polytechnical College Spring Week 6 Class Notes

The Physics Of Sound. Why do we hear what we hear? (Turn on your speakers)

2. AN INTROSPECTION OF THE MORPHING PROCESS

Lecture 1: What we hear when we hear music

Musical Signal Processing with LabVIEW Introduction to Audio and Musical Signals. By: Ed Doering

Robert Alexandru Dobre, Cristian Negrescu

BBN ANG 141 Foundations of phonology Phonetics 3: Acoustic phonetics 1

Musical Acoustics Lecture 15 Pitch & Frequency (Psycho-Acoustics)

POST-PROCESSING FIDDLE : A REAL-TIME MULTI-PITCH TRACKING TECHNIQUE USING HARMONIC PARTIAL SUBTRACTION FOR USE WITHIN LIVE PERFORMANCE SYSTEMS

Augmentation Matrix: A Music System Derived from the Proportions of the Harmonic Series

Lab P-6: Synthesis of Sinusoidal Signals A Music Illusion. A k cos.! k t C k / (1)

Spectrum Analyser Basics

Getting Started with the LabVIEW Sound and Vibration Toolkit

Measurement of overtone frequencies of a toy piano and perception of its pitch

Pitch Perception. Roger Shepard

HST 725 Music Perception & Cognition Assignment #1 =================================================================

Tempo and Beat Analysis

Combining Instrument and Performance Models for High-Quality Music Synthesis

Music Representations

Pitch correction on the human voice

Music Complexity Descriptors. Matt Stabile June 6 th, 2008

Implementation of an 8-Channel Real-Time Spontaneous-Input Time Expander/Compressor

Experiments on musical instrument separation using multiplecause

Laboratory Assignment 3. Digital Music Synthesis: Beethoven s Fifth Symphony Using MATLAB

Investigation of Digital Signal Processing of High-speed DACs Signals for Settling Time Testing

Analysis, Synthesis, and Perception of Musical Sounds

Real-time Granular Sampling Using the IRCAM Signal Processing Workstation. Cort Lippe IRCAM, 31 rue St-Merri, Paris, 75004, France

We realize that this is really small, if we consider that the atmospheric pressure 2 is

Beethoven s Fifth Sine -phony: the science of harmony and discord

Book: Fundamentals of Music Processing. Audio Features. Book: Fundamentals of Music Processing. Book: Fundamentals of Music Processing

Calibrate, Characterize and Emulate Systems Using RFXpress in AWG Series

CTP 431 Music and Audio Computing. Basic Acoustics. Graduate School of Culture Technology (GSCT) Juhan Nam

ECE 4220 Real Time Embedded Systems Final Project Spectrum Analyzer

Math and Music: The Science of Sound

Note on Posted Slides. Noise and Music. Noise and Music. Pitch. PHY205H1S Physics of Everyday Life Class 15: Musical Sounds

CTP431- Music and Audio Computing Musical Acoustics. Graduate School of Culture Technology KAIST Juhan Nam

PHYSICS OF MUSIC. 1.) Charles Taylor, Exploring Music (Music Library ML3805 T )

AN ARTISTIC TECHNIQUE FOR AUDIO-TO-VIDEO TRANSLATION ON A MUSIC PERCEPTION STUDY

Topic 10. Multi-pitch Analysis

PS User Guide Series Seismic-Data Display

Using the new psychoacoustic tonality analyses Tonality (Hearing Model) 1

PCM ENCODING PREPARATION... 2 PCM the PCM ENCODER module... 4

EE391 Special Report (Spring 2005) Automatic Chord Recognition Using A Summary Autocorrelation Function

MODELING AND SIMULATION: THE SPECTRAL CANON FOR CONLON NANCARROW BY JAMES TENNEY

Introduction To LabVIEW and the DSP Board

Ch. 1: Audio/Image/Video Fundamentals Multimedia Systems. School of Electrical Engineering and Computer Science Oregon State University

Automatic music transcription

UNIVERSITY OF DUBLIN TRINITY COLLEGE

Harmonic Analysis of the Soprano Clarinet

Semi-automated extraction of expressive performance information from acoustic recordings of piano music. Andrew Earis

2018 Fall CTP431: Music and Audio Computing Fundamentals of Musical Acoustics

A Matlab toolbox for. Characterisation Of Recorded Underwater Sound (CHORUS) USER S GUIDE

Spectral Sounds Summary

Creative Computing II

Query By Humming: Finding Songs in a Polyphonic Database

Instrument Recognition in Polyphonic Mixtures Using Spectral Envelopes

LESSON 1 PITCH NOTATION AND INTERVALS

9.35 Sensation And Perception Spring 2009

ECE438 - Laboratory 4: Sampling and Reconstruction of Continuous-Time Signals

Music Theory: A Very Brief Introduction

Physics and Neurophysiology of Hearing

Proceedings of the 7th WSEAS International Conference on Acoustics & Music: Theory & Applications, Cavtat, Croatia, June 13-15, 2006 (pp54-59)

Week 14 Query-by-Humming and Music Fingerprinting. Roger B. Dannenberg Professor of Computer Science, Art and Music Carnegie Mellon University

Digitizing and Sampling

The Tone Height of Multiharmonic Sounds. Introduction

Pitch Perception and Grouping. HST.723 Neural Coding and Perception of Sound

A Composition for Clarinet and Real-Time Signal Processing: Using Max on the IRCAM Signal Processing Workstation

Music for Alto Saxophone & Computer

Department of Electrical & Electronic Engineering Imperial College of Science, Technology and Medicine. Project: Real-Time Speech Enhancement

Auto-Tune. Collection Editors: Navaneeth Ravindranath Tanner Songkakul Andrew Tam

Channel calculation with a Calculation Project

Scoregram: Displaying Gross Timbre Information from a Score

Hugo Technology. An introduction into Rob Watts' technology

Project. The Complexification project explores musical complexity through a collaborative process based on a set of rules:

FFT Laboratory Experiments for the HP Series Oscilloscopes and HP 54657A/54658A Measurement Storage Modules

Adaptive Resampling - Transforming From the Time to the Angle Domain

Tiptop audio z-dsp.

A prototype system for rule-based expressive modifications of audio recordings

5.7 Gabor transforms and spectrograms

Recommended Operations

Voice Controlled Car System

Our Perceptions of Music: Why Does the Theme from Jaws Sound Like a Big Scary Shark?

MIE 402: WORKSHOP ON DATA ACQUISITION AND SIGNAL PROCESSING Spring 2003

Topic 4. Single Pitch Detection

Digital music synthesis using DSP

USING MATLAB CODE FOR RADAR SIGNAL PROCESSING. EEC 134B Winter 2016 Amanda Williams Team Hertz

How to Obtain a Good Stereo Sound Stage in Cars

Computational Models of Music Similarity. Elias Pampalk National Institute for Advanced Industrial Science and Technology (AIST)

Author Index. Absolu, Brandt 165. Montecchio, Nicola 187 Mukherjee, Bhaswati 285 Müllensiefen, Daniel 365. Bay, Mert 93

Stochastic synthesis: An overview

An interdisciplinary approach to audio effect classification

PSYCHOACOUSTICS & THE GRAMMAR OF AUDIO (By Steve Donofrio NATF)

CZT vs FFT: Flexibility vs Speed. Abstract

Automatic Construction of Synthetic Musical Instruments and Performers

Onset Detection and Music Transcription for the Irish Tin Whistle

An Introduction to the Spectral Dynamics Rotating Machinery Analysis (RMA) package For PUMA and COUGAR

Transcription:

Spectral toolkit: practical music technology for spectralism-curious composers MICHAEL NORRIS Programme Director, Composition & Sonic Art New Zealand School of Music, Te Kōkī Victoria University of Wellington

The techniques of spectralism & how to do them

Contemporary Music Review 2000, Vol. 19, Part 2, p. 81-113 Photocopying permitted by license only 9 2000 OPA (Overseas Publishers Association) N.V. Published by license under the Harwood Academic Publishers imprint, part of Gordon and Breach Publishing, a member of the Taylor & Francis Group. APPENDIX I Guide to the Basic Concepts and Techniques of Spectral Music Joshua Fineberg KEY WORDS: Spectral Music; techniques; algorithm; harmony; frequency. The music discussed in these two issues makes use of many ideas, terms and techniques which may be unfamiliar to many of its readers. I have asked the individual authors not to concentrate on these technical issues in their contributions but, rather, to emphasize the musical and aesthetic ideas being discussed. To provide the context and detail needed to properly introduce and explain this material to readers for whom it is new I have written the text which follows. This appendix is divided into several major categories, each of which is presented as a succession of major terms, ideas or techniques that build upon one another. A brief perusal of these subjects should clarify the concepts discussed in the articles of these issues, while a closer scrutiny should enable the interested reader to obtain more complete explanations (including, when necessary, the relevant mathematical information). I will be as parsimonious as clarity allows concerning the musical and aesthetic consequences of subjects discussed. Derivation of pitch aggregatesfrom spectral models f r e q u e n c i e s vs. n o t e s One of the most basic changes introduced by spectral composers was the generation of harmonic and timbral musical structures based upon 81 82 Appendix I frequencial structures. The frequency of a pitched sound is the number of times that its regular pattern of compressions and rarefactions in the air repeat each second. This value is expressed in Hertz (Hz) or cycles per second. Contrary to the linear structure of notes and intervals, where distances are constant in all registers (the semitone between middle C and D-flat is considered identical to the semi-tone between the C and D-flat three octaves higher), the distance between the frequencies within the tempered scale and the potential for pitch discernment of the human perceptual apparatus is neither linear nor constant: it changes in a w a y that is completely dependent upon register. Viewing structures from the perspective of frequencies gives access to a clear understanding of many sounds (like the harmonic spectrum) whose interval structure is complex, but whose frequency structure is simple. It is also extremely useful for creating sounds with a high degree of sonic fusion, since the ear depends on frequency relations for the separation of different pitches. Further, a frequency-based conception of harmonic and timbral constructions allows composers to make use of much of the research in acoustics and psychoacoustics, which look into the structure and perception of natural (environmental) and instrumental sounds, providing models for the w a y in which various frequencies are created and interact to form our auditory impressions. the equal-tempered scale (from the perspective of frequencies) The equal-tempered scale is based on the division of an octave into a n u m b e r of logarithmically equal parts (not linearly equal) - - in the case of the chromatic scale this is 12 parts. An octave is defined as the distance b e t w e e n a note and the note with twice its frequency (thus if the frequency of A4 is 440 Hz, the frequency of the note an octave higher, A5, is 2 * 440 or 880 Hz, and the frequency of the note an octave lower, A3, is 440/2 or 220 Hz). Microtonal scales follow the same principle, but divide the octave into different numbers of logarithmically equal steps (24 of them for the quarter-tone scale, 48 for eighth-tones, etc.). The formula for calculating the chromatic scale is the following: frequency of note x + one half-step = frequency of note x times two to the p o w e r of one over the number of steps in the octave (1/12 for the chromatic scale). To calculate notes in the quarter-tone scale the only change necessary is to use two to the p o w e r of one twenty-fourth and thus the equation is: frequency of note x + one quarter-tone = frequency of note x times two to the p o w e r of one twenty-fourth. To calculate an actual scale y o u begin with the diapason (the reference pitch, for example A4 = 440 Hz), then calculate the notes above and below it (to calculate d o w n instead of up, you divide instead of multiply). Table I

A taxonomy of spectral techniques In the taxonomy of spectral techniques, we can distinguish between: SYNTHETIC TECHNIQUES frequencies derived from purely mathematical sources Harmonic series Ring modulation, frequency modulation Stretched spectra ANALYTICAL TECHNIQUES frequencies derived from the analysis of real-world sounds Spectral analysis

Development strategies Typical development strategies for one-chord development TRANSPOSITION SPECTRAL FILTRATION SPECTRAL DISTORTION (STRETCHING/COMPRESSION) MODULATION BETWEEN TIMBRE-CHORDS MUTATION BETWEEN TIMBRE-CHORDS INTERPOLATION BETWEEN TIMBRE-CHORDS

Online resources

Online resources www.michaelnorris.info/theory

Converting frequency to pitch

Frequency values to pitch http://www.michaelnorris.info/theory/frequencytonoteconverter

Calculating harmonic series with 3 types of spectral distortion!

Harmonic series calculator http://www.michaelnorris.info/theory/harmonicseriescalculator

Ring Modulation (RM) & Frequency Modulation (FM)

FM & RM calculator http://www.michaelnorris.info/theory/fmcalculator

Ring Modulation (RM) fi = fc ± fm where fi is the resulting 2 frequencies fc is the carrier frequency fm is the modulator frequency

Ring Modulation (RM) fi = fc ± fm f1 = 260 Hz f2 = 180 Hz & 220Hz œ? 40Hz µ œ

Frequency Modulation (FM) fi = fc ± i fm where fi is the resulting set of frequency fc is the carrier frequency fm is the modulator frequency i is the index number of the sidebands (1 being the closest)

FM example Calculate the first three sidebands resulting from a carrier frequency of 220Hz and a modulation frequency of 40Hz & 220Hz œ? 40Hz µ œ f1 = 220-40, 220+40 = 180 & 260Hz f2 = 220-80, 220+80 = 140 & 300Hz f3 = 220-120, 220+120 = 100 & 340Hz

Tristan Murail Gondwana (1980)

Spectral transitioning

Spectral Mutation Get from one chord to another only by adding and subtracting

Spectral Mutation Get from one chord to another only by adding and subtracting

Spectral interpolation Glissandos between partials of an equal rank

Spectral interpolation Glissandos between partials of an equal rank

Spectral distortion Gradually shifting a compression factor (see harmonic series calculator)

Spectral analysis

Spectral analysis Spectral analysis/transcription An analytical methodology uses inherent frequency components in real-world sounds as a basis for harmonic formations

Issues in spectral analysis Consider your ensemble, ensemble size, ability to play multiple notes Consider their range (may be more homogenous than the sound)

EXAMPLES KAIJA SAARIAHO Du cristal a la fumée for orchestra (1989) Based on analysis of cello sounds (esp. harmonics, flaut, pont) TRISTAN MURAIL Le Partage des Eaux for orchestra (1995) The sounds analysed in Le Partage des Eaux are derived from natural phenomena: a wave breaking gently on the shore, the effect of a backwash"

The sounds analysed in Le Partage des Eaux are derived from natural phenomena: a wave breaking gently on the shore, the effect of a backwash. They inspire the piece's shapes and sounds, sometimes by using data analysis directly, sometimes more metaphorically. One musical object, heard often in various forms throughout the score, comes thus from the spectral analysis of a breaking wave. This object is manipulated, transformed, expanded or compressed in many ways. It contains strangely coloured and strangely coherent harmonic-timbres. In slow motion, it becomes a sluggish somewhat obsessional melodic-harmonic element that while defining the piece, is often interrupted by other musical structures. Tristan Murail

EXAMPLES JONATHAN HARVEY Speakings for orchestra and electronics (2009) Based on recordings of voice, with automated orchestration (Orchidée)

Spectral transcription in Audacity Audacity (free, open-source waveform editor) http://www.audacityteam.org Need to have a normalized audio file, uncompressed (AIFF/WAV)

EXAMPLE EXTRACTING SPECTRAL PEAKS IN AUDACITY Set insertion point to start of sound you want to analyze Choose Analyze -> Plot Spectrum Set analysis parameters to your liking (set size to 8192) Click Export button to export to text file Open text file with a text editor, select all text Go to www.michaelnorris.info/musictheory/spectralpeaklisting Copy and paste text file into field, adjust parameters, hit Calculate

NOW WHAT? Output is listed from most prominent partial to least prominent Think about which partials you want to use do you want to use all of them? Ensemble size? How many partials can you use How are you going to create progressions? Maybe you need a number of timbre-chords to work through? How long is each one going to last? How are you going to articulate or ornament each chord? What role will melody play?

Spectral transcription in SPEAR Spectral transcription with SPEAR Normalization Select below threshold Select harmonic Select below duration Export Take snapshots

The Fast Fourier Transform

Time vs. frequency domains FREQUENCY DOMAIN Representation of frequency content of a sound (its spectrum ) in digital domain, limited by Nyquist limit (half the sampling rate) PROS: Gives you information about spectral content CONS: Computationally expensive (and mathematically complex) to convert time domain into frequency domain

What is the FFT? Computer algorithm that implements the Discrete Fourier Transform (DFT) Converts waveform into series of equally-spaced bins (pairs of amplitudes & phases of specific frequency bins FFT algorithm developed by Tukey & Cooley in 1965 SUM N 1 Sin waves F (x) = f(n)e j2π(x n N ) n=0

Why is this important? Pressure waves are TIME DOMAIN and our eardrum, connected to the ossicles, transduces them to displacement (kinetic energy) But if the auditory nerve were connected directly to the ossicles, our brain would only receive a TIME-DOMAIN REPRESENTATION of sound Life would be very different: e.g. we could tell something loud was behind us, but we couldn t understand speech Yet we can discriminate between different frequency components so how does that work?

THE COCHLEA

THE ORGAN OF CORTI

Why is this important? A large number = F (x) = of frequencyencoded amplitudes N 1! f (n)e n ) j2π(x N n=0 covering 20 20000Hz The cochlea is a meatspace FFT!

Why FFT? Models the FREQUENCY-ENCODED COCHLEA Sculptability of sound explored through texture composers (e.g. Xenakis, Ligeti, Penderecki) and rise of musique concrète The FFT is currently only tool to analyse & resynthesise spectra directly

How the FFT works BASIC CONCEPT OF THE FFT Each frame of the FFT is a short snapshot of the audio duration must be a power of two, typically 1024, 2048, 4096 samples the larger the FFT, the better the frequency resolution, but the worse the time resolution (cf Heisenberg s uncertainty principle!)

WINDOWING THE TIME DOMAIN

WINDOWED SIGNALS

How it works These windows are fed as an array of numbers into the FFT The FFT converts this into a same-sized array of numbers Except the array is arranged into pairs of numbers which represent amplitude value and a phase value Each pair represents a frequency, as the pairs are ordered from 0Hz up to the Nyquist limit NB: for more accurate FFTs, we need higher sample rates!

FFT output amplitude vs freq Ampl. 1 0 0Hz Freq Single FFT frame (typically sampled from 20 40ms audio) Nyq.

Spectral processing But what if we do something at this point before resynthesising?

SoundMagic Spectral www.michaelnorris.info/software/soundmagicspectral

Granular Synthesis with spindrift~ www.michaelnorris.info/software/spindrift

Granular synthesis in Max/MSP spindrift~ Custom external written in C++ for doing multichannel granular synthesis Operates on prerecorded buffer Allows you to set readhead speed (synchronous/asynchronous) Benefits: can be embedded within a poly~ object for multiple voices with different parameters available for beta-test from http://www.michaelnorris.info/software/ spindrift