At the Sounding Edge: OpenMusic and SuperCollider3
Even a casual glance at the contents of the linux-sound.org pages shows that Linux enjoys a broad range of interesting sound and music applications. Players, recorders and editors abound, and I plan to profile some of that software in this column. This month I present two applications that are rather close to the edge of Linux audio software development: IRCAM's OpenMusic and James McCartney's SuperCollider3.
OpenMusic (OM) for Linux is a porting project working to bring an outstanding music composition environment from Macintosh to Linux. As you might expect from a Mac music application, OM is an intensely graphic environment, and the developers at IRCAM (aka the Institut de Recherche et Coordination Acoustique/Musique in Paris) have done impressive work with the Linux version (Figure 1).
Figure 1. OpenMusic
Its Web site tells us that OM is a visual programming language based on CommonLisp/CLOS, that it is icon-oriented with a drag-and-drop GUI and that it has visual control structures for interfacing with the environment's Lisp structures. OM has been designed as a general-purpose programming language, but its unique classes and function libraries clearly are oriented towards the domain of music composition.
Non-musicians might wonder exactly what OM does for a composer. OM is not a software synthesizer, nor is it a soundfile editor or MIDI sequencer. OM's classes and functions supply the means for exploring the musical possibilities as the manipulation and permutation of sets for pitch, rhythm and dynamics, series and tone-row variation, random and aleatoric generative processes and many other techniques best carried out by a machine. In some respects OM is similar to Rick Taube's outstanding Common Music, another Lisp-based environment for music composition, but OM's rich GUI provides a very different experience.
This article is not intended to be an OM tutorial. I'm merely going to describe its basic operation and show off some of its interface amenities. I must stress that although OM itself is not a new program (the Linux port is for version 4.7.1), it is new to Linux and should be considered as beta-stage software. Not every aspect of the original has been imported faithfully, but I'm happy to say that most of the features found in the Mac versions have made it to the Linux port.
You can acquire OM from the IRCAM URL, but I seriously advise using the Planet CCRMA packages instead. OM requires some extra pieces you may not have on your system, including:
CMUCL, Carnegie-Mellon's version of Common Lisp
libgtk-canvas, a canvas object for GTK 1.2
CLG, the Common Lisp/GTK bindings
MIDIShare, a MIDI toolkit from the GRAME team
fluidsynth, a soundfont-based synthesizer
Specific versions of these dependencies may be required, so check with the OM Web site for a list of the most current requirements. The Web site also includes detailed installation and configuration instructions from IRCAM developer Francois Dechelle. I repeat, however, that you're probably better off with the Planet CCRMA packages. DEB packages for the AGNULA Linux audio distribution should be available soon.
Once everything has been installed and correctly configured, you can launch an OM session with the following series of commands:
fluidsynth -a alsa -m midishare soundfonts/8mbgmsfx.sf2 msconnect omlinux
I suggest opening each program from its own xterm. Doing so makes it easier to keep track of any reports or error messages coming from the specific app.
On my 800MHz machine, OM takes a little time to open. Lisp is an interpreted language, so it takes a while for everything to prepare. When the system is ready for use the GTK canvas object appears, and you're ready to start using OM.
OM is similar to its IRCAM synthesis sibling jMax in its use of icons to represent its various classes and libraries. These icons are placed on the canvas and wired together to create a patch. An OM patch may be a note generator, a MIDI event processor or even a simple playback device. OM's icons include classes and functions for arithmetic, list manipulation, random number generation, various MIDI actions, program control and many others. Abstraction (that is, a patch within a patch) is supported, and patches may be saved for reuse within other projects.
Figure 1 shows off a relatively complex OM patch from Karim Haddad's series of helpful tutorials. In this patch (Tutorial 14) we can see many of OM's main features at work. Various icons have been connected to form a MIDI note generator that directs its output to a pair of General MIDI programs played on two MIDI channels by way of the fluidsynth synthesizer. The big blue-green object at the bottom of the patch is an instance of a music/score class called a CHORD-SEQ. In true Lisp fashion, once the patch has been built, it must be evaluated before playing by selecting it and then typing v on the QWERTY keyboard. Type p to hear the results and s to stop the playback. Reevaluating the object produces a new note series.
The example also demonstrates OM's abstraction at work. Both the omloop and note generator icons are subpatches, and I have opened them up for inspection in Figure 1. Again I'll skip the details of subpatch construction, but I should note that subpatches are built in the same way as the way I have described for patches.
Similis sum folio de quo ludunt venti.
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
| Non-Linux FOSS: Seashore | May 10, 2013 |
- RSS Feeds
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- Dynamic DNS—an Object Lesson in Problem Solving
- New Products
- Validate an E-Mail Address with PHP, the Right Way
- Drupal Is a Framework: Why Everyone Needs to Understand This
- A Topic for Discussion - Open Source Feature-Richness?
- Download the Free Red Hat White Paper "Using an Open Source Framework to Catch the Bad Guy"
- Tech Tip: Really Simple HTTP Server with Python
- Roll your own dynamic dns
28 min 12 sec ago - Please correct the URL for Salt Stack's web site
3 hours 39 min ago - Android is Linux -- why no better inter-operation
5 hours 55 min ago - Connecting Android device to desktop Linux via USB
6 hours 23 min ago - Find new cell phone and tablet pc
7 hours 21 min ago - Epistle
8 hours 50 min ago - Automatically updating Guest Additions
9 hours 59 min ago - I like your topic on android
10 hours 45 min ago - This is the easiest tutorial
17 hours 21 min ago - Ahh, the Koolaid.
22 hours 59 min ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?



Comments
Re: At the Sounding Edge: OpenMusic and SuperCollider3
Just a comment from a lisp addict: lisp is not an interpreted language! You can always choose to compile your functions (even a runtime). But it does take some time to load the environment....
Author's reply
You're right, my bad. I often compile the Common Music/Common Lisp Music/Common Music Notation family into a single executable image.
This is what happens when I write an article four hours before its deadline... ;)
dp
Author's note 3: OM news
A short note: Karim Haddad has informed me that he is working on the fonts for OM/Linux. We may soon see a more useful notation implementation in OM, woohoo!
Also, I should point out that OM was initially ported to Linux by Gerardo Sarria and Jose Diago.
dp
Author's note 2: regarding JACK etc.
A reader wrote to mention that perhaps I should have gone into the matter of JACK a bit. I want to remind readers that these articles are in no way intended to replace going to the applications' Web sites and following the instructions found there. Also, I have a word limit to these columns and must often leave out other relevant information for the sake of making things fit into that limit.
Having said all that, here's where you can find JACK :
http://jackit.sourceforge.net
Best,
dp
Re: Author's note 2: regarding JACK etc.
Hi Dave,
it's nice to see you've found a way to overcome the word limit. ;)
Thanks a lot for this article. I always wanted to start doing a bit SuperCollider3 writing, and your text gives me another reason.
Let me add, that although SC3 on Linux currently lacks a GUI, there is an interesting project going on to use Pd as a GUI for SC3, which then is the synth engine instead of the one in Pd. See the Pd CVS for some file downloads.
ciao,
--
Frank Barknecht
Author's note: Credits and a Web site
I must thank Karim Haddad, Patrice Tisserand, and Francois Dechelles at IRCAM for their help with OpenMusic. I must also thank Stefan Kersten and other members of the SuperCollider mail list for their great assistance with SC3.
I neglected to add this site for SC3/Linux users :
http://swiki.hfbk-hamburg.de:8888/MusicTechnology/478
Sorry about that...
dp
Re: Author's note: Credits and a Web site
Little addon for credits:
Gerardo Sarria and Jose Diago made the port of OpenMusic on GNU/Linux.
Patrice Tisserand