1 / 1

NTCCRT: A CONCURRENT CONSTRAINT FRAMEWORK FOR REAL -TIME INTERACTION

NTCCRT: A CONCURRENT CONSTRAINT FRAMEWORK FOR REAL -TIME INTERACTION. Mauricio Toro- Bermúdez Camilo Rueda Carlos Agón Gérard Assayag. Universidad Javeriana Cali (PUJC) PUJC IRCAM IRCAM - CNRS UMR 9912. ABSTRACT. INTRODUCTION.

eara
Télécharger la présentation

NTCCRT: A CONCURRENT CONSTRAINT FRAMEWORK FOR REAL -TIME INTERACTION

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. NTCCRT: A CONCURRENT CONSTRAINT FRAMEWORK FOR REAL-TIME INTERACTION Mauricio Toro-BermúdezCamiloRueda Carlos AgónGérardAssayag Universidad Javeriana Cali (PUJC) PUJC IRCAM IRCAM - CNRS UMR 9912 ABSTRACT INTRODUCTION Although Pd and Max support concurrency, it is a hard task to trigger or halt a process based on multiple criteria. Using Pd or Max, it is hard to express: “process A is going to do an action B until a condition C is satisfied”, when condition C is a complex condition resulting from many other processes’ actions. Such condition would be hard to express (and even harder to modify afterwards) using the graphical patch paradigm. For instance, condition C can be a conjunction of these criteria: (1) has played the chord G7, (2) the user played all the notes on the C-major tonality, and (3) played the note F# among the last four notes. Using ntcc, we can represent the complex condition C (presented above) as the conjunction of constraints c1,c2 and c3. Each constraint (i.e., mathematical condition) represents a criterion. Multimedia interaction systems are complex. Concurrent processes may access shared resources in a non-deterministic order, leading to unpredictable behavior. Using Pure Data (Pd) and Max/MSP is possible to program concurrency, but it is difficult to synchronize processes based on multiple criteria. The Non-deterministic Timed Concurrent Constraint (ntcc) calculus overcome that problem by representing multiple criteria as constraints. Ntccrt is our real-time capable interpreter for ntcc. Ntccrt can manage concurrency in Pd and Max. Using Ntccrt binary plugins in Pd, we ran models for machine improvisation and signal processing. Multimedia interaction systems can be modeled using Concurrent Process Calculi (CPC). CPC are useful to describe formally the behavior of concurrent systems and to prove properties about them. Ntcc [1] was used to model audio processing [2] and a real-time (RT) machine improvisation [3]. There are three interpreters for ntcc, but they are not suitable for RT interaction because they are not able to interact with the users without letting them experience noticeable delays in the interaction. On the other hand, we can program RT systems using C++. Unfortunately, using C++ requires long development time. To overcome that problem, programming languages such as Pd and Max/MSP, provide a graphical interface to program RT systems and concurrent programs. HOW TO DEVELOP A CORRECT MULTIMEDIA INTERACTION SYSTEM ON MAX/MSP OR PURE DATA ON NTCCRT SPECIFY THE SYSTEM VERIFY THE SYSTEM ? PRISM Model Checker EXECUTE THE SYSTEM RESULTS CONCLUSIONS, CURRENT AND FUTURE WORK We ran a Concurrent Constraint Factor Oracle Model for Music Improvisation [3] using Ntccrt over an Intel 2.8 GHz using Mac OS 10.5.2 and the constraint solving library Gecode 2.2.0. Producing each note took an average of 20 ms. Pachet argues in [4] that an improvisation system able to learn and produce sequences in less than 30 ms is appropriate for real-time interaction. We present Ntccrt as a framework to manage concurrency in Max and Pd. In our paper, we present a machine improvisation and a signal processing system. We ran both applications using Ntccrt external objects for Pd. We encourage the use of process calculi to develop reactive systems. For that reason, this research focuses on developing real-life applications with ntcc. It also shows that our interpreter Ntccrt is a user-friendly tool, providing a graphical interface to specify ntcc models and compiling them to efficient C++ programs capable of real-time interaction in Pd. We argue that using process calculi (such as ntcc) to model, verify and execute reactive systems decreases the development time and guarantees correct process synchronization, in contrast to the graphical patch paradigm of Pd and Max. Using the graphical paradigm is difficult and is time-demanding to synchronize processes depending on complex conditions. On the other hand, using Ntccrt, we can model such systems with a few graphical boxes in OpenMusic or a few lines in Common Lisp, representing complex conditions with constraints. Currently, we are developing tools to simulate and verify (e.g., the system will go to a successful state with probability p under t discrete time-units) models specified on ntcc and its probabilistic extension. In the future, we will use these tools to verify real-time systems before executing them. ACKNOWLEDGMENTS This research was partially founded by the Colombian Agency for Science and Technology (COLCIENCIAS), under the REACT project. We also want to thank to ArshiaCont, FivosManiatakos, Jorge Pérez, Carlos Toro-Bermúdez, Jean Bresson, Gustavo Gutiérrez, IRCAM staff and the Gecode developers. REFERENCES [1] M. Nielsen, C. Palamidessi, and F. Valencia, “Temporal concurrent constraint programming: Denotation, logic and applications,” Nordic Journal of Computing, vol. 1, 2002. [2] C. Rueda and F. Valencia, “A temporal concurrent constraint calculus as an audio processing framework,” in SMC 05, 2005. [3] C. Rueda, G. Assayag, and S. Dubnov, “A concurrent constraints factor oracle model for music improvisation,” in XXXII CLEI 2006, 2006. [4] F. Pachet, “Playing with virtual musicians: the continuator in practice,” IEEE Multimedia, vol. 9, pp. 77–82, 2002. CONTACT DETAILS: Mauricio Toro-Bermúdez. mauriciotorob@gmail.com. Ntccrtis available at http://ntccrt.sourceforge.net

More Related