justinsalamon / scaper

A library for soundscape synthesis and augmentation
BSD 3-Clause "New" or "Revised" License
384 stars 56 forks source link

Output txt file doesn't load correctly into Audacity 2.1.3 #23

Closed justinsalamon closed 7 years ago

justinsalamon commented 7 years ago

The simplified annotation (txt) generated by scaper loads fine into Audacity 2.0.5, but doesn't display any labels when loaded into 2.1.3 (macOS).

Example contents:

0.18131 5.127892 siren
1.8938210000000002 5.881943000000001 siren
5.342074 8.890392 siren

Need to find out if this is an Audacity bug, or change of expected format.

justinsalamon commented 7 years ago

Newer versions of audacity don't accept space-separated txt files for labels, must be tab separated.

Proposed solution: change separator from space to tab. Optional: add separator as optional parameter in generate()