[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Organising large projects



if you have a pattern that you keep repeating, eg. synthdefs connected to routines, these should probably be made into instances of a custom class. I write 98% of my code as classes, then the performance code is just calling methods on those objects.

I find it nice to make one "master" file, the only file you really need to open and execute things in for each piece, which references other files that instantiate objects and get things running via the executeFile method.

Hope that helps,
Ian

Nathaniel Virgo wrote:
Hi List,

I'm working on a live performance in SuperCollider and at the moment all the code is in one file, which is starting to get a little unweildy, so I was wondering if anyone has any thoughts or experience they would like to share about how to effectively manage SuperCollider projects in multiple files.

The performance is organised into a large collection of sounds (or sound objects?), typically consisting of a Synthdef and a Routine to play it, either of which can respond to various axes of the joysticks I'm using to control the performance. Only a few of these sounds will be playing at any given time and I'll be swapping them in and out as part of the performance.

Ideally I'd like each of these sounds to live in its own file, along with files for common utility functions, effects, etc, so that I can concentrate on just changing one thing at a time. The reason I haven't done this so far is that I'd have to manually execute each file when starting up the performance, so I'd need to automate that somehow.

Anyway, I'm looking both for the tools I can use to achieve this and for any more general advice people have on organising code, and any comments will be very greatly appreciated.

Nathaniel

--
Escape from the Head Cube
http://headcube.vootrunner.com
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users