Giter Club home page Giter Club logo

musicimage's Introduction

MusicImage

Creates fancy vinyl-like PNGs from music files

Features

  • Can "encode" 8-bit mono WAV files to PNG files
  • Can "decode" those PNG files to re-create the original WAV

Download

There are no releases, you'll have to build MusicImage yourself. It's as easy as dub build in the project folder though.

I recommend using ldc, as the resulting binary will run much faster than the dmd version.

dub build --compiler ldc2 -b release --parallel

Usage

  • -i/--infile: The input file. Can be either a .png or a .wav file. (Required)
  • -o/--outfile: The output file. Can be either a .png or a .wav file, but mustn't have the same extension as -i. (Required)
  • -r/--rate: Sample rate override. Only used when decoding PNGs to WAVs. (Optional. Default: 8000)
  • -d/--diameter: The diameter of the hole in the middle of the spiral. Can be used to insert downscaled album art. (Optional. Default: 80)
  • -g/--gap: Gap size multiplier. Because of Reasons™, the smaller this value is, the slower MusicImage will run. (Optional. Default: 0.3)

Example

MusicImage-encoded excerpt from Ultra Sheriff's Leviathan

This image decodes to this WAV file. (Standard settings: -r 8000 -d 80 -g 0.3)

(The black background and the album cover were added after the fact in Photoshop. MusicImage outputs PNGs with a transparent background.)

(The full song is available on iTunes and on Spotify, by the way. It's great.)

Limitations

MusicImage only supports WAV files with:

  • one channel
  • 8 bits per sample

If you try to open anything else, MusicImage will crash. All the relevant checks are in simplewave/wavereader.d if you want to change them.

Feedback and support

Just tweet at me @SamusAranX. Feel free to file an issue if you encounter any crashes, bugs, etc.: https://github.com/SamusAranX/MusicImage/issues

musicimage's People

Contributors

samusaranx avatar

Watchers

 avatar  avatar  avatar

Forkers

jeremydeanw

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.