sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
* Destructive editing?
@ 2020-03-07 13:18 K. H. Hom via Sox-users
  2020-03-08 16:09 ` Peter P.
  0 siblings, 1 reply; 5+ messages in thread
From: K. H. Hom via Sox-users @ 2020-03-07 13:18 UTC (permalink / raw)
  To: sox-users; +Cc: K. H. Hom


[-- Attachment #1.1: Type: text/plain, Size: 135 bytes --]

Hi,
is it possible to normalize a wav sample and replace the source file, please?
Same with Strip silence from end of a file?

Cheers H

[-- Attachment #1.2: Type: text/html, Size: 166 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Destructive editing?
  2020-03-07 13:18 Destructive editing? K. H. Hom via Sox-users
@ 2020-03-08 16:09 ` Peter P.
  2020-03-12 13:43   ` K. H. Hom via Sox-users
  0 siblings, 1 reply; 5+ messages in thread
From: Peter P. @ 2020-03-08 16:09 UTC (permalink / raw)
  To: sox-users

* K. H. Hom via Sox-users <sox-users@lists.sourceforge.net> [2020-03-07 14:19]:
> Hi,
> is it possible to normalize a wav sample and replace the source file, please?
> Same with Strip silence from end of a file?
I think the best thing is to do it in one line yourself, something like

sox infile.wav outfile.wav norm && mv -f outfile.wav infile.wav

on Unix might work.


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Destructive editing?
  2020-03-08 16:09 ` Peter P.
@ 2020-03-12 13:43   ` K. H. Hom via Sox-users
  2020-03-12 13:52     ` Grondin Lefebvre Renaud (NHQ-AC)
  2020-03-12 13:55     ` Sylvain Leroux
  0 siblings, 2 replies; 5+ messages in thread
From: K. H. Hom via Sox-users @ 2020-03-12 13:43 UTC (permalink / raw)
  To: sox-users; +Cc: K. H. Hom

Thank you VERY much ! That woks (macOS Mojave)

I created a finder action to batch normalise samples:

export PATH=/usr/local/bin:$PATH
for file in "$@"
do
	sox $file outfile.wav --norm=-0.1 && mv -f outfile.wav $file
done

but there is a problem when the path contains empty space :/
Still need to find a solution for this.

Cheers Hermann


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Am Sonntag, März 8, 2020 5:09 PM schrieb Peter P. <peterparker@fastmail.com>:

> -   K. H. Hom via Sox-users sox-users@lists.sourceforge.net [2020-03-07 14:19]:
>
> > Hi,
> > is it possible to normalize a wav sample and replace the source file, please?
> > Same with Strip silence from end of a file?
>
> I think the best thing is to do it in one line yourself, something like
>
> sox infile.wav outfile.wav norm && mv -f outfile.wav infile.wav
>
> on Unix might work.
>
> Sox-users mailing list
> Sox-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sox-users




_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Destructive editing?
  2020-03-12 13:43   ` K. H. Hom via Sox-users
@ 2020-03-12 13:52     ` Grondin Lefebvre Renaud (NHQ-AC)
  2020-03-12 13:55     ` Sylvain Leroux
  1 sibling, 0 replies; 5+ messages in thread
From: Grondin Lefebvre Renaud (NHQ-AC) @ 2020-03-12 13:52 UTC (permalink / raw)
  To: 'K. H. Hom', 'sox-users@lists.sourceforge.net'

If the path contains a space you might want to use double quote like

"X:\Folder Name\File name.wav"

Regards,

-----Original Message-----
From: K. H. Hom via Sox-users <sox-users@lists.sourceforge.net> 
Sent: March 12, 2020 9:44 AM
To: sox-users@lists.sourceforge.net
Cc: K. H. Hom <handwash@protonmail.com>
Subject: Re: [SoX-users] Destructive editing?

Thank you VERY much ! That woks (macOS Mojave)

I created a finder action to batch normalise samples:

export PATH=/usr/local/bin:$PATH
for file in "$@"
do
	sox $file outfile.wav --norm=-0.1 && mv -f outfile.wav $file done

but there is a problem when the path contains empty space :/ Still need to find a solution for this.

Cheers Hermann


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Am Sonntag, März 8, 2020 5:09 PM schrieb Peter P. <peterparker@fastmail.com>:

> -   K. H. Hom via Sox-users sox-users@lists.sourceforge.net [2020-03-07 14:19]:
>
> > Hi,
> > is it possible to normalize a wav sample and replace the source file, please?
> > Same with Strip silence from end of a file?
>
> I think the best thing is to do it in one line yourself, something 
> like
>
> sox infile.wav outfile.wav norm && mv -f outfile.wav infile.wav
>
> on Unix might work.
>
> Sox-users mailing list
> Sox-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sox-users




_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Destructive editing?
  2020-03-12 13:43   ` K. H. Hom via Sox-users
  2020-03-12 13:52     ` Grondin Lefebvre Renaud (NHQ-AC)
@ 2020-03-12 13:55     ` Sylvain Leroux
  1 sibling, 0 replies; 5+ messages in thread
From: Sylvain Leroux @ 2020-03-12 13:55 UTC (permalink / raw)
  To: K. H. Hom, sox-users

On 03/12/2020 02:43 PM, K. H. Hom via Sox-users wrote:
> export PATH=/usr/local/bin:$PATH for file in "$@" do sox $file
> outfile.wav --norm=-0.1 && mv -f outfile.wav $file done
> 
> but there is a problem when the path contains empty space :/ Still
> need to find a solution for this.

Wrap your shell variables in double quotes:

sox "$file" outfile.wav --norm=-0.1 && mv -f outfile.wav "$file"


-- 
-- Sylvain Leroux
-- sylvain@chicoree.fr
-- http://www.chicoree.fr


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-12 16:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-07 13:18 Destructive editing? K. H. Hom via Sox-users
2020-03-08 16:09 ` Peter P.
2020-03-12 13:43   ` K. H. Hom via Sox-users
2020-03-12 13:52     ` Grondin Lefebvre Renaud (NHQ-AC)
2020-03-12 13:55     ` Sylvain Leroux

sox-users@lists.sourceforge.net unofficial mirror

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://public-inbox.org/sox-users

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 sox-users sox-users/ https://public-inbox.org/sox-users \
		sox-users@lists.sourceforge.net
	public-inbox-index sox-users

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.audio.sox
	nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.audio.sox
	nntp://news.gmane.io/gmane.comp.audio.sox
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/sox.git

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git