| Author |
Message |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 270
|
Posted: Mon Jan 18, 2010 12:18 am Post subject:
Shane16.ck Space Music Program Subject description: ...and my new website |
 |
|
I've just made my newest MAUI ChucK program (sorry, Mac only) available for download on my new website.
Just click on the www link below to see the site, including a mugshot of yours truly. Then use the links at the top or the right to see the pages. The page called "ChucK" has the three best programs that I have ever written in ChucK and also a link to my old ChucK web page with lots of goodies.
The Shane16.ck ambient space music program features a selectable number of Karplus Strong voices each driven by a Boolean Sequencer. It also has rainstorm stuff from kijjaz and an XY mouse interface for warping the audio like a lunatic! And I specialize in lunacy if you know what I mean!
Enjoy,
Les _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 270
|
Posted: Mon Jan 18, 2010 9:27 am Post subject:
|
 |
|
Oh and I forgot to mention that the Boolean Sequencer in the Shane16.ck program is neatly packed into a class which you can reuse in other programs (this does not require a Mac). In fact, here is the class for your convenience:
| Code: | // Boolean Sequencer Class
class BooleanSequencer {
// variables
int switches[]; // the switch settings
int b; // the binary counter
int sum; // sum of switches that match
int bitMask; // rollover bit mask
// set switches
fun void set(int array[]) {
array @=> switches;
}
fun void setBits(int n) {
(Math.pow(2, n) - 1) $ int => bitMask;
}
// reset counter
fun void reset() {
0 => b;
}
// perform one iteration of the sequencer
fun void iterate() {
0 => sum;
for (int i; i<switches.cap(); i++) {
((switches[i] & b) == switches[i]) +=> sum;
}
1 +=> b; // increment b
bitMask & b => b; // make b an 8 bit counter
}
// get the sum
fun int getSum() {
return sum;
}
// get the gate
fun int getGate() {
if (sum > 0) {
return true;
} else {
return false;
}
}
}
|
Les _________________ "Let's make noise for peace." - Kijjaz Last edited by Inventor on Mon Jan 18, 2010 7:15 pm; edited 1 time in total |
|
|
Back to top
|
|
 |
Antimon

Joined: Jan 18, 2005 Posts: 4145 Location: Sweden
Audio files: 373
G2 patch files: 100
|
Posted: Mon Jan 18, 2010 1:00 pm Post subject:
|
 |
|
I have a feeling you left html on on that code, Les. The for loop looks kinda weird.
/Stefan _________________ Antimon's Window
@soundcloud @Flattr home - you can't explain music |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 270
|
Posted: Mon Jan 18, 2010 7:16 pm Post subject:
|
 |
|
| Antimon wrote: | I have a feeling you left html on on that code, Les. The for loop looks kinda weird.
/Stefan |
OK thanks Stefan, I fixed it. What do you think of my new website?
Les _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
Antimon

Joined: Jan 18, 2005 Posts: 4145 Location: Sweden
Audio files: 373
G2 patch files: 100
|
Posted: Mon Jan 18, 2010 11:45 pm Post subject:
|
 |
|
It's real professional-looking. Great Job! Makes me want to clean up my own mess...
/Stefan _________________ Antimon's Window
@soundcloud @Flattr home - you can't explain music |
|
|
Back to top
|
|
 |
|