this is a live patch for 4-channel sound written for a friend some time ago. to fully function it expects that you have an external soundcard with 4 inputs (mics) and 4 outputs (speakers) connected. the idea is to be able to route the sound from any of the inputs to any of the outputs and do all kinds of crossfades and mixes in between.
there are two areas with sliders that are used to do the 4x4 routing. one can also record the resulting quad output to disk and play it back, or use previously recorded quad files. there is also a sampler with 28 voices that can be triggered with the computer keyboard (keys A-Z). additional features include midi learn (controllers) plus a preset system that can read and write to disk. keys '0-9' with and without capslock recall presets while shiftclicking one of the preset buttons in the gui stores the current setting. with the lag time one can make all the changes smooth - it interpolates over x seconds.
attached is the complete code for the program. sorry for the ugly interface.
it has been tested on sc3.4 on a mac with both cocoa and swingosc and should run cross-platform.
update 110315: added midi mappings load and save (version09)
update 111114: increased from 4 to 6 outputs and made the number of inputs/outputs flexible (version10)