Song

A piece of music as data, with no sound in it: one track for each channel that plays, and how fast its ticks go by.

Import

import { Song } from '@halleyfante/chiptune';

Two tracks at once

Constructor

new Song({ tracks: readonly Track[], ticksPerSecond: number })
OptionDescription
tracksOne for each channel that plays.

Properties

NameTypeDescription
tracksreadonly Track[]
ticksPerSecondnumber
durationnumberIn seconds, of the longest track.