Unreal-Dan / RekordBoxSongExporter

A hack for Rekordbox on Windows x64 to export track information for realtime integration with OBS
62 stars 6 forks source link

Separate Artist / Track / Label files #4

Closed Fr0sti2018 closed 3 years ago

Fr0sti2018 commented 3 years ago

First off: this program is awesome, so thank you very much for it!

Now my feature request, maybe this can be done very quickly for pro: In OBS I can add the current_track.txt and I have one line with %artist% - %title% - %label%

I would like to have in that format (which i can format separetly!): %artist% %title% %label%

With a line break. Unfortunetly OBS can't detect a line break. So my suggestion would be that RekordBoxSongExporter would generate each information additional, like: current_artist.txt --> %artist% current_title.txt --> %title% current_label.txt --> %label%

So you can add "n" OBS text sources. In this example 3, artist, title and label. It would be awesome, if you can make that happen.

Alternatively one file current_track_alternative.txt with line break: %artist% %title% %label% ...

Thanks for your time!

Unreal-Dan commented 3 years ago

I want to make a more sophisticated templating system in the future but haven't gotten around to it. I appreciate your comments and I will try to get an update out soon to address this.

In the meantime if you want to try building from source with visual studio 2019 it should build without any issues, it requires no dependencies.

All you need is visual studio community edition 2019, it's free from microsoft.

If you add in some code around here https://github.com/Unreal-Dan/RekordBoxSongExporter/blob/master/Module/OutputFiles.cpp#L256

That looks like:

        // write out custom track files
        rewrite_file(get_dll_path() + "title.txt", entry.title);
        rewrite_file(get_dll_path() + "artist.txt", entry.artist);
        rewrite_file(get_dll_path() + "label.txt", entry.label);

You can write out your own track files with whatever information you want, I don't think any other changes would be necessary.

Also, make sure you select release mode when you build the project.

Fr0sti2018 commented 3 years ago

Thanks for the fast reply, much appreciated! I've downloaded the latest source and could successfully compile it with Visual Studio 2019 (Community Edition).

The code has do be modified a little: rewrite_file(get_dll_path() + "\"+ "artist.txt", entry.artist);

I made plenty of other stuff for my own, tried different things, e.g. out remove of keys and BPMs in titles before writing the text file(s). Works, I'm pretty happy now...it's not professional / good coded, but I'm happy ;)

Unreal-Dan commented 3 years ago

Glad it could work out, also woopsy on missing the slash.

You can just do:

        rewrite_file(get_dll_path() + "/artist.txt", entry.artist);

and include the slash in the name :)

Unreal-Dan commented 3 years ago

Hello I just wanted to let you know in version 3.0 this is possible directly through configuration in the launcher.

Hope this helps :)