Re: [Pykaraoke-discuss] Welcome to the Pykaraoke-discuss mailing list
Could be: did you download the SDL_mixer sources and build them yourself? Could be a version mismatch or similar. The instructions for building that were written quite some time ago and something could have changed. On 28 May 2013 17:32, Conor Dowdall conordowdallm...@gmail.com wrote: No luck there Kelvin.. thanks for the suggestion. I see it starts with libc in the backtrace and moves on to libSDL_mixer... did I somehow mess up the SDL install with mp3 support???... I'm not too familiar with how backtraces work! Conor. *** glibc detected *** python: double free or corruption (out): 0x021f6800 *** === Backtrace: = /lib64/libc.so.6[0x355ac7ca8e] /lib/libSDL_mixer-1.2.so.0[0x3af1e0cc13] /lib/libSDL_mixer-1.2.so.0[0x3af1e0b2a9] /lib/libSDL_mixer-1.2.so.0(Mix_OpenAudio+0x8d)[0x3af1e09b8d] /usr/lib64/python2.7/site-packages/pygame/mixer.so(+0x3050)[0x7fcf48be0050] /usr/lib64/python2.7/site-packages/pygame/mixer.so(+0x31d6)[0x7fcf48be01d6] /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x4a80)[0x35794dc370] -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with 2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] Bug report
Hi Pietro, Thanks, I have added this to the issues list at Github: https://github.com/kelvinlawson/pykaraoke/issues/ Best regards, Kelvin. On 14 November 2011 17:41, Pietro Battiston m...@pietrobattiston.it wrote: Hello, there are some MIDI files (I can provide an example only privately, since they are not free) for which, when played, PyKaraoke only shows the error ERROR: Could not parse the MIDI file and then, in another MessageDialog, the error No lyrics in the track. Now, that would be fair to me... the only problem is that then, pykaraoke is stuck: not unresponsive, but it won't play any other file, and will print forever in the terminal: Traceback (most recent call last): File /usr/lib/pymodules/python2.7/pykaraoke.py, line 3815, in handleIdle position = self.Player.GetPos() File /usr/lib/pymodules/python2.7/pykar.py, line 1072, in GetPos if self.useMidiTimer: AttributeError: midPlayer instance has no attribute 'useMidiTimer' Interestingly, if I played some MIDI _before_ trying to play the faulty one, then in the background that will play again, but without showing the lyrics (and i will not be able to stop it in any way). You may think it is stupid to play faulty MIDI files, or MIDI files without lyrics... but when I have a huge library it's impossible to try all of them before, and then it's also annoying to have to restart the program (and loose the queue) any time a faulty one is chosen... Maybe an alternative fix could be to (optionally) run some validity check on MIDI files when refreshing the library? by the way, thanks for the nice app Pietro -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] Bug report
Hi Pietro, Yes I haven't updated the website / Sourceforge yet since the move from Sourceforge to Github. The mailing list is still on Sourceforge but the development repository and issue tracker are now on Github. Eventually I'll get everything updated with this new information. Thanks, Kelvin. On 15 November 2011 13:38, Pietro Battiston m...@pietrobattiston.it wrote: Il giorno mar, 15/11/2011 alle 08.56 +, Kelvin Lawson ha scritto: Hi Pietro, Thanks, I have added this to the issues list at Github: https://github.com/kelvinlawson/pykaraoke/issues/ Maybe a link from http://kibosh.org/pykaraoke/development.php would be convenient? thanks Pietro Best regards, Kelvin. On 14 November 2011 17:41, Pietro Battiston m...@pietrobattiston.it wrote: Hello, there are some MIDI files (I can provide an example only privately, since they are not free) for which, when played, PyKaraoke only shows the error ERROR: Could not parse the MIDI file and then, in another MessageDialog, the error No lyrics in the track. Now, that would be fair to me... the only problem is that then, pykaraoke is stuck: not unresponsive, but it won't play any other file, and will print forever in the terminal: Traceback (most recent call last): File /usr/lib/pymodules/python2.7/pykaraoke.py, line 3815, in handleIdle position = self.Player.GetPos() File /usr/lib/pymodules/python2.7/pykar.py, line 1072, in GetPos if self.useMidiTimer: AttributeError: midPlayer instance has no attribute 'useMidiTimer' Interestingly, if I played some MIDI _before_ trying to play the faulty one, then in the background that will play again, but without showing the lyrics (and i will not be able to stop it in any way). You may think it is stupid to play faulty MIDI files, or MIDI files without lyrics... but when I have a huge library it's impossible to try all of them before, and then it's also annoying to have to restart the program (and loose the queue) any time a faulty one is chosen... Maybe an alternative fix could be to (optionally) run some validity check on MIDI files when refreshing the library? by the way, thanks for the nice app Pietro -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
[Pykaraoke-discuss] PyKaraoke Development
All, If you are involved in developing for PyKaraoke, or you like trying out the latest development code, please be aware that we have moved the source tree to Github: https://github.com/kelvinlawson/pykaraoke Here you will also find a work-in-progress branch that is not quite ready for release but contains some neat new features (pitch-shifting, lyrics preview window for KJ hosts, fixes for international filenames). This is all thanks to Paul Arnett and will hopefully make it into the main release code soon: https://github.com/kelvinlawson/pykaraoke/tree/gstreamer Best regards, Kelvin. -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] no Add Songs button in Ubuntu Maverick Natty
Interesting links, thanks. Ubuntu have introduced a change which breaks the menu bar on several applications. I'll see what happens when the dust settles on those changes. Kelvin. On 12 January 2011 08:36, Jeffrey Katz jdkat...@gmail.com wrote: I found 2 temporary workarounds: export UBUNTU_MENUPROXY=0 found at http://ubuntuforums.org/showthread.php?t=1632239 and, uninstalling appmenu-gtk found at http://www.techytalk.co.cc/2010/12/ubuntu-maverick-10-10-no-menu-bar-in-some-apps/ On Tue, Jan 11, 2011 at 3:37 PM, Kelvin Lawson kelv...@users.sf.netwrote: Hi Jeffrey, Do you mean the Add new songs to database option from the File menu? Would you mind sending a screenshot please? Thanks, Kelvin. On 11 January 2011 23:31, Jeffrey Katz jdkat...@gmail.com wrote: With Ubuntu Maverick Natty, updated to current, there is no Add Songs button visible. Launching from the command line doesn't show any errors. Building from source has the same problem as the debs in the depositories. I've reported this at https://bugs.launchpad.net/ubuntu/+source/pykaraoke/+bug/701242. Any idea which python/wx library is probably to blame? Is there any chance you can provide a pykaraoke build with the dependent libraries included? I'm using amd64 if that's relevant. -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] no Add Songs button in Ubuntu Maverick Natty
Hi Jeffrey, Do you mean the Add new songs to database option from the File menu? Would you mind sending a screenshot please? Thanks, Kelvin. On 11 January 2011 23:31, Jeffrey Katz jdkat...@gmail.com wrote: With Ubuntu Maverick Natty, updated to current, there is no Add Songs button visible. Launching from the command line doesn't show any errors. Building from source has the same problem as the debs in the depositories. I've reported this at https://bugs.launchpad.net/ubuntu/+source/pykaraoke/+bug/701242. Any idea which python/wx library is probably to blame? Is there any chance you can provide a pykaraoke build with the dependent libraries included? I'm using amd64 if that's relevant. -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] Filename encoding on Linux
Hi Matt, Thanks for taking the time to submit a patch. I have attached a patch which converts all directory names to str objects before scanning them. It makes thing work here. I have not tested it out on other platforms, but I believe since I remain with str objects, all encoding issues should be effectively bypassed, so it should work everywhere. This is actually how PyKaraoke used to behave but users with unicode directory names found that the str() conversion made the scan fail. The previous implementation (the same as yours) compared to the new can be seen here: http://pykaraoke.cvs.sourceforge.net/viewvc/pykaraoke/pykaraoke/pykdb.py?r1=1.35r2=1.36 This fixed scanning of folders with unicode names, and I confirmed it to work on my machine, so I cannot reinstate the str() as is. Is there an alternative patch that would work in both environments? Could it be that the path needs to be encoded using the file system encoding for example (fileList[i].encode(sys.getfilesystemencoding()))? Thanks again for spending the time to dig into the sources, much appreciated. Kelvin. -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] pykaraoke windows developer
Hi Steve, Thanks for the quick response Kelvin. I'm glad to hear that pykaraoke is still kicking. I would definitely like to contribute back at least what we It's still going, just at a slower pace now that the core karaoke playback functionality is finished and stable. You may have seen that I released v0.7.3 this week. the night I have more time than I know what to do with :) I have a Vista Win7 box and I've used pykaraoke enough that I think I could look over the Windows port. That would be great thanks. My wife and I worked mainly on modifying the gui so that you could play a song while adding other songs. When she was singing I couldn't look up another song without her video freezing while the gui was occupied. I think it mainly comprised kicking off the video window in it's own thread. Has something like this been worked on in the past? Commit access btw would be This would be useful. The player threads do make callbacks when songs are completed, though, which is something to be aware of (i.e. may need proper IPC between the GUI thread and the player thread). Which reminds me: someone did report an issue with a multicore CPU on Windows, which I suspected at the time was due to the callbacks between the Pygame player and the GUI. What you have done there sounds like it could be useful for that. great. I'll probably throw the patch your way first anyway, but first things first I'll find my old code setup pykaraoke on Vista see how it goes. I'll probably be taking baby steps contributing since my free time to code is pretty small. No problem, anything you feel like contributing is appreciated. Thanks, Kelvin. As for other features, I do have some other ideas written in an email somewhere. I'll try to find them get back to you. Steve On Tue, May 4, 2010 at 4:29 PM, Kelvin Lawson kelv...@users.sf.net wrote: Hi Steve, Good to hear from you. I was reading the http://kibosh.org/blog/ and saw a couple posts about the project looking for a developer to look over the Windows port. Has a developer been found yet? I'm a developer by day and a while ago hacked on the pykaraoke source to make some improvements for my wife and I's setup at home. Unfortunately, we never got around to rolling those improvements back upstream :( sorry. Is there still some active development going on these days or any high level goals for the project? As yet we don't have a Windows developer: if you have any spare moments to contribute (however small) then that would be much appreciated. I'd be happy to give you commit access to the repository at Sourceforge. There probably isn't a huge amount to do that is Windows-specific. I have run it in a VM occasionally and the main thing I noticed was that a few of the popup windows were badly sized. Also I only have XP here so it would be good to have someone with Vista on board to cover that. I have heard, for example, that songs cannot be cancelled part-way through playback on Vista, but don't have a copy to try it out. Building release installers for Windows is pretty easy these days. I documented the procedure here: http://kibosh.org/pykaraoke-development-windows-installer/ Once you have the prerequisites installed, it's just a couple of commands to build the entire installer. Any features you think are lacking would be gratefully received, and generally these would work on any platform. If you don't have Linux over there then I can easily run your changes here to make sure they work cross-platform. Do you have any thoughts on useful features to add to the roadmap? Some of the things I'd like to add, but haven't had the time to do yet, are: * More KJ features (singer tracking etc, splash screen between songs) * Playback of LRC other formats * Progress bar Would be interested to hear any other ideas you have. Best regards, Kelvin. Steve -- ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss -- ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] pykaraoke windows developer
Hi Steve, Good to hear from you. I was reading the http://kibosh.org/blog/ and saw a couple posts about the project looking for a developer to look over the Windows port. Has a developer been found yet? I'm a developer by day and a while ago hacked on the pykaraoke source to make some improvements for my wife and I's setup at home. Unfortunately, we never got around to rolling those improvements back upstream :( sorry. Is there still some active development going on these days or any high level goals for the project? As yet we don't have a Windows developer: if you have any spare moments to contribute (however small) then that would be much appreciated. I'd be happy to give you commit access to the repository at Sourceforge. There probably isn't a huge amount to do that is Windows-specific. I have run it in a VM occasionally and the main thing I noticed was that a few of the popup windows were badly sized. Also I only have XP here so it would be good to have someone with Vista on board to cover that. I have heard, for example, that songs cannot be cancelled part-way through playback on Vista, but don't have a copy to try it out. Building release installers for Windows is pretty easy these days. I documented the procedure here: http://kibosh.org/pykaraoke-development-windows-installer/ Once you have the prerequisites installed, it's just a couple of commands to build the entire installer. Any features you think are lacking would be gratefully received, and generally these would work on any platform. If you don't have Linux over there then I can easily run your changes here to make sure they work cross-platform. Do you have any thoughts on useful features to add to the roadmap? Some of the things I'd like to add, but haven't had the time to do yet, are: * More KJ features (singer tracking etc, splash screen between songs) * Playback of LRC other formats * Progress bar Would be interested to hear any other ideas you have. Best regards, Kelvin. Steve -- ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss -- ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] installation problem on linux
Hi Francesco, Fedora splits pygame up into a pygame and pygame-devel package. In order to compile the fast CDG playback module you need to also install the pygame-devel package. Thanks, Kelvin. 2009/8/30 Francesco Ruvolo ruvo...@libero.it Hello, I'm trying to install on Fedora 11, I have: python 2.6 pygame 1.8.1 wxPython 2.8.9 sdl 1.2.13 mutagen 1.16 when I try to run setup.py i get this error (I also added it in attachment): $ sudo python setup.py install /usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py:14450: UserWarning: wxPython/wxWidgets release number mismatch warnings.warn(wxPython/wxWidgets release number mismatch) running install running build running build_py running build_ext building '_pycdgAux' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/SDL -I/usr/include/python2.6 -c _pycdgAux.c -o build/temp.linux-i686-2.6/_pycdgAux.o _pycdgAux.c:37:27: error: pygame/pygame.h: No such file or directory _pycdgAux.c: In function ‘CdgPacketReader_init’: _pycdgAux.c:194: warning: implicit declaration of function ‘PySurface_AsSurface’ _pycdgAux.c:194: warning: assignment makes pointer from integer without a cast _pycdgAux.c: In function ‘CdgPacketReader_FillTile’: _pycdgAux.c:349: warning: assignment makes pointer from integer without a cast error: command 'gcc' failed with exit status 1 Someone can help me? Thank you Bye Francesco -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] Extended Debate
Hi John, 2009/7/31 John Schneiderman joh...@meent.biz There's some debate here where I work about moving forward with the PyKaraoke project. At this time nothing has been decided or set in stone. We want to open up communications to see if our goals fit the community. We are looking for a karaoke player that we can use in a professional capacity. To that end, we have contributed several enhancements and bug fixes to this project. The two major concerns we have are the usage of the LGPL for the GUI code, and the lack of modularity in the overall architecture. The issue with the GUI code being LGPL is the possibility of the company's work being used against it to be built into a larger system. Though this was a concern even in the beginning, it is increasingly becoming a sore spot as each new enhancement is given. The other issue is the architecture of the system. It appears to be more and more fragile with each new enhancement. The possible corrections for this are to re-write/re-design the architecture itself. Once again, let me say nothing has been decided. We actively wish to discuss these concerns and see if any possible solutions can be made to address them. Interesting question. From the start I always intended for PyKaraoke to be usable in commercial projects. To that end I deliberately avoided GPL to remove any restrictions / concerns that commercial projects may have about whether they are free to use it. Rather than go with a BSD-style license, however, I settled on LGPL so that anyone could use it within their products but any changes to the core code should be submitted back. Essentially I'm happy for people to use it in any kind of product, but I'd like to encourage people to submit back improvements for everyone else's benefit. My concern about the GPL is that this discourages people from using PyKaraoke as the underlying playback library in their products when I am not interested in forcing people to release all of the rest of their source code just because they combine it with PyKaraoke. Using LGPL restricts the burden of sending code back to only the PyKaraoke code itself. However I can see that there may be an argument for not applying the same license to the GUI itself. While I think the above is a sensible approach for the CDG, KAR etc playback modules it might not necessarily make sense for the GUI. So I am not against applying the GPL to the GUI, but I wanted to let you know my original thoughts from a few years back when I started the project and to gauge general opinion as well. If anyone has any opinion on this then please let us know. Regards, Kelvin. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] DJ Player Progress
Hi John, On Wednesday 4 March 2009 18:30:20 Kelvin Lawson wrote: Thanks for keeping us posted. Did you implement a new frontend or is it an extension of the main Wx GUI? Either way I'm happy to incorporate any new features within PyKaraoke. I've actually done both. I've created a standalone front-end that can also be incorporated into the main PyKaraoke GUI as well. Allowing for maximum flexibility. The player itself would be under the GPLv3+. I haven't really followed the progress of GPLv3 - I made PyKaraoke LGPL because it's fairly open and I wanted to encourage people to use it both privately and commercially. I guess it could go mixed license to incorporate your standalone player, or it could be an additional package. If you player requires the PyKaraoke underlying libraries I'd prefer to maintain them in one tree rather than try to maintain separate forks. Look forward to seeing what you have. Kelvin. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] DJ Player Progress
If, for example, my company takes a GPLd program and modifies it, we could use it in-house with impunity, but we could not distribute it to anyone else without including *the sources for any changes we made*. We aren't compelled to distribute those changes, though, merely because we *made* them to GPLd code. While we're on the subject, I'll chip in with the reason I chose LGPL for PyKaraoke. In the interest of widespread usage of the PyKaraoke modules, I specifically wanted to allow anyone to import and use it within their own applications without fear of having to open up the rest of their code (i.e. the non-PyKaraoke parts). I'm not sure what the consensus is with respect to GPL on whether importing a Python module would cause the rest of your code to be GPL, but for the avoidance of doubt I went with LGPL. Cheers, Kelvin. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] DJ Player Progress
Hi John, Just giving an update on the DJ player progress. It's moving along nicely. Should have something to show in the next few days. Is this something that as a community we would like to be a part of PyKaraoke, or would it be best to spin it off as a separate project? Thanks for keeping us posted. Did you implement a new frontend or is it an extension of the main Wx GUI? Either way I'm happy to incorporate any new features within PyKaraoke. Regards, Kelvin. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] cdgtools - static
Hi Tim, You could ascertain whether it was the MP3 encode by fiddling with the cdgrip() function in cdgrip.py. It saves a raw WAV file, then encodes to MP3. If you're comfortable modifying the Python code then you could try omitting the MP3 encode step to see whether the raw WAV works (you can play WAV files in PyKaraoke but obviously they take up a good deal more room). If endianness is to blame, you can also pass different parameters to lame to swap endianness. Cheers, Kelvin. I think it is possible to use cdparanoia for making the mp3 files. Maybe the cdg and the mp3 files are out of sync, but I don't expect there will be any troubles. Yup, this actually worked pretty well. I just used cdparanoia to rip the audio to .wav and now it sounds great and is in sync, as far as I can tell. My wife is much happier. =) I wonder if there's some endian issue that cdrdao had that cdparanoia picked up on. Seems to be a likely explanation given the fact that the broken MP3 tracks would actually start the audio (static) at the correct time. Anyway, I'm up and running. Thanks again, tim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] Next Feature
Hi John, I was thinking the next feature I'm going to tackle is having the ability to add the singers name in the play-list. Thoughts? I get contacted regularly by people who would like to use PyKaraoke for professional hosting, so I think you would make a lot of friends with this. I'll dig out some of the comments I've received in this area for you to have a quick look over. Thanks, Kelvin. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] error when trying to install in debian
No problem Nick. Kelvin. Surelly, haha Good Kelvin, good. apt-get install python-dev solve my problem. Thanks for all! On Mon, Oct 13, 2008 at 8:13 AM, Kelvin Lawson [EMAIL PROTECTED] wrote: Hi Nick, It looks like you are missing several important header files like Python.h and SDL.h. Did you install the libraries which are required by PyKaraoke? http://kibosh.org/pykaraoke/installation.php The Debian instructions there are: apt-get install python-dev python-pygame libwxgtk-python libsdl-dev Cheers, Kelvin. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] Time Left
Hi John, Forgot to add that the format for the status message I'm considering is: [Current Time/Time Remaining] Artist - Title Sounds good to me, the Playing text is redundant. Thanks, Kelvin. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] Timidity SoundFonts
Hi, thank you for great work you've done with pykaraoke! This is my problem: pykaraoke works well with default timidity's settings, but if i change timidity's configuration to use other Soundfonts files, pykaraoke don't output any sound. Of course i try to use new SoundFont file with timidity only, and it works well. There used to be a good HowTo which a PyKaraoke user recommended to me for setting up timidity (for eawpats in his case). Unfortunately the link seems to be down: http://www.think-future.de/wiki/index.php?title=MIDI I've emailed the site owner to ask whether he can provide the page text, I'll let you know what comes back. Meanwhile as this is really down to Pygame which is used under the hood of PyKaraoke, you might get some help from the Pygame mailing list. Cheers, Kelvin. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
[Pykaraoke-discuss] PyKaraoke v0.6 Released
Hi Folks, We are please to announce the release of PyKaraoke v0.6. There are many new features and improvements in this version. Here are some of the highlights: * Much improved GUI with many new features and additional configuration options. * Launch external media players to play other formats such as DIVX, XVID etc * Export karaoke files to MPEG format (command line only). * Many enhancements on the GP2X platform. * Now confirmed to work with OSX. * Internal improvements and fixes in the CDG and KAR players. And much more, see the full changelog here: http://sourceforge.net/project/shownotes.php?group_id=123242release_id=609671 Download it at the usual place: http://kibosh.org/pykaraoke Thanks to David Rose for more stellar work on this release. Kelvin. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] CDG C implementation
Hi John, How do I get PyKaraoke to use the C implementation and not the python implementation. I'm running GNU/Linux. It should build and use the C implementation if you use python setup.py install to install it. This must be run with root privs. If you see the message Using Python implementation of CDG interpreter on a terminal when you launch it then the above didn't work. Do you still see this message after running setup.py? Cheers, Kelvin. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] how to display Polish chars from *.kar?
Hi Maciek, It turns out that one of the recent releases removed support for international chars from the kar player - it will be fixed in the next release. Regards, Kelvin. New Pykaraoke user here. Hello to Everyone! I need to play *.kar with Polish characters. No matter what is typed in Config - Default charset, Pykaraoke 0.5.1 on Ubuntu Dapper renders Polish characters wrong. I tried iso-8859-2, cp-1250, UTF-8 and still those characters are garbled, in the same way all time, like if the charset definition was ignored. Is thare anything that could be done about it? New Year's Eve is coming :). A sample kar file I tried is attached if anyone wants to test. Maciek - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] So, what's everyone doing with PYK?
Hey Will, Good to hear from you. PYK has always been pretty good :) The patches I submitted back (I think) in 2005 (yeesh, has it really been that long already?!?!) made it do pretty much everything I ever wanted it to do; the only thing it's missing now from a raw functionality perspective is key changing / pitch shifting, changeable at runtime with a keystroke or on the command line. Presumably you can still use JACK to do the pitch-shifting while pycdg doesn't support it natively? I'm still very keen to build a real GUI and automation chain for the rotation management side of things, though. I've heard from quite a few people over the years who are keen to have something like this. Hopefully there will be someone out there listening who feels they can lend a hand. Cheers, Kelvin. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] Show the lyrics on an other monitor
Hi Floris, I've found that pygame hasn't support for multiple displays so I guess the problem have to be solved with something like os.system('DISPLAY=:0.1 '). Unfortunately I can't figure out the point where the database window opens the lyrics window The playlist GUI (pykaroake.py) calls out to MakePlayer() in pykdb.py to start the players. This in turn uses either pycdg.py, pykar.py or pympg.py depending on the songfile type. All of these eventually make use of InitPlayer() in pykmanager.py to initialise pygame if necessary. You may find InitPlayer() is a useful place to do something like this. That said, I don't know whether it is even possible to set the X display in this way. I strongly suspect that it won't be possible to have the same process utilising two different X displays (one for WxWidgets and one for Pygmae), but I don't know what the rules are there with X. It might be necessary to spawn a new process to handle the player windows rather than run them as a thread within the existing process. It should be possible to insert a different interface between the playlist and the players such that two separate processes communicate using something like a socket. You'd need to implement two-way communication such that the playlist can tell the player process to play/pause etc. and when the song finishes the player can callback to the playlist to notify it. Hopefully the interface will be clean enough such that you can drop in a replacement glue layer to handle the interprocess communication If you're interested in taking this up I'd be happy to provide further info on how it all fits together. Kelvin. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] Minor PyKaraoke modifications
Hi Marcus, Thanks for sending in your changes. Are you interested in submitting them for use by the project? I'll take a look. I haven't done any Windows releases myself since the compilation stage was added, but have you tried using the free Visual Studio Express? Kelvin. Basically, my changes are simple interface changes. My mods will show the zip and cdg file names in the search and playlist views if they are different and then I've added a dropdown box to select who will be singing the next song. So, whatever name is in the dropdown box when you right click - Add To Playlist, will show up in the first column. All of my changes are marked with MDP. Anyway, I'd like to compile this and turn it into a Windows executable, but I don't have VS2003. is there any chance that someone on this mailing list could compile these changes for me? I'd attach the code to this email, but I'm not sure that the list manager will accept it, so if you want it or can help me, just email me and I'll send the program. Thanks. Marcus Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. http://new.toolbar.yahoo.com/toolbar/features/norton/index.php - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] pycdg segfault on amd64
Hey Will, I suspect this is either a numeric thing or a pygame thing -- aren't there some compiled bits in those libraries for speed purposes on some systems? I recall having a 64-bit problem myself when I was first mucking with PyKaraoke myself ;) Yep I believe that one was a pygame vs 64-bit bug. In this case there are no libraries involved, however. It's just our own C module _pycdgAux.c which is reading the CDG bytes read directly from the CDG file. The problem is that it's reading an x,y offset from the CDG file which is outside of the 300x216 screen size, i.e. the data in the file at this location isn't a perfect rip of the original CDG command. The C code was then using this x,y offset to index into an array sized at 300x216. This was what caused the seg fault that Daniel sent the debug info on. It won't necessarily cause a seg fault on all machines though, as I found on my PC. It would have just been stomping on some memory somewhere that it probably shouldn't :-) It turns out that both of these files fail when using the pure Python implementation of pycdg as well, for the same reason: array index out of bounds. I'd better fix that one up too. The lesson here is to sanity-check the CDG commands as they aren't always perfectly ripped. Kelvin. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
[Pykaraoke-discuss] CDG Player Seg Faults
Folks, I recently started getting seg faults when running pykaraoke/pycdg from source. The version installed into /usr was still running correctly, but I got seg faults when attempting to run from the source directory. I narrowed it down to the external compiled module (_pycdgAux.c), and after a recompile (python setup.py install in the pykaraoke directory) it's working again. I haven't done much work with Python C bindings but I presume this means my Python version has changed and you need to recompile any bindings when this happens. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
[Pykaraoke-discuss] PyKaraoke goes to your head
How's this for a novel usage of PyKaraoke? http://www.robotcowboy.com/?p=67%22 http://www.youtube.com/watch?v=xnUqrcUB8oc Kelvin. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] Pykaraoke for OSX
Hi Rob, I've spoken with a PyKaraoke user who has got it running on OSX. You'll need to install Python (www.python.org), Pygame, WxPython and Numeric. I think the latter three are available from here: http://pythonmac.org/packages/ He didn't get the compile/install working and we haven't investigated why yet, but it's possible to run it without installing by just unpacking PyKaraoke and typing: python pykaraoke.py It looks pretty nice on OSX, but the config window was a strange size. You can fix this by changing the CONFIG_WINDOW_SIZE parameter in pykaraoke.py to 240,90. Would be interested to hear how you get on. Kelvin. Stief Robert wrote: Hi there, i´m interested on Pykaraoke for OSX. If there´s a chance for testing a Beta i would be glad to do this for you. I usually used Winamp and a CDG plugin but now i´ve changed to an imac. Sorry for my bad english, i´m a native german speaker. greets Rob - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] pykaraoke hardware requirements
Hi Martin, what are the minimum hardware requirements for pykaraoke? i have a pentium one box around here, i don't know exactly the mhz and amount of ram, and i supppose it has an old pci video card. I'm not sure what the minimum requirements are I'm afraid. The latest version received some big performance improvements, but I would think that PyKaraoke would still struggle on a Pentium One. Suck it and see? i would install gentoo on it. or do you know of a better distro (because gentoo has only the newest packages, and perhaps pykaraoke could probably work better on a slow machine with the lowest versions of its dependencies...). The latest release of PyKaraoke (i.e. the one with the optimisations) requires a relatively recent version of WxPython (2.5) so an old distro probably wouldn't fit the bill. All the best, Kelvin. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
[Pykaraoke-discuss] PyKaraoke v0.5 Released
Hi Folks, Thanks to the excellent efforts of David Rose, we've just released PyKaraoke v0.5. Download it at the usual place: http://kibosh.org/pykaraoke Changes in this release are: * Added support for GP2X * CDG: Much improved performance by porting down to C * CDG: Smoother scrolling and fixed horizontal scrolling * MIDI: Fixed mid-song tempo changes * MIDI: Smoother font-scaling and word-wrap * pykaraoke_mini: New simple GUI for simpler environments (suitable for smaller screens and simple joystick control, or for use on a TV with a remote-control) * Many other internal changes As testament to the portability of PyKaraoke, it now runs on Windwos, Linux, FreeBSD and GP2X. Please let us know if you are interested in bringing PyKaraoke to other platforms. Since the last release PyKaraoke has been added to the Debian, Arch Linux, Ubuntu Edgy and FreeBSD repositories. If you are interested in providing packages for other distros then let us know. Kelvin. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] New ripper
Yes, absolutely. I would like to know if anyone else has successfully compiled and test it. Great, I can feel a v0.4 coming on. We're in the middle of buying a house at the moment so time is limited, but I'll have a go at building it here and fitting it into a sensible release package. When I had extracted the .bin image I ran it through dcdgrip to split it but the results were not as expected. The CDG info was garbage and the audio was very badly distorted (like samples were missing and maybe cdg data was still present) Interesting. I certainly didn't expect the audio to be affected by using RW mode. I'm inclined to go with your reason 3 as well - that the data is not arriving in the expected order. Could the CDG data be smaller because the parity bytes have been removed? From reading about other people who have tackled the software-deinterleave process (e.g. the Audiograbber guy) my understanding was that this was a pain-in-the-ass that you can avoid by using RW drives. I'd be surprised if there was anything particularly complicated to do so we must be missing something simple. You said you looked at the bin file - did you compare it with the RW_RAW output from the same disk? If you have an example of the first few KB output using both modes I'd be interested to see it. Cheers, Kelvin. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] New ripper
Hello Folks, Thanks a lot for posting your code Drew, glad to hear you got it working. If you don't want the hassle of packaging it up yourself in a release it sounds like a good addition to the cdgtools suite. I tend to use Python for home projects simply because I find it quicker to get something functional, but I see no reason why C code shouldn't go into cdgtools. Let me know if you're interested (cdgtools is LGPL by the way). It decodes the q channel and checks to see if the track number has changed. If it has the program then does a CRC check (there is a CRC value built into the q channel) and if the CRC is bad the change of track is ignored. Initially I didn't include the CRC checking but I found that the q data was often corrupted in one or two sectors in the track so the CRC eliminates these erroneous track boundaries. This is good stuff. dcdgrip doesn't do this yet but... as such. If I'm understanding you correctly you want to read one track and then split and encode it. I have already thought of adding an option to select which tracks you want to rip (from the complete bin file) but it shouldn't be too hard to make it encode from a bin file containing just one track (will cdrdao do this?) I just had a look through the cdrdao man page and to my surprise there doesn't seem to be an option to rip single tracks. Anyone know of any other suitable rippers? Yeah, drives are very random and finicky about this part of things. Figuring out whether you've been handed raw or cooked subchannel data is a pain in the [EMAIL PROTECTED] :) I'm not totally convinced that it's just a drive problem. Has anyone on the list every got RW data to work? My drive returns the data interleaved, so I've only ever tested rw_raw mode (using the software-deinterleave) hence the note of caution in the instructions for rw mode. My thinking was that the data returned in rw mode would need nothing doing to it at all, it could be written straight out to the CDG file as it came from the CD drive. Have you found this not to be the case? Could it be that the drives concerned don't support rw mode? Cheers, Kelvin. All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] pykaraoke can't play mpg's [sorry for incomplete mail before]
Hi Cyrill, It works now... Glad to hear it! Does this change the resolution for playing? Sorry, I'm not sure what you mean? Quite cool... But it would also have worked just with mplayer or so :) But its easy to be able to start the movies from the same tool. This is true. The MPEG support is really just a bonus feature - in future I've been planning to add support for external players to the GUI. That way you could add support to the database/GUI for a large range of movie formats and spawn off an mplayer process to handle them. All the best, Kelvin. --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] [HOWTO] Implementing pitch-shifting and crossfading (for filler music/other sources) for PyKaraoke on Linux with JACK
Here's a curious idea: I wonder how hard it would be to recast Kelvin's rendering code as an Mplayer codec? Did we already talk about this? I've fancied doing this for some time but haven't got round to it yet. Making an mplayer/ffmpeg codec would give you CD+G for free with a whole bunch of video players, as well as those commercial DVD players and other devices that use ffmpeg. I'd need to rewrite it in C but it should translate fairly easily, especially given what we now know about CD+G. Kelvin. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] [HOWTO] Implementing pitch-shifting and crossfading (for filler music/other sources) for PyKaraoke on Linux with JACK
In fact the only missing piece apart from digital mixing is a lack of straight-from-CD CD+G player, which is something I'm interested in doing anyway, and I think Python can do it. Any hints or thoughts, Kelvin? I've given it some consideration in the past but not in great detail. Pygame can play audio tracks on a CD but (unsurprisingly) there is no facility to read the subchannel data. Initial thoughts on the simplest thing to implement would be to combine a cdrdao/cdgrip pass with pygame's CD playback. It's just a hack but it buys you something. After selecting a track, you spawn off a process to rip just the CD+G data without any MP3 encoding. You can then play this back as usual with pycdg.py while the CD track plays. Should be relatively quick to implement but you pay the price of the time spent doing the rip before playback. Doing it *properly*.. that's a different thing. I don't know, for instance, what the usual method would be for extracting the subchannel data on Linux. Whether you'd need to use a library like cdrdao, or whether it's just as easy to get what you need straight from the OS. I'm thinking something like Python bindings for cdrdao to read the subchannel data - and if you're doing this in real time then presumably you'd want to read the audio data at the same time, rather than have two proceses seeking around the disk. I'd need a deeper look into the likes of cdrdao to comment any further than that. The link is Coral Cache-ified by the way because I'm expecting heavy traffic in a few days; a not-so-friendly company is threatening to sue me because I posted my experience with them on my site, and negotiations broke down recently. I went public with the details, and Tom Martino (the Troubleshooter) is going to have me on his radio program Monday to hash this stuff out. Heh. This should get interesting fast :) Itching to hear how this pans out. Kelvin. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] subcode and deinterleaving question
Hi Drew, I've been reading all the info I can find but I must admit I'm getting a little confused partly because the terms frame and sector do not seem to be used consistently. For instance the ECMA-130 standard seems to refer to 588 bits burnt on to the disk as a frame. Thanks for the headsup, I hadn't seen that ECMA 130 before. I thought the gory details were to be found in the Red Book which costs money, so it's great to find this info available for download. I've just had a scan through it, and it distinguishes between sections, sectors and frames. We've used sector and frame to describe the same thing in the cdgtools code - as the 2352 bytes of audio + (2 * 392) bytes error correction/detection + 98 bytes subchannel data. Looks like we should replace frame by sector throughout the code. Some of the above is filtered out to get the data returned by cdrdao. We get the 2352 bytes of audio data, plus 96 bytes of subchannel data. (The first two bytes of subchannel data appear to be sync bytes, hence getting 96 instead of 98). The subchannel data is contained in the control byte discussed in the document. I know a certain amount of interleaving goes on in the audio data prior to it being written onto the disk but I was under the impression that the same could not be said about subcode? It looks that way from the document. The CIRC coding is done before the control bytes are added, but perhaps the control bytes are then added in the relevant place, i.e. they are not added in order because they are placed according to the position of the CIRC-encoded data? I haven't read deeply enough yet to figure that out. As you can probably tell from the above, I'm pretty much in the dark about the interleaving process. When writing cdgtools I noticed that my drive was returning data that looked almost correct but with the bytes spread around. I couldn't find any information on the interleaving process, and believed it to be in the Red Book, but came across the following: http://club.cdfreaks.com/showpost.php?p=719361postcount=13 This guy was in the same position as me, but had the patience to sit down and reverse engineer which bytes went where. Is it just the r to w channels which are interleaved or is it the whole subcode byte? (including the p and q channels). I'm not sure because I mask out only the P and Q subchannels. Are you asking because the CIRC section discusses encoding of P and Q bytes? The way I read that was that these are parity bytes, unrelated to the p-w subchannels (confusing terminology). My (probably flawed) thinking is that the control bytes containing subchannel data are not put through the CIRC process, but are matched up with the new position of the relevant frame after CIRC encoding, and so are effectively interleaved. Bear in mind I don't even know if the deinterleaving code in cdgtools is actually reversing the CIRC cross-interleaving, or if it's some other magic altogether. It would be great if you had the time and inclination to check this out :-) Hope that helps, Kelvin. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] PyKaraoke v0.4.2
It's a good solution for Linux, though I don't think JACK or the other stuff runs on Win32 though; it's *possible* you could build a similar kind of toolchain on Win32 though with whatever SDL is using for sound delivery. Well I think all of the calls for pitch-shifting so far have come from Linux users so this should be OK for now. Built-in pitch shifting could be a longer term goal if nothing is available on Windows. I'd be glad to write up a howto. It was fairly easy to do once I figured out the little gotchas. I'll post it in the next few days. Great, thanks. If that's still true, then yeah, I just need to update the UpdatedTiles chunk to tell it I've written changes there. Of course, the way I was doing it, I was just drawing the text on every frame anyway. I think I saved the rendered text and only changed *it* when necessary, then blitted it onto the finished output buffer right before it got displayed. Bleh. I need to dig some more to remember how I did it :) OK, let me know if you need any pointers. Kelvin. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
[Pykaraoke-discuss] PyKaraoke v0.4.2
That reminds me... I've had v0.4.2 ready to go for some time now. Tthe Linux/source release is on Sourceforge now. The Windows installer will follow later. Changes in this release are: * pycdg: Support starting files without .cdg extension for tab-completion * Fix Border Preset commands (don't clear entire screen) * pycdg: play CDGs without an MP3 file for test purposes * pycdg: Fix FutureWarning on 0xs * pycdg: Fix option type 'str' for optparse * GUI: Reorder Playlist (drag drop) * GUI: Drag and drop from Search View to Playlist * GUI: Drag and drop from Folder View to Playlist * GUI: Made some of the GUI features reusable by other scripts (Craig Rindy) * GUI: Fix non-ASCII characters in filenames (Craig Rindy) Cheers, Kelvin. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] Pykaraoke, ogg and an intro
Well that was fast! That fixed it! Excellent! Above the pygame.init() call in pycdg.py and it seems to solve the problem. If only I'd waited half an hour before releasing v0.4.2 :-) Mind you I'd like to do some testing on this before releasing it anyway. It'll go in the next version. I don't have mp3 playback set up, I read in the documentation somewhere that it required recompiling SDL (and I could be arsed as didn't want to use mp3 anyway) Yes it can be a pain on some distros. If you change your mind there are some step-by-step instructions on the website that worked on a recent FC release. Thanks for letting me know, Kelvin. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] Fast chirping sound when tryingt to play a song
Hi Harry, We recently had some trouble getting the graphics to sync up with the audio on lower spec machines. We made a lot of improvements but I'm not convinced that would extend down to 400MHz. That said, I'm surprised it's the audio that's failing. On Windows you should get better results from an application that takes advantage of hardware accelerated graphics etc. PyKaraoke currently takes advantage of Python and some Python-based libraries so that we can run the same code on many platforms. Unfortunately this raises the bar a little in terms of minimum requirements, and I suspect that a 400MHz machine will not be suitable. All the best, Kelvin. Harry Gambardella(HG Entertainment) wrote: Hi, I've installed the lastest version of PyKaroke on a 400mhz Toshiba laptop running Windows 2000pro. It installed and opens OK. I searched my folder of a handful of MP3+g files. I can open the song up, it will display the text of the CDG file, but I cannot hear the music. All I hear is a loud CHIRPING sound. Is there something I'm doing wrong? Can I run this program on this laptop? Thank you, Harry *HG Entertainment* Harry Gambardella (Entertainment Specialist/DJ) *Outstanding DJ Fun! *http://HG-Entertainment.com (203) 238-4895 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] CAVS' Super CD+G format
Any insights here would be welcome. I infer from the patent that if I can get to MCG files, they might be reasonably parseable with the current engine... I'd definitely like to learn more about this. Do you know if any players other than CAVS have managed to decode it? I haven't heard of any. I'd also like to add .kok and .lrc support, though those are probably less interesting to you KJs. Which reminds me... I set up a little wiki page to note down requested features for PyKaraoke. If you'd like to add anything (or even better tick some off the list :-)) it's at: pykaraoke.wikispaces.com Feel free to chip in, add a separate section for a professional player etc. Kelvin. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] Re: FINALLY -- ghod I hate SuSE
OK chaps I've knocked up a quick proof of concept. Jay, could you try out the attached pycdg.py please? Basically I've just divided the screen into four segments. I now only do the scaling on the segments that have been updated. I'm not sure how it will pan out, so before I tidy it up and do it properly, could you give this one a go? FPS is set to 30. That first draft was a little rough round the edges. Amongst other things, it didn't update the screen on Preset commands. I've attached the latest version for your testing pleasure. Beware that this one includes some code to bar any screen updates if the decoding gets 1/4 second behind the music. I figure the best thing to do in these situations is to not add insult to injury by carrying on performing slow output scaling. If there's a spell of heavy CPU activity it'll stop doing any updates, allowing the CPU to catch up quicker. The thinking is that a spell of no updates is better than a spell of out of sync updates. Cheers, Kelvin. #!/usr/bin/env python # pycdg - CDG/MP3+G Karaoke Player # Copyright (C) 2005 Kelvin Lawson ([EMAIL PROTECTED]) # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library 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 # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # OVERVIEW # # pycdg is a CDG karaoke player which supports MP3+G and OGG+G tracks. # # The player uses the pygame library (www.pygame.org), and can therefore # run on any operating system that runs pygame (currently Linux, Windows # and OSX). # # You can use this file as a standalone player, or together with # PyKaraoke. PyKaraoke provides a graphical user interface, playlists, # searchable song database etc. # # For those writing a media player or similar project who would like # CDG support, this module has been designed to be easily incorporated # into such projects and is released under the LGPL. # REQUIREMENTS # # pycdg requires the following to be installed on your system: # . Python (www.python.org) # . Pygame (www.pygame.org) # . Numeric module (numpy.sourceforge.net) # USAGE INSTRUCTIONS # # To start the player, pass the CDG filename/path on the command line: # python pycdg.py /songs/theboxer.cdg # # You can also incorporate a CDG player in your own projects by # importing this module. The class cdgPlayer is exported by the # module. You can import and start it as follows: # import pycdg # player = pycdg.cdgPlayer(/songs/theboxer.cdg) # player.Play() # # The class also exports Close(), Pause(), Rewind(), GetPos(). # # There are two optional parameters to the initialiser, errorNotifyCallback # and doneCallback: # # errorNotifyCallback, if provided, will be used to print out any error # messages (e.g. song file not found). This allows the module to fit # together well with GUI playlist managers by utilising the same GUI's # error popup window mechanism (or similar). If no callback is provided, # errors are printed to stdout. errorNotifyCallback should take one # parameter, the error string, e.g.: # def errorPopup (ErrorString): # msgBox (ErrorString) # # doneCallback can be used to register a callback so that the player # calls you back when the song is finished playing. The callback should # take no parameters, e.g.: # def songFinishedCallback(): # msgBox (Song is finished) # # To register callbacks, pass the functions in to the initialiser: # cdgPlayer (/songs/theboxer.cdg, errorPopup, songFinishedCallback) # These parameters are optional and default to None. # # If the initialiser fails (e.g. the song file is not present), __init__ # raises an exception. # IMPLEMENTATION DETAILS # # pycdg is implemented as one python module. It performs all # of the CDG file decoding locally, and gets audio playback # and video display capabilities from the pygame library. # It also uses the python Numeric module, which provides # fast handling of the arrays of pixel data for the display. # # All of the information on the CDG file format was learned # from the fabulous CDG Revealed tutorial at www.jbum.com. # # The player is run within a thread to allow for easy # integration with media player programs. The thread starts # the pygame MP3/OGG playback, and then monitors the current # time in the song. It reads the CDG file at the correct # location for the current position of the song, and decodes # the CDG commands stored there. If the CDG command requires # a screen update
Re: [Pykaraoke-discuss] Rip-rap
Great! Thanks Jay. It probably ought to have an *overall* time tracking facility, and some logging. And I need to update my cdrdao to permit slowing down; I'm ripping some bad tracks. (Perhaps a way to run the parser and re-rip on errors?) But it's a start. Usage: ripcdg sc 8119 Have you tried ripping using --read-subchan rw rather than rw_raw, to see if your drive supports cooked mode? I can't test it here but as Will mentioned that should add error-correction to the mix. Failing that, you could run the .cdgs through cdg2text and grep for whatever it is that ait prints out for unsupported CD+G commands. That should give an indication of the quality of the rip, but won't trap errors that still result in valid CD+G command codes. Kelvin. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] FINALLY -- ghod I hate SuSE
Hi Jay, Mine is much less happy than that, but, of course, that's at 1280x1024. Can fullscreen mode change the scan rate of the X server? Set it to 640x480x8, and the problem would likely evaporate. I've just spotted the following in the pygame docs: It is usually best to not pass the depth argument. It will default to the best and fastest color depth for the system. If your game requires a specific color format you can control the depth with this argument. Pygame will emulate an unavailable color depth which can be slow. Could you try setting DISPLAY_DEPTH=0 in pycdg.py, see if that helps. Cheers, Kelvin. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
[Pykaraoke-discuss] Installer
Hi Folks, I've used python distutils to make a simple install script for PyKaraoke. Hopefully this should make it easier to create the various packages we need for the distro package managers. It's in CVS now if anyone wants to try it out. I haven't written any installers before so I may have done something non-standard :-) Let me know if you have any thoughts on a better way of doing it. It works like this: Run python setup.py install as root. It installs into the following locations: site-packages/pycdg.py site-packages/pympg.py site-packages/pykar.py site-packages/pykversion.py site-packages/pykaraoke.py /usr/bin/pykaraoke /usr/bin/pycdg /usr/bin/pykar /usr/bin/pympg /usr/share/pykaraoke/fonts/ all fonts /usr/share/pykaraoke/icons/ all icons The .py modules need to go into site-packages because the PyKaraoke GUI imports pycdg and friends, so they can't go in /usr/bin. I've written some mini python modules to go into /usr/bin so you can start the GUI and players like regular executables. I have no idea whether I've done these in a pythonic way but they seem to work. They just look like this: #!/usr/bin/env python import pycdg pycdg.main() Everything actually goes into sys.prefix which I guess could be /usr or /usr/local. That's all for now. Let me know what you think - in the meantime I'll go read the Debian packaging instructions. Cheers, Kelvin. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] DJ/KJ in Denver Checking In
I think that I've never *ever* seen a commercial CDG that scrolls. Ever. KBS will create them, and I should have that in a week or two. But I wouldn't worry *too* much about it. I've got one from Doctor Music, that I used for testing the scrolling code. Can't recall if I've seen it on any others though. Kelvin. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Pykaraoke-discuss mailing list Pykaraoke-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss