Instruments Simplified with Python Decorators

Python can be molded to look like an audio synthesis language with the help of decorators. In my last post, I showed an instrument graph built within a Python iterator class. However, Iterator classes are too clunky looking, and require more work than should be necessary for creating a simple ... read more.

Related: , , , , . Comments 1. By Jacob. 2010-Apr-30@18:48.

Python Iterator Class as Instrument Graph

I built an iterator class from the graph in yesterday's example. Read and download the full script here. Let's take a look at the class, then discuss the implications: class MyInstr: '''My Instrument''' def __init__(self, dur, amp=1.0, freq=440, tune=12): ... read more.

Related: , , , , . Comments 2. By Jacob. 2010-Apr-30@15:59.

Control-Rate Envelope Generator

I wanted to generate a control-rate signal with my Python-Slipmat prototype. To my surprise, doing so was fairly straight forward; Python iterator classes have a control-rate mechanism built right in. Read and download the full script at snipt. I designed a simple envelope that generates a rise-fall shape. By default, the rise ... read more.

Related: , , , , , . Comments 1. By Jacob. 2010-Apr-29@19:07.

Slipmat Prototype & Processing

I experimenting combining the first Slipmat prototype (built with the Csound API) with Processing. Getting the two systems working together was fairly straight forward. Here's the code that generated the video. The following method from class Disc does two things when a disc collides with a border: change direction of ... read more.

Related: , , , , . Comments 0. By Jacob. 2010-Apr-08@16:14.

Early Java Slipmat Prototype

Slipmat has been a pet project of mine for a few years now. The first working prototype was realized in Java. The code for this is up at sourceforge. Originally, the idea was for slipmat to be a java interface layer that sits on top of Csound. Hence the slipmat metaphor. ... read more.

Related: , , , . Comments 9. By Jacob. 2010-Apr-06@21:40.

Roll Your Own Score Syntax

A music language that comes with a fully-loaded set of string capabilities, including regular expressions, would allow users to develop their own methods for notating music. For example, here is a horizontal representation for rhythm guitar. @0 strum('C', '/... /... /./. /...') @4 strum('Dm', '/... /... //// /./.') @8 ... read more.

Related: , , , , , . Comments 1. By Jacob. 2010-Apr-05@23:54.

Importing Modules and Reusing Code

I want to begin discussing the implications of yesterday's Python-Csound mockup code (which I'll refer to as slipmat for the time being), starting with with imports: import Wavetable from Gen import sine from Pitch import cpspch All of Csound's 1400+ opcodes are available at all times. Great for convenience, perhaps not so great for ... read more.

Related: , , , , . Comments 0. By Jacob. 2010-Mar-30@14:34.

What if Python DNA was Injected into Csound

Last year, I finally weened myself completely off of Perl and learned Python in its place. Colors have never been brighter. There is such an elegance to Python, and I would love to see this in a computer music language. The following mockup code is what you would get if ... read more.

Related: , , . Comments 8. By Jacob. 2010-Mar-29@17:43.