debian/0000775000000000000000000000000011651465113007173 5ustar debian/gtkguitune.1x0000664000000000000000000000265611634141170011637 0ustar .TH WMKBD 1 "September 06, 2003" .SH NAME gtkguitune - KGuitune .SH SYNOPSIS .B gtkguitune .br .SH DESCRIPTION This manual page documents briefly the .B gtkguitune program. This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. .PP Guitune is a linux program for tuning guitars and other instruments by using the method of Schmitt-triggering, i.e. counting the number of triggerings between two trigger levels in a certain amount of time. With FFT you need many samples to archieve the accuracy needed for tuning instruments. You often get times of around 1 second between two measurements and the computer is quite busy in this second calculating the FFT. Using Schmitt-triggering you get a measurement every 10th of a second or even less (depending on the sample frequency you use). Most of the time the computer only waits for the samples. The Trigger levels are adjustable. For a pure sine-wave the trigger levels could be zero. But for a wave wth overtones like the one in the figure above you need a non-zero triggerlevel. It is preadjusted to a level of 60% of the current maximum which should be able to deal with most instruments. .SH SEE ALSO .TP .BR http://www.geocities.com/harpin_floh/kguitune_page.html Project web page. .SH AUTHOR This manual page was written by Anton\['i]n Kr\['a]l , for the Debian GNU/Linux system (but may be used by others). debian/docs0000664000000000000000000000000711634141170010036 0ustar README debian/patches/0000775000000000000000000000000011634141170010615 5ustar debian/patches/0001-FTBFS-on-GNU-kFreeBSD-bug-336898.patch0000664000000000000000000000221111634141170017035 0ustar From: Aurelien Jarno Date: Wed, 23 Dec 2009 08:49:00 +0100 Subject: FTBFS on GNU/kFreeBSD (bug #336898) @DPATCH@ --- guitune.cc | 5 +++++ main.cc | 6 ++++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/guitune.cc b/guitune.cc index ba41cad..fd188d8 100644 --- a/guitune.cc +++ b/guitune.cc @@ -24,7 +24,12 @@ #include #include #include +#if defined(__linux__) #include +#endif +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#include +#endif #include #include diff --git a/main.cc b/main.cc index 001a17a..a46ce01 100644 --- a/main.cc +++ b/main.cc @@ -19,12 +19,18 @@ // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // // +#include #include #include #include #include #include +#if defined(__linux__) #include +#endif +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#include +#endif #include #include -- debian/patches/0002-Naming-notes-with-syllables-Bug-556449.patch0000664000000000000000000000652611634141170021017 0ustar From: Olivier Robert Date: Wed, 23 Dec 2009 08:49:00 +0100 Subject: Naming notes with syllables (Bug #556449) @DPATCH@ --- guitune.cc | 10 ++++++++-- guitune.h | 2 ++ logview.cc | 8 ++++++++ logview.h | 9 ++++++++- main.cc | 5 ++++- 5 files changed, 30 insertions(+), 4 deletions(-) diff --git a/guitune.cc b/guitune.cc index fd188d8..f4f793d 100644 --- a/guitune.cc +++ b/guitune.cc @@ -108,8 +108,14 @@ void MainWidget::setScaleGEAlt() { logview->setScale(LogView::german_scale_alt); } - - +void MainWidget::setScaleSY() +{ + logview->setScale(LogView::syllables_scale); +} +void MainWidget::setScaleSYAlt() +{ + logview->setScale(LogView::syllables_scale_alt); +} void MainWidget::showLogView() { diff --git a/guitune.h b/guitune.h index 51067d4..77f4dc9 100644 --- a/guitune.h +++ b/guitune.h @@ -57,6 +57,8 @@ class MainWidget : public Gtk::Table void setScaleUSAlt(); void setScaleGE(); void setScaleGEAlt(); + void setScaleSY(); + void setScaleSYAlt(); void showOszi(); void hideOszi(); void showLogView(); diff --git a/logview.cc b/logview.cc index 3dd2682..063f1cd 100644 --- a/logview.cc +++ b/logview.cc @@ -33,8 +33,10 @@ const char *note_ger[12] = {"A","B", "H","C","Db","D","Eb","E","F","Gb","G","Ab"}; const char *note_us[12] = {"A","Bb","B","C","Db","D","Eb","E","F","Gb","G","Ab"}; +const char *note_sy[12] = {"LA","SIb","SI","DO","REb","RE","MIb","MI","FA","SOLb","SOL","LAb"}; const char *note_ger_alt[12] = {"A","B", "H","C","C#","D","D#","E","F","F#","G","G#"}; const char *note_us_alt[12] = {"A","A#","B","C","C#","D","D#","E","F","F#","G","G#"}; +const char *note_sy_alt[12] = {"LA","LA#","SI","DO","DO#","RE","RE#","MI","FA","FA#","SOL","SOL#"}; const char **note; @@ -142,12 +144,18 @@ void LogView::setScale(int scale) case german_scale: note=note_ger; break; + case syllables_scale: + note=note_sy; + break; case us_scale_alt: note=note_us_alt; break; case german_scale_alt: note=note_ger_alt; break; + case syllables_scale_alt: + note=note_sy_alt; + break; } invalidate(); } diff --git a/logview.h b/logview.h index 12e9653..63d7fbe 100644 --- a/logview.h +++ b/logview.h @@ -36,7 +36,14 @@ public: LogView(); ~LogView(); - enum {us_scale,us_scale_alt,german_scale,german_scale_alt}; + enum { + us_scale, + us_scale_alt, + german_scale, + german_scale_alt, + syllables_scale, + syllables_scale_alt + }; int lfreq_pos(double lfreq); int pos_note(int pos); diff --git a/main.cc b/main.cc index a46ce01..21a16eb 100644 --- a/main.cc +++ b/main.cc @@ -330,7 +330,10 @@ int main(int argc, char *argv[]) sigc::mem_fun(&m_wid, &MainWidget::setScaleGE) )); list_scale.push_back(RadioMenuElem( gr1,"G_erman-Alt", sigc::mem_fun(&m_wid, &MainWidget::setScaleGEAlt) )); - + list_scale.push_back(RadioMenuElem( gr1,"_Syllables", + sigc::mem_fun(&m_wid, &MainWidget::setScaleSY) )); + list_scale.push_back(RadioMenuElem( gr1,"S_yllables-Alt", + sigc::mem_fun(&m_wid, &MainWidget::setScaleSYAlt) )); // submenu Input Channel menu_input_rec = manage( new Menu() ); -- debian/patches/series0000664000000000000000000000021211634141170012025 0ustar 0001-FTBFS-on-GNU-kFreeBSD-bug-336898.patch 0002-Naming-notes-with-syllables-Bug-556449.patch 0003-FTBFS-on-hurd-i386-Closes-637549.patch debian/patches/0003-FTBFS-on-hurd-i386-Closes-637549.patch0000664000000000000000000000163611634141170017136 0ustar From: Samuel Thibault Date: Wed, 17 Aug 2011 10:46:59 +0200 Subject: FTBFS on hurd-i386 (Closes #637549) --- guitune.cc | 2 +- main.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/guitune.cc b/guitune.cc index f4f793d..0c6c191 100644 --- a/guitune.cc +++ b/guitune.cc @@ -27,7 +27,7 @@ #if defined(__linux__) #include #endif -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__GNU__) #include #endif diff --git a/main.cc b/main.cc index 21a16eb..fbbe961 100644 --- a/main.cc +++ b/main.cc @@ -28,7 +28,7 @@ #if defined(__linux__) #include #endif -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__GNU__) #include #endif -- debian/README.source0000664000000000000000000000041111634141170011341 0ustar This gtkguitune version includes several changes to the original source code. You don't need to do anything special for building the package, patches are maintained thought dpatch. Refer to /usr/share/doc/dpatch/README.source.gz for more information about dpatch. debian/rules0000775000000000000000000000555411651465113010264 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) libs_to_filter = -lcairomm-1.0 -latk-1.0 -ldl -lgdk_pixbuf -lpango-1.0 -lcairo -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lgmodule-2.0 GTKMM_LIBS := $(filter-out $(libs_to_filter), $(shell pkg-config gtkmm-2.4 --libs)) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif config.status: configure dh_testdir # Add here commands to configure the package. GTKMM_LIBS="$(GTKMM_LIBS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info ifneq "$(wildcard /usr/share/misc/config.sub)" "" cp -f /usr/share/misc/config.sub config.sub endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guess endif build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: config.status dh_testdir # Add here commands to compile the package. $(MAKE) #/usr/bin/docbook-to-man debian/gtkguitune.sgml > gtkguitune.1 touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean rm -f config.guess rm -f config.sub rm -f config.status rm -f config.cache dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/gtkguitune. $(MAKE) install DESTDIR=$(CURDIR)/debian/gtkguitune install -m 0644 debian/gtkguitune.desktop $(CURDIR)/debian/gtkguitune/usr/share/applications/ install -m 0644 debian/guitune_logo.xpm $(CURDIR)/debian/gtkguitune/usr/share/pixmaps/ # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_installexamples # dh_install dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit # dh_installcron # dh_installinfo dh_installman debian/gtkguitune.1x dh_link dh_strip dh_compress dh_fixperms # dh_perl # dh_python # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/dirs0000664000000000000000000000006111651465113010054 0ustar usr/bin usr/share/pixmaps usr/share/applications debian/compat0000664000000000000000000000000211634141170010364 0ustar 7 debian/guitune_logo.xpm0000664000000000000000000000265111651465113012425 0ustar /* XPM */ static char * guitune_logo_xpm[]={ "32 32 16 1", "f c #808080", "k c #ffa858", "g c #a0a0a0", "e c #c3c3c3", "b c #00ff00", ". c None", "i c #c05800", "# c #000000", "j c #ff8000", "m c #400000", "n c #800000", "l c #ffdca8", "d c #585858", "a c #ffffff", "c c #ff0000", "h c #00c0c0", "................................", "................................", "................................", "................................", ".....................#######....", "#################..##aaaaaaa##..", "##b#####b#####b####aaabbbbbaaa##", "##b#####b#####b###aaccbbbddccaa#", "#b#b###b#b###b#b#.#accaaadacca#.", "#b#b###b#b###b#b#.#aaaaaedaaaa#.", "#b#b###b#b###b#b#..#aaaafgaaa#..", "hhhbhhbhhbhhbhhbh###aaaadgaaa#..", "####b#b###b#b####iii#a#####a#...", "####b#b###b#b####iji##iiii###...", "####b#b###b#b####ijiiiijjii#....", "#####b#####b########jjjjjji#....", "#####b#####b######k#kikjkii#####", "#################l#l#ljlklmlmlml", "#iijijjjnmmjlil#l#l#l#lilnlnlnln", "#iiijjjjnmmlilil#l#l#lilklnlnlnl", "#iijjjjjnmmjlil#k#k#k#kjkii#####", "#iiijjjjjmmjkkki#####ijjjji#....", "#iijjjjjjmmjjjjki###ijjjjji#....", ".#iijjjjjmmjjjjjiiiijjjjjji#....", ".#ijijjjjjjjjjjjjjjjjjjjjj#.....", ".#iiijjjjjjjjjjjjjjjjjjjji#.....", "..#ijijjjjjjjjjji###jjjjii#.....", "...#iiijjjjijjii#nnn#iiin#......", "....##iijjijji##.....####.......", "......########..................", "................................", "................................"}; debian/control0000664000000000000000000000135611651465113010603 0ustar Source: gtkguitune Section: x11 Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Antonin Kral Build-Depends: debhelper (>> 7.0.0), libgtkmm-2.4-dev, libgtk2.0-dev, autotools-dev, quilt Standards-Version: 3.9.2 Vcs-Git: git://github.com/bobek/gtkguitune.git Vcs-Browser: https://github.com/bobek/gtkguitune Package: gtkguitune Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, oss-compat Description: Guitar and other instruments tuner gtkGuitune is a Linux program for tuning guitars and other instruments by using the method of Schmitt-triggering, i.e. counting the number of triggerings between two trigger levels in a certain amount of time. debian/source/0000775000000000000000000000000011634141170010466 5ustar debian/source/options0000664000000000000000000000014611634141170012105 0ustar # Don't store changes on autogenerated files extend-diff-ignore = "(^|/)(config\.guess|config\.sub)$" debian/source/format0000664000000000000000000000001411634141170011674 0ustar 3.0 (quilt) debian/gtkguitune.desktop0000664000000000000000000000027111651465113012754 0ustar [Desktop Entry] Type=Application Name=gtkGuitune Categories=AudioVideo; Comment=Tune your Guitar Comment[it_IT]=Accorda la chitarra TryExec=gtkguitune Exec=gtkguitune Icon=guitune_logo debian/copyright0000664000000000000000000000210111634141170011113 0ustar This package was debianized by Antonin Kral on Sat, 6 Sep 2003 17:14:37 +0200. It was downloaded from http://www.geocities.com/harpin_floh/kguitune_page.html Upstream Author: Florian Berger Copyright: (C) 2000 by Florian Berger Copyright: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/menu0000664000000000000000000000015711634141170010060 0ustar ?package(gtkguitune):needs="X11"\ section="Applications/Sound"\ title="gtkGuitune"\ command="gtkguitune" debian/changelog0000664000000000000000000001212411651465113011045 0ustar gtkguitune (0.8-6ubuntu1) precise; urgency=low * Merge from debian unstable (LP: #850791). Remaining changes: - Add debian/gtkguitune_logo.xpm and debian/gtkguitune.desktop. - debian/rules: Install guitune{_logo.xpm,.desktop} files. * Dropped ubuntu changes, applied in Debian. - Add ${misc:Depends} to Depends field. -- Mahyuddin Susanto Mon, 17 Oct 2011 05:56:34 +0700 gtkguitune (0.8-6) unstable; urgency=low * [074f538] ignore auto-generated files (Closes: #641373) -- Antonin Kral Wed, 14 Sep 2011 17:04:09 +0200 gtkguitune (0.8-5) unstable; urgency=low * set source format to 3.0 (Closes: #638292) -- Antonin Kral Thu, 18 Aug 2011 20:47:28 +0200 gtkguitune (0.8-4) unstable; urgency=low * switched patch management to gbp-pq and quilt * FTBFS on hurd-i386 (Closes: #637549) * fixed various lintian warnings -- Antonin Kral Wed, 17 Aug 2011 11:37:21 +0200 gtkguitune (0.8-3ubuntu1) lucid; urgency=low * Merge from debian testing, Ubuntu remaining changes: - Add debian/gtkguitune_logo.xpm and debian/gtkguitune.desktop. - debian/rules: Install guitune{_logo.xpm,.desktop} files. * Add ${misc:Depends} to Depends field. -- Alessio Treglia Thu, 07 Jan 2010 01:05:01 +0100 gtkguitune (0.8-3) unstable; urgency=low * use dpatch for patch management, including FTBFS on GNU/kFreeBSD refer to bug #336898 * Included patch by Olivier Robert to support syllables as alternative note names (Closes: #556449) * cleanup of several lintian warnings -- Antonin Kral Wed, 23 Dec 2009 08:49:00 +0100 gtkguitune (0.8-2ubuntu1) jaunty; urgency=low * Merge from debian unstable, Ubuntu remaining changes: - Add debian/gtkguitune_logo.xpm and debian/gtkguitune.desktop. - debian/rules: + Call dh_desktop in debian/rules. + Add instructions to install both guitune_logo.xpm and .desktop file. - debian/control: + Add Homepage field. -- Alessio Treglia Fri, 13 Feb 2009 17:13:05 +0100 gtkguitune (0.8-2) unstable; urgency=low * add oss-compat, related to bug #514659 -- Antonin Kral Tue, 10 Feb 2009 11:32:45 +0100 gtkguitune (0.8-1) unstable; urgency=low * New upstream release (Closes: #509460) * introduced hack into rules to prevent linking against useless libraries introduced by gtkmm pkg-config * fixed lintian warning debian-rules-ignores-make-clean-error * fixed lintian warning copyright-without-copyright-notice * fixed lintian warning -- Antonin Kral Sun, 08 Feb 2009 14:13:03 +0100 gtkguitune (0.7-7.1ubuntu1) intrepid; urgency=low * Merge from Debian unstable. Remaining Ubuntu changes: (Closes LP #231346) + Added .desktop file + Missing call to dh_desktop in rules added + Clean errors not ignored in rules + Bumped standards version to 3.7.3 -- Nicolas Van Wambeke Sat, 17 May 2008 12:19:01 +0100 gtkguitune (0.7-7.1) unstable; urgency=medium * Non-maintainer upload. * Fix FTBFS with GCC 4.3 (Closes: #417220). -- Luk Claes Sun, 09 Mar 2008 15:12:12 +0000 gtkguitune (0.7-7ubuntu2) hardy; urgency=low * Rebuild for libglib1.2 -> libglib1.2ldbl transition. -- Luke Yelavich Wed, 05 Dec 2007 11:08:15 +1100 gtkguitune (0.7-7ubuntu1) gutsy; urgency=low * Add .desktop file (Closes LP# 134367) * Change maintainer per spec -- Barry deFreese Fri, 24 Aug 2007 01:29:14 -0400 gtkguitune (0.7-7) unstable; urgency=low * recompile against libgtkmm1.2-0c2a. Closes: #356282 * updated postal address of the Free Software Foundation (FSF) -- Antonin Kral Sat, 11 Mar 2006 16:27:33 +0100 gtkguitune (0.7-6) unstable; urgency=low * acknowleadgement of NMU, many thanks to Matej * Closes: #342533 * Closes: #336898 -- Antonin Kral Wed, 1 Mar 2006 09:57:47 +0100 gtkguitune (0.7-5.1) unstable; urgency=medium * Non-maintainer upload. * Recompile against libgtkmm1.2-0c2a. Closes: #342533. * Port to GNU/kFreeBSD; thanks to Aurelien Jarno for the patch. Closes: #336898. * debian/gtkguitune.1x: Fix groff warnings by using named characters. -- Matej Vela Sat, 28 Jan 2006 13:28:11 +0100 gtkguitune (0.7-5) unstable; urgency=low * recompiled against libsigc++0c2, Closes #317930 -- Antonin Kral Sun, 31 Jul 2005 08:56:07 +0200 gtkguitune (0.7-4) unstable; urgency=low * Changed menu to follow "quotation" policy -- Antonin Kral Tue, 10 Aug 2004 11:14:07 +0200 gtkguitune (0.7-3) unstable; urgency=low * Moved from Apps/Tools to Apps/Sound (Closes #227983) -- Antonin Kral Thu, 22 Jan 2004 18:49:09 +0100 gtkguitune (0.7-2) unstable; urgency=low * Added more build-deps -- Antonin Kral Wed, 17 Sep 2003 08:59:10 +0200 gtkguitune (0.7-1) unstable; urgency=low * Initial Release. -- Antonin Kral Sat, 6 Sep 2003 17:25:38 +0200