Want to make a custom karaoke script - tips?
Here is how I imagine the input would work. I have a large list of track IDs corresponding to songs, i.e. "VAN1006-03 Van Halen - Jump". I would take in just the track ID ("VAN1006-03") and find the file automatically in my script using directories named after the first part of the ID (e.g. "VAN1006") and locating the filename itself using the second part of the ID ("03").
My difficulty is in knowing how to interface properly with the karaoke portion of XBMC. Ideally I would like to have a small translucent window overlaying the visualization in the upper right, displaying the current song and perhaps two songs before and after that song in the current playlist. You could delete songs by moving up and down this playlist and hitting a certain key. and you should be able to add songs by typing the track ID in a small text box above these items, which, after entering in the code, would show the filename and confirm.
What is the best way to put in this functionality? My initial guess is to use a Python script but I am very new to all this and my guess could certainly be quite wrong. I am comfortable with coding in many languages and on many platforms, so I don't mind hacking the main code if I have to but would like to stay away from that for convenience's sake otherwise. Thanks for any help you can give me.
Though I think that if you have questions about the native (C++ code) karaoke feature/function that does not directly involve python scripting then you should start a new topic-thread in our other development forum (http://xbmc.org/forum/forumdisplay.php?f=10) instead, as mostly only python developers look in these python forums.
Though I think that if you have questions about the native (C++ code) karaoke feature/function that does not directly involve python scripting then you should start a new topic-thread in our other development forum (http://xbmc.org/forum/forumdisplay.php?f=10) instead, as mostly only python developers look in these python forums.
Ok, that makes sense. Thanks, I will try that.
However you might be interested to look at the xbmclyrics (lyrics) (http://xbmc.org/forum/showthread.php?t=10187) script as a base for your code (though the xbmcscripts.com (http://www.xbmcscripts.com) site is temporarly down so you could have troubles downloaing the latest version).
Good luck.
I'm not really sure how to do a Karaoke script, but if the lyrics had timestamps, you might be able to use the embedded lyrics scaper and modify the script to select the correct line in the list. You would have to use the list control and not the textbox control, so each line could be highlighted.
To Nuka and Gamester: I was hoping I could use the existing functionality for karaoke that exists already in XBMC (it's quite good) and just modify it a bit. If I am understanding what you guys are saying correctly, is it true that I will have to redo all of karaoke mode on my own in this script? I was hoping there was some easy way to hook into that CDG and Visualization functionality in my script and just modify it a bit.
If I have to reengineer the functionality, do you think I will be able to reuse a lot of the code from the main code library? I know the languages are different but I was hoping that the general structure and the XBMC API calls would be mostly the same.
#If you have any other info about this subject , Please add it free.# |