Scriptune

A library to write and play music in the browser with the Web Audio API.

View on GitHub

Explore the Possibilities

Begin by listening to songs rendered in Scriptune's notation. Then, dive into the individual features powering the library.

Features in a Song

Tetris!

This is an example of an arrangement that uses multiple tracks, with different waveforms, using loops and other features.

Show notation

All My Little Ducklings!

This is an example of an arrangement that uses multiple tracks, with different waveforms, a melody and a harmony part panning left and right, using loops and other features.

Show notation
Features in the Spotlight

Play Notes!

Trigger individual notes to create melodies and sound effects.

Show notation

Play Chords!

Simultaneously trigger multiple notes to create rich, harmonious chords.

Show notation

Loop Notes!

Create repeating note patterns to build catchy melodies and rhythms.

Show notation

Parallel Tracks!

Create multiple tracks to play different melodies or harmonies at the same time.

Show notation

Different Waveforms!

Use different waveforms to create a variety of sounds.

Show notation

Adjust BPM!

Change the tempo to create a faster or slower feel.

Show notation

Adjust Volume!

Control overall output levels for a perfectly balanced mix.

Show notation

Adjust Panning!

Shift audio across the stereo field to craft a dynamic, immersive sound.

Show notation

Any Length!

Compose music from brief melodies to longer compositions without interruption.

Show notation