debian/0000755000000000000000000000000011752241153007167 5ustar debian/milkyplay/0000755000000000000000000000000011752240013011174 5ustar debian/milkyplay/milkyplay.cpp0000644000000000000000000000547011752240013013721 0ustar /* Released into the Public Domain Gurkan Sengun */ #include #include #include #include /* poll for keyboard input */ #include #include "MilkyPlay.h" #define SHELL using namespace std; static struct termios stored_settings; void set_keypress(void) { struct termios new_settings; tcgetattr(0,&stored_settings); new_settings=stored_settings; new_settings.c_lflag &= (~ICANON); new_settings.c_lflag &= (~ECHO); new_settings.c_cc[VTIME] = 0; new_settings.c_cc[VMIN] = 1; tcsetattr(0,TCSANOW,&new_settings); return; } void reset_keypress(void) { tcsetattr(0,TCSANOW,&stored_settings); return; } int main (int argc, const char * argv[]) { struct pollfd pollfds; int result, nread; char buffer[128]; int timeout = 1; int loop=0; cout << "- MilkyPlay -" << endl << endl; /* Initialize pollfds; we're looking at input, stdin */ pollfds.fd = 0; /* stdin */ pollfds.events = POLLIN; /* Wait for input */ XModule* pModule = new XModule(); #ifdef SHELL if (argc != 2) { cout << "Say: milkyplay " << endl; return 0; } cout << "Playing " << argv[1] << " (press ctrl+c to quit) ..." << endl; pModule->loadModule(argv[1]); #else pModule->loadModule("/Users/peterbar//Desktop/work/crimson lotus.it"); #endif char str[MP_MAXTEXT+1]; pModule->getTitle(str, false); cout << "Title: " << str << endl; PlayerGeneric* pPlayer = new PlayerGeneric(44100); // CoreAudio wants small buffer sizes pPlayer->setBufferSize(4096); // Select high quality mixer pPlayer->setResamplerType(MixerSettings::MIXER_LERPING_RAMPING); // Sample data is shifted twice (/4) => less sample data overflows pPlayer->setSampleShift(1); // 256 is default (= 100%) pPlayer->setPanningSeparation(256); pPlayer->startPlaying(pModule, false, 0); set_keypress(); while (!pPlayer->hasSongHalted()) { cerr << pPlayer->getOrder() << "/" << pPlayer->getRow() << " \r"; usleep(50000); result = poll(&pollfds, 1, timeout); switch (result) { default: if (pollfds.revents && POLLIN) { nread = read(0, buffer, 1); if (nread != 0) { buffer[nread] = 0; if (buffer[0]=='q') exit(0); if (buffer[0]=='l') pPlayer->setRepeat(pPlayer->isRepeating() ^ 1); if (buffer[0]=='p') if (!pPlayer->isPaused()) pPlayer->pausePlaying(); else pPlayer->resumePlaying(); } } } } reset_keypress(); mp_sint32 pos; pos = pPlayer->getLastUnvisitedPosition(); cerr << pos << endl; pPlayer->stopPlaying(); /*mp_sint32 res = pPlayer->exportToWAV("/test.wav", pModule); if (res >=0) { mp_sint32 time = res / 44100; printf("%i:%i",time/60,time%60); }*/ delete pPlayer; delete pModule; cout << "Player stopped..." << endl; return 0; } debian/milkyplay/Makefile0000644000000000000000000000062511536135736012656 0ustar all: g++ milkyplay.cpp ../../src/milkyplay/*.cpp ../../src/milkyplay/drivers/sdl/*.cpp -I../../src/milkyplay/drivers/sdl/ -I../../src/milkyplay/ -L../../src/milkyplay/drivers/sdl/ -L../../src/milkyplay/ `sdl-config --cflags --libs` -o milkyplay clean: -rm milkyplay `find "../../src/milkyplay" -name "*.o"` install: cp -p milkyplay $(DESTDIR)/usr/bin/ uninstall: rm $(DESTDIR)/usr/bin/milkytracker debian/rules0000755000000000000000000000373111536135736010264 0ustar #!/usr/bin/make -f # 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) config.status: configure dh_testdir 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 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" build: build-stamp build-stamp: config.status dh_testdir $(MAKE) $(MAKE) -C debian/milkyplay touch $@ clean: dh_testdir dh_testroot rm -f build-stamp [ ! -f Makefile ] || $(MAKE) distclean $(MAKE) -C debian/milkyplay clean rm -f config.sub config.guess dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs $(MAKE) -C debian/milkyplay DESTDIR=$(CURDIR)/debian/milkytracker install $(MAKE) DESTDIR=$(CURDIR)/debian/milkytracker install dh_install resources/pictures/carton.png usr/share/icons/ mv $(CURDIR)/debian/milkytracker/usr/share/icons/carton.png $(CURDIR)/debian/milkytracker/usr/share/icons/milkytracker.png # 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 docs/ChangeLog.html dh_installdocs dh_installmenu dh_install debian/*.desktop usr/share/applications/ dh_installman dh_link dh_strip dh_compress dh_fixperms 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/control0000644000000000000000000000173411752241120010571 0ustar Source: milkytracker Section: sound Priority: optional Maintainer: Gürkan Sengün Uploaders: Debian Multimedia Team Build-Depends: debhelper (>= 8), autotools-dev, libsdl1.2-dev, libjack-dev, libzzip-dev, zlib1g-dev, libasound2-dev [linux-any] Homepage: http://www.milkytracker.org/ Standards-Version: 3.9.2 Package: milkytracker Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: freepats, opencubicplayer, xmp, schism, goattracker Description: music creation tool inspired by Fast Tracker 2 This is an editor for "tracked" music, i.e. audio samples of instruments pitch shifted according to the note data. . It can load the following module formats: 669, AMS, AMF, DBM, CBA, DIGI, DSM, FAR, GMC, GDM, IMF, IT, MOD, MDL, MTM, MXM, OKT, PLM, PSM, PTM, S3M, STM, ULT, UNI, and X. . Export is possible into the formats: XM, MOD, and WAV. . Supported sample and instrument formats: WAV, IFF/XI, PAT debian/source/0000755000000000000000000000000011560243020010457 5ustar debian/source/format0000644000000000000000000000001411525236342011677 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000375511752241153011053 0ustar milkytracker (0.90.85+dfsg-2.2) unstable; urgency=low * Non-maintainer upload. * Fix "ftbfs with GCC-4.7": add missing include to debian/milkyplay/milkyplay.cpp. (Closes: #667277) * Fix "FTBFS: ./zzip_file.h:34:18: fatal error: zlib.h: No such file or directory": add build dependency on zlib1g-dev. (Closes: #669432) * Add build dependency on libasound2-dev [linux-any] (dropped by libsdl1.2-dev). -- gregor herrmann Tue, 08 May 2012 17:57:06 +0200 milkytracker (0.90.85+dfsg-2.1) unstable; urgency=low * Non-maintainer upload. * Fix "FTBFS": add patch ftbfs-gzip.patch from Arch Linux, found by Paul Wise. (Closes: #661906) -- gregor herrmann Sun, 18 Mar 2012 14:18:55 +0100 milkytracker (0.90.85+dfsg-2) unstable; urgency=low * Apply 64bit_freebsd_fix.patch from homepage. (Closes: #626627) -- Gürkan Sengün Mon, 23 May 2011 12:03:06 +0200 milkytracker (0.90.85+dfsg-1) unstable; urgency=low * New upstream version. * Repackaged without platforms. * debian/copyright: Updated copyright details and homepage address. * debian/control: Updated homepage address. * Added libzzip-dev to debian/control build depends. * Bump standards version to 3.9.2. * Bump debhelper version to 8. * Added debian/source/format. -- Gürkan Sengün Wed, 04 May 2011 11:28:45 +0100 milkytracker (0.90.80+dfsg-2) unstable; urgency=low * Apply patch to fix libjack loading bug. (Closes: #498900) Thanks for pointing me to it. * Bump standards version. * Bump debhelper version. * Update debian/copyright formatting. * debian/rules: drop dh_desktop call. -- Gürkan Sengün Tue, 13 Oct 2009 07:27:39 +0200 milkytracker (0.90.80+dfsg-1) unstable; urgency=low * Initial release. (Closes: #467430) * Repackaged without platforms. * Added desktop file. -- Gürkan Sengün Tue, 26 Feb 2008 09:29:43 +0100 debian/compat0000644000000000000000000000000211560243517010370 0ustar 8 debian/manpages0000644000000000000000000000005111536135736010712 0ustar debian/milkytracker.1 debian/milkyplay.1 debian/dirs0000644000000000000000000000001011536135736010053 0ustar usr/bin debian/patches/0000755000000000000000000000000011752240031010610 5ustar debian/patches/debian-changes-0.90.85+dfsg-20000644000000000000000000000517611566644341015310 0ustar Description: Upstream changes introduced in version 0.90.85+dfsg-2 This patch has been created by dpkg-source during the package build. Here's the last changelog entry, hopefully it gives details on why those changes were made: . milkytracker (0.90.85+dfsg-2) unstable; urgency=low . * Apply 64bit_freebsd_fix.patch from homepage. (Closes: #626627) . The person named in the Author field signed this changelog entry. Author: Gürkan Sengün Bug-Debian: http://bugs.debian.org/626627 --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- milkytracker-0.90.85+dfsg.orig/src/tracker/sdl/SDL_Main.cpp +++ milkytracker-0.90.85+dfsg/src/tracker/sdl/SDL_Main.cpp @@ -751,8 +751,8 @@ void processSDLUserEvents(const SDL_User case SDLUserEventLMouseRepeat: { PPPoint p; - p.x = (pp_int32)event.data1; - p.y = (pp_int32)event.data2; + p.x = reinterpret_cast (event.data1); + p.y = reinterpret_cast (event.data2); PPEvent myEvent(eLMouseRepeat, &p, sizeof(PPPoint)); RaiseEventSerialized(&myEvent); break; @@ -761,8 +761,8 @@ void processSDLUserEvents(const SDL_User case SDLUserEventRMouseRepeat: { PPPoint p; - p.x = (pp_int32)event.data1; - p.y = (pp_int32)event.data2; + p.x = reinterpret_cast (event.data1); + p.y = reinterpret_cast (event.data2); PPEvent myEvent(eRMouseRepeat, &p, sizeof(PPPoint)); RaiseEventSerialized(&myEvent); break; @@ -770,8 +770,8 @@ void processSDLUserEvents(const SDL_User case SDLUserEventMidiKeyDown: { - pp_int32 note = (pp_int32)event.data1; - pp_int32 volume = (pp_int32)event.data2; + pp_int32 note = reinterpret_cast (event.data1); + pp_int32 volume = reinterpret_cast (event.data2); globalMutex->lock(); myTracker->sendNoteDown(note, volume); globalMutex->unlock(); @@ -780,7 +780,7 @@ void processSDLUserEvents(const SDL_User case SDLUserEventMidiKeyUp: { - pp_int32 note = (pp_int32)event.data1; + pp_int32 note = reinterpret_cast (event.data1); globalMutex->lock(); myTracker->sendNoteUp(note); globalMutex->unlock(); debian/patches/ftbfs-gzip.patch0000644000000000000000000000141311731357572013723 0ustar Bugs-Debian: http://bugs.debian.org/661906 --- a/src/compression/DecompressorGZIP.cpp +++ b/src/compression/DecompressorGZIP.cpp @@ -61,7 +61,7 @@ int len = 0; pp_uint8 *buf; - if ((gz_input_file = (void **)gzopen (fileName.getStrBuffer(), "r")) == NULL) + if ((gz_input_file = (gzFile*)gzopen (fileName.getStrBuffer(), "r")) == NULL) return false; if ((buf = new pp_uint8[0x10000]) == NULL) @@ -71,7 +71,7 @@ while (true) { - len = gzread (gz_input_file, buf, 0x10000); + len = gzread (*gz_input_file, buf, 0x10000); if (len < 0) { @@ -84,7 +84,7 @@ fOut.write(buf, 1, len); } - if (gzclose (gz_input_file) != Z_OK) + if (gzclose (*gz_input_file) != Z_OK) { delete[] buf; return false; debian/patches/series0000644000000000000000000000005711752240031012027 0ustar debian-changes-0.90.85+dfsg-2 ftbfs-gzip.patch debian/copyright0000644000000000000000000001337211560244075011133 0ustar This package was debianized by: Gürkan Sengün on Tue, 26 Feb 2008 09:29:43 +0100. It was downloaded from: http://www.milkytracker.org/ Repackaged: Removed without the platforms/ since we do not need support for Microsoft Windows, and Mac OS X. Upstream Authors: Peter Barth Christopher O'Neill David Ross Gary P. Scavone (RtAudio) Guido Draheim (zziplib) Mike Nordell (zziplib) Mark Adler (zlib) Jean-loup Gailly (zlib) Copyright: Copyright (C) 2005-2010 Peter Barth Copyright (C) 2008-2010 Christopher O'Neill (Linux port) Copyright (C) 2008-2010 David Ross (tracker/Equalizer.*) Copyright (c) 2001-2007 Gary P. Scavone (RtAudio) Copyright (C) 2000-2003 Guido Draheim (zziplib) Copyright (C) 1995-2005 Mark Adler (zlib) Copyright (C) 1995-2005 Jean-loup Gailly (zlib) License: Milkytracker 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, either version 3 of the License, or (at your option) any later version. Milkytracker 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 Milkytracker. If not, see . License (src/milkyplay/*): Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - Neither the name of the nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License (src/compression/zziplib/generic): All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1.1 License (src/compression/zlib/generic): This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. License (RtAudio): Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Any person wishing to distribute modifications to the Software is requested to send the modifications to the original developer so that they can be incorporated into the canonical version. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The Debian packaging is: Copyright (C) 2008-2011 Gürkan Sengün and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. debian/docs0000644000000000000000000000006611536135736010055 0ustar docs/MilkyTracker.html docs/FAQ.html docs/readme_unix debian/menu0000644000000000000000000000017011536135736010065 0ustar ?package(milkytracker):needs="X11" section="Applications/Sound"\ title="MilkyTracker" command="/usr/bin/milkytracker" debian/milkytracker.10000644000000000000000000000212011536135736011756 0ustar .TH MILKYTRACKER 1 "February 26, 2008" .SH NAME milkytracker \- music creation tool inspired by Fast Tracker 2 .SH SYNOPSIS .B milkytracker .RI [ options ] " files" ... .SH DESCRIPTION This manual page documents briefly the .B milkytracker command. .PP \fBmilkytracker\fP is an editor for tracked music, i.e. audio samples of instruments pitch shifted according to the note data. .SH OPTIONS .TP .B \-bpp 16|24 Set bits per pixel. .TP .B \-swap Swaps the red and blue values in 24 BPP mode. .TP .B \-orientation NORMAL|ROTATE90CCW|ROTATE90CW Valid arguments are NORMAL|ROTATE90CCW|ROTATE90CW. .TP .B \-fullscreen Run in fullscreen mode. .TP .B \-nosplash Do not show the splash screen. .TP .B \-nonstdbk Keyboard setting. .TP .B \-recvelocity MIDI input setting. .TP .B \-h Show summary of options. .SH SEE ALSO .BR milkyplay (1), .BR goattracker (1), .BR ocp (1), .BR xmp (1), .BR modplugplay (1), .BR schism (1). .br .SH AUTHOR milkytracker was written by Peter Barth. .PP This manual page was written by G\[:u]rkan Seng\[:u]n , for the Debian project (but may be used by others). debian/milkytracker.desktop0000644000000000000000000000052511536135736013276 0ustar [Desktop Entry] Version=1.0 Name=MilkyTracker Comment=Fasttracker 2 Clone Terminal=false TryExec=milkytracker Exec=milkytracker %f Type=Application Icon=milkytracker.png Categories=GNOME;AudioVideo;Audio;Video; MimeType=audio/x-xm X-Desktop-File-Install-Version=0.10 [Desktop Action Play] Name=MilkyTracker (play song) Exec=milkytracker %f debian/milkyplay.10000644000000000000000000000123711536135736011300 0ustar .TH MILKYPLAY 1 "October 30, 2007" .SH NAME milkyplay \- module player .SH SYNOPSIS .B milkyplay .RI "file" .br .SH DESCRIPTION This manual page documents briefly the .B milkyplay command. .PP \fBmilkyplay\fP is a module player for the following file formats: 669, AMS, AMF, DBM, CBA, DIGI, DSM, FAR, GMC, GDM, IMF, IT, MOD, MDL, MTM, MXM, OKT, PLM, PSM, PTM, S3M, STM, ULT, UNI, and X. .SH SEE ALSO .BR ocp (1), .BR xmp (1), .BR milkytracker (1), .BR schism (1), .BR modplugplay (1). .br .SH AUTHOR milkyplay was written by Peter Barth. .PP This manual page was written by G\[:u]rkan Seng\[:u]n , for the Debian project (but may be used by others).