Merge branch 'main' into daslyfe/gainmod
This commit is contained in:
commit
3ea91adfd6
10 changed files with 125 additions and 37 deletions
|
|
@ -126,7 +126,7 @@ export const getAudioDevices = async () => {
|
|||
return devicesMap;
|
||||
};
|
||||
|
||||
const defaultDefaultValues = {
|
||||
let defaultDefaultValues = {
|
||||
s: 'triangle',
|
||||
gain: 0.8,
|
||||
postgain: 1,
|
||||
|
|
@ -150,6 +150,17 @@ const defaultDefaultValues = {
|
|||
fft: 8,
|
||||
};
|
||||
|
||||
const defaultDefaultDefaultValues = Object.freeze({ ...defaultDefaultValues });
|
||||
|
||||
export function setDefault(control, value) {
|
||||
// const main = getControlName(control); // we cant do this because superdough is independent of strudel/core
|
||||
defaultDefaultValues[control] = value;
|
||||
}
|
||||
|
||||
export function resetDefaults() {
|
||||
defaultDefaultValues = { ...defaultDefaultDefaultValues };
|
||||
}
|
||||
|
||||
let defaultControls = new Map(Object.entries(defaultDefaultValues));
|
||||
|
||||
export function setDefaultValue(key, value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue