| 1 |
# Polyphone.praat |
| 2 |
# Paul Boersma, 4 August 2024 |
| 3 |
|
| 4 |
rootFolder$ = "/Volumes/Polyphone" |
| 5 |
|
| 6 |
stopwatch |
| 7 |
disks$# = folderNames$#: rootFolder$ |
| 8 |
for disk to size (disks$#) |
| 9 |
dataFolder$ = if disk = 9 then "DEV_TEST" else if disk = 10 then "EVALTEST" else "TRAIN" fi fi |
| 10 |
dataPath$ = rootFolder$ + "/" + disks$# [disk] + "/" + dataFolder$ |
| 11 |
numberFolders$# = folderNames$#: dataPath$ |
| 12 |
for numberFolder to size (numberFolders$#) |
| 13 |
numberPath$ = dataPath$ + "/" + numberFolders$# [numberFolder] |
| 14 |
writeInfoLine: numberPath$ |
| 15 |
participantFolders$# = folderNames$#: numberPath$ |
| 16 |
for participantFolder to size (participantFolders$#) |
| 17 |
participantPath$ = numberPath$ + "/" + participantFolders$# [participantFolder] |
| 18 |
files$# = fileNames$#: participantPath$ |
| 19 |
for file to size (files$#) |
| 20 |
filePath$ = participantPath$ + "/" + files$# [file] |
| 21 |
Read from file: filePath$ |
| 22 |
Remove |
| 23 |
endfor |
| 24 |
endfor |
| 25 |
endfor |
| 26 |
endfor |
| 27 |
appendInfoLine: "Elapsed time: ", stopwatch, " seconds" |