Giter Site home page Giter Site logo

arbiz / waveform Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrewrk/waveform

0.0 0.0 1.0 122 KB

fast c program to generate the waveform image of an audio file. Also available as a node.js module

Python 4.32% JavaScript 8.00% C 87.67%

waveform's Introduction

Command Line Usage:

    waveform [options] audiofile pngfile

    Available options with their defaults:
    --width 256                 width of the image
    --height 64                 height of the image
    --color-bg 00000000         bg color, rrggbbaa
    --color-center 000000ff     gradient center color, rrggbbaa
    --color-outer 000000ff      gradient outer color, rrggbbaa

    Substitute '-' for a filename to use stdio.

Node.js Usage:

    var generateWaveform = require('waveform');
    generateWaveform(audiofile, pngfile, {
        width: 256,                // width of the image
        height: 64,                // height of the image
        'color-bg': '00000000',    // bg color, rrggbbaa
        'color-center': '000000ff',// gradient center color, rrggbbaa
        'color-outer': '000000ff', // gradient outer color, rrggbbaa
    }, function(err) {
        // done generating waveform
    });

PHP Usage:
https://github.com/polem/WaveformGenerator

Dependencies:

    libsox
    libpng
    zlib

Compile:

    gcc -o waveform main.c -O3 -lsox -lz -lpng

Compile on osx using macport:

    install depedencies:

        sudo port install sox
        sudo port install libpng
        sudo port install zlib

    run compiler:

        gcc -o waveform main.c -O3 -lsox -lz -lpng -I/opt/local/include -L/opt/local/lib

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.