forked from trquoccuong/node-wave
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
21dbddf
commit ec3bf06
Showing
6 changed files
with
85 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
out | ||
gen | ||
node_modules/ | ||
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Node wave | ||
Render audio waveform like SoundCloud on backend | ||
|
||
## Requirement | ||
This module base on `web-audio-api` and `canvas` modules. | ||
## Attribute | ||
|
||
| Option | Desciption | Default | | ||
| ------------- | ------------- | ------------- | | ||
| width | Image width | 600px | | ||
| height | Image height | 80px | | ||
| barWidth | bar height | 3px | | ||
| barGrap | space between 2 bar | 0.2 | | ||
| waveColor | bar color | gray | | ||
| waveAlpha | bar opacity | 1 | | ||
| backgroundColor | Image background color | #fff | | ||
| backgroundImage | setup image background | | | ||
| baseline | center of waveform | 40 | | ||
| padding | Top and bottom padding | 10 | | ||
| baselineWidth | baseline width | 1 | | ||
| baselineColor | baseline color | white | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"name": "node-wave", | ||
"version": "0.0.1", | ||
"description": "", | ||
"version": "0.0.2", | ||
"description": "Render waveform image like SoundCloud", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "standard && node index.js" | ||
"lint": "standard" | ||
}, | ||
"author": "Tran Quoc Cuong <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -13,6 +13,7 @@ | |
"web-audio-api": "^0.2.2" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^3.2.0", | ||
"standard": "^8.6.0" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters