-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add webchugins to IDE and chugin examples
- Loading branch information
1 parent
90aa9ec
commit 7320556
Showing
4 changed files
with
268 additions
and
18 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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,55 @@ | ||
//------------------------------------------------------------------------------ | ||
// title: Web Chugins | ||
// desc: Hacky way to load webchugins stored online | ||
// date: July 2024 | ||
// author: terry feng | ||
//------------------------------------------------------------------------------ | ||
|
||
const WEBCHUGIN_URL = "https://ccrma.stanford.edu/~tzfeng/static/webchugins/" | ||
|
||
const chugins = [ | ||
"ABSaturator.chug.wasm", | ||
"AmbPan.chug.wasm", | ||
"Binaural.chug.wasm", | ||
"Bitcrusher.chug.wasm", | ||
"Elliptic.chug.wasm", | ||
"ExpDelay.chug.wasm", | ||
"ExpEnv.chug.wasm", | ||
"FIR.chug.wasm", | ||
"FoldbackSaturator.chug.wasm", | ||
"GVerb.chug.wasm", | ||
"KasFilter.chug.wasm", | ||
"Ladspa.chug.wasm", | ||
"Line.chug.wasm", | ||
"MagicSine.chug.wasm", | ||
"Mesh2D.chug.wasm", | ||
"Multicomb.chug.wasm", | ||
"NHHall.chug.wasm", | ||
"Overdrive.chug.wasm", | ||
"PanN.chug.wasm", | ||
"Patch.chug.wasm", | ||
"Perlin.chug.wasm", | ||
"PitchTrack.chug.wasm", | ||
"PowerADSR.chug.wasm", | ||
"Random.chug.wasm", | ||
"Range.chug.wasm", | ||
"RegEx.chug.wasm", | ||
"Sigmund.chug.wasm", | ||
"Spectacle.chug.wasm", | ||
"WPDiodeLadder.chug.wasm", | ||
"WPKorg35.chug.wasm", | ||
"Wavetable.chug.wasm", | ||
"WinFuncEnv.chug.wasm", | ||
"XML.chug.wasm" | ||
] | ||
|
||
/** | ||
* Create paths to webchugins for loading into WebChucK | ||
* TODO: implement some kind of caching | ||
* @returns {string[]} array of chugin paths | ||
*/ | ||
export function loadWebChugins(): string[] { | ||
return chugins.map((chuginName) => { | ||
return WEBCHUGIN_URL + chuginName; | ||
}) | ||
} |