Csound Csound-dev Csound-tekno Search About

[Csnd] [Announce] Slipmat for Csound and Java

Date2008-05-29 19:44
FromJacob Joaquin
Subject[Csnd] [Announce] Slipmat for Csound and Java
Hello everyone.

I have released the first public version of Slipmat.  More or less, it's a
Java library built on top of the Java Csound API.  You can download it here:

http://sourceforge.net/projects/slipmat

The goal is to create a user-friendly and highly flexible interface to
Csound, to the point where someone won't even need to know Csound to use it. 
Slipmat introduces the concept of a Module, which is a collection of
instruments, tables, chn busses, UDOs, and other modules.  When a module is
registered with an instance of SynthRack, things like instr numbers, table
numbers, etc... are automatically assigned.

I should point out that Slipmat is in a very early stage of development.
Everything is in flux, and is subject to change.  Consider this first
release to be a proof-of-concept.

Here's an example of a single program, SimpleExample.java:

------------
import com.thumbuki.slipmat.*;
import com.thumbuki.slipmat.module.*;

public class SimpleExample {
	public static void main(String[] args) {
		SynthRack synthRack = new SynthRack(false);
		SinePerc sinePerc = new SinePerc();
		Output output = new Output();

		synthRack.addModule(sinePerc);
		synthRack.addModule(output);
		output.setInput(sinePerc.getOutput());
		
		for (int i = 0; i <= 12; i++)
			sinePerc.playNote(i * 0.25, 0.9, 440 * Math.pow(2, i / 12.0));

		synthRack.startCsound();
		
		try {
			Thread.sleep(4000);  /* Keep java running for four seconds */
		}
		catch(Exception ex) { }
	}
}
------------

Best,
Jake
-- 
View this message in context: http://www.nabble.com/-Announce--Slipmat-for-Csound-and-Java-tp17543082p17543082.html
Sent from the Csound - General mailing list archive at Nabble.com.