mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-21 20:55:12 -04:00
Run codeformat
This commit is contained in:
@@ -145,7 +145,7 @@ export function SettingsTab({ started }) {
|
||||
}}
|
||||
min={0}
|
||||
max={100}
|
||||
step={.1}
|
||||
step={0.1}
|
||||
/>
|
||||
</FormItem>
|
||||
<FormItem label="Theme">
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
import { evalScope, hash2code, logger } from '@strudel/core';
|
||||
import { settingPatterns, defaultAudioDeviceName } from '../settings.mjs';
|
||||
import { getAudioContext, initializeAudioOutput, setDefaultAudioContext, setGlobalGain, setVersionDefaults } from '@strudel/webaudio';
|
||||
import {
|
||||
getAudioContext,
|
||||
initializeAudioOutput,
|
||||
setDefaultAudioContext,
|
||||
setGlobalGain,
|
||||
setVersionDefaults,
|
||||
} from '@strudel/webaudio';
|
||||
import { getMetadata } from '../metadata_parser';
|
||||
import { isTauri } from '../tauri.mjs';
|
||||
import './Repl.css';
|
||||
@@ -193,7 +199,7 @@ export const setGlobalAudioVolume = (volume) => {
|
||||
// Pow is used to also adjust the volume to a logarithmic scale (as perceived by us humans)
|
||||
const gain = Math.pow(volume / 100, 2);
|
||||
setGlobalGain(gain);
|
||||
}
|
||||
};
|
||||
|
||||
export function setVersionDefaultsFrom(code) {
|
||||
try {
|
||||
|
||||
@@ -34,7 +34,7 @@ export const defaultSettings = {
|
||||
userPatterns: '{}',
|
||||
audioDeviceName: defaultAudioDeviceName,
|
||||
audioEngineTarget: audioEngineTargets.webaudio,
|
||||
audioVolume: 50
|
||||
audioVolume: 50,
|
||||
};
|
||||
|
||||
let search = null;
|
||||
|
||||
Reference in New Issue
Block a user