The Audacity open source sound editor, supports the marking and naming of soundfile regions (name, start, end), which may overlap with each other and which may be exported in a simple file format. This class imports such files and converts the information into a lookup dictionary of Events. If no label name has been given, the label index (an Integer) is used as a key instead. The events can then be played directly, or used in event patterns (see also: LabeledSoundFile).
To create the labels in Audacity, go to Tracks>Add Label At Selection
.
To export them, use: File>Export Labels
.
For interfacing with the event and pattern system, the class LabeledSoundFile
can be used. For some examples, see the file intro.scd
.
Create a new instance an read labels into the dictionary
labelPath |
Path to the file that contains the label information |
Access the event for a specific label
wort |
A symbol or string matching the label (as entered in Audacity). |
access the dictionary
Reads labels into the dictionary
labelPath |
Path to the file that contains the label information |
Given a comma separated list as string, add the corresponding events into the dictionary
string |
The string with the label information accordingto the audacity format. |
labelPath |
(optional) path to the file that contains the label information |
Empty the dictionary