-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e19568
commit 1ecb978
Showing
4 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SynthDef("klang", { | ||
var nPartials = 12, nChans = 5; | ||
var n = nPartials * nChans; | ||
Splay.ar(Klang.ar(`[ { { rrand(200.0, 2000.0) } ! nPartials } ! nChans, nil, nil ], 1, 0)) | ||
* EnvGen.kr(Env.sine(4), 1, 0.02, doneAction: Done.freeSelf); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { server } from "supercolliderjs"; | ||
const sc = require("supercolliderjs"); | ||
|
||
server.run(async sc => { | ||
sc.server.boot().then(async sc => { | ||
// Allocate an 8 second stereo audio buffer | ||
const b = await sc.buffer(44 * 1024 * 8, 2); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
const d = require("supercolliderjs").dryads; | ||
// const d = require("supercolliderjs").dryads; | ||
|
||
const s = d.Synth( | ||
` | ||
arg freq; | ||
Out.ar(0, SinOsc.ar(freq)) | ||
`, | ||
{ | ||
freq: 40, | ||
}, | ||
); | ||
// const s = new d.Synth( | ||
// ` | ||
// arg freq; | ||
// Out.ar(0, SinOsc.ar(freq)) | ||
// `, | ||
// { | ||
// freq: 40, | ||
// }, | ||
// ); | ||
|
||
s.play(); | ||
// d.dryadic(s).play(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters