fix: lint
This commit is contained in:
parent
b0d2115f43
commit
8703d684c4
8 changed files with 19 additions and 19 deletions
|
|
@ -73,8 +73,8 @@ export function registerSynthSounds() {
|
||||||
'supersaw',
|
'supersaw',
|
||||||
(begin, value, onended) => {
|
(begin, value, onended) => {
|
||||||
const ac = getAudioContext();
|
const ac = getAudioContext();
|
||||||
const {z1, z2, z3} = value;
|
const { z1, z2, z3 } = value;
|
||||||
let { duration, n, unison = z2 ?? 5, spread = z3 ?? 0.6, detune, } = value;
|
let { duration, n, unison = z2 ?? 5, spread = z3 ?? 0.6, detune } = value;
|
||||||
detune = detune ?? n ?? z1 ?? 0.18;
|
detune = detune ?? n ?? z1 ?? 0.18;
|
||||||
const frequency = getFrequencyFromValue(value);
|
const frequency = getFrequencyFromValue(value);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import Loader from '@src/repl/components/Loader';
|
import Loader from '@src/repl/components/Loader';
|
||||||
import { HorizontalPanel, } from '@src/repl/components/panel/Panel';
|
import { HorizontalPanel } from '@src/repl/components/panel/Panel';
|
||||||
import { Code } from '@src/repl/components/Code';
|
import { Code } from '@src/repl/components/Code';
|
||||||
import BigPlayButton from '@src/repl/components/BigPlayButton';
|
import BigPlayButton from '@src/repl/components/BigPlayButton';
|
||||||
import UserFacingErrorMessage from '@src/repl/components/UserFacingErrorMessage';
|
import UserFacingErrorMessage from '@src/repl/components/UserFacingErrorMessage';
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import { useState, useRef, useCallback, useMemo, useEffect } from 'react';
|
import { useState, useRef, useCallback, useMemo, useEffect } from 'react';
|
||||||
import { Icon } from './Icon';
|
import { Icon } from './Icon';
|
||||||
import { silence, noteToMidi, _mod } from '@strudel/core';
|
import { silence, noteToMidi, _mod } from '@strudel/core';
|
||||||
import { clearHydra } from '@strudel/hydra';
|
|
||||||
import { getDrawContext, getPunchcardPainter } from '@strudel/draw';
|
import { getDrawContext, getPunchcardPainter } from '@strudel/draw';
|
||||||
import { transpiler } from '@strudel/transpiler';
|
import { transpiler } from '@strudel/transpiler';
|
||||||
import { getAudioContext, webaudioOutput, initAudioOnFirstClick } from '@strudel/webaudio';
|
import { getAudioContext, webaudioOutput, initAudioOnFirstClick } from '@strudel/webaudio';
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ export default function ReplEditor(Props) {
|
||||||
const settings = useSettings();
|
const settings = useSettings();
|
||||||
const { panelPosition } = settings;
|
const { panelPosition } = settings;
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="h-full flex flex-col relative">
|
<div className="h-full flex flex-col relative">
|
||||||
<Loader active={pending} />
|
<Loader active={pending} />
|
||||||
|
|
|
||||||
|
|
@ -51,8 +51,11 @@ export function Reference() {
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="break-normal flex-grow flex-col overflow-y-auto overflow-x-hidden px-2 flex relative" id="reference-container">
|
<div
|
||||||
<div className='prose dark:prose-invert min-w-full px-1 '>
|
className="break-normal flex-grow flex-col overflow-y-auto overflow-x-hidden px-2 flex relative"
|
||||||
|
id="reference-container"
|
||||||
|
>
|
||||||
|
<div className="prose dark:prose-invert min-w-full px-1 ">
|
||||||
<h2>API Reference</h2>
|
<h2>API Reference</h2>
|
||||||
<p>
|
<p>
|
||||||
This is the long list functions you can use! Remember that you don't need to remember all of those and that
|
This is the long list functions you can use! Remember that you don't need to remember all of those and that
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,6 @@ export function SoundsTab() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div id="sounds-tab" className="px-4 flex flex-col w-full h-full dark:text-white text-stone-900">
|
<div id="sounds-tab" className="px-4 flex flex-col w-full h-full dark:text-white text-stone-900">
|
||||||
|
|
||||||
<input
|
<input
|
||||||
className="w-full p-1 bg-background rounded-md pb-2"
|
className="w-full p-1 bg-background rounded-md pb-2"
|
||||||
placeholder="Search"
|
placeholder="Search"
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
spacing: {
|
spacing: {
|
||||||
'app-height': 'var(--app-height)',
|
'app-height': 'var(--app-height)',
|
||||||
'app-width': 'var(--app-width)'
|
'app-width': 'var(--app-width)',
|
||||||
},
|
},
|
||||||
typography(theme) {
|
typography(theme) {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue