Page  00000001 Models and Deformations in Procedural Synchronous Sound for Animation Robin Bargar (rbargar, Alex Betts, Kelly Fitz, Insook Choi NCSA, University of Illinois at Urbana-Champaign, 405 N. Mathews, Urbana, IL 61801 Abstract Numerical simulations used in computer animation provide computational environments for algorithmic sound production. We discuss the parallel production of images and sounds from a common model, and the data generated in such a model. Two cases are presented, one based upon classical differential equations, the other based upon parameterized gestures. 1. Introduction Advanced computer graphics are moving away from manual modeling and animation, where each object and each frame are created by hand, towards automated spatial and temporal image production. Spatial: modeling objects based upon photographic data, and temporal: animated movements of objects based upon simulations of dynamical systems. These practices have enabled more efficient production of complex scenes, and they foreground the algorithmic relevance of aesthetic results from numerical simulations. The emergence of tools for data-driven and procedural animation provides a platform for sound synthesis production in those systems. Automated production of synchronous sound has potential applications in computer graphics-based production. At the same time, parallel image and sound rendering systems indicate new possibilities for the aesthetic integration of images and sounds. The 20th century marks the large-scale pursuit of mechanical and electronic synchronization of image and sound. Some experimental approaches provide alternatives to the dominant realism in film and video production. These alternatives may be thought of as algorithms for situating a recording apparatus in an environment, and staging the artist's choices as a function of the transformations generated by the apparatus in the resulting representation. These experiments remind us that 'realism' is a fictional style, far removed from the documentary material of the real. In present-day animation production we see the return of mechanized algorithms, often applied towards achieving an automated cinematic realism. The rise of an "algorithmic realism" provides a new site for musical composition using automation. It also provides a site for aesthetic inquiries concerning representation and realism in music. Case Studies There are numerous compositional approaches to the integration of sounds and images. Results reported by Florens (1998), Cook (1995a) and Takala (1993) are related to the present work. We introduce experimental data-driven methods into a mature animation production environment, creating a series of compositions in computer animation where sounds are generated in correspondence to the data and dynamics used to control the animation. The correspondences can be tuned to be audible in the computed sounds. The dynamics of the sounds are parameterized in synthesis algorithms, and these algorithms are controlled by the application of techniques for the visual display of data. Where a graphical display is dynamically computed to visualize data or a numerical model, sound can be computed to respond to the same dynamics, to achieve a coupling of sound and image that is informative about the states of the underlying simulation. In this paper we discuss results from two approaches to automated synchronization: (1) sound synthesis controlled by a physically-based particle system, and (2) deformation of sounds using parameterized gestures for deformation of polygonal objects. In the first approach a particle system generates detailed graphical motion that would be impractical to draw by hand. Collisions and accelerations are applied to the control of the animation, and these same events are applied to create sounds, varying resonance and spectral characteristics according to the forces and materials in each collision. In the second approach deformation of 3D graphical objects is coupled to the deformation of sounds using a bandlimited spectral peaks method of analysis and re-synthesis, and a recently-reported method for sound morphing. The deformation gestures are parameterized in animation control channels that provide time-varying functions applied to transformations of the 3D model. These functions and their channel organization for animation provide a hierarchical interface for the control of sound synthesis. Data-Driven Synchronization Data-driven synchronization of sound and image is based upon the instruction sets that generate graphics, rather than relying upon the graphics themselves to provide the control data. Figure 1 shows how this approach differs from film and video production. Classical post production relies upon the linear recording medium as a common denominator, with the frame count as the only data shared between image and sound. This approach requires manual interpretation to fit sounds to images. It is a labor-intensive process where the sounds rarely have a material relationship to the images. The realism fabricated between image and sound can be considered an idealist mode of production. We explore a materialist mode where a composer's vocabulary articulates a position with respect to an automaton. By not assuming the mechanics of cinematic reproduction we shift away from the 19th and 20th century dependence upon the linearity of the storage medium as an organizing principle for composition, towards a non-linearity of alternatives generated during interactive presentation. This represents a relocation of perceptual models from the recording apparatus to the computational apparatus. The relocation suggests a mode of production where the composition is articulated as a relationship between perceptual models and analyzed and resynthesized media.

Page  00000002 Figure 1 and results were first reported in 1993 as part of CAVE research (Bargar 1993), an interactive real-time display. To apply this practice to traditional animation we used a hybrid approach, converting the results of the Figure lB architecture into a linear movie format of Figure IA. Figure 1: Comparison of cinema soundtrack postproduction and data-driven sound-image production. (A) In the cinematic system diverse media are assembled. (B) In the data-driven system simulation data is interpreted by transfer functions and applied to sound and image synthesis. A. 71iI III III III III II e EISmImage B. SIM Sound 2. Procedural Sound from Equations of Motion The short animation Music for Unprepared Piano (Bargar 1998) uses particle system dynamics to determine graphics and sound events. The graphics are generated by a visualization system for rendering particles in a scene made of rigid-body polygonal objects. The sounds are generated in VSS (Bargar 1994) using physically-based models from the STK toolkit (Cook 1995b) to simulate blown, struck and plucked instruments. Techniques for spatial and temporal composition are applied. Differential equations describe a numerical simulation of 3D space, while 3D geometry describes a corresponding graphical space. The space is designed to provide a variety of material conditions for generating events, comprising a meta-instrument for graphics and sound production. Compositional decisions determine the dimensions of the space, the locations of objects that may be struck by particles, and the material properties of those objects. The particles introduced into the space are the only objects with sound-producing motion. The graphics depicting immobile objects are not simulated from physically-based equations. Instead their positions and materials are recorded and used to index sound production. Sound synthesis models represent the variety of physical properties of the objects. Animation Software Interface Graphics in Music for Unprepared Piano were produced using Alias/Wavefront's Maya. Audio control messages were generated by analyzing the animation. Maya is a highend commercial application used for producing threedimensional computer animation and visual effects. Users create geometric models, set up motion paths, and render a series of frames that are viewed on videotape or film. Typically, animation is achieved by posing the objects at important points called keyframes; frames in-between the keyframes are interpolated by the software. A great many keyframes must be specified to create realistic-looking motion. Maya provides the ability to generate animation procedurally with physically-based simulations. Using this method, animators specify the physical properties and initial locations and velocities of the objects, and the software generates the movement by solving a system of differential equations. Procedural animation can produce fairly realistic motion with much less effort on the part of the animator, and is most useful for particle effects such as liquids, smoke, and hair. Music for Unprepared Piano uses Maya's particle dynamics to simulate a barrage of tennis balls and marbles striking the strings and case of a piano. Visually we provide a geometric depiction of a grand piano and a fire hose on a concert stage - the hose designating the initial position for particles. Figure 2 shows the wire frame model of this space. Events are composed solely by scheduling a sequence of parameter changes to the particle system. Parameters include the number of particles, their initial positions, their initial velocity (force and direction of motion), and the times at which new particles are introduced. Material properties of the particles include diameter, mass, friction, and restitution. Each blast of the fire hose schedules a new group of particles, and produces an extended sequence of events caused by the motion path and collisions of each particle. The acoustic dramaturgy derives directly from the simulated causality in the equations of motion. Figure 3 represents the "score" and resulting sound file for one realization of the animation. Figure 2: Wireframe model of the geometric space in Music for Unprepared Piano. White lines show collision detection polygons on the piano and floor.

Page  00000003 All of the visual behavior of the particles, including collision response, are calculated in Maya. For each rendition of the animation the simulation is run for 1800 frames (equivalent to 60 seconds of screen time), out of real-time, on a Silicon Graphics machine with an R10000 processor. The particle simulation is cached into a series of text files that store the position and velocity of each particle for every frame. The simulation is computed at a time resolution of 0.01 seconds, however the time resolution of the animation frame rate is 0.033333 seconds (30 frames-per-second). The regularity of the frame rate can be audible if the onset of collision sounds are aligned to the time step of the frames. This periodicity is not part of the simulation, it is an artifact of the time limit of the frame rate superimposed upon the particle dynamics. Because Maya exports data only at the time interval of the frame, acoustic approximation of the original time resolution of the simulation is necessary. To avoid periodicity artifacts in the clusters of sounds, collisions in each frame are assigned random onset times within their 1/30 second frame boundary. Data-Driven Sound Synthesis The soundtrack is synchronized to the animated collision of particles with the piano's strings, parts of the piano's case, and the stage floor where the piano sits. As many as 100 particles are computed for a single blast. Each particle creates a sound every time it collides with a surface - a level of detail that is impractical to duplicate by hand. Each collision sound is modulated by the velocity of the particle at the time of the collision. The sounds are synthesized in VSS, with code written to connect Maya to VSS. Maya provides an API that allows developers to write standalone C++ applications that can access information about a Maya scene. Unfortunately the Maya API does not provide detailed information about the behavior of its dynamics, including collision events. The C++ application performs an accurate analysis by reading the cached particle simulation, and for each frame, determining which particles are striking the relevant geometry, and at what velocity. The application then outputs a file that is executed by VSS to generate the soundtrack. Figure 3: Timeline of parameter inputs and resulting soun Piano. Vertical bars represent the number of particles in "M" indicate attributes of the particles creating "tennis ba file waveform shows the extended collision sound events 0:0:04:16.7:30.6:41.7:50 1:01:10.5 13.6:20.7:28.5:33.7:57.5 M II I I t tI 00 0:: P20:30:40:50 100 100 60 40 20 ______ 10 o _ 3. Sound Morphing from Geometric Deformations Toy Angst is a short animation featuring sound morphing to dramatize narrative events. The sounds are related to a visual object that is understood to produce sounds: an inflated toy ball that squeaks when pressure is applied. The degree of pressure and the resulting deformation of the ball exhibit a corresponding transformation of the squeaking sounds. When excessive pressure is applied to the ball it deforms into the shapes of other toys. When the ball morphs the squeaking sound morphs into a corresponding new sound. The repertoire includes an elephant, a car, a cat, and their combinations. As with Music for Unprepared Piano the sound control in Toy Angst is derived from the instruction sets and data that control the graphics. The sound is not derived directly from the graphical image. In this case the underlying model is spatial and gestural: deformations of geometric objects are encoded as parameterized gestures. The parameters are represented as animation control channels, and each channel provides a time-varying function applied to the 3D transformation of the vertices and edges of one or more polygons that make up the object. Some control channels affect groups of other channels. Select control functions are applied in parallel to the parameters of a sound morphing synthesis algorithm. The synthesis algorithm is based upon spectral analysis and does not operate in real-time. The resulting sounds are manually situated in the animation soundtrack aligned to the graphical events. Bandwidth-Enhanced Analysis and Re-synthesis Sounds for deformation and morphing are derived from spectral analyses of natural sounds, using a new analysis and re-synthesis method to apply transformations. The Reassigned Additive Bandwidth-Enhanced Model (RBEAM) shares with traditional sinusoidal methods the notion of temporally connected partial parameter estimates, but by contrast the reassigned estimates are non-uniformly distributed in both time and frequency, yielding greater resolution in time and frequency than is possible using conventional additive techniques Fitz 2000a, 2000b). RBEAM expands the ds in Music for Unprepared notion of a partial to each burst. Tracks "T" and include the representation ls" or "marbles". The audio of both sinusoidal and of each burst. noise energy by a single component type. RBEAM 5 partials are defined by a 1:06-5 trio of synchronized breakpoint envelopes r:::it' 1 specifying the timevarying amplitude, center frequency, and noise content (or bandwidth) for each component. The bandwidth envelope represents a mixture of ':a o sinusoidal and noise energy with a single component. Bandwidth association is the process -IN 88:aa 88 188 s1 88 88 1: _88~8 8~ 8 _~8 888

Page  00000004 of constructing the bandwidth envelopes for RBEAM partials, determining how much noise energy should be represented by each partial. RBEAM partials are synthesized using a stochastic modulation technique for spectral line widening. The timevariant parameters of RBEAM partials can manipulate both sinusoidal and noisy components of sound in an intuitive way, using a familiar set of controls. The encoding of noise associated with an RBEAM partial is robust under partial parameter transformations, and is independent of other partials in the representation. RBEAM partials can be modified without destroying the character of noisy sounds or introducing audible artifacts related to the representation of noise. Sound Morphing Sound morphing is achieved by interpolating the timevarying frequencies, amplitudes, and bandwidths of corresponding partials obtained from RBEAM analysis of the source sounds (Haken 1998). Correspondences between partials in the source sounds are established by the process called distillation. The frequency spectrum is partitioned into channels having time-varying widths and center frequencies, and each channel having a unique identifier. All partials falling in a particular channel are distilled into a single partial, which is assigned the corresponding identifier, leaving at most a single partial per frequency channel (channels that contain no partials are not represented in the distilled partial data). Distillation is performed on the initial and the destination sound to be used in the morph, with common channel identifiers assigned to channels that share the same frequency range. When a morph operation is applied each pair of distilled partials having a common identifier is interpolated at their frequency, amplitude, and bandwidth envelopes according to the morphing function. Distilled partials in one source that have no corresponding partial in the other source are faded in and out according to the morphing function. The product of a morph is a set of partials, just like the source data, specifically, there is a single partial for each distillation channel identifier represented in either of the source sounds. The various morph sources need not be distilled using identical sets of frequency channels. However if the frequencies of a source and a destination channel are dissimilar, then dramatic partial frequency sweeps may dominate other audible effects of the morph, so care must be taken to coordinate the frequency channels used in the distillation process. Significant temporal features of the source sounds can be synchronized to optimize continuity in morphing results. Time dilation stretches or compresses the time domain of the analysis data. Dilation can be applied to each source sound prior to morphing in order to align features that the composer wishes to coincide in the resulting morph. Synchronization with Graphics To synchronize the sound and graphical transformations, two processes are applied. (1) Time dilations are scheduled so that audible features of the morph coincide with visible features of the graphical deformation. (2) RBEAM control envelopes are modulated by the graphical control functions of the animation deformation channels. Modulation of the RBEAM channels imparts the temporal character of the graphical deformation gesture onto the time domain characteristics of the audio morph. The mapping of graphics deformation channels onto audio morphing channels may be considered crude compared to an integrated physical model that describes the structure and the equations of motion for both light and audio wave propagation. However, considered as a parameterized model of a gesture the animation channels provide a coherent perceptual model that serves as a source for parallel transformation of sounds, and automates a level of detail that is difficult to manually reproduce. 4. Conclusions These projects required significant hands-on conversion to fit an automated sound production system developed for VR, into a linear track-based post production environment. Further work is required to determine the feasibility to generalize this approach for production environments. Key issues include the reliability of animation data and a general method for its interpretation. Adoption of automated sound production in animation systems could provide a benefit for animators, and provide a new class of visual interface for composers to organize and realize works. 5. References Bargar, R., and Das, S. "Sound Synthesis and Auditory Display in the CAVE." Applied Virtual Reality Course Notes, SIGGRAPH '93. ACM, 1993. Bargar, R., Choi, I., Das, S. and Goudeseune, C. "Modelbased interactive sound for an immersive virtual environment." Proceedings ICMC 94. San Francisco, ICMA, 1994, pp. 471-474. Bargar, R, Betts, A., Choi, C, Beddini, A., and Cook, P. Music for Unprepared Piano, SIGGRAPH Electronic Theater and SIGGRAPH Video Review, SIGGRAPH '98, ACM, 1998. Cook, P. "Integration of Physical Modeling for Synthesis and Animation." Proceedings of ICMC 95. San Francisco, ICMA, 1995. pp. 525-28. Cook, P. 1995. A Hierarchical System for Controlling Synthesis by Physical Modeling, In Proceedings of the ICMC. ICMA, 1995. pp. 108-109. Fitz, K., Haken, L. and Christensen, P. "A New Algorithm for Bandwidth Association in Bandwidth-Enhanced Additive Sound Modeling." In this volume. Fitz, K., Haken, L. and Christensen, P. "Transient Preservation Under Transformation In an Additive Sound Model." In this volume. Florens, J-L, Cadoz, C. and Lucinai, A. "A Real-time workstation for Physical Model of Multi-Sensorial and Gesturally Controlled Instrument." Proceedings of ICMC 98. San Francisco, ICMA, 1998. pp. 518-26. Haken, L., Tellman, E. and Wolfe, P. " An Indiscrete Music Keyboard." Computer Music Journal vol. 22 number 1. 1998, pp 30-48. Takala, T., Hahn, J., Gritz, L., Geigel, J. and Lee, J. "Using Physically-based Models and Genetic Algorithms for Functional Composition of Sound Signals, Synchronized to Animated Motion." Proceedings of ICMC 93. San Francisco, ICMA, 1993. pp. 180-83.