mp
1.0.0
Click here to try it online!

This is a music player built on web technologies. It can be used as a standalone cross-platform application (using nw.js or Electron) or as a web page.
The trick here is that the code base is shared: the very same application code that runs the web page is used in a standalone app.
dist/electron/mp.sh [path-to-song-or-playlist]dist/nw/mp.sh [path-to-song-or-playlist]dist/web/index.htmlThe web version is also hosted at GitHub pages.
[-p] play1.mp3 play2.mp3 ... -q enqueue1.mp3 enqueue2.mp3 ... -c command1 command2
Where command is play, pause, prev or next.
Web version can be controlled by postMessage with the following data object:
{
command: "control",
argv: ["array", "of", "command", "line", "arguments"]
}npm installmakeHTMLAudioElement through Web Audio sound graphdecodeAudioDataAnalyserNodeXHR2, ArrayBuffer, DataView and TextDecoder APIs