Date: Wed, 01 Nov 2006 21:38:34 -0700 From: Diane Bruce <db@db.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/105059: [NEW PORT] audio/xanalyser: Spectrum analyser Message-ID: <E1GfULa-000MzS-I6@diana.db.net> Resent-Message-ID: <200611020450.kA24oMkc095807@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 105059 >Category: ports >Synopsis: [NEW PORT] audio/xanalyser: Spectrum analyser >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Nov 02 04:50:22 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Diane Bruce >Release: FreeBSD 6.2-PRERELEASE i386 >Organization: none >Environment: System: FreeBSD diana.db.net 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Sat Oct 14 14:44:56 MDT 2006 >Description: XAnalyser is a program to analyse a stereo audio signal. It has two displays: Frequency Spectrum Using Fast Fourier Transform, the time domain of the signal is transformed into the frequency domain, i.e. the amplitude (in logarithmic scale) of the audio signal is plotted versus the frequency. Either the sum of the left and right channel of the audio signal can be shown or both channels simultaneously. XY Scope Roughly speaking, the audio signal of left channel deflects a point horizontally and the right channel vertically (just as the beam of a CRT would do). Thus, an audio signal only present on the left channel produces a horizontal line, whereas an audio signal only present on the right channel produces a vertical line. A mono signal produces a 45 degree line. A stereo signal creates a wilde pattern (if the phase is correct, predominately in the same direction as a mono signal) or may even fill the entire scope. WWW: http://arvin.schnell-web.net/xanalyser/ - Diane VA3DB db@db.net Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- xanalyser-1.29.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # xanalyser # xanalyser/Makefile # xanalyser/distinfo # xanalyser/pkg-descr # xanalyser/files # xanalyser/files/patch-src_pcm.cc # xanalyser/files/patch-src_pcm-cdr.cc # xanalyser/files/patch-src_pcm-wav.cc # xanalyser/files/patch-src_Sample.cc # xanalyser/files/patch-Makefile.in # echo c - xanalyser mkdir -p xanalyser > /dev/null 2>&1 echo x - xanalyser/Makefile sed 's/^X//' >xanalyser/Makefile << 'END-of-xanalyser/Makefile' X# New ports collection makefile for: xanalyser X# Date created: October 29 2006 X# Whom: Diane Bruce <db@db.net X# X# $FreeBSD:$ X# X XPORTNAME= xanalyser XPORTVERSION= 1.29 XCATEGORIES= audio hamradio XMASTER_SITES= http://arvin.schnell-web.net/xanalyser/ X XMAINTAINER= db@db.net XCOMMENT= Spectrum analyser X XUSE_BZIP2= yes XUSE_X_PREFIX= yes XUSE_XLIB= yes XUSE_MOTIF= yes XUSE_GMAKE= yes XGNU_CONFIGURE= yes XUSE_AUTOTOOLS= libtool:15 XMAN1= xanalyser.1 XPLIST_FILES= bin/xanalyser \ X lib/X11/app-defaults/XAnalyser X X.include <bsd.port.mk> END-of-xanalyser/Makefile echo x - xanalyser/distinfo sed 's/^X//' >xanalyser/distinfo << 'END-of-xanalyser/distinfo' XMD5 (xanalyser-1.29.tar.bz2) = 646ac3ac60fbf5d1be4637a50d37aebe XSHA256 (xanalyser-1.29.tar.bz2) = 00887546dfa74068b7ac13d281a45bc4f042628092adffd72aa127baf49df676 XSIZE (xanalyser-1.29.tar.bz2) = 83145 END-of-xanalyser/distinfo echo x - xanalyser/pkg-descr sed 's/^X//' >xanalyser/pkg-descr << 'END-of-xanalyser/pkg-descr' XXAnalyser is a program to analyse a stereo audio signal. It has two displays: X XFrequency Spectrum XUsing Fast Fourier Transform, the time domain of the signal is transformed into Xthe frequency domain, i.e. the amplitude (in logarithmic scale) of the Xaudio signal is plotted versus the frequency. Either the sum of the Xleft and right channel of the audio signal can be shown or both Xchannels simultaneously. X XXY Scope XRoughly speaking, the audio signal of left channel deflects a point Xhorizontally and the right channel vertically (just as the beam of a CRT Xwould do). Thus, an audio signal only present on the left channel produces Xa horizontal line, whereas an audio signal only present on the right channel Xproduces a vertical line. A mono signal produces a 45 degree line. XA stereo signal creates a wilde pattern (if the phase is correct, Xpredominately in the same direction as a mono signal) or may even fill Xthe entire scope. X XWWW: http://arvin.schnell-web.net/xanalyser/ X X- Diane VA3DB Xdb@db.net END-of-xanalyser/pkg-descr echo c - xanalyser/files mkdir -p xanalyser/files > /dev/null 2>&1 echo x - xanalyser/files/patch-src_pcm.cc sed 's/^X//' >xanalyser/files/patch-src_pcm.cc << 'END-of-xanalyser/files/patch-src_pcm.cc' X--- src/pcm.cc.orig Sun Oct 29 20:39:22 2006 X+++ src/pcm.cc Sun Oct 29 20:47:16 2006 X@@ -9,6 +9,8 @@ X #include <stdlib.h> X #ifdef __NetBSD__ X # include <machine/byte_swap.h> X+#elif __FreeBSD__ X+# include <sys/endian.h> X #else X # include <byteswap.h> X #endif X@@ -163,7 +165,7 @@ X case S16: { X int16_t* tmp_buffer = (int16_t*) buffer; X for (size_t i = n; i != 0; i--) { X-#ifdef __NetBSD__ X+#if defined (__NetBSD__) || (__FreeBSD__) X *tmp_buffer = bswap16 (*tmp_buffer); X #else X *tmp_buffer = bswap_16 (*tmp_buffer); X@@ -175,7 +177,7 @@ X case S32: { X int32_t* tmp_buffer = (int32_t*) buffer; X for (size_t i = n; i != 0; i--) { X-#ifdef __NetBSD__ X+#if defined (__NetBSD__) || (__FreeBSD__) X *tmp_buffer = bswap32 (*tmp_buffer); X #else X *tmp_buffer = bswap_32 (*tmp_buffer); X@@ -191,7 +193,7 @@ X PCM::uint16_to_le (uint16_t i) const X { X #if __BYTE_ORDER == __BIG_ENDIAN X-# ifdef __NetBSD__ X+# if defined (__NetBSD__) || (__FreeBSD__) X return bswap16 (i); X # else X return bswap_16 (i); X@@ -206,7 +208,7 @@ X PCM::uint32_to_le (uint32_t i) const X { X #if __BYTE_ORDER == __BIG_ENDIAN X-# ifdef __NetBSD__ X+# if defined (__NetBSD__)||(__FreeBSD__) X return bswap32 (i); X # else X return bswap_32 (i); END-of-xanalyser/files/patch-src_pcm.cc echo x - xanalyser/files/patch-src_pcm-cdr.cc sed 's/^X//' >xanalyser/files/patch-src_pcm-cdr.cc << 'END-of-xanalyser/files/patch-src_pcm-cdr.cc' X--- src/pcm-cdr.cc.orig Sun Oct 29 20:50:05 2006 X+++ src/pcm-cdr.cc Sun Oct 29 20:50:43 2006 X@@ -12,6 +12,8 @@ X #include <errno.h> X #include <string.h> X #include <iostream> X+#include <sys/types.h> X+#include <sys/stat.h> X X using std::cerr; X END-of-xanalyser/files/patch-src_pcm-cdr.cc echo x - xanalyser/files/patch-src_pcm-wav.cc sed 's/^X//' >xanalyser/files/patch-src_pcm-wav.cc << 'END-of-xanalyser/files/patch-src_pcm-wav.cc' X--- src/pcm-wav.cc.orig Mon Jul 3 16:05:03 2006 X+++ src/pcm-wav.cc Sun Oct 29 23:27:20 2006 X@@ -12,6 +12,8 @@ X #include <errno.h> X #include <string.h> X #include <iostream> X+#include <sys/types.h> X+#include <sys/stat.h> X X using std::cerr; X X@@ -79,7 +81,7 @@ X } X X if (!check_header (header, fs.st_size)) { X- cerr << "error: Male formed header\n"; X+ cerr << "error: mal-formed header\n"; X return; X } X END-of-xanalyser/files/patch-src_pcm-wav.cc echo x - xanalyser/files/patch-src_Sample.cc sed 's/^X//' >xanalyser/files/patch-src_Sample.cc << 'END-of-xanalyser/files/patch-src_Sample.cc' X--- src/Sample.cc.orig Sun Oct 29 20:53:54 2006 X+++ src/Sample.cc Sun Oct 29 20:54:32 2006 X@@ -12,6 +12,8 @@ X #include <errno.h> X #ifdef __NetBSD__ X # include <machine/endian.h> X+#elif __FreeBSD__ X+# include <sys/endian.h> X #else X # include <endian.h> X #endif END-of-xanalyser/files/patch-src_Sample.cc echo x - xanalyser/files/patch-Makefile.in sed 's/^X//' >xanalyser/files/patch-Makefile.in << 'END-of-xanalyser/files/patch-Makefile.in' X--- src/Makefile.in.orig Sun Oct 29 21:51:38 2006 X+++ src/Makefile.in Sun Oct 29 21:52:16 2006 X@@ -188,7 +188,7 @@ X utils.cc utils.h \ X Trans.h X X-xanalyser_LDADD = -lXext -lXm -lXt -lSM -lICE -lXmu -lXpm -lX11 \ X+xanalyser_LDADD = -lXext ${MOTIFLIB} -lXt -lSM -lICE -lXmu -lXpm -lX11 \ X $(FFTWLDADD) $(ALSALDADD) X X EXTRA_DIST = XAnalyser.ad help.txt *.xpm END-of-xanalyser/files/patch-Makefile.in exit --- xanalyser-1.29.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1GfULa-000MzS-I6>