On the Importance of Docstrings

Docstrings can do wondrous things. Wikipedia describes a docstring as "a string literal specified in source code that is used, like a comment, to document a specific segment of code." I've rewritten sine_arp() to demonstrate a theoretical docstring example: def sine_arp(dur, amp, pitch, lfo_freq): '''Generates an arpeggiated sine ... read more.

Related: , , , , , . Comments 3. By Jacob. 2010-Mar-31@15:23.

Coding in Time with the @ Scheduler

One idea I have for my theoretical computer music language is having scheduling built right into the syntax, with the hopes that it will add the right balance of functionality and clarity. I like the idea of having a score language separate from the orchestra language, though I've learned over the ... read more.

Related: , , , . Comments 14. By Jacob. 2010-Mar-31@03:23.

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.

A Computer Music Language Design Scratch Pad

If I designed a computer music language, what would it be like? I've always wanted to get my hands dirty by writing a simple computer music language, and have picked up many ideas over the years that I would love to implement. I do a lot of Csounding, I have written and ... read more.

Related: . Comments 0. By Jacob. 2010-Mar-28@21:13.