[ubuntu-studio-users] Tunning music files in batch?
Sergio Bello
s.bello at newgenesys.it
Tue Nov 19 17:24:52 UTC 2013
On 11/19/2013 05:49 PM, leo wrote:
> Many times I read threads, like this one, and others regarding
> discussions on various other programs.
> I've been using Ubuntu a bit over a year now and many times I feel
> daunted by suggestions using command lines.
> I'm a GUI type of guy.
> Where would be an appropriate place in the Ubuntu world for me to
> vent....or solicit my desire to learn how and when to use command
> lines, rather than GUI's ?
Well, learning how to use the command line isn't a must in Linux, but
with a
minimal effort you can gain a lot in terms of efficiency and flexibility.
The specific case (re-tuning audio files in batch) is a clear example:
you can do it
with a gui (one at a time), but if the gui itself has not a 'batch mode'
you have
a chance to do it using a CLI (Command Line Interface).
Learning the basics is not so hard (and can be fun) and there are a lot
of tutorials around.
Almost every system on the earth has a command line mode (Macs too...)
and there
is a reason for it! Here are 10 more or less valid reasons to use CLI:
http://penguinpetes.com/b2evo/index.php?p=408
I think that reasons 5 and 6 are the most valuable.
Ciao,
Sergio
>
> Respectfully, Leo
>
>
> On Tuesday, November 19, 2013 1:20 AM, Ralf Mardorf
> <ralf.mardorf at alice-dsl.net> wrote:
> On Mon, 2013-11-18 at 20:13 -0500, Hazan Pérez wrote:
> > I want to tune many music files in batch, that is, change the tone
> > without changing the tempo of the song.
>
> Why don't you use the same as Audacity does use?
>
> "libsoundtouch0 Sound stretching library" -
> http://packages.ubuntu.com/saucy/audacity
>
> [rocketmouse at archlinux <mailto:rocketmouse at archlinux> ~]$ pacman -Ql
> soundtouch | grep bin
> soundtouch /usr/bin/
> soundtouch /usr/bin/soundstretch
> [rocketmouse at archlinux <mailto:rocketmouse at archlinux> ~]$ soundstretch
> --help
>
> SoundStretch v1.7.1 - Written by Olli Parviainen 2001 - 2012
> ==================================================================
> author e-mail: <oparviai at iki.fi <mailto:oparviai at iki.fi>> - WWW:
> http://www.surina.net/soundtouch
>
> This program is subject to (L)GPL license. Run "soundstretch -license"
> for
> more information.
>
> This application processes WAV audio files by modifying the sound tempo,
> pitch and playback rate properties independently from each other.
>
> Usage :
> soundstretch infilename outfilename [switches]
>
> To use standard input/output pipes, give 'stdin' and 'stdout' as
> filenames.
>
> Available switches are:
> -tempo=n : Change sound tempo by n percents (n=-95..+5000 %)
> -pitch=n : Change sound pitch by n semitones (n=-60..+60 semitones)
> -rate=n : Change sound rate by n percents (n=-95..+5000 %)
> -bpm=n : Detect the BPM rate of sound and adjust tempo to meet 'n'
> BPMs.
> If '=n' is omitted, just detects the BPM rate.
> -quick : Use quicker tempo change algorithm (gain speed, lose
> quality)
> -naa : Don't use anti-alias filtering (gain speed, lose quality)
> -speech : Tune algorithm for speech processing (default is for music)
> -license : Display the program license text (LGPL)
>
>
> If you don't want to use the same as Audacity does use, perhaps you like
> this one:
>
> [rocketmouse at archlinux <mailto:rocketmouse at archlinux> ~]$ rubberband
> --help
>
> Rubber Band
> An audio time-stretching and pitch-shifting library and utility program.
> Copyright 2007-2012 Particular Programs Ltd.
>
> Usage: rubberband [options] <infile.wav> <outfile.wav>
>
> You must specify at least one of the following time and pitch ratio
> options.
>
> -t<X>, --time <X> Stretch to X times original duration, or
> -T<X>, --tempo <X> Change tempo by multiple X (same as --time
> 1/X), or
> -T<X>, --tempo <X>:<Y> Change tempo from X to Y (same as --time
> X/Y), or
> -D<X>, --duration <X> Stretch or squash to make output file X
> seconds long
>
> -p<X>, --pitch <X> Raise pitch by X semitones, or
> -f<X>, --frequency <X> Change frequency by multiple X
>
> -M<F>, --timemap <F> Use file F as the source for key frame map
>
> A map file consists of a series of lines each having two numbers separated
> by a single space. These are source and target sample frame numbers
> for fixed
> time points within the audio data, defining a varying stretch factor
> through
> the audio. You must specify an overall stretch factor using e.g. -t
> as well.
>
> The following options provide a simple way to adjust the sound. See below
> for more details.
>
> -c<N>, --crisp <N> Crispness (N = 0,1,2,3,4,5,6); default 5
> (see below)
> -F, --formant Enable formant preservation when pitch shifting
>
> The remaining options fine-tune the processing mode and stretch algorithm.
> These are mostly included for test purposes; the default settings and
> standard
> crispness parameter are intended to provide the best sounding set of
> options
> for most situations. The default is to use none of these options.
>
> -L, --loose Relax timing in hope of better transient
> preservation
> -P, --precise Ignored: The opposite of -L, this is default
> from 1.6
> -R, --realtime Select realtime mode (implies --no-threads)
> --no-threads No extra threads regardless of CPU and channel
> count
> --threads Assume multi-CPU even if only one CPU is
> identified
> --no-transients Disable phase resynchronisation at transients
> --bl-transients Band-limit phase resync to extreme frequencies
> --no-lamination Disable phase lamination
> --window-long Use longer processing window (actual size may
> vary)
> --window-short Use shorter processing window
> --smoothing Apply window presum and time-domain smoothing
> --detector-perc Use percussive transient detector (as in pre-1.5)
> --detector-soft Use soft transient detector
> --pitch-hq In RT mode, use a slower, higher quality pitch
> shift
> --centre-focus Preserve focus of centre material in stereo
> (at a cost in width and individual channel
> quality)
>
> -d<N>, --debug <N> Select debug level (N = 0,1,2,3); default 0,
> full 3
> (N.B. debug level 3 includes audible ticks
> in output)
> -q, --quiet Suppress progress output
>
> -V, --version Show version number and exit
> -h, --help Show this help
>
> "Crispness" levels:
> -c 0 equivalent to --no-transients --no-lamination --window-long
> -c 1 equivalent to --detector-soft --no-lamination --window-long
> (for piano)
> -c 2 equivalent to --no-transients --no-lamination
> -c 3 equivalent to --no-transients
> -c 4 equivalent to --bl-transients
> -c 5 default processing options
> -c 6 equivalent to --no-lamination --window-short (may be good for
> drums
>
> http://breakfastquay.com/rubberband/
>
> Regards,
> Ralf
>
>
> --
> ubuntu-studio-users mailing list
> ubuntu-studio-users at lists.ubuntu.com
> <mailto:ubuntu-studio-users at lists.ubuntu.com>
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
>
>
>
>
--
Sergio Bello - New Genesys Srl
http://www.newgenesys.it
Via Dante, 188
26100 - Cremona
Via Melibeo, 65
00155 - Roma
email s.bello at newgenesys.it
tel 0372.22.942
fax 0372.56.52.87
mob 393.909.8181
Ai sensi del D.Lgs n. 196/2003 (Codice Privacy) si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.
This message, for the D.Lgs n. 196/2003 (Privacy Code), may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-studio-users/attachments/20131119/bfa17a9f/attachment-0001.html>
More information about the ubuntu-studio-users
mailing list