|
| 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; |
0 commit comments