unstemizer v1.0.0
unstemizer
unstemizer
allows you to access each part of a Stems file.
A Stems file is a music format that contains four ‘stems’: Drums, Bassline, Melody, and Vocal stems.
This format allows DJs to control each track independently.
As more and more app moves to JavaScript world, it should be possible to read stems from JavaScript code! This library allows you to use files in Stems format inside your music application.
createUnstemizer(buffer)
Takes a Buffer and examines the file’s contents. It returns an unstemizer
object, which you can use to extract parts.
drums(), bassline(), melody(), vocal()
Mutates the
buffer
by enabling/disabling and re-arranging the track numbers so that when decoded using an ordinary MP4 decoder, the selected stems will be played back.reset()
Mutates the
buffer
to restore the original master track.
These functions are synchronous.
8 years ago