How to Write Music Using OOP

We discuss the history of the programming tool OpenMusic (OM), examining its features and telling about its early users. Additionally, we provide analogs.

How to Write Music Using OOP
Photo James Baldwin / Unsplash

What is OpenMusic

It is an object-oriented visual programming environment for digital sound synthesis. The utility is based on a dialect of the LISP language — Common Lisp. It is worth noting that OpenMusic can be used as a universal graphical interface for this programming language.

The tool was developed in the 1990s by engineers from the French Institute for Research and Coordination in Acoustics and Music (IRCAM). A total of seven versions of OpenMusic were released — the latest was published in 2013. At that time, an engineer from IRCAM, Jean Bresson,Jean Bresson) rewrote the utility from scratch, using the original code of the sixth version (OM6). Today, OM7 is distributed under a license — its source codes can GPLv3 be found on GitHub. How to Work with It.

Programs in OpenMusic are created by manipulating graphical objects instead of writing code. As a result, a kind of flowchart is produced, called a ‘patch’. Similar to modular synthesizers, where patch cords were used for connections.

Example Program

Here OpenMusic, taken from the GitHub repository: In OpenMusic, there are two types of objects: basic and score objects (Score Object). The former represent various mathematical operations for working with matrices, columns, and text forms.

How to Write Music Using OOP

Score objects are necessary for working with sound. They can also be divided into two groups:

Harmonic — notes, chords, and

  • harmonic sequences. Rhythmic — voices and measures..
  • Score objects are controlled using score functions, for example, combining several components into one to create polyphonic sound. Additional functions can be found in plug-in libraries — a complete list

is available on the official website. An example of a melody generated by OpenMusic can be listened to.

in this video. To get acquainted with the tool and its capabilities, we recommend referring to the documentation.:

Play video

The guide for OM7 is still under development. However, you can look at the guide for OM6 — you need to click on the link and expand the User Manual section in the left window. and in the left window expand the User Manual section.

Who uses

According to the developers' idea, OpenMusic can be used for creating and editing audio tracks, generating mathematical models of compositions, and analyzing recorded musical snippets. Engineers from ITCAM have applied the tool in several scientific studies. For example, for the creation an artificial intelligence system that recognizes musical gestures in audio recordings.

OpenMusic is also used by professional performers—they utilize the utility to study harmonic spectra. One example is the Swiss composer Mikael Jarrin, who is a recipient of the Beethoven Prize. His works performed by the Hong Kong Symphony Orchestra can be listened to here.

. It is also worth noting Tristan Murail. He is one of the leading composers working in the field of spectral music. For example, his works can be found on YouTube, including Gondwana and Le partage des eaux, created using OpenMusic.

Play video

English composer and educator Brian Ferneyhough used OpenMusic to work with rhythm. Today, his music is part of the repertoire of major contemporary ensembles and performers— Arditti Quartet and Pierre-Yves Arto.

Analogues

There are several systems similar to OpenMusic. Perhaps the most well-known is the commercial tool Max/MSP. It was developed by Miller Puckette in the late 1980s while he was working at IRCAM. The system allows for the real-time synthesis of digital sound and video.

In the video below, an installation on one of the buildings in the Italian city of Cagliari is presented. The color of the screens changes depending on the noise from passing cars. The installation is controlled by a combination of Max/MSP and Arduino.


It is worth noting that Max/MSP has an open-source counterpart. It is called Pure Data, and it was also developed by Miller Puckette.

Another notable visual system is ChucK, which was created by Perry Cook and colleagues from Princeton University in 2003. It supports the parallel execution of multiple threads, and changes can be made to the program during execution. It is distributed under the GNU GPL license.

This list of tools for synthesizing digital music does not end here. There are also Kyma and Overtone, which allows programming mixes live on stage. We will try to talk about them next time.

Additional reading from our 'Hi-Fi World' and Telegram channel:

How to Write Music Using OOP How PCs Conquered the Media Industry with Successful Software
How to Write Music Using OOP Where to Find Audio Samples for Your Projects: A Selection of Nine Resources
How to Write Music Using OOP Music for Your Projects: 12 Thematic Resources with CC Licensed Tracks
How to Write Music Using OOP Innovation SSI-2001: The Story of One of the Rarest Sound Cards for IBM PC
How to Write Music Using OOP The History of Audio Technologies: Synthesizers and Samplers
How to Write Music Using OOP Enthusiast Recreates the Sound Blaster 1.0 Sound Card
How to Write Music Using OOP How Musical Formats Have Changed Over the Last 100 Years
How to Write Music Using OOP How an IT Company Fought for the Right to Sell Music

Source: habr.com

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster