SamWindell / Signet

Command-line program for bulk editing audio files on Windows, Linux and Mac
BSD 3-Clause "New" or "Revised" License
22 stars 2 forks source link

How to simple rename? #12

Closed davidhealey closed 2 years ago

davidhealey commented 2 years ago

Hi Sam,

How do I rename a folder of files to the detected midi note? This is what I tried but I get the error "A subcommand is required"

signet folder rename <detected-midi-note>

polypx commented 2 years ago

Hi David

Sam may have some better suggestions, but in the meantime, I’ve found that this works.

From the directory above your folder of samples. signet folder-name rename suffix ""

cheers Dan

On Jul 14, 2022, at 07:17, David Healey @.***> wrote:

Hi Sam,

How do I rename a folder of files to the detected pitch. This is what I tried but I get the error "A subcommand is required"

signet folder rename

— Reply to this email directly, view it on GitHub https://github.com/SamWindell/Signet/issues/12, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADMBVCG62JPTFAD2CVVQ7R3VT7ZLRANCNFSM53R4LGPQ. You are receiving this because you are subscribed to this thread.

SamWindell commented 2 years ago

Cheers Dan. Yeah, suffix is probably your best bet. The other available options are: prefix suffix regex-replace note-to-midi auto-map

You could use regex-replace like this too: signet folder-name rename regex-replace ".*" "new-name-<detected-midi-note>"