7 lines
137 B
Python
7 lines
137 B
Python
def filename(idx):
|
|
ext = ".wav"
|
|
if isinstance(idx, int):
|
|
return "%04d%s" % (idx, ext)
|
|
else:
|
|
return idx + ext
|