i have this line that gets the name of a take in a script:
Code:
local Take_Name = reaper.GetTakeName( Take )
the way i use this, it returns an entire file name, such as "example_file.wav."
i'd like to use part of the file name and strip out the rest, then later use the stripped out part. more specifically, i want to come up with:
and
as separate variables so that i can create:
Code:
example_file_DENOISED.wav
i assume i need to assign three variables:
Code:
prefix=
append=
suffix=
in order to return:
Code:
example_file
_DENOISED
.wav
no idea how to extract "example_file" and ".wav" though.
thanks for guidance,
babag