Karaoke Plugin - Forum

Forum Navigation
You need to log in to create posts and topics.

Karaoke Plugin

Hi guys, I need a plugin that can read .cdg files. I want to built a karaoke player for a school project. Any suggestions?

What you could possibly do (which I have done in the past) is have an event launch a file. For instance I have an app that views playlists that are stored in a database. Each record has the Artists name and the song title as well as a path to a file (which I have used to point to a PDF of sheet music, but could also point to any file like a .cdg file) whenever a user chooses a new song (using a subroutine which is called whenever the database changes) the file is automatically launched in the defailt program for that file type. I accomplish this by running cmd in the background at startup and using something like this in the subroutine.

OnStartup:

Run "[WindowsDir]system32\cmd.exe" "" "RunOnce+LoadComplete+Hidden" "" "[cmd]"
dbpOpenTable "SetLister" "SongBank" "LoadPDF"

SubRoutine :LoadPDF

DropFile "[cmd]" "[SetLister.[selectedlist].attachment1]"
SendKeys "[cmd]" "{Enter}"

This causes whatever default program the user has installed to handle PDF to open that particular file. So if you change that to .cdg files, your default program that opens .cdg files will launch that particular song. The reason I open cmd.exe this way is so it stays hidden. If you just use dropfile command it will pop open the cmd window, which may not matter in your situation but this way its cleaner without opening up an extra window.

In theory this should work. There isnt a plugin for .cdg files at the moment so might take a little clever coding. But it wouldn't be too difficult. Let me know if I can help you through the code part. Id be happy to help you out

Hi mazzu001

Thank you very much for the reply. If there is not a plugin out there that can read cdg files, it would be much appreciated if you could help me with the code part. Maybe a small demo so i can see how it's done. It would be nice if someone could built a plugin that can read .cdg files though :) I will definitely buy it

Sorry luishp, i see now this post is in the wrong section and should be in the "Plugins VisualNEO Win" section. If you can move it, it would be great. Thank You

 

@impactband4u Don't worry I have moved it to the appropiate section.
Regards.