Programmation 3

Total Page:16

File Type:pdf, Size:1020Kb

Programmation 3 Programmation 3 Charg´ee de cours : Ir`ene Durand Charg´ede TD : Kahn Le Ngoc Kim Cours 7 s´eances de 3h : Cours (1) 8h30-11h30, du 15/12, 16/12, 19/12, 20/12 Cours (2) 13h00-16h00 les 14/12, 16/12 et 19/12 http://dept-info.labri.fr/~idurand/Enseignement/PFS/vietnam.html 1 Objectifs Maˆıtriser un certain nombre de m´ethodes et tech- niques de programmation — symbolique, fonctionnelle — imp´erative, objet dans le but de Ecrire´ des applications — maintenables, r´eutilisables, — lisibles, modulaires, — g´en´erales, ´el´egantes. Aspects de la programmation non enseign´es : — Efficacit´eextrˆeme — Temps r´eel — Applications particuli`eres (jeu, image, num´erique, ...) 2 Contenu Langage support Langage Common Lisp — SBCL: Steele Bank Common Lisp http://www.sbcl. org/ Support de cours — Robert Strandh et Ir`ene Durand : Trait´ede programmation en Common Lisp — Transparents Pourquoi Common Lisp ? — Langage tr`es riche (fonctionnel, symbolique, ob- jet, imp´eratif) — Syntaxe simple et uniforme — S´emantique simple et uniforme — Langage programmable (macros, reader macros) — Repr´esentation de programmes sous la forme de donn´ees 3 — Normalis´epar ANSI — Programmation par objets plus puissante qu’avec d’autres langages Bibliographie Peter Seibel Practical Common Lisp Apress Paul Graham : ANSI Common Lisp Prentice Hall Paul Graham : On Lisp Advanced Techniques for Common Lisp Prentice Hall Sonya Keene : Object-Oriented Programming in Common Lisp A programmer’s guide to CLOS Addison Wesley David Touretzky : Common Lisp : A Gentle introduction to Symbolic Computation The Benjamin/Cummings Publishing Company, Inc 4 Autres documents The HyperSpec (la norme ANSI compl`ete de Common Lisp, en HTML) http://www.lispworks.com/documentation/HyperSpec/Front/index.htm SBCL User Manual http://www.sbcl.org/manual/ CLX reference manual (Common Lisp X Interface) Guy Steele : Common Lisp, the Language, second edition Digital Press, (disponible sur WWW en HTML) David Lamkins : Successful Lisp (Tutorial en-ligne) 5 Historique de Common Lisp Langage con¸cu par John McCarthy entre 1956 et 1959 au MIT pour des applications li´ees `al’intelligence artificielle (avec Fortran l’un des plus vieux langages toujours utilis´es) — Issu de la th´eorie du Lambda-Calcul de Church — Dans les ann´ees 1970, deux dialectes : Interlisp et Maclisp — Aussi : Standard Lisp, NIL, Lisp Machine Lisp, Le Lisp — Travail pour uniformiser les dialectes : Common Lisp — Normalis´epar ANSI en 1994 6 Common Lisp aujourd’hui Conf´erences — ELS (Bordeaux 08, Milan 09, Lisbone 10, Ham- bourg 11, Zadar 12, Madrid 13, Paris 14, Londres 15, Cracovie 16) http://www.european-lisp-symposium.org/ — Lisp50@OOPSLA http://www.lisp50.org/, 08 — ILC (Standford 05, Cambridge 07, MIT 09, Reno 10, Kyoto 12, Montr´eal 14) http://www.international-lisp-conference.org/10 Forums fr.comp.lang.lisp Chat (avec xchat par exemple) /serveur: irc.freenode.net /join #lisp http://webchat.freenode.net/ #lisp 7 Logiciels/Entreprises utilisant CL — Entreprises et Logiciels commerciaux ITA Software http://www.itasoftware.com Igor Engraver Editeur´ de partition musicales http://www.noteheads.com RavenPack International http://www.ravenpack.com/aboutus/employment.htm — Plate-forme Web : BioCyc Plate-forme d’acc`es BD biologiques (voies m´etaboliques/g´enome) http://www.biocyc.org — Logiciels libres CARMA Case-based Range Management Adviser http://carma.johnhastings.org/index.html BioBike Base de connaissance programmable pour la biologie http://biobike.csbc.vcu.edu OpenMusic Langage visuel pour la composition musicale http://repmus.ircam.fr/openmusic/home GSharp Editeur´ de partitions musicales http://common-lisp.net/project/gsharp Liste de logiciels libres http://www.cliki.net/index 8 Calcul Symbolique num´erique/symbolique Avec des bits on peut coder des nombres mais aussi des objects de type mot ou phrase En Lisp, — objects de base : sortes de mots appel´es atomes, — groupes d’atomes : sortes de phrases appel´ees listes. Atomes + Listes = Expressions symboliques (S-expr) — Lisp manipule des S-expr — un programme Lisp est une S-expr, donc mˆeme repr´esentation pour les programmes et les donn´ees. — Cons´equence : possibilit´ed’´ecrire des programmes qui se modifient ou modifient ou produisent des programmes. 9 Applications de Calcul Symbolique Toute application non num´erique, en particulier — Intelligence artificielle (syst`emes experts, interfaces en langages naturel,...) — Raisonnement automatique (preuves de th´eor`emes, preuves de programmes,...) — Syst`emes (impl´ementation de langages, traitement de texte,...) — Calcul formel — Jeux Voir http://www.cl-user.net 10 Comment faire pour apprendre `a programmer ? Il faut surtout lire beaucoup de code ´ecrit par des experts. Il faut lire la litt´erature sur la programmation. Il n’y en a pas beaucoup (peut-ˆetre 10 livres). Il faut programmer. Il faut maintenir du code ´ecrit par d’autres personnes. Il faut apprendre `aˆetre bien organis´e. 11 Standards de codage Il faut s’habituer aux standards de codage Pour Common Lisp, suivre les exemples dans la litt´erature, en particulier pour l’indentation de programmes qui est tr`es standardis´ee (et automatis´ee). Il faut pouvoir comprendre le programme sans regarder les parenth`eses. L’indentation n’est donc pas une question de goˆut personnel. Il faut utiliser SLIME (Superior Lisp Interaction Mode for Emacs) http://common-lisp.net/project/slime/ 12 Common Lisp est interactif Common Lisp est presque toujours impl´ement´esous la forme de syst`eme interactif avec une boucle d’interaction (read-eval-print loop ou REPL). Une interaction calcule la valeur d’une S-expression, mais une S-expression peut aussi avoir des effets de bord. En particulier, un effet de bord peut ˆetre de modifier la valeur d’une variable, de cr´eer une fonction, d’´ecrire sur l’´ecran, dans un flot... Le langage n’a pas la notion de programme principal. Il est n´eanmoins possible de pr´eciser la fonction `aex´ecuter quand l’application est lanc´ee. Normalement, on lance Lisp une seule fois par s´eance. 13 Common Lisp est interactif (suite) Au CREMI, une s´eance est un TD ou une demi-journ´ee de travail. Sur un ordinateur personnel, une s´eance peut durer des mois. Le langage est con¸cu pour le d´eveloppement interactif. Les instances d’une classes sont mises `ajour quand la d´efinition d’une classe change, par exemple. La programmation fonctionnelle (sans effets de bord) est elle-mˆeme adapt´ee `al’´ecriture d’applications interactives. 14 Lancer le syst`eme Lisp irdurand@mcgonagall:~$ sbcl This is SBCL 1.0.15, an implementation of ANSI Common Lisp. More information about SBCL is available at <http://www.sbcl.org/>. SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information. * 1234 1234 * (+ 3 4) 7 * 15 Quitter le syst`eme Lisp * hello debugger invoked on a UNBOUND-VARIABLE in thread #<THREAD "initial thread" The variable HELLO is unbound. Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL. restarts (invokable by number or by possibly-abbreviated name): 0: [ABORT] Exit debugger, returning to top level. (SB-INT:SIMPLE-EVAL-IN-LEXENV HELLO #<NULL-LEXENV>) 0] 0 * (quit) [email protected]: 16 Lisp sous Emacs avec le mode SLIME Superior Lisp Interaction Mode for Emacs Beaucoup plus riche que le mode Lisp d’Emacs Mˆeme aspect et fonctionnalit´es quelque soit le Lisp utilis´e Pour entrer, M-x slime Pour sortir, taper une virgule (,) puis quit dans le mini- buffer — Aide `al’indentation et `ala syntaxe — Compilation interactive de fonctions, de fichiers — Documentation, compl´etion de symboles — D´ebogage Voir les modes (REPL) et (Lisp Slime) avec c-h m 17 Programmation fonctionnelle Common Lisp est un langage mixte (fonctionnel, imp´eratif, orient´eobjets) mais ses ancˆetres ´etaient purement fonc- tionnels. Programmation fonctionnelle : — entit´ede base = fonction — pas d’effets de bord (pas de variables) — structure de contrˆole = si-alors-sinon + r´ecursivit´e Pour obtenir rapidement des programmes corrects, utiliser la programmation fonctionnelle le plus possible — Les programmes sont plus faciles `atester — Programmation ascendante (bottom-up) — Param`etres sont souvent des fonctions (fermetures) Inconv´enients : efficacit´e 18 Expressions Un atome peut-ˆetre — un objet auto-´evaluant, — ou un symbole Une expression (en anglais form) Common Lisp peut ˆetre : — un atome — ou une expression compos´ee (avec des parenth`eses). 19 Expressions, analyse syntaxique Une expression tap´ee `ala boucle d’interaction est d’abord lue et analys´ee syntaxiquement. Le r´esultat de cette analyse est une repr´esentation interne de l’expression (S-expression). La fonction responsable de cette analyse s’appelle read. Cette fonction est disponible `al’utilisateur. 20 Expressions, ´evaluation La S-expression est ensuite ´evalu´ee, c’est `adire que sa valeur est calcul´ee. Cette ´evaluation peut donner des effets de bord. Le r´esultat de l’´evaluation est un ou plusieurs objets Lisp. La fonction responsable de l’´evaluation de S-expressions s’appelle eval. Cette fonction est disponible `al’utilisateur. 21 S-expressions, affichage Les objets r´esultant de l’´evaluation sont ensuite affich´es (ou imprim´es) en repr´esentation externe. La fonction responsable de l’affichage s’appelle print. Cette fonction est disponible `al’utilisateur. (+ 3 4) 7 Monde extérieur read print Monde intérieur 7 eval + 3 4 22 Objets auto-´evaluants Un objet auto-´evaluant est la mˆeme chose qu’une constante. Le plus souvent, il s’agit de nombres, de caract`eres ou de chaˆınes de caract`eres. CL-USER> 1234 1234 CL-USER> 6/8 3/4 CL-USER> #\c #\c CL-USER> "bonjour" "bonjour" CL-USER> #(1 2 3 4) #(1 2 3 4) 23 Symboles Si l’expression est un symbole, il sera consid´er´ecomme le nom d’une variable.
Recommended publications
  • Objects, Time and Constraints in Openmusic
    OBJECTS, TIME AND CONSTRAINTS IN OPENMUSIC Carlos Agon, Gérard Assayag, Olivier Delerue, Camilo Rueda. {agonc,assayag,delerue,crueda}@ircam.fr IRCAM - 1 Pl. Stravinsky. F-75004 Paris, France. 1. Abstract OpenMusic is a object oriented visual programming environment for music composers. It is based on Macintosh CommonLisp and Common Lisp Object System. It shows several original features, such as reflexivity, metaprogrammation capacities, handling of the duality between musical time and computational time, and provides with a framework of predefined musical objects for handling sound, midi and musical notation. Common Music Notation in OpenMusic is an extension of CMN, a public domain notation package by Bill Schottstaedt [SCO98]. 2. Objects 2.1. Underlying Object Model. Broadly speaking, basic calculus for object-oriented programming inherited the approach imposed by the precursory language Simula and its followers. The tentatives to formalize this family of object models used the concepts of parametric polymorphism or true polymorphism [CaWe85]. More recently, languages based on multiple-dispatching (methods that dispatch on a product of types rather than a single type) such as CLOS [Steel90] were also formalized [Cast98], using concepts of overloading or ad-hoc polymorphism. As OpenMusic, based on CLOS, may very well be formally described in this way, we will give here a brief summary of the λ&− calculus used by [Cast98]. We restrain to the extension of λ−calculus by the concept of generic functions which is at the base of λ&−calculus. A generic function is simply a collection of simple functions (λ−abstractions), which we will call methods. We must also distinguish the simple application indicated by «.» from the application of generic functions indicated by the operator .
    [Show full text]
  • Processing Sound and Music Description Data Using Openmusic
    PROCESSING SOUND AND MUSIC DESCRIPTION DATA USING OPENMUSIC Jean Bresson, Carlos Agon IRCAM – CNRS UMR STMS Paris, France fbresson,[email protected] ABSTRACT graphs corresponding to functional expressions. The lan- guage provides a set of graphical control structures, such as This paper deals with the processing and manipulation of iterations and conditional controls, as well as the possibility music and sound description data using functional programs to carry out other programming concepts like abstraction, in the OpenMusic visual programming environment. We go higher-order functions or recursion [4]. through several general features and present some toolkits OM includes specialized functions and data structures created in this environment for the manipulation of different designed for musical applications. The different musical or data formats (audio, MIDI, SDIF). extra-musical objects are represented by classes (as meant by object-oriented programming) and used in the visual 1. INTRODUCTION programs by means of factory boxes, i.e. boxes generating instances of these classes and allowing to access their dif- Musical information processing often requires manipulating ferent attributes (called slots). large musical or sound description data bases. Ordering, Compared to most existing visual programming envi- sorting, renaming files, automatic indexing, contents brows- ronments, OM has the particularity to run a demand-driven ing or transformations are basic operations in compositional, execution model. In this model, the user triggers execution analytical, or other experimental applications. by evaluating a box somewhere in the visual program graph, Visual music programming environments make it possi- which recursively evaluates the upstream connected boxes ble to define specialized and personalized programs and to and returns a value.
    [Show full text]
  • Macaque – a Tool for Spectral Processing and Transcription
    MACAQUE – A TOOL FOR SPECTRAL PROCESSING AND TRANSCRIPTION Georg Hajdu Center for Microtonal Music and Multimedia (ZM4) Hamburg University of Music and Theater (HfMT) Harvestehuder Weg 12 20148 Hamburg [email protected] ABSTRACT act of my opera Der Sprung – Beschreibung einer Oper [7] I used the MIDI velocity information of the transcribed note This paper describes Macaque, a tool for spectral process- events to alter the size of their note heads so that the sight- ing and transcription, in development since 1996. Macaque reading musicians had instantaneous visual feedback per- was programmed in Max and, in 2013, embedded into the taining to the dynamics of the music to be performed. In MaxScore ecosystem. Its GUI offers several choices for the other instances, I have used a technique called “velocoding” processing and transcription of SDIF partial-track files into to encode microtonal pitch deviation in eighth-tone resolu- standard music notation. At the core of partial-track tran- tion into the velocity part of a MIDI note-on message to scription is an algorithm capable of “attracting” partial modify the Enigma file in such ways that the resulting score tracks (and fragments thereof) into single staves, thereby displayed the corresponding pitch alterations. Another early performing an important aspect of “spectral orchestration.” example of using Macaque is my piece Herzstück for two player pianos from 1999 which premiered at the Cologne 1. INTRODUCTION Triennale in 2000. This piece was written for two of Jürgen Hocker’s instruments which he also used to tour Conlon Macaque is a component of the MaxScore notation soft- Nancarrow’s compositions for player piano [8].
    [Show full text]
  • Composição Assistida Por Computador: – Escolha De Estrutura Musical , Partes Computador • P.Ex
    Composição não é Edição de Partituras • Ex: Musescore Computação Musical http://www.musescore.org/en Composição Assistida por • Composição Assistida por Computador: – Escolha de estrutura musical , partes Computador • p.ex. Concerto (3 movm: 'allegro-adagio-allegro') – Escolha de ritmos Prof. Marcelo Soares Pimenta – Escolha de sons, timbres, notas e sua serialização (melodia) e verticalização (harmonia, acordes) [email protected] – Edição, (re)arranjo, (re)organização, experimentação (audição) 2 Porto Alegre , 2009-2 Foundations of CAC Foundations of CAC the concept of Compositional Modeling Otto Laske, Composition Theory in Koenig's Project One and Project Two . Computer Music Journal (1981): Study, simulation, explicitation of an object (concept, concrete object, phenomenon, situation, "We may view composer-program interaction along a trajectory leading from purely manual etc.) control to control exercised by some compositional algorithm (composing machine). The zone "Modeling aims at gathering in a common coherent discourse a number of experiences and of greatest interest for composition theory is the midd le zone of the trajectory, since it allow a observations related by a means which is to determine during the modeling process itself" D. Berthier. Le great flexibility of approach. The powers of intuition and machine computation may be savoir et l’ordinateur combined." (2002) . Jean-Claude Risset, Musique, un calcul secret ? (1977) Computer model => abstract representation focusing on particular ⇒ The musician must be able to communicate with the computer in order to control and aspects of an object and supporting effective expermients and organize the details and global aspects of his musical works, and eventually to build his own operations on this object musical universe in it.
    [Show full text]
  • LISP in Max: Exploratory Computer-Aided Composition in Real-Time
    LISP in Max: Exploratory Computer-Aided Composition in Real-Time Julien Vincenot Composer, PhD candidate Harvard University [email protected] ABSTRACT The author describes a strategy to implement Common Lisp applications for computer-aided composition within Max, to enrich the possibilities offered by the bach library. In parallel, a broader discussion is opened on the current state of the discipline, and some applications are presented. 1. 1. INTRODUCTION Computer-aided composition (CAC), as we know it, has been around for decades. Following the pioneers of algo- rithmic music, the emergence of the first relevant graphi- cal interfaces allowed the discipline to expand in several directions. CAC exists today under a variety of forms, languages and tools available to composers. This tendency has crystallized around visual program- ming environments such as OpenMusic (OM) and PWGL, both derived from the program PatchWork (or PW) developed by Mikael Laurson since the late 1980s [5]. A Figure 1. A Score object in PWGL and specificity of this family of programs, but also many its inner representation as a Lisp linked-list or tree. others since then1, is that they were all built on top of the same language: Common Lisp2. dedicated to traditional notation, concern a small popula- Since the early days of artificial intelligence, Lisp has tion of musicians. always been considered a special language, and its Nevertheless, we can observe today a real interest in popularity is quite uneven among professional program- renewing those paradigms. The discipline of CAC is mers. However, the interest among musicians never com- going through a phase of transition, with the emergence pletely declined.
    [Show full text]
  • 2016-Program-Book-Corrected.Pdf
    A flagship project of the New York Philharmonic, the NY PHIL BIENNIAL is a wide-ranging exploration of today’s music that brings together an international roster of composers, performers, and curatorial voices for concerts presented both on the Lincoln Center campus and with partners in venues throughout the city. The second NY PHIL BIENNIAL, taking place May 23–June 11, 2016, features diverse programs — ranging from solo works and a chamber opera to large scale symphonies — by more than 100 composers, more than half of whom are American; presents some of the country’s top music schools and youth choruses; and expands to more New York City neighborhoods. A range of events and activities has been created to engender an ongoing dialogue among artists, composers, and audience members. Partners in the 2016 NY PHIL BIENNIAL include National Sawdust; 92nd Street Y; Aspen Music Festival and School; Interlochen Center for the Arts; League of Composers/ISCM; Lincoln Center for the Performing Arts; LUCERNE FESTIVAL; MetLiveArts; New York City Electroacoustic Music Festival; Whitney Museum of American Art; WQXR’s Q2 Music; and Yale School of Music. Major support for the NY PHIL BIENNIAL is provided by The Andrew W. Mellon Foundation, The Fan Fox and Leslie R. Samuels Foundation, and The Francis Goelet Fund. Additional funding is provided by the Howard Gilman Foundation and Honey M. Kurtz. NEW YORK CITY ELECTROACOUSTIC MUSIC FESTIVAL __ JUNE 5-7, 2016 JUNE 13-19, 2016 __ www.nycemf.org CONTENTS ACKNOWLEDGEMENTS 4 DIRECTOR’S WELCOME 5 LOCATIONS 5 FESTIVAL SCHEDULE 7 COMMITTEE & STAFF 10 PROGRAMS AND NOTES 11 INSTALLATIONS 88 PRESENTATIONS 90 COMPOSERS 92 PERFORMERS 141 ACKNOWLEDGEMENTS THE NEW YORK PHILHARMONIC ORCHESTRA THE AMPHION FOUNDATION DIRECTOR’S LOCATIONS WELCOME NATIONAL SAWDUST 80 North Sixth Street Brooklyn, NY 11249 Welcome to NYCEMF 2016! Corner of Sixth Street and Wythe Avenue.
    [Show full text]
  • Gsharp, Un Éditeur De Partitions De Musique Interactif Et Personnalisable
    Gsharp, un éditeur de partitions de musique interactif et personnalisable Christophe Rhodes* — Robert Strandh** * Department of Computing Goldsmiths, University of London London SE14 6NW United Kingdom [email protected] ** LaBRI, Université Bordeaux 1 351, Cours de la libération 33405 Talence Cedex France [email protected] RÉSUMÉ. Dans cet article, nous présentons Gsharp, un projet dont le but est la création d’un éditeur de partitions de musique traditionnelles. Le logiciel Gsharp est écrit en Common Lisp et utilise CLIM (Common Lisp Interface Manager) comme bibliothèque pour l’interaction avec l’utilisateur. De nombreux algorithmes et structures de données ont été inventés afin d’assurer un performance acceptable pour de simples interactions comme l’insertion ou la suppression d’une note ou d’un accord. ABSTRACT. In this article, we present Gsharp, a project with the purpose of creating an editor for traditional music scores. Gsharp is written in Common Lisp, and uses the CLIM (Common Lisp Interface Manager) library for interactions with the user. Several new algorithms and data structures were invented in order to ensure acceptable performance for simple interactions such as inserting or deleting a note or a chord. MOTS-CLÉS : édition de partitions, Common Lisp, CLIM, personnalisation, logiciels interactif KEYWORDS: score editing, Common Lisp, CLIM, customization, interactive software DN – 11/2008. Documents musicaux, pages 9 à 28 10 DN – 11/2008. Documents musicaux 1. Introduction Gsharp est un projet dont le but est la création d’un éditeur de partitions de mu- sique. Il s’agit d’un logiciel interactif dans le sens qu’après chaque action de la part de l’utilisateur, le résultat final de la mise en page est visible.
    [Show full text]
  • Compositional and Analytic Applications of Automated Music Notation Via Object-Oriented Programming
    UC San Diego UC San Diego Electronic Theses and Dissertations Title Compositional and analytic applications of automated music notation via object-oriented programming Permalink https://escholarship.org/uc/item/3kk9b4rv Author Trevino, Jeffrey Robert Publication Date 2013 Peer reviewed|Thesis/dissertation eScholarship.org Powered by the California Digital Library University of California UNIVERSITY OF CALIFORNIA, SAN DIEGO Compositional and Analytic Applications of Automated Music Notation via Object-oriented Programming A dissertation submitted in partial satisfaction of the requirements for the degree Doctor of Philosophy in Music by Jeffrey Robert Trevino Committee in charge: Professor Rand Steiger, Chair Professor Amy Alexander Professor Charles Curtis Professor Sheldon Nodelman Professor Miller Puckette 2013 Copyright Jeffrey Robert Trevino, 2013 All rights reserved. The dissertation of Jeffrey Robert Trevino is approved, and it is acceptable in quality and form for publication on mi- crofilm and electronically: Chair University of California, San Diego 2013 iii DEDICATION To Mom and Dad. iv EPIGRAPH Extraordinary aesthetic success based on extraordinary technology is a cruel deceit. —-Iannis Xenakis v TABLE OF CONTENTS Signature Page .................................... iii Dedication ...................................... iv Epigraph ....................................... v Table of Contents................................... vi List of Figures .................................... ix Acknowledgements ................................. xii Vita .......................................... xiii Abstract of the Dissertation . xiv Chapter 1 A Contextualized History of Object-oriented Musical Notation . 1 1.1 What is Object-oriented Programming (OOP)? . 1 1.1.1 Elements of OOP . 1 1.1.2 ANosebleed History of OOP. 6 1.2 Object-oriented Notation for Composers . 12 1.2.1 Composition as Notation . 12 1.2.2 Generative Task as an Analytic Framework . 13 1.2.3 Computational Models of Music/Composition .
    [Show full text]
  • Next-Generation Computer-Aided Composition Environment: a New
    Next-generation Computer-aided Composition Environment: A New Implementation of OpenMusic Jean Bresson, Dimitri Bouche, Thibaut Carpentier, Diemo Schwarz, Jérémie Garcia To cite this version: Jean Bresson, Dimitri Bouche, Thibaut Carpentier, Diemo Schwarz, Jérémie Garcia. Next-generation Computer-aided Composition Environment: A New Implementation of OpenMusic. International Computer Music Conference (ICMC’17), 2017, Shanghai, China. hal-01567619v2 HAL Id: hal-01567619 https://hal.archives-ouvertes.fr/hal-01567619v2 Submitted on 26 Sep 2017 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Next-generation Computer-aided Composition Environment: A New Implementation of OpenMusic Jean Bresson, Dimitri Bouche, Thibaut Carpentier, Diemo Schwarz Jer´ emie´ Garcia UMR STMS: IRCAM/CNRS/UPMC Sorbonne Universites,´ Paris, France Universite´ de Toulouse – ENAC, France fbresson,bouche,carpenti,[email protected] [email protected] ABSTRACT stitutes an original blend of traditional and more prospective computer-aided composition features. 3 O7 is a new implementation of the OpenMusic computer- This paper is organised as follows: In Section2 we first go aided composition environment. This paper gives a general through general characteristics of the visual programming presentation of its visual programming framework, musical environment.
    [Show full text]
  • An Overview of PWGL, a Visual Programming Environment for Music
    Mikael Laurson, Mika Kuuskankare, and Vesa Norilo An Overview of PWGL, Centre for Music and Technology (CMT) a Visual Programming Sibelius Academy P.O. Box 86 00251 Helsinki Environment for Music Finland {laurson, mkuuskan, vnorilo}@siba.fi This article provides an overview of our free Lisp- of PWGL is based on OpenGL.) The use of the based, cross-platform, visual programming environ- same codebase aids the development process and in ment called PWGL (the name is an acronym for distribution to multiple platforms. PatchWork Graphical Language). PWGL can be used PWGL integrates several programming paradigms for computer-aided composition, music analysis, (functional, object-oriented, and constraint-based) and sound synthesis. Our work is influenced by with high-level visual representation of data, and our past experience with PatchWork (Laurson 1996; it can be used to solve a wide range of musical Assayag et al. 1999). However, PWGL has been problems. A PWGL patch is the main workspace completely rewritten and redesigned in our attempt where the user can add boxes and create relations to develop and improve many of the useful concepts among them using connections. In its simplest behind PatchWork. form, a PWGL patch can be seen as a visualization PWGL and several of its applications have of Lisp: a patch consists of boxes that represent Lisp already been discussed in our previous work, functions or Common Lisp Object System (CLOS) including Laurson and Kuuskankare (2002, 2006), methods. As PWGL provides a direct interface to Kuuskankare and Laurson (2006), and Laurson, its base languages, every Lisp function or CLOS Norilo, and Kuuskankare (2005).
    [Show full text]
  • Gsharp, Un Éditeur De Partitions De Musique Interactif Et Personnalisable
    Gsharp, un éditeur de partitions de musique interactif et personnalisable Christophe Rhodes* — Robert Strandh** * Department of Computing Goldsmiths, University of London London SE14 6NW United Kingdom [email protected] ** LaBRI, Université Bordeaux 1 351, Cours de la libération 33405 Talence Cedex France [email protected] RÉSUMÉ. Dans cet article, nous présentons Gsharp, un projet dont le but est la création d’un éditeur de partitions de musique traditionnelles. Le logiciel Gsharp est écrit en Common Lisp et utilise CLIM (Common Lisp Interface Manager) comme bibliothèque pour l’interaction avec l’utilisateur. De nombreux algorithmes et structures de données ont été inventés afin d’assurer un performance acceptable pour de simples interactions comme l’insertion ou la suppression d’une note ou d’un accord. ABSTRACT. In this article, we present Gsharp, a project with the purpose of creating an editor for traditional music scores. Gsharp is written in Common Lisp, and uses the CLIM (Common Lisp Interface Manager) library for interactions with the user. Several new algorithms and data structures were invented in order to ensure acceptable performance for simple interactions such as inserting or deleting a note or a chord. MOTS-CLÉS : édition de partitions, Common Lisp, CLIM, personnalisation, logiciels interactif KEYWORDS: score editing, Common Lisp, CLIM, customization, interactive software 2e soumission à Document Numérique, le 23 janvier 2009 2 2e soumission à Document Numérique 1. Introduction Gsharp est un projet dont le but est la création d’un éditeur de partitions de mu- sique. Il s’agit d’un logiciel interactif dans le sens qu’après chaque action de la part de l’utilisateur, le résultat final de la mise en page est visible.
    [Show full text]
  • Visual Lisp/CLOS Programming in Openmusic Jean Bresson, Carlos Agon, Gérard Assayag
    Visual Lisp/CLOS Programming in OpenMusic Jean Bresson, Carlos Agon, Gérard Assayag To cite this version: Jean Bresson, Carlos Agon, Gérard Assayag. Visual Lisp/CLOS Programming in OpenMusic. Higher- Order and Symbolic Computation, Springer Verlag, 2009, 22 (1), pp.81-111. 10.1007/s10990-009- 9044-x. hal-00683472 HAL Id: hal-00683472 https://hal.archives-ouvertes.fr/hal-00683472 Submitted on 14 Mar 2014 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Visual Lisp/CLOS Programming in OpenMusic Jean Bresson . Carlos Agon . Gerard´ Assayag IRCAM - CNRS UMR STMS Music Representation Research Group Paris, France. This is a preliminary version of the article Visual Lisp/CLOS Programming in OpenMusic published in Higher Order and Symbolic Computation, num. 22, vol. 1, 2009. The final publication is available at www.springerlink.com Abstract OpenMusic (OM) is a visual programming language developed on top of Common Lisp and CLOS, in which most of the functional and object-oriented programming concepts can be implemented and carried out graphically. Although this visual language was designed for musical applications, the focus in this paper is to describe and study OM as a complete general-purpose programming environment.
    [Show full text]