mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
add drums to mini repl
This commit is contained in:
parent
1441374f6e
commit
88e39d22f1
@ -2,8 +2,8 @@ import { Tone } from '@strudel.cycles/tone';
|
||||
import { evalScope } from '@strudel.cycles/eval';
|
||||
import { MiniRepl as _MiniRepl } from '@strudel.cycles/react';
|
||||
import controls from '@strudel.cycles/core/controls.mjs';
|
||||
import * as WebDirt from 'WebDirt';
|
||||
import { loadWebDirt } from '@strudel.cycles/webdirt';
|
||||
import { samples } from '@strudel.cycles/webaudio';
|
||||
|
||||
export const defaultSynth = new Tone.PolySynth().chain(new Tone.Gain(0.5), Tone.Destination).set({
|
||||
oscillator: { type: 'triangle' },
|
||||
@ -12,6 +12,15 @@ export const defaultSynth = new Tone.PolySynth().chain(new Tone.Gain(0.5), Tone.
|
||||
},
|
||||
});
|
||||
|
||||
samples(
|
||||
{
|
||||
bd: '808bd/BD0000.WAV',
|
||||
sd: ['808sd/SD0000.WAV', '808sd/SD0010.WAV', '808sd/SD0050.WAV'],
|
||||
hh: ['hh27/000_hh27closedhh.wav', 'hh/000_hh3closedhh.wav'],
|
||||
},
|
||||
'https://raw.githubusercontent.com/tidalcycles/Dirt-Samples/master/',
|
||||
);
|
||||
|
||||
evalScope(
|
||||
Tone,
|
||||
controls,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user