Skip to content

Commit

Permalink
alc proto
Browse files Browse the repository at this point in the history
  • Loading branch information
dxinteractive committed Dec 4, 2024
1 parent 33cccac commit 45e1250
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions dev/src/dsp-definitions/45-alchemist-prototype.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import type { DspDefinition } from "../types";

const dsp = `
import("stdfaust.lib");
// synth
tune1 = waveform{48,-1,47,-1,40,-1,43,-1};
tune2 = waveform{24,-1,-1,-1,28,-1,-1,-1};
tunePlayer(tune) = tuneGate,tuneFreq
with {
tuneNow = tune,int(os.phasor(8,0.2)) : rdtable;
tuneGate = tuneNow > 0 : ba.sAndH(tuneNow != 0) : en.adsre(0.01,2.0,0.2,1.0);
tuneFreq = tuneNow : ba.sAndH(tuneNow > 0);
};
synth(gate) = ba.midikey2hz : os.triangle : *(gate) : *(0.2);
input1 = tunePlayer(tune1) : synth;
input2 = tunePlayer(tune2) : synth;
// fx
channel1 = input1 <: _,_; // : _,de.fdelay(ma.SR, ma.SR * 0.59);
channel2 = input2 <: _,_;
process = channel1, channel2 :> _,_;
`;

const dspDefinition: DspDefinition = {
id: "alchemist-prototype",
name: "alchemist prototype",
description: "Makes a live tune and puts through alchemist prototype",
dsp,
type: "live",
};

export default dspDefinition;
2 changes: 2 additions & 0 deletions dev/src/dsp-definitions/all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import autosampler2 from "./41-autosampler-2";
import multibandFilter from "./42-multiband-filter";
import c4BlopsLive from "./43-c4-blops-live";
import c4Blops from "./44-c4-blops";
import alchemistPrototype from "./45-alchemist-prototype";

export const all: DspDefinition[] = [
sineWave,
Expand Down Expand Up @@ -90,4 +91,5 @@ export const all: DspDefinition[] = [
multibandFilter,
c4BlopsLive,
c4Blops,
alchemistPrototype,
];

0 comments on commit 45e1250

Please sign in to comment.