setup default aliasing
This commit is contained in:
parent
5d3778fb27
commit
7e1c6c1c22
3 changed files with 22 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { noteToMidi, valueToMidi, Pattern, evalScope } from '@strudel/core';
|
||||
import { registerSynthSounds, registerZZFXSounds, samples } from '@strudel/webaudio';
|
||||
import { aliasBank, registerSynthSounds, registerZZFXSounds, samples } from '@strudel/webaudio';
|
||||
import * as core from '@strudel/core';
|
||||
|
||||
export async function prebake() {
|
||||
|
|
@ -21,6 +21,9 @@ export async function prebake() {
|
|||
);
|
||||
// load samples
|
||||
const ds = 'https://raw.githubusercontent.com/felixroos/dough-samples/main/';
|
||||
|
||||
// TODO: move this onto the strudel repo
|
||||
const ts = 'https://raw.githubusercontent.com/todepond/samples/main/';
|
||||
await Promise.all([
|
||||
modulesLoading,
|
||||
registerSynthSounds(),
|
||||
|
|
@ -36,6 +39,8 @@ export async function prebake() {
|
|||
samples(`${ds}/EmuSP12.json`),
|
||||
samples(`${ds}/vcsl.json`),
|
||||
]);
|
||||
|
||||
aliasBank(`${ts}/tidal-drum-machines-alias.json`);
|
||||
}
|
||||
|
||||
const maxPan = noteToMidi('C8');
|
||||
|
|
|
|||
13
website/public/tidal-drum-machines-alias.json
Normal file
13
website/public/tidal-drum-machines-alias.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"AJKPercusyn": "Percysyn",
|
||||
"AkaiLinn": "Linn",
|
||||
"AkaiMPC60": "MPC60",
|
||||
"AkaiXR10": "XR10",
|
||||
"AlesisHR16": "HR16",
|
||||
"AlesisSR16": "SR16",
|
||||
"BossDR110": "DR110",
|
||||
"BossDR220": "DR220",
|
||||
"BossDR55": "DR55",
|
||||
"BossDR550": "DR550",
|
||||
"CasioRZ1": "RZ1"
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import { Pattern, noteToMidi, valueToMidi } from '@strudel/core';
|
||||
import { registerSynthSounds, registerZZFXSounds, samples } from '@strudel/webaudio';
|
||||
import { aliasBank, registerSynthSounds, registerZZFXSounds, samples } from '@strudel/webaudio';
|
||||
import { registerSamplesFromDB } from './idbutils.mjs';
|
||||
import './piano.mjs';
|
||||
import './files.mjs';
|
||||
|
|
@ -121,6 +121,8 @@ export async function prebake() {
|
|||
},
|
||||
),
|
||||
]);
|
||||
|
||||
aliasBank(`${baseNoTrailing}/tidal-drum-machines-alias.json`);
|
||||
}
|
||||
|
||||
const maxPan = noteToMidi('C8');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue