SHA256
1
0
forked from pool/soundtouch

Accepting request 149805 from home:sbrabec:branches:multimedia:libs

- Update to version 1.7.1:
  * Added files for Android compilation 
  * Sound quality improvements
  * Improved flush() to adjust output sound stream duration to
    match better with ideal duration
  * Rewrote x86 cpu feature check to resolve compatibility problems
  * Configure script automatically checks if CPU supports mmx & sse
    compatibility for GNU platform, and the script support now
    "--enable-x86-optimizations" switch to allow disabling
    x86-specific optimizations.
  * Revised #define conditions for 32bit/64bit compatibility
  * gnu autoconf/automake script compatibility fixes
  * Tuned beat-per-minute detection algorithm
- Updated man page from Debian unstable.

OBS-URL: https://build.opensuse.org/request/show/149805
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/soundtouch?expand=0&rev=19
This commit is contained in:
Stanislav Brabec 2013-01-24 15:59:06 +00:00 committed by Git OBS Bridge
parent 5d63537ea1
commit 57fe281547
5 changed files with 123 additions and 69 deletions

View File

@ -1,44 +1,89 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.38.2. .TH "soundstretch" 1
.TH SOUNDSTRETCH "1" "December 2010" "soundstretch " "User Commands"
.SH NAME .SH NAME
soundstretch \- manual page for soundstretch soundstretch \- audio processing utility
.SH SYNOPSIS
.B soundstretch
infile.wav outfile.wav [options]
.SH DESCRIPTION .SH DESCRIPTION
.TP SoundStretch is a simple command-line application that can change tempo, pitch and playback rates of WAV sound files. This program is intended primarily to demonstrate how the "SoundTouch" library can be used to process sound in your own program, but it can as well be used for processing sound files.
SoundStretch v1.4.0 \-
Written by Olli Parviainen 2001 \- 2008 .SH USAGE
.PP
author e\-mail: <oparviai@iki.fi> \- WWW: http://www.surina.net/soundtouch SoundStretch Usage syntax:
.PP
This program is subject to (L)GPL license. Run "soundstretch \fB\-license\fR" for "infile.wav" Name of the input sound data file (in .WAV audio file format). Give "stdin" as filename to use standard input pipe.
more information.
.PP "outfile.wav" Name of the output sound file where the resulting sound is saved (in .WAV audio file format). This parameter may be omitted if you don't want to save the output (e.g. when only calculating BPM rate with '\-bpm' switch). Give "stdout" as filename to use standard output pipe.
This application processes WAV audio files by modifying the sound tempo,
pitch and playback rate properties independently from each other. [options] Are one or more control options.
.SS "Usage :"
.IP .SH OPTIONS
soundstretch infilename outfilename [switches]
.PP Available control options are:
To use standard input/output pipes, give 'stdin' and 'stdout' as filenames.
.SS "Available switches are:" .B \-tempo=n
.TP Change the sound tempo by n percents (n = \-95.0 .. +5000.0 %)
\fB\-tempo\fR=\fIn\fR : Change sound tempo by n percents
(n=\-95..+5000 %) .B \-pitch=n
.HP Change the sound pitch by n semitones (n = \-60.0 .. + 60.0 semitones)
\fB\-pitch\fR=\fIn\fR : Change sound pitch by n semitones (n=\-60..+60 semitones)
.TP .B \-rate=n
\fB\-rate\fR=\fIn\fR Change the sound playback rate by n percents (n = \-95.0 .. +5000.0 %)
: Change sound rate by n percents (n=\-95..+5000 %)
.TP .B \-bpm=n
\fB\-bpm\fR=\fIn\fR Detect the Beats-Per-Minute (BPM) rate of the sound and adjust the tempo to meet 'n' BPMs. When this switch is applied, the " \-tempo" switch is ignored. If "=n" is omitted, i.e. switch " \-bpm" is used alone, then the BPM rate is estimated and displayed, but tempo not adjusted according to the BPM value.
: Detect the BPM rate of sound and adjust tempo to meet 'n' BPMs.
.IP .B \-quick
If '=n' is omitted, just detects the BPM rate. Use quicker tempo change algorithm. Gains speed but loses sound quality.
.TP
\fB\-quick\fR .B \-naa
: Use quicker tempo change algorithm (gain speed, lose quality) Don't use anti-alias filtering in sample rate transposing. Gains speed but loses sound quality.
.TP
\fB\-naa\fR .B \-license
: Don't use anti\-alias filtering (gain speed, lose quality) Displays the program license text (LGPL)
.HP
\fB\-license\fR : Display the program license text (LGPL) .SH NOTES
.TP
* To use standard input/output pipes for processing, give "stdin" and "stdout" as input/output filenames correspondingly. The standard input/output pipes will still carry the audio data in .wav audio file format.
* The numerical switches allow both integer (e.g. " \-tempo=123") and decimal (e.g. " \-tempo=123.45") numbers.
* The " \-naa" and/or " \-quick" switches can be used to reduce CPU usage while compromising some sound quality
* The BPM detection algorithm works by detecting repeating bass or drum patterns at low frequencies of <250Hz. A lower-than-expected BPM figure may be reported for music with uneven or complex bass patterns.
.SH EXAMPLES
Example 1
The following command increases tempo of the sound file "originalfile.wav" by 12.5% and stores result to file "destinationfile.wav":
soundstretch originalfile.wav destinationfile.wav \-tempo=12.5
Example 2
The following command decreases the sound pitch (key) of the sound file "orig.wav" by two semitones and stores the result to file "dest.wav":
soundstretch orig.wav dest.wav \-pitch= \-2
Example 3
The following command processes the file "orig.wav" by decreasing the sound tempo by 25.3% and increasing the sound pitch (key) by 1.5 semitones. Resulting .wav audio data is directed to standard output pipe:
soundstretch orig.wav stdout \-tempo= \-25.3 \-pitch=1.5
Example 4
The following command detects the BPM rate of the file "orig.wav" and adjusts the tempo to match 100 beats per minute. Result is stored to file "dest.wav":
soundstretch orig.wav dest.wav \-bpm=100
Example 5
The following command reads .wav sound data from standard input pipe and estimates the BPM rate:
soundstretch stdin \-bpm
.SH NOTES
Converted from the README.html that comes with SoundTouch.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8776edaf7299ffe1e8c97285f020365a63c0e01aa4f6f7c5fd1d011c0ded278f
size 94852

3
soundtouch-1.7.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:385eafa438a9d31ddf84b8d2f713097a3f1fc93d7abdb2fc54c484b777ee0267
size 101274

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Thu Jan 24 16:40:57 CET 2013 - sbrabec@suse.cz
- Update to version 1.7.1:
* Added files for Android compilation
* Sound quality improvements
* Improved flush() to adjust output sound stream duration to
match better with ideal duration
* Rewrote x86 cpu feature check to resolve compatibility problems
* Configure script automatically checks if CPU supports mmx & sse
compatibility for GNU platform, and the script support now
"--enable-x86-optimizations" switch to allow disabling
x86-specific optimizations.
* Revised #define conditions for 32bit/64bit compatibility
* gnu autoconf/automake script compatibility fixes
* Tuned beat-per-minute detection algorithm
- Updated man page from Debian unstable.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Nov 20 06:28:55 UTC 2011 - coolo@suse.com Sun Nov 20 06:28:55 UTC 2011 - coolo@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package soundtouch # spec file for package soundtouch
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,19 +15,21 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: soundtouch Name: soundtouch
License: LGPLv2.1+
Group: Productivity/Multimedia/Sound/Editors and Convertors
Url: http://www.surina.net/soundtouch Url: http://www.surina.net/soundtouch
Summary: Audio Processing Library Summary: Audio Processing Library
Version: 1.6.0 License: LGPL-2.1+
Release: 1 Group: Productivity/Multimedia/Sound/Editors and Convertors
BuildRequires: gcc-c++ libtool pkg-config Version: 1.7.1
Source: %{name}-%{version}.tar.gz Release: 0
Source1: soundstretch.1 BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkg-config
Source: http://www.surina.net/soundtouch/%{name}-%{version}.tar.gz
Source1: http://ftp.debian.org/debian/pool/main/s/soundtouch/soundtouch_1.6.0-3.debian.tar.gz/utar://debian/soundstretch.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -53,7 +55,6 @@ Authors:
Olli Parviainen Olli Parviainen
%package -n libSoundTouch0 %package -n libSoundTouch0
License: LGPLv2.1+
Summary: Audio Processing Library Summary: Audio Processing Library
Group: System/Libraries Group: System/Libraries
@ -67,10 +68,10 @@ Authors:
Olli Parviainen Olli Parviainen
%package devel %package devel
License: LGPLv2.1+
Summary: Audio Processing Library Summary: Audio Processing Library
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
Requires: %{name} = %{version} glibc-devel Requires: %{name} = %{version}
Requires: glibc-devel
%description devel %description devel
SoundTouch is an open-source audio processing library that allows SoundTouch is an open-source audio processing library that allows
@ -86,19 +87,9 @@ Authors:
tr -d '\r' <README.html >README.html~ tr -d '\r' <README.html >README.html~
touch -r README.html README.html~ touch -r README.html README.html~
mv README.html~ README.html mv README.html~ README.html
%ifarch x86_64
# cpu_detect_x86_gcc.cpp: Assembler messages:
# cpu_detect_x86_gcc.cpp:140: Error: suffix or operands invalid for `pop'
# cpu_detect_x86_gcc.cpp:143: Error: suffix or operands invalid for `push'
sed -i s/__x86_64__/__INVALID__/ include/STTypes.h
%endif
%ifnarch %ix86 x86_64
# cc1plus: error: unrecognized command line option "-msse2"
sed -i s/-msse2// source/SoundTouch/Makefile.am
%endif
%build %build
autoreconf -f -i ./bootstrap
%configure\ %configure\
--enable-shared\ --enable-shared\
--disable-static --disable-static