Skip to content

Bebopizer is a binary to a musical notes encoder and decoder.

License

Notifications You must be signed in to change notification settings

geomodular/bebopizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bebopizer

Bebopizer is a binary to a musical notes encoder and decoder. You can encode a text or a binary data to bunch of a musical notes and decode it back again.

Usage

var bebopizer = require('bebopizer');

// To get encoded string 
var notes = bebopizer.encode('Hello world!');
console.log(notes); // fCDbDcDcDeDFAEEeDAEcDCDGA

// To decode notes back to string
var string = bebopizer.decodeToStr(notes);

// Encode binary data stored in arrayBuffer or buffer
var notes = bebopizer.encode(buffer);
// Decode to arrayBuffer
var ab = bebopizer.decode(notes);

Tests

For NodeJS library version do

npm install
npm test

If you want to make a test in a browser do

npm install
bower install
npm run webtest

And point your browser to http://127.0.0.1:8000/webtest/

About

Bebopizer is a binary to a musical notes encoder and decoder.

Resources

License

Stars

Watchers

Forks

Packages

No packages published