MixeryOSS / engine

The Mixery engine, as known as "the heart of Mixery Digital Audio Workspace"
GNU General Public License v3.0
1 stars 0 forks source link

Add song player (notes only) #1

Closed nahkd123 closed 1 year ago

nahkd123 commented 1 year ago

Song player can be created from Project or use its constructor directly.

let project: Project;
// ...
let player = project.createPlayer(0);
await player.start();
await sleepFor(1000); // A function that sleeps for 1s
player.stop();