Skip to content

A simple php script that calls sox, wav2png, wav2json to generate waveform png and json documents from mp3 files.

License

Notifications You must be signed in to change notification settings

dreaddymck/wavformgen.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

wavformgen.php

A simple php script that combines sox, wav2png, wav2json to generate wavform png and/or wavform json documents from mp3 files.

== Usage: ==

php wavformgen.php 'song.mp3' 'png|json' 'foreground color', 'background color'

php wavformgen.php 'path/to/directory/' 'png|json' 'foreground color', 'background color'	

== required parameters ==:

Parameter 1 - "path/to/song.mp3" or "path/to/directory/"

Parameter 2 - "png|json"

== optional parameters: ==

Parameter 3 - foreground color. Defaults to 'ffb400aa' (weird orange yellow)

Parameter 4 - background color. Defaults to '00000000' (transparent)

== Misc ==

Outputs to the same directory as input.

Output examples can be seen here: http://dreaddymck.com

== Known issues: ==

Crappy code.

About

A simple php script that calls sox, wav2png, wav2json to generate waveform png and json documents from mp3 files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages