AmplifierDiagram

Import

svelte
import { AmplifierDiagram } from 'markgraphy';

Basic usage

svelte
<AmplifierDiagram
  gain={3.5}
  interactive={true}
  animated={true}
/>
+- - - - - - - - - - -[ AI IS AN AMPLIFIER ] - - - - - - - - - - +
|                                                                |
|        ▂▅▇▅▂     - - - - ▶  AI  - - - - ▶     ▃▇█████▇▃        |
|      your taste                               amplified        |
|                                                                |
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +

Signal power: +21.0 dB

Props

PropTypeDefaultDescription
gain?number3.5Starting gain multiplier. Default 3.5.
interactive?booleantrueShow the gain slider and dB readout. Default true.
animated?booleantrueAnimate the waves. Default true. Reduced motion freezes them.
class?string''

Exported types

  • AmplifierDiagramProps