Re: Chopping wav samples
Jeremy Nicoll - ml sox users <[email protected]>
| Newsgroups | gmane.comp.audio.sox |
|---|---|
| Message-ID | <[email protected]> |
On 2020-03-24 09:48, K. H. Hom via Sox-users wrote: > Thank you for the reply. > Am Freitag, März 20, 2020 9:41 PM schrieb Jeremy Nicoll - ml sox users > <[email protected]>: >> You need to use %% where you want a single one. See: "Quoting and >> escaping" at: >> >> https://en.wikibooks.org/wiki/Windows_Batch_Scripting#How_a_command_line_is_interpreted > > Yeah I know and the manual says : > " > The command-line arguments AKA command-line parameters passed to a > batch script are accessible as %1, %2, ..., %9. > " > as well as "%~1" search the doc ... > > When dragging a file on the the bat file , the %~1 with be replaced > with the path to the file as mentioned in my first post. But that > wasnt the question. No, but the "&" signs further along your command might be the problem. In your original question you described a command containing sox "%~1" temp_outfile.wav silence 1 0.1 1% 1 0.1 1% : newfile : restart Note the: "1 0.1 1% 1 0.1 1% " I am not sure whether your command really contained all of that or had the simpler "1 0.1 1" parameters in it. I was trying to say that if you'd wanted "1 0.1 1% 1 0.1 1%" to work you would have needed to code "1 0.1 1%% 1 0.1 1%%", for the BAT file to use the command you wanted. If that's not what you were asking, you need to be clearer. > The question is now wht is this command not working: > > sox "C:\Users\hom\Downloads\Desktop\New folder (3)\threebursts.wav" > temp_outfile.wav silence 1 0.1 1 : newfile : restart OK, so that's a different question. "Not working" is not a useful description of what is or is not happening. What is in threebursts.wav? What does happen? How many files are produced, if any? What did you expect/hope would happen? Does the expected single action work properly if you omit the newfile & restart? -- Jeremy Nicoll - my opinions are my own _______________________________________________ Sox-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sox-users