mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
audio/tuneit: Added to 13.0 repository
This commit is contained in:
parent
01df73b09d
commit
4908ef13c3
6 changed files with 10306 additions and 0 deletions
17
audio/tuneit/README
Normal file
17
audio/tuneit/README
Normal file
|
@ -0,0 +1,17 @@
|
|||
tuneit (A simple command-line instrument tuner)
|
||||
|
||||
Tune-it uses two different algorithms for pitch detection. By default,
|
||||
a simple and fast Schmitt Trigger based algorithm is used to detect the
|
||||
fundamental frequency of an instrument. For better and more reliable
|
||||
results, there is an alternative FFT based algorithm which is much more
|
||||
CPU intensive.
|
||||
|
||||
As audio capture backends, ALSA and JACK are supported. By default, tuneit
|
||||
will try to use the hw:0,0 ALSA device.
|
||||
|
||||
This requires fftw. jack is an optional dependency, but enabled by default
|
||||
in this build script. If you don't want jack support, then run the script
|
||||
with USE_JACK=no in the build environment.
|
||||
|
||||
Tip: Unless you're on a really slow ancient system, you probably want
|
||||
to always run tuneit with the -f option.
|
108
audio/tuneit/fix_manpage.diff
Normal file
108
audio/tuneit/fix_manpage.diff
Normal file
|
@ -0,0 +1,108 @@
|
|||
diff -Naur tuneit-0.3/src/tuneit.1 tuneit-0.3.patched/src/tuneit.1
|
||||
--- tuneit-0.3/src/tuneit.1 2005-01-27 14:30:50.000000000 -0500
|
||||
+++ tuneit-0.3.patched/src/tuneit.1 2009-12-25 12:47:26.000000000 -0500
|
||||
@@ -1,4 +1,4 @@
|
||||
-.TH TUNEIT 1 "January 27, 2005"
|
||||
+.TH TUNEIT 1 "December 25, 2009"
|
||||
.SH NAME
|
||||
tuneit \- Simple command line instrument tuner
|
||||
.SH SYNOPSIS
|
||||
@@ -6,41 +6,72 @@
|
||||
.RI [ options ]
|
||||
.I captureDevice
|
||||
.SH DESCRIPTION
|
||||
-\fBtuneit\fP plays Vorbis and MPEG audio files while allowing the user
|
||||
-to choose a new tempo without changing the pitch.
|
||||
+Tune\-It is a very simple command-line based instrument tuner for Linux.
|
||||
.PP
|
||||
-The tempo can be interactively controlled by pressing '+' or '-', incrementing
|
||||
-and decrementing the playback tempo by 1 percent respectively.
|
||||
-Use "q" to stop playback.
|
||||
+It uses two different algorithms for pitch detection. By default,
|
||||
+a simple and fast Schmitt Trigger based algorithm is used to detect
|
||||
+the fundamental frequency of an instrument. For better and more reliable
|
||||
+results, there is an alternative FFT based algorithm which is much more CPU
|
||||
+intensive.
|
||||
+.PP
|
||||
+As audio capture backends, ALSA and JACK are supported. By default, \fBtuneit\fR
|
||||
+will try to use the hw:0,0 ALSA device.
|
||||
+.PP
|
||||
+\fBtuneit\fR captures audio from an audio device and determines the note
|
||||
+being played, including the distance in cents from the nearest note in
|
||||
+standard (well\-tempered) tuning. Example display:
|
||||
+.PP
|
||||
+Note E ( 329.628Hz): +8 cents ( 331.106Hz)
|
||||
+.PP
|
||||
+The example was made by connecting an electric guitar to the sound
|
||||
+card's mic input and playing the high E string (which was tuned slightly
|
||||
+sharp). The first Hz value is the standard frequency of the E note, and
|
||||
+the second is the actual frequency being sampled from the audio device.
|
||||
+In the example, we need to tune the high E string down slightly. When it
|
||||
+is correct, \fI+0 cents\fR will be displayed.
|
||||
+.PP
|
||||
+To exit, interrupt the program (usually control\-C).
|
||||
+.PP
|
||||
+If \fBtuneit\fR's output seems to jump around and never settle on a note,
|
||||
+try one or more of:
|
||||
+.PP
|
||||
+\- Run \fBtuneit\fR with the \fB\-f\fR option.
|
||||
+.PP
|
||||
+\- Adjust the volume and/or tone controls of your instrument.
|
||||
+.PP
|
||||
+\- If your instrument has more than one pickup (such as an electric
|
||||
+guitar or bass), try the other pickup.
|
||||
+.PP
|
||||
+\- For stringed instruments, try the center harmonic of each string
|
||||
+(for guitar or bass, this would be the harmonic at the 12th fret).
|
||||
+.PP
|
||||
+\- For miked acoustic instruments, try a different microphone, or different
|
||||
+mic placement.
|
||||
.SH OPTIONS
|
||||
-\fByatm\fP accepts the following options:
|
||||
-.TP
|
||||
-.BR -b
|
||||
-Begin playing at
|
||||
-.IR time ,
|
||||
-given as an offset from the beginning of the file
|
||||
-.RB ( 0:00:00 ).
|
||||
+\fBtuneit\fR accepts the following options:
|
||||
.TP
|
||||
-.BR -e
|
||||
-Stop after
|
||||
-.IR duration
|
||||
-seconds of audio have been decoded.
|
||||
+\-f
|
||||
+Use the more CPU intensive FFT based algorithm. This is highly recommended,
|
||||
+unless your system is too slow to support it.
|
||||
.TP
|
||||
-.BR -t
|
||||
-Specify initial tempo as a floating point value, 1.0 is the default.
|
||||
+\-i
|
||||
+List available input ports and exit.
|
||||
.TP
|
||||
-.BR -q
|
||||
-Inhibit usual output.
|
||||
+\-j
|
||||
+Use JACK as the audio transport system (default is to use ALSA).
|
||||
.TP
|
||||
-.B -v, --verbose
|
||||
-Print more information.
|
||||
+.B \-l \fILATENCY\fR
|
||||
+Measurement window size in 1/N seconds (default is 10).
|
||||
.TP
|
||||
-.B \-h, \-\-help
|
||||
-Show summary of options.
|
||||
+.B \-r \fIRATE\fR
|
||||
+Set sample rate (default is 48000).
|
||||
.TP
|
||||
-.B \-V, \-\-version
|
||||
-Show version of program.
|
||||
+.B \-t \fIHERTZ\fR
|
||||
+Tune the A note of the scale (default is 440.0)
|
||||
.SH "SEE ALSO"
|
||||
.BR jackd (1), amixer (1).
|
||||
.SH AUTHOR
|
||||
Mario Lang <mlang@delysid.org>.
|
||||
+.PP
|
||||
+This manual page was written by B. Watson for the SlackBuilds.org
|
||||
+project, but may be used by others.
|
10075
audio/tuneit/jack_optional.diff
Normal file
10075
audio/tuneit/jack_optional.diff
Normal file
File diff suppressed because it is too large
Load diff
19
audio/tuneit/slack-desc
Normal file
19
audio/tuneit/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
tuneit: tuneit (A simple command-line instrument tuner)
|
||||
tuneit:
|
||||
tuneit: Tune-it uses two different algorithms for pitch detection. By default,
|
||||
tuneit: a simple and fast Schmitt Trigger based algorithm is used to detect
|
||||
tuneit: the fundamental frequency of an instrument. For better and more
|
||||
tuneit: reliable results, there is an alternative FFT based algorithm which
|
||||
tuneit: is much more CPU intensive.
|
||||
tuneit:
|
||||
tuneit:
|
||||
tuneit:
|
||||
tuneit:
|
77
audio/tuneit/tuneit.SlackBuild
Normal file
77
audio/tuneit/tuneit.SlackBuild
Normal file
|
@ -0,0 +1,77 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for <tuneit>
|
||||
|
||||
# Written by B. Watson (yalhcru@gmail.com)
|
||||
|
||||
PRGNAM=tuneit
|
||||
VERSION=${VERSION:-0.3}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
# Allow JACK to be optional instead of required (since the app is still
|
||||
# useful when using ALSA only)
|
||||
patch -p1 < $CWD/jack_optional.diff
|
||||
|
||||
# Included man page was unfinished
|
||||
patch -p1 < $CWD/fix_manpage.diff
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--enable-jack=${USE_JACK:-yes} \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install-strip DESTDIR=$PKG
|
||||
|
||||
gzip -9 $PKG/usr/man/man?/*.?
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
AUTHORS COPYING NEWS README \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
10
audio/tuneit/tuneit.info
Normal file
10
audio/tuneit/tuneit.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="tuneit"
|
||||
VERSION="0.3"
|
||||
HOMEPAGE="http://delysid.org/tuneit.html"
|
||||
DOWNLOAD="http://delysid.org/tuneit-0.3.tar.gz"
|
||||
MD5SUM="b22dcdc92982bcf56c4ae85d6b8e9b3b"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="B. Watson"
|
||||
EMAIL="yalhcru@gmail.com"
|
||||
APPROVED="rworkman"
|
Loading…
Reference in a new issue