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 })| Option | Description |
|---|---|
tracks | One for each channel that plays. |
Properties
| Name | Type | Description |
|---|---|---|
tracks | readonly Track[] | |
ticksPerSecond | number | |
duration | number | In seconds, of the longest track. |