Overview
MusicSpace uses constraints to control how sound sources move and interact. Move one source and the solver adjusts the others to maintain relationships such as distance, balance, and angle.
Launch the MusicSpace demoHow the browser demo works
The JavaScript workbench lets you drag sources and listeners around a 2D canvas and hear how those movements affect the sound. Open a built-in patch in Play mode or use Edit mode to create constraints, draw trajectories, and map positions to audio or MIDI parameters.
Source code and documentation on GitHub
For a quick example, try Play the Relationships to hear linked effects controls, or Three-Body Gravity to hear three moving masses drive three Faust voices.
Max/MSP version
An earlier MusicSpace implementation ran as a Max/MSP Java object. It extended the original spatialization work to control arbitrary Max/MSP data, including sound synthesis parameters.
For current examples, see the browser implementation’s demo gallery and videos.
Project history
MusicSpace was the first “Active Listening” project developed at Sony CSL. MusicSpace began in 1998 as part of Olivier Delerue’s doctoral research. The thesis was supervised by Jean-François Perrot and co-supervised by Gérard Assayag and François Pachet. Olivier brought ideas on music spatialisation and interaction, and F. Pachet brought in constraints, in the spirit of Alan Borning’s ThingLab paper (PDF) system. The combination of these two paradigms enabled us to represent knowledge about audio mixing in an yet unexplored way. A constraint propagation algorithm was designed, based on simple propagation of objects modifications through the constraint graph. This algorithm was described in the LIP6 record of Olivier Delerue’s thesis and in the 1999 ICMC paper and MusicSpace Goes Audio. This idea proved very successful. The system was soon recognized as very innovative in the community of computer music. It received the Bourges Music Software prize in 2000.
It was demonstrated to musicians such as Jean-Michel Jarre and Peter Gabriel with enthusiastic feedback. However, we failed to conduct large-scale music projects with it. The reasons were that we could not distribute the system freely, and most importantly MusicSpace was a closed system, not able to communicate easily with other music software. 10 years later, we observed that MusicSpace’s ideas were still innovative. We decided to distribute it freely, but made two major improvements.
The first was openness: MusicSpace became a Max object, so users could define how to interpret source movements in Max. Notably, this allows users to experiment with novel ideas, outside the field of spatialisation, such as control of synthesis. Olivier Delerue made this improvement and created demonstrations and example patches for the Max/MSP version.
The second improvement concerns the constraint solving process. MusicSpace’s algorithm was entirely redesigned and reimplemented using an event-based approach, instead of the original recursive one. As a result, the code is more stable, and the system can handle successfully configurations that it could not handle originally. The algorithm still belongs to the family of propagation algorithms, as opposed to fully-fledged constraint systems which perform a combinatorial search in the cross-product of the variable’s domains, such as BackJava, a Java implementation of BackTalk, also designed at Sony CSL. This basically means that solutions are found deterministically, for each constraint, and do not require an actual search. When cycles are encountered, the propagations are merely checked for conflicts. If there is a conflict, the algorithm stops and issues a “No Solution Found”, which stops the user’s initial action. The event-based MusicSpace algorithm goes slightly further than simple propagation however, and can now handle cases in which several solutions can be tried (see for example the “Product and limit” configuration). This algorithmic contribution was done by P. Roy, F. Pachet and O. Delerue.
Research papers
MidiSpace: A Temporal Constraint-Based Music Spatializer · PDF (ACM Multimedia 1998), by François Pachet and Olivier Delerue, describes the original MIDI system and its temporal constraint model.
MusicSpace: A Constraint-Based Control System for Music Spatialization · MusicSpace Goes Audio · Dynamic Audio Mixing · On-the-Fly Multi-Track Mixing
