Thanks Dave! :) Really nice way of doing it, especially with keyboard only.
Bill, I'm going to try out the nightly build version(s).
I hope that in future versions of audacity you can slide the selection
window. It would be nice to have continuous loop while you edit the selection start and end boundaries, so you could hear when the 16 beats have been precisely selected :). Now you have to stop and then put
looping back on to hear the new selection area.
Anyway, before you answered I did a program so i could import the labels.
Input is second, just give [start], [selection length], [end of the area].
Then just redirect the output to a file (./program >labels.txt).
(You probably have to export the first selection to see proper precision)
- Code: Select all
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char**argv)
{
float len, start, end;
unsigned long int i,times;
if (argc < 3)
{
printf("Give params, start, len, end\n");
exit(1);
}
start = (float)atof(argv[1]);
len = (float)atof(argv[2]);
times = (unsigned long int)((atof(argv[3]) - start) / len)+1;
end = start+len;
for(i=0; i < times; i++)
{
printf("%f %f %ld\n", start, end,i+1);
start += len;
end += len;
}
return 0;
}
-Andy