Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed and Loops #22

Closed
wants to merge 14 commits into from
18 changes: 9 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"extends": "airbnb-base",
"plugins": [
"import"
],
"env": {
"browser": true,
"worker": true,
"es6": true
}
"extends": "airbnb-base",
"plugins": [
"import"
],
"env": {
"browser": true,
"worker": true,
"es6": true
}
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
/lib
.sass-cache
/styles

#Ide files
.idea/*
.idea
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ An example of using the event emitter to control the playlist can be found in [/
| `mastervolumechange` | `volume` | Set a new master volume `volume` (0-100) |
| `select` | `start, end, track:optional` | Seek to the start time or start/end selection optionally with active track `track`. |
| `startaudiorendering` | (`wav | buffer`) | Request for a downloadable file or web Audio buffer that represent the current work |
| `speedchange` | `speed` | Change de playback speed. Minimum is 0.5x and maximum is 4x |
| `loopnumber` | `number` | -1 : infinite loop. `number` > 1 : perform `number` loops. 0 : disable loops |

#### Events to Listen to

Expand All @@ -302,6 +304,8 @@ An example of using the event emitter to control the playlist can be found in [/
| `audiosourcesrendered` | _none_ | Tracks are rendered to the playlist |
| `finished` | _none_ | Event fired when cursor ( while playing ) reaches the end (maximum duration) |
| `audiorenderingfinished` | `type, data` | Return the result of the rendering in the desired format. `type` can be `buffer` or `wav` and can be used to dertermine the `data` type. When `type` is `wav`, data is a `blob` object that represent the wav file. |
| `speedchanged` | `speed` | When speed is changed, return the value applied to tracks. |
| `newloop` | `remaining` |Event fired when one loop finish, and give the number of remaining loops to come |

## Tests

Expand Down
19 changes: 10 additions & 9 deletions dist/waveform-playlist/exclusive-solo.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,20 @@ <h1 class="post-title">Stem Tracks with exclusive solo</h1>

<div class="post-content">
<div id="top-bar" class="playlist-top-bar">
<div class="playlist-toolbar">
<div class="btn-group">
<span class="btn-pause btn btn-warning"><i class="fa fa-pause"></i></span>
<span class="btn-play btn btn-success"><i class="fa fa-play"></i></span>
<span class="btn-stop btn btn-danger"><i class="fa fa-stop"></i></span>
<span class="btn-rewind btn btn-success"><i class="fa fa-fast-backward"></i></span>
<span class="btn-fast-forward btn btn-success"><i class="fa fa-fast-forward"></i></span>
<div class="playlist-toolbar">
<div class="btn-group">
<span class="btn-pause btn btn-warning"><i class="fa fa-pause"></i></span>
<span class="btn-play btn btn-success"><i class="fa fa-play"></i></span>
<span class="btn-stop btn btn-danger"><i class="fa fa-stop"></i></span>
<span class="btn-rewind btn btn-success"><i class="fa fa-fast-backward"></i></span>
<span class="btn-fast-forward btn btn-success"><i class="fa fa-fast-forward"></i></span>
</div>
</div>
</div>
</div>
<div id="playlist"></div>
<form>
<label>Master Volume: <input type="range" min="0" max="100" value="100" class="master-gain input-small form-control"></label>
<label>Master Volume: <input type="range" min="0" max="100" value="100"
class="master-gain input-small form-control"></label>
</form>
<div class="sound-status"></div>
<div class="loading-data"></div>
Expand Down
Loading