Mercurial > hg > sonic-annotator
comparison README @ 174:ff28af9e1d58
Docs
| author | Chris Cannam |
|---|---|
| date | Wed, 15 Oct 2014 16:54:35 +0100 |
| parents | 03b1d83fca29 |
| children | 766268a32378 |
comparison
equal
deleted
inserted
replaced
| 173:595df44835d6 | 174:ff28af9e1d58 |
|---|---|
| 203 least one output module; use the -w (writer) option to do so. Each | 203 least one output module; use the -w (writer) option to do so. Each |
| 204 module has its own set of parameters which can be adjusted on the | 204 module has its own set of parameters which can be adjusted on the |
| 205 command line, as well as its own default rules about where to write | 205 command line, as well as its own default rules about where to write |
| 206 the results. | 206 the results. |
| 207 | 207 |
| 208 To get help on a specific writer, run Sonic Annotator with the -h | |
| 209 option followed by the writer name (e.g. "-h csv"). | |
| 210 | |
| 208 The following writers are currently supported. (Others exist, but are | 211 The following writers are currently supported. (Others exist, but are |
| 209 not properly implemented or not supported.) | 212 not properly implemented or not supported.) |
| 210 | 213 |
| 211 * csv | 214 * csv |
| 212 | 215 |
| 232 containing the feature timestamp, feature duration if present, all | 235 containing the feature timestamp, feature duration if present, all |
| 233 of the feature's bin values in order, followed by the feature's | 236 of the feature's bin values in order, followed by the feature's |
| 234 label if present. If the --csv-one-file or --csv-stdout option is | 237 label if present. If the --csv-one-file or --csv-stdout option is |
| 235 specified, then an additional column will appear before any of the | 238 specified, then an additional column will appear before any of the |
| 236 above, containing the audio file name from which the feature was | 239 above, containing the audio file name from which the feature was |
| 237 extracted, if it differs from that of the previous row. | 240 extracted, if it differs from that of the previous row. To suppress |
| 241 this additional column, use the --csv-omit-filenames option. | |
| 242 | |
| 243 To make the CSV writer emit the end time instead of the duration | |
| 244 (for features with duration) use the --csv-end-times option. | |
| 245 | |
| 246 To make the writer always emit end time or duration, even when the | |
| 247 feature lacks duration, by using the time of the following feature | |
| 248 as the end time, use the --csv-fill-ends option. | |
| 238 | 249 |
| 239 The default column separator is a comma; you can specify a | 250 The default column separator is a comma; you can specify a |
| 240 different one with the --csv-separator option. | 251 different one with the --csv-separator option. |
| 252 | |
| 253 * lab | |
| 254 | |
| 255 Writes the results into a tab-separated label file (.lab). | |
| 256 | |
| 257 This is equivalent to using the CSV writer with a tab separator and | |
| 258 the options --csv-end-times --csv-omit-filenames. | |
| 259 | |
| 260 It supports the --lab-basedir, --lab-one-file, --lab-stdout, | |
| 261 --lab-force, --lab-append, and --lab-fill-ends options, which all | |
| 262 behave similarly to their CSV writer equivalents. | |
| 241 | 263 |
| 242 * rdf | 264 * rdf |
| 243 | 265 |
| 244 Writes the results into RDF/Turtle documents following the Audio | 266 Writes the results into RDF/Turtle documents following the Audio |
| 245 Features ontology (http://purl.org/ontology/af/). | 267 Features ontology (http://purl.org/ontology/af/). |
| 281 To override this, for example to process a local copy of a file | 303 To override this, for example to process a local copy of a file |
| 282 while generating RDF that describes a copy of it available on a | 304 while generating RDF that describes a copy of it available on a |
| 283 network, you can use the --rdf-signal-uri option to specify an | 305 network, you can use the --rdf-signal-uri option to specify an |
| 284 alternative signal URI. | 306 alternative signal URI. |
| 285 | 307 |
| 308 * json | |
| 309 | |
| 310 Writes the results into JSON format following JAMS, the JSON | |
| 311 Annotated Music Specification. This writer is provisional as of | |
| 312 Sonic Annotator v1.1. | |
| 313 | |
| 314 * midi | |
| 315 | |
| 316 Writes the results to MIDI files. All features are written as MIDI | |
| 317 notes. | |
| 318 | |
| 319 If a feature has at least one value, its first value will be used | |
| 320 as the note pitch, the second value (if present) for velocity. If a | |
| 321 feature has units of Hz, then its pitch will be converted from | |
| 322 frequency to an integer value in MIDI range, otherwise it will be | |
| 323 written directly. | |
| 324 | |
| 325 Multiple (up to 16) transforms can be written to a single MIDI | |
| 326 file, where they will be given separate MIDI channel numbers. | |
| 327 | |
| 286 | 328 |
| 287 4. Optionally, how to summarise the features | 329 4. Optionally, how to summarise the features |
| 288 | 330 |
| 289 Sonic Annotator can also calculate and write summaries of features, | 331 Sonic Annotator can also calculate and write summaries of features, |
| 290 such as mean and median values. | 332 such as mean and median values. |
