GithubHelp home page GithubHelp logo

drsnuggles / chiptune Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deskjet/chiptune2.js

7.0 1.0 1.0 8.42 MB

chiptune3.js - ES6 module with AudioWorklet

Home Page: https://drsnuggles.github.io/chiptune/

License: Other

JavaScript 74.61% CSS 2.07% HTML 15.42% Dockerfile 4.40% Batchfile 1.20% Shell 2.31%
audio es6 libopenmpt module tracker worklet

chiptune's Introduction

Chiptune.js

Info

This is a javascript library that can play module music files. It is based on the libopenmpt C/C++ library. To translate libopenmpt into Javascript emscripten was used.

Modernized ES6 module version with libopenmpt AudioWorklet backend

Please note: The compiled libopenmpt.worklet.js in this repository is maybe outdated.

Latest released and beta versions are available via "npm i chiptune".

Demo

See: https://DrSnuggles.github.io/chiptune

Modland demo player: https://DrSnuggles.github.io/chiptune/demo.html

Drop in your favorite songs.

How to use

Features

  • Play all tracker formats supported by libopenmpt (including mod, xm, s3m, it)
  • Simple Javascript API
  • Pause/Resume
  • Play local and remote files
  • Stereo playback
  • Module metadata
  • Looping mode
  • Volume control
  • Position control
  • Pattern data

Build

Docker was used to build the library

CD into docker and run build.bat (Win) or build.sh (Linux)

You can minify by "npm run minify"

Chiptune Maintainers

v3 History

  • 2024-06-15: libopenmpt 0.7.8 + Emscripten 3.1.61
  • 2024-05-12: libopenmpt 0.7.7 + Emscripten 3.1.59
  • 2024-04-20: Emscripten 3.1.57 changes
  • 2024-03-24: Bumped to 0.7.6
  • 2024-03-18: Bumped to 0.7.5 using Emscripten 3.1.56
  • 2024-03-13: Bumped to 0.7.4
  • 2024-02-04: Metadata contains song, bugfixes and minify
  • 2024-01-24: Added config object, Modland player
  • 2024-01-23: Drag'n'Drop files. Build library using Docker.
  • 2024-01-22: Libopenmpt 0.7.3 compiled with Emscripten 3.1.51

License

All code in this project is MIT (X11) licensed. The only exception are the compiled libopenmpt parts which remain under the OpenMPT project BSD license.

License text below:

Copyright © 2013-2024 The chiptune2.js/chiptune3.js contributers.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

chiptune's People

Contributors

drsnuggles avatar sagamusix avatar deskjet avatar gs11 avatar perlun avatar raurir avatar

Stargazers

Felix Roos avatar Bitti avatar Jakub Topoliński avatar aspizu avatar  avatar Mykhailo Onikiienko avatar ok-devalias avatar

Watchers

Bitti avatar

Forkers

bitti09

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.