Sanic Boom

Sample Libraries

Browse and import free sample libraries

Sanic Boom includes a growing collection of free, open-source sample libraries. Import any library with a single line:

import "github:SanicBoom/wine-glasses"

Then use libraries as full instruments or reference individual samples:

import "github:SanicBoom/salamander-grand-piano"

// Use the full instrument — the engine picks the right sample per note and velocity
let piano = sample("lib:salamander-grand-piano")

let chords = [C4 E4 G4 C5]
    |> piano
    |> reverb(size: 0.6, mix: 0.3)

Multi-sample libraries like salamander-grand-piano include samples at multiple notes and velocities. When you play a note, the engine automatically selects the closest sampled note and pitch-shifts to match, giving you a realistic instrument across the full keyboard.

For simpler libraries with individual samples, reference them directly with lib:library-name/sample-name:

import "github:SanicBoom/wine-glasses"

// Load a specific sample from the library
let glass = sample("lib:wine-glasses/glass1", root: Eb4)

// Use it as a melodic instrument — notes are pitch-shifted from the root
let melody = [Eb4 _ G4 Bb4 _ Ab4 G4 _]
    |> glass
    |> reverb(size: 0.85, mix: 0.6)
    |> delay(time: 0.375, feedback: 0.4)

The root: parameter tells Sanic Boom which note the sample was recorded at. When you play other notes, the sample is pitch-shifted accordingly — so G4 plays faster than Eb4, and Ab4 plays slower, giving you a full melodic instrument from a single sample.

Importing Samples as Instruments

Use from ... import to pull sample aliases from any library as instruments:

from "github:SanicBoom/808" import { kick, snare, hat }

play [kick _ snare hat]

Each imported name becomes a sample instrument that you can use directly inside patterns. This is the easiest way to build drum patterns — see Per-Note Instruments for more.

Names are resolved in order: first from the library's .sanic module exports (if it has one), then from the library's sample aliases in library.json. This means you can import both module bindings and sample names from the same library:

// "myFunc" comes from the .sanic module, "kick" from sample aliases
from "github:SanicBoom/drum-kit" import { myFunc, kick }

Entry Point Resolution

Libraries with .sanic modules specify their entry point in one of three ways:

  1. "main" field in library.json — e.g. "main": "index.sanic"
  2. Fallbackmain.sanic in the library root
  3. Direct file reference — specify a path after the repo name:
from "github:SanicBoom/some-lib/drums.sanic" import { kick, snare }

If a library has no .sanic entry point, from ... import resolves names against the library's sample aliases, and bare import "github:..." loads its samples for lib: path references.

Keyboards & Piano

LibraryDescription
grand-piano-kawaiGrand Piano, Kawai
grand-piano-steinway-bGrand Piano, Steinway B
upright-piano-knightUpright Piano, Knight
upright-piano-yamahaUpright Piano, Yamaha
salamander-grand-pianoSalamander Grand Piano
scarypianoScarypiano — dark, processed piano
fm-pianoFM Piano — FM synthesis piano
piano-1Piano 1
clavisynthClavisynth — synthetic keyboard
harpsichord-englishHarpsichord, English
harpsichord-flemishHarpsichord, Flemish
harpsichord-frenchHarpsichord, French
harpsichord-italianHarpsichord, Italian
harpsichord-unknownHarpsichord, Unknown
pipe-organPipe Organ
renaissance-organRenaissance Organ
vsco-organVSCO 2 CE — Organ
vsco-upright-pianoVSCO 2 CE — Upright Piano
vsco-upright-nr1VSCO 2 CE — Upright Nr1

Strings

LibraryDescription
concert-harpConcert Harp
folk-harpFolk Harp
dan-tranhDan Tranh — Vietnamese zither
psalteryPsaltery, Bowed and Plucked
strumstickStrumstick
bigcat-celloBigcat Cello
string-cyborgsString Cyborgs — processed strings
vsco-cello-sectionVSCO 2 CE — Cello Section
vsco-viola-sectionVSCO 2 CE — Viola Section
vsco-violin-sectionVSCO 2 CE — Violin Section
vsco-solo-violinVSCO 2 CE — Solo Violin
vsco-solo-contrabassVSCO 2 CE — Solo Contrabass
vsco-harpVSCO 2 CE — Harp

Woodwinds

LibraryDescription
baroque-soprano-recorderBaroque Soprano Recorder
baroque-alto-recorderBaroque Alto Recorder
baroque-tenor-recorderBaroque Tenor Recorder
baroque-bass-recorderBaroque Bass Recorder
harmonica-hohner-special20-cHarmonica, Hohner Special 20 in C
harmonica-hohner-special20-fHarmonica, Hohner Special 20 in F
harmonica-hohner-super64Harmonica, Hohner Super 64
ocarina-smallOcarina, Small
ocarina-typicalOcarina, Typical
didgeridooDidgeridoo
squidpipesSquidpipes — processed pipes
vsco-fluteVSCO 2 CE — Flute
vsco-piccoloVSCO 2 CE — Piccolo
vsco-clarinetVSCO 2 CE — Clarinet
vsco-oboeVSCO 2 CE — Oboe
vsco-bassoonVSCO 2 CE — Bassoon

Brass

LibraryDescription
vsco-trumpetVSCO 2 CE — Trumpet
vsco-french-hornVSCO 2 CE — French Horn
vsco-tenor-tromboneVSCO 2 CE — Tenor Trombone
vsco-tromboneVSCO 2 CE — Old Trombone
vsco-tubaVSCO 2 CE — Tuba
war-tubaWar Tuba — aggressive brass

Saxophones

LibraryDescription
tenor-saxophoneTenor Saxophone
saxelloSaxello
bear-saxBear Sax — processed sax
weresaxWeresax — processed sax

Guitar & Bass

LibraryDescription
emilyguitarEmilyguitar — clean acoustic guitar
shinyguitarShinyguitar — bright guitar
black-and-green-guitarsBlack And Green Guitars
big-little-bassBig Little Bass
black-and-blue-bassesBlack And Blue Basses
fashionbassFashionbass
growlybassGrowlybass
meatbassMeatbass
pastabassPastabass
sneakybassSneakybass
swagbassSwagbass

Tuned Percussion

LibraryDescription
glockenspielGlockenspiel
marimbaMarimba
vibraphoneVibraphone
xylophoneXylophone
tubular-bells-1Tubular Bells 1
tubular-bells-2Tubular Bells 2
tubular-glockenspielTubular Glockenspiel
kalimba-kenyaKalimba, Kenya
kalimba-tanzaniaKalimba, Tanzania
mbira-mavembeMbira Mavembe (Gandanga), Zimbabwe
mbira-nyamaropaMbira dzaVadzimu Nyamaropa, Zimbabwe
nyunga-nyungaNyunga Nyunga, Mozambique
balafonBalafon
bell-treeBell Tree
hand-bells-nepaleseHand Bells, Nepalese
hand-chimesHand Chimes
mark-treesMark Trees
slit-drumSlit Drum
wine-glassesWine Glass Samples
vsco-glockenspielVSCO 2 CE — Glockenspiel
vsco-marimbaVSCO 2 CE — Marimba
vsco-xyloVSCO 2 CE — Xylophone

Drums

LibraryDescription
bass-drum-1Bass Drum 1
bass-drum-2Bass Drum 2
snare-drum-1Snare Drum, Modern 1
snare-drum-2Snare Drum, Modern 2
snare-drum-3Snare Drum, Modern 3
snare-drum-ropeSnare Drum, Rope Tension
tom-1Tom 1
tom-2Tom 2
hi-hat-cymbalHi-Hat Cymbal
clash-cymbals-1Clash Cymbals 1
clash-cymbals-2Clash Cymbals 2
suspended-cymbal-1Suspended Cymbal 1
suspended-cymbal-2Suspended Cymbal 2
bongosBongos
congaConga
cajonCajon
darbukaDarbuka
frame-drumFrame Drum
timpani-1Timpani 1
timpani-2Timpani 2
ocean-drumOcean Drum
frankensnareFrankensnare — processed snare
thehatwiththephatThehatwiththephat — processed hi-hat
avl-drumkitsAVL Drumkits
salamander-drumkitSalamander Drumkit
big-rusty-drumsBig Rusty Drums
swirly-drumsSwirly Drums
unruly-drumsUnruly Drums
vsco-percussionVSCO 2 CE — Percussion
vsco-timpaniVSCO 2 CE — Timpani

Small Percussion

LibraryDescription
cabasaCabasa
clapsClaps
clavesClaves
cowbellsCowbells
guiroGuiro
ratchetRatchet
shaker-largeShaker, Large
shaker-smallShaker, Small
sleigh-bellsSleigh Bells
slapstickSlapstick
tambourine-1Tambourine 1
tambourine-2Tambourine 2
trianglesTriangles
vibraslapVibraslap
woodblockWoodblock
finger-cymbalsFinger Cymbals
brake-drumBrake Drum
flexatoneFlexatone
agogo-bellsAgogo Bells

Synths & Creative

LibraryDescription
cowsynthCowsynth
ergoErgo
horsepulseHorsepulse
caveman-cosmonautCaveman Cosmonaut
gogodze-phu-vol-iGogodze Phu Vol I
gogodze-phu-vol-iiGogodze Phu Vol II
272-merry-orks272 Merry Orks
vsco-miscellaniaVSCO 2 CE — Miscellania

Novelty & Effects

LibraryDescription
anvilAnvil
ball-whistleBall Whistle
gong-1Gong 1
sirenSiren
train-whistle-toyTrain Whistle, Toy

On this page