Adaptive Music on the Web

Total Page:16

File Type:pdf, Size:1020Kb

Adaptive Music on the Web ADAPTIVE MUSIC ON THE WEB Wayne Siegel, professor Ole Caprani, associate professor DIEM Department of Computer Science Royal Academy of Music University of Aarhus Skovgaardsgade 2C Aabogade 34 Aarhus, Denmark Aarhus, Denmark ABSTRACT project was to further develop musical forms specifically created for web publication. The project Adaptive Music on the Web was initiated by DIEM in 2004 and realized in collaboration with 2. DEFINITION AND DOGMA the Department of Computer Science at the University of Aarhus with the support of a generous grant from The Heritage Agency of Denmark under 2.1. Definition auspices of the Danish Ministry of Culture. The goal of the project was to develop new musical paradigms Adaptive music can be defined as music that can be that allow the listener to influence and alter a piece of controlled and influenced by a non-expert end user or music while listening within the context of a common listener, either consciously or subconsciously. web browser. Adaptive Music might be considered a subcategory of A set of artistic and technical definitions and interactive music [1]. But while interactive music guidelines for creating adaptive music for web generally refers to a musical situation involving a publication were developed. The technical trained musician interacting with a computer program, possibilities and limitations of presenting adaptive adaptive music involves a non-expert user interacting music on the web were studied. A programming with a computer program. The term adaptive music is environment was selected for the implementation of sometimes used in the context of computer games, adaptive musical works. A group of electronic music referring to music that adapts as a result of game play. composers was established and each composer was In this context, controlling the music is generally not a commissioned to create an adaptive musical work for primary concern for the player (not “part of the web publication in accordance with the established game”, so to speak) [2]. guidelines. A prototype was created for each work. Specialized programming tools were developed for For this project the following definition of implementing these prototypes in the form of adaptive music was adopted: adaptive musical works capable of running within a standard web browser. A web site was set up for “Adaptive music is music that can be influenced presenting these works. and affected by the listener. The listener can control one or more significant musical parameters in the 1. INTRODUCTION music. The end user is not only the ”audience,” but an active participant as well.” The presentation of art on the web today is largely limited to the distribution and presentation of works of 2.2. Dogma art created for other media. Typically these include digitized photographs of paintings, digital text One important motivation for initiating this project documents of literary works, digitized films and was to develop new musical forms for the web as a digital audio recordings. But for composers and media in its own right. Often sound is of secondary musicians, the artistic potential of the web as a media importance in the world of multi-media. Here the in its own right is not limited to the distribution of intention was to make sound the primary concern, digital recordings. Adaptive music is music that can be suppressing the tendency of human perception to influenced by the listener. Adaptive music is focus on vision. A list of requirements, or an artistic constructed using flexible structures, which allow the and technical dogma, was presented to the composers music to unfold and develop in various ways under from the onset. varying degrees of control on the part of the individual listener. The distribution of audio by means of radio 2.2.1. Criteria or CD distribution is a one-way street. The listener’s role is that of a passive ”receiver” of a musical work. For inclusion in the project works were expected to The web is an interactive media. There are numerous meet the following criteria: technical limitations and challenges in regard to bandwidth, compatibility, response time and • Works should have open form. dependability. Yet an increasing number of artists are • Works should be rule-based and flexible. attempting to utilize and incorporate the web’s • Significant musical parameters should be potential for interaction in their art. The goal of this controlled by input. • Software must be downloaded to the user’s “There is no higher audio-centric consciousness at computer. work to facilitate a consistent set of audio capabilities. • Software must run locally on the user’s It will always be up to manufacturers to distinguish computer without streaming data during use. themselves through their own technologies, so standardized implementation will never be the answer.” • Functionality should be independent of the user’s internet bandwidth. The following programming platforms were • Musical works should be experienced by the considered: user as if he/she is using a browser-based service. • Max/MSP • Response between action and reaction must • Java be experienced as fast and agile. • JSyn • Any sound files used must have a duration of • Flash maximum 2 seconds each and 20 seconds total. • Graphics can be used as a user interface but 3.1. MAX/MSP must not become an important artistic Max/MSP is a graphical programming environment element. designed for music, audio, and multimedia. Over the past 15 years Max/MSP has developed into a leading 2.2.2. The Ten Commandments software environment for composers creating interactive music. Marketed by Cycling74, Max/MSP For the sake of illustration, a somewhat tongue-in- is compatible with both Mac OS X and Windows XP cheek, but not entirely ironical, list of “ten [4]. commandments” was created: Max/MSP was considered to be an ideal platform for this project, since many of the composers involved 1. Thou shalt not covet long sound files were familiar with it and had previously used it to 2. Thou shalt love thy listener as a participant create interactive music. A run-time version allows 3. Thou shalt see possibilities in limitations end users to run applications created in Max/MSP 4. Thou shalt not mock modem connections without purchasing the software. Karlheinz Essl uses 5. Thou shalt not reproduce (music) this approach to distribute Max/MSP patches [5]. 6. Thou shalt not give thy programmer There were, however two crucial drawbacks: 1) ambiguous messages the end user is required to download a runtime version 7. Thou shalt respect thy programmers of the software, a process that can be somewhat limitations as thine own complicated, especially for Windows users, and 2) it is 8. Thou shalt not kill thy programmer not possible to create Max/MSP applications that run 9. Thou shalt observe all deadlines within a web browser. 10. Thou shalt not create multimedia 3.2. JAVA 3. PLATFORM Java is an open source and platform independent The next step was to adopt a standardized software programming language compatible with Windows, platform for the implementation of the adaptive Mac OS X and Unix. Java applets are applications or compositions. The choice was by no means an easy programs that are embedded in other applications [6]. one. At the time the project was initiated, there were The use of Java applets in web pages is widespread. no consistent, flexible and compatible industry The Java Sound API specification provides low-level standards for interactive web audio. support for audio operations including audio playback Our priority was to employ a platform that met the and recording, mixing, synthesis and signal processing following criteria: 1) widespread, free and simple within a flexible framework. The Java applets of J- distribution, 2) functional on most commonly used DAFX [7] and Jass [8], show that advanced digital operating systems and browsers, 3) real-time control audio applications can indeed be written in pure Java of sample playback, sound synthesis and signal based on low-level operations of the Java Sound API. processing, 4) precise control of timing. Several options were available, each with it’s own 3.3. JSYN advantages and drawbacks. In general the latter included limitation to specific browser support, JSyn is a freeware plug-in and object library for Java, incompatible architectures, lack of widespread which provides real-time unit-generator based distribution and complexity in installation and use. As synthesis for stand-alone Java applets in a web page stated in a report by the Interactive Audio Special [9]. We considered JSyn to be a powerful and flexible Interest Group [3]: platform in reference to this project. Our main concern was that JSyn was created and supported by a sympathetic but very small company [10]. The JSyn website indicated that the programming environment Adaptive Music Java Applets had not been maintained on a regular basis. We were not entirely convinced that JSyn would be supported Java library of MSP objects or even available in the distant or near future. (groove~, cycle~, reson~, etc.) Java Sound API version 1.5 or higher 3.4. FLASH Java Virtual Machine Flash is a commercial product, marketed by Adobe Systems, which includes a professional authoring Windows XP Mac OS X program and a player provided free for end users. Fig. 1. Java implementation of Max/MSP patches. Since its introduction by Macromedia in 1996, Flash has become a popular platform for adding animation and interactivity to web pages. Flash is commonly 4. COMPOSITIONS used to create animation, advertisements, web art and to integrate video into web pages [11]. Originally Six composers were involved in the project: designed for animation, Flash has a number of limitations and drawbacks in relation to audio in • Jens Hørsving general, and regarding interactive audio in particular.
Recommended publications
  • The Viability of the Web Browser As a Computer Music Platform
    Lonce Wyse and Srikumar Subramanian The Viability of the Web Communications and New Media Department National University of Singapore Blk AS6, #03-41 Browser as a Computer 11 Computing Drive Singapore 117416 Music Platform [email protected] [email protected] Abstract: The computer music community has historically pushed the boundaries of technologies for music-making, using and developing cutting-edge computing, communication, and interfaces in a wide variety of creative practices to meet exacting standards of quality. Several separate systems and protocols have been developed to serve this community, such as Max/MSP and Pd for synthesis and teaching, JackTrip for networked audio, MIDI/OSC for communication, as well as Max/MSP and TouchOSC for interface design, to name a few. With the still-nascent Web Audio API standard and related technologies, we are now, more than ever, seeing an increase in these capabilities and their integration in a single ubiquitous platform: the Web browser. In this article, we examine the suitability of the Web browser as a computer music platform in critical aspects of audio synthesis, timing, I/O, and communication. We focus on the new Web Audio API and situate it in the context of associated technologies to understand how well they together can be expected to meet the musical, computational, and development needs of the computer music community. We identify timing and extensibility as two key areas that still need work in order to meet those needs. To date, despite the work of a few intrepid musical Why would musicians care about working in explorers, the Web browser platform has not been the browser, a platform not specifically designed widely considered as a viable platform for the de- for computer music? Max/MSP is an example of a velopment of computer music.
    [Show full text]
  • An Investigation of Audio Signal-Driven Sound Synthesis with a Focus on Its Use for Bowed Stringed Synthesisers
    AN INVESTIGATION OF AUDIO SIGNAL-DRIVEN SOUND SYNTHESIS WITH A FOCUS ON ITS USE FOR BOWED STRINGED SYNTHESISERS by CORNELIUS POEPEL A thesis submitted to the University of Birmingham for the degree of DOCTOR OF PHILOSOPHY Department of Music The University of Birmingham June 2011 University of Birmingham Research Archive e-theses repository This unpublished thesis/dissertation is copyright of the author and/or third parties. The intellectual property rights of the author or third parties in respect of this work are as defined by The Copyright Designs and Patents Act 1988 or as modified by any successor legislation. Any use made of information contained in this thesis/dissertation must be in accordance with that legislation and must be properly acknowledged. Further distribution or reproduction in any format is prohibited without the permission of the copyright holder. Contents 1 Introduction 1 2 Motivation 10 2.1 Personal Experiences . 10 2.2 Using Potentials . 14 2.3 Human-Computer Interaction in Music . 15 3 Design of Interactive Digital Audio Systems 21 3.1 From Idea to Application . 24 3.2 System Requirements . 26 3.3 Formalisation . 30 3.4 Specification . 32 3.5 Abstraction . 33 3.6 Models . 36 3.7 Formal Specification . 39 3.8 Verification . 41 4 Related Research 44 4.1 Research Field . 44 i CONTENTS ii 4.1.1 Two Directions in the Design of Musical Interfaces . 46 4.1.2 Controlling a Synthesis Engine . 47 4.1.3 Building an Interface for a Trained Performer . 48 4.2 Computer-Based Stringed Instruments . 49 4.3 Using Sensors .
    [Show full text]
  • Interactive On-Line Testing of Java and Audio Support on Web Browsers
    HELSINKI UNIVERSITY OF TECHNOLOGY Department of Electrical and Communications Engineering Laboratory of Acoustics and Audio Signal Processing Eduardo García Barrachina Interactive On-line Testing of Java and Audio Support on Web Browsers Master’s Thesis submitted in partial fulfillment of the requirements for the degree of Master of Science in Technology. Espoo, Nov 25, 2003 Supervisor: Professor Matti Karjalainen Instructors: Martti Rahkila HELSINKI UNIVERSITY ABSTRACT OF THE OF TECHNOLOGY MASTER'S THESIS Author: Eduardo García Barrachina Name of the thesis: Interactive On-line Testing of Java and Audio Support on Web Browsers Date: Nov 25, 2003 Number of pages: 83 Department: Electrical and Communications Engineering Professorship: S-89 Supervisor: Prof. Matti Karjalainen Instructors: Martti Rahkila M.Sc. (Tech.) This Master’s Thesis deals with on-line testing of web browser capabilities. In particular, we are interested in determining whether the Java platform is present on a given host machine and if certain sound samples can be played through the use of Java applets. To achieve these goals a testing application has been developed. The tests try to determine whether the browser accessing the application has any kind of Java support. If this is the case, some sound samples are played through the use of Java applets to find out the audio capabilities of the system. Help concerning the enabling of the Java platform and the correct audio (both hardware and software) settings is made available for the user. The application tests for different Java graphical interfaces such as AWT and Swing and tries to play different audio formats such as au, wav or aiff with the use of Java applets.
    [Show full text]
  • The Web Browser As Synthesizer and Interface
    The Web Browser As Synthesizer And Interface Charles Roberts Graham Wakefield Matthew Wright Media Arts and Technology Graduate School of Culture Media Arts and Technology Program Technology Program University of California KAIST University of California at Santa Barbara Daejon, Republic of Korea at Santa Barbara [email protected] [email protected] [email protected] ABSTRACT having to learn the quirks and eccentricities of JavaScript, Our research examines the use and potential of native web HTML and CSS simultaneously. We designed the syntax technologies for musical expression. We introduce two Java- of Gibberish.js and Interface.js so that they can be utilized, Script libraries towards this end: Gibberish.js, a heavily op- both independently or in conjunction, almost entirely using timized audio DSP library, and Interface.js, a GUI toolkit JavaScript alone, requiring a bare minimum of HTML and that works with mouse, touch and motion events. Together absolutely no CSS (see Section 5). The library downloads these libraries provide a complete system for defining musi- include template projects that enable programmers to safely cal instruments that can be used in both desktop and mobile ignore the HTML components and begin coding interfaces web browsers. Interface.js also enables control of remote and signal processing in JavaScript immediately. synthesis applications via a server application that trans- lates the socket protocol used by web interfaces into both 2. PROBLEMS AND POSSIBILITIES OF MIDI and OSC messages. THE WEB AUDIO API In 2011 Google introduced the Web Audio API[14] and in- Keywords corporated supporting libraries into its Chrome browser.
    [Show full text]
  • An Audio Synthesis Library in C for Embedded (And Other) Applications
    OOPS: An Audio Synthesis Library in C for Embedded (and Other) Applications Michael Mulshine Jeff Snyder Princeton University Princeton University 310 Woolworth Center 310 Woolworth Center Princeton, NJ 08544 Princeton, NJ 08544 [email protected] [email protected] ABSTRACT RT Linux1 to make audio and analog/digital input process- This paper introduces an audio synthesis library written in ing the highest priority (even above the operating system). C with \object oriented" programming principles in mind. For many researchers, installation artists, and instrument We call it OOPS: Object-Oriented Programming for Sound, builders, this solution meets their needs. or, \Oops, it's not quite Object-Oriented Programming in If the developer's goal is to affordably build attractive C." The library consists of several UGens (audio compo- sound installations and standalone electronic musical in- nents) and a framework to manage these components. The struments, the aforementioned embedded computers aren't design emphases of the library are efficiency and organiza- always suitable. They are expensive and, depending on tional simplicity, with particular attention to the needs of the physical design specifications of an application, some- embedded systems audio development. what bulky. Embedded Linux computers have compara- tively high current demands, and have little control over power consumption. Furthermore, they generally rely on Author Keywords 3rd-party hardware, which may cause issues if the project has commercialization goals. Library, Audio, Synthesis, C, Object-Oriented, Embedded, We opt instead to use 32-bit microcontrollers, such as DSP the STM32F7 [14]. These microcontrollers are small, inex- pensive, and low-power. They run \bare-metal," indepen- ACM Classification dent of an operating system, using only interrupts to con- trol program flow.
    [Show full text]
  • A Language for Interactive Audio Applications
    A Language for Interactive Audio Applications Roger B. Dannenberg School of Computer Science, Carnegie Mellon University email: [email protected] Abstract abstraction mechanisms and orthogonal features. They should provide general building blocks rather than special- Interactive systems are difficult to program, but high-level case solutions, and languages should minimize the semantic languages can make the task much simpler. Interactive gap between language concepts and application concepts. audio and music systems are a particularly interesting case because signal processing seems to favor a functional language approach while the handling of interactive 2 Existing Approaches parameter updates, sound events, and other real-time There are many systems available for digital audio computation favors a more imperative or object-oriented including music synthesis and processing. A standard approach. A new language, Serpent, and a new semantics reference is csound (Boulanger, 2000), which has roots in for interactive audio have been implemented and tested. The the Music N languages (Mathews, 1969). The csound result is an elegant way to express interactive audio orchestra language illustrates both good and bad features for algorithms and an efficient implementation. an interactive audio programming language. The good features include a somewhat functional style in which 1 Introduction sounds are created by instances of functions (instruments) and where instances of function-like unit generators are Creating interactive audio programs is difficult and not created simply by mentioning them in an expression. It very well supported by traditional programming languages seems to be natural to express signal-processing algorithms such as Lisp, C++, or Java. Libraries built upon these in terms of an acyclic graph (or patch), and the csound languages can help, but even with library support, creating a orchestra programs tend to be semantically close to this dynamic, interactive, reliable system is very difficult.
    [Show full text]