Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added some clarification on the addition of regions, as answered in the issue: katspaugh#339
  • Loading branch information
russianryebread committed Oct 8, 2015
1 parent 32c2111 commit d2ad91c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ After doing that, use `wavesurfer.addRegion()` to create Region objects.

### Exposed Methods

* `addRegion(options)` – Creates a region on the waveform. Returns a `Region` object. See [Region Options](#region-options), [Region Methods](#region-methods) and [Region Events](#region-events) below.
* `addRegion(options)` – Creates a region on the waveform. Returns a `Region` object. See [Region Options](#region-options), [Region Methods](#region-methods) and [Region Events](#region-events) below.
* **Note:** You cannot add regions until the audio has finished loading, otherwise the `start:` and `end:` properties of the new region will be set to `0`, or an unexpected value.
* `clearRegions()` – Removes all regions.
* `enableDragSelection(options)` – Lets you create regions by selecting.
areas of the waveform with mouse. `options` are Region objects' params (see [below](#region-options)).
Expand Down

0 comments on commit d2ad91c

Please sign in to comment.