Skip to content

Commit 45e1250

Browse files
committed
alc proto
1 parent 33cccac commit 45e1250

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import type { DspDefinition } from "../types";
2+
3+
const dsp = `
4+
import("stdfaust.lib");
5+
6+
// synth
7+
8+
tune1 = waveform{48,-1,47,-1,40,-1,43,-1};
9+
tune2 = waveform{24,-1,-1,-1,28,-1,-1,-1};
10+
tunePlayer(tune) = tuneGate,tuneFreq
11+
with {
12+
tuneNow = tune,int(os.phasor(8,0.2)) : rdtable;
13+
tuneGate = tuneNow > 0 : ba.sAndH(tuneNow != 0) : en.adsre(0.01,2.0,0.2,1.0);
14+
tuneFreq = tuneNow : ba.sAndH(tuneNow > 0);
15+
};
16+
synth(gate) = ba.midikey2hz : os.triangle : *(gate) : *(0.2);
17+
input1 = tunePlayer(tune1) : synth;
18+
input2 = tunePlayer(tune2) : synth;
19+
20+
// fx
21+
22+
channel1 = input1 <: _,_; // : _,de.fdelay(ma.SR, ma.SR * 0.59);
23+
channel2 = input2 <: _,_;
24+
25+
process = channel1, channel2 :> _,_;
26+
`;
27+
28+
const dspDefinition: DspDefinition = {
29+
id: "alchemist-prototype",
30+
name: "alchemist prototype",
31+
description: "Makes a live tune and puts through alchemist prototype",
32+
dsp,
33+
type: "live",
34+
};
35+
36+
export default dspDefinition;

dev/src/dsp-definitions/all.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import autosampler2 from "./41-autosampler-2";
4444
import multibandFilter from "./42-multiband-filter";
4545
import c4BlopsLive from "./43-c4-blops-live";
4646
import c4Blops from "./44-c4-blops";
47+
import alchemistPrototype from "./45-alchemist-prototype";
4748

4849
export const all: DspDefinition[] = [
4950
sineWave,
@@ -90,4 +91,5 @@ export const all: DspDefinition[] = [
9091
multibandFilter,
9192
c4BlopsLive,
9293
c4Blops,
94+
alchemistPrototype,
9395
];

0 commit comments

Comments
 (0)