Audio waveform icon

New Added in v0.7.0

A free pencil-style audio waveform icon, drawn by code from 1 smooth line. Use it as an SVG, a React component, or by name. MIT licensed.

audio-waveform

01Use it

Use audio-waveform

One package, four ways in. The icon inherits currentColor and is decorative unless you give it a title. Install it with npm i @matita/icons.

React

import { AudioWaveform } from '@matita/icons/react';

<AudioWaveform size={24} />

// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="audio-waveform" />

JavaScript

import { AudioWaveform, toSvg } from '@matita/icons';

toSvg(AudioWaveform, { size: 24 });   // SVG string

SVG

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" overflow="visible" class="sketch-icon sketch-icon-audio-waveform" data-sketch="" aria-hidden="true"><path d="M2.22 12.43C2.54 12 3.49 9.62 4.11 9.89C4.73 10.16 5.34 14.54 5.96 14.06C6.58 13.57 7.27 6.47 7.85 6.97C8.42 7.47 8.85 17.63 9.42 17.05C9.99 16.46 10.69 2.91 11.27 3.48C11.86 4.05 12.36 19.86 12.94 20.46C13.51 21.06 14.17 7.67 14.72 7.07C15.26 6.46 15.64 16.32 16.2 16.82C16.76 17.31 17.5 10.54 18.08 10.04C18.66 9.54 19.06 13.54 19.66 13.83C20.27 14.11 21.39 12.1 21.73 11.75" stroke-width="1.44"/></svg>

Pencil variant

import '@matita/icons/pencil.css';
import { AudioWaveform } from '@matita/icons/react';

<AudioWaveform size={32} pencil />

The file is icons/audio-waveform.svg in the package (pencil/audio-waveform.svg for the pencil variant). Matita 0.7.0.

02How it's drawn

The recipe for audio-waveform

Audio waveform is not stored as a drawing. It is a recipe of 1 smooth line on a 24 by 24 grid, and a small program draws it like a pencil would. The wobble comes from the name, so it always comes out the same.

A · Recipe
S 2.5 12 4.23 10 5.95 14 7.68 7 9.41 17 11.14 3.5 12.86 20.5 14.59 7 16.32 17 18.05 10 19.77 14 21.5 12
B · Plotted
C · Drawn
How it works

03Takes, sizes, pencil

Same icon, every way

Pass a seed for another take of the same recipe. The wobble is capped, so it still reads at 16 px.

seed 0
seed 1
seed 2
seed 3
seed 4

Five seeds of audio-waveform. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

audio-waveform from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/audio-waveform.svg.

16 px
20 px
24 px
32 px
48 px
96 px

True pixel sizes.

Ink
Pencil