Jump to content

ShowlightsGen - A tool for creating fast, synced lightshows


TommyFletcher
 Share

Recommended Posts

Table of Contents

This is a guide for ShowlightsGen, a program to create Rocksmith light shows using MIDI. The guide is set up as follows:

  1. Introduction
  2. The Setup
  3. The Lightshow
  4. The Program

If you are familiar with MIDI, you can skip most of Step 2, as it mainly shows you how to sync up the MIDI file generated from EoF to the audio. It might still be useful to read, though.

1.    Introduction

I’ve always liked lightshows, and I wanted to learn how to create my own for Rocksmith. However, there weren’t any programs available yet to generate my own easily. I could edit the showlights XML file manually, but it was really tedious. I wanted to use MIDI somehow, as I’m quite familiar with it, so I created this tool to read a MIDI track and generate a showlights XML that the RS Toolkit can use to create a package.

The final result so far has been to create a file that syncs to the music

See here for an example: https://i.imgur.com/uHcLato.mp4

2.    The Setup

As this tool requires MIDI file, you need a way to edit and export them. I personally use the DAW "REAPER" by Cockos. It’s free (it has a 60-day non-restrictive trial) and more than powerful enough for what we need to use it for. Any images included here will be using it. However, any MIDI editor should work for this tutorial.

I will assume you have a song ready to play in RS and that no more edits to the tempo map will be taking place.

First, we need a MIDI to add lightshow events to. Lucky for us, EoF generates a “notes.mid” file when saving a custom. However, its time values do not match what is in EoF:

y4maYJMJi1Id4_eQlQul5F5LqBBrhevhQaBGTZtk

As you can see in the red circled area, the start of the MIDI portion in EoF is at 0:06.356, but when importing the MIDI it starts at 0 seconds

y4mKii3Ez_SVwcwfAi2sDPMRpAU9AQ6gwcsY8YAk

There are two ways to handle this:

The first method involves ignoring this and using the Showlights tool to designate the starting note. This is quicker, but results in some rounding errors possibly causing your events to be off a few milliseconds. Not that it is noticeable in-game, but your conscience will know.

The second method involves making a change to the tempo map of your MIDI editing software before you import it. This takes a few more minutes, but this will sync the tempo map in your MIDI software to EoF for ease of use.

NOTE: Due to how MIDI conversions work, the sync is not 100% for either method. However, the max difference I have seen for method 1 is up to 2-3ms whereas with method 2 it’s only 1ms that I have seen with my testing.

Setting up using method 1

On an empty project, import your notes.mid into your editor at measure 1.1.00. If using REAPER, make sure you import all tracks as separate and import your tempo map:

y4mNwt-XpL9gC0-Y-3l1y2iIvtHIgXiAlgKRvB92

Setting up using method 2

On an empty project, go to the position in your editor that matches the first measure in EoF (where the white lines start appearing). In my example it is 0:06.356. After going to this timecode, in Reaper I can select everything from the beginning of the project to the position at 6.356, click on Insert -> Measure from time selection (new time signature).

y4m4CCyXcfl0qzJw6w2Kpx7c_NjgYc1XSTUxzyQS

On the popup screen change the time signature to the first time signature of your EoF project, and the “Bars” to whatever makes the BPM similar to the first tempo marker in EoF. In this case, 4 measures gives me a tempo of 151, and that’s pretty close to my first tempo marker of 152

y4mS17EkZPq2iTZ8RuX1nY1vtXs-NBuvOD9IBnSi

Now, import your notes.mid to start at the end of the new measures you just created. For me that’s at the start of the 5th measure. If using REAPER, you can click and drag it into the program and a grey box will show you where the program will insert the MIDI file after releasing the mouse.

y4m-L-CPj8S8c3o146Ow8-Vl1JO5hqYO59fCbAHT

After releasing, you will get a popup asking if you want to expand the tracks it found into separate tracks and if you want to import the tempo map starting the 5th measure. You’ll want both boxes checked. Otherwise you’ll either get only one track, which will be messy. Or your tempo map will not be imported and cause your notes to be out of sync if your song has multiple tempo changes.

y4mYRIEHiprqOn-R4ZJYK8qQiPGnQ_LRHBi_37ko

Your MIDI tracks will now be in your REAPER project and automatically selected:

y4mekmDeFa2bQohnB_xUxtvOscR5i4hTOFcWNJNR

The light gray you see means the tracks are highlighted. Before deselecting them, hover your mouse over the left edge of one them, your mouse cursor will change to an arrow pointing left. Click on the left edge of a track and drag it to the beginning of your project.

y4mKGJ6nj37OyHYSiVb71MrBg6r6JZHpD4VIMUn1

By default, REAPER has a feature called “Loop Source.” This is used to create loops of patterns, but we don’t want that for this purpose. With the MIDI tracks still selected, press F2 and uncheck the “Loop Source” button and press OK.

y4m2vUa3O1ngOxmSistIU5t1_hvysUBgFKGNuc-O

Deselect all tracks by clicking on an empty space. Double click on the gray track that has the label “EVENTS.” This opens the MIDI editor of REAPER. Scroll to the beginning and look for the “Track Name” event called “EVENTS.” Double click it, and change the Position value to 1.1.00:

y4mTeSZ0Od2tk5tVaPsurSMA-DIGUcgvqS5-RrQd

This moves the track name to the beginning which the tool needs to use to convert from MIDI to XML. Close the MIDI editor portion to continue with the main guide.

This ends the separate methods. The guide from now on will be relevant to both methods.

Setup (continued)

After importing your MIDI (and setting it up for method 2 if needed), select all the tracks except for EVENTS and delete them. You only need the EVENTS track.

y4m16rNc_e5czsgZTOzwVq8MN00aq_WqaatpeV2p

Import your music and sync it to your tempo map. With the remaining EVENTS track, open it up in the MIDI editor (using REAPER, you double click on it).

3.    The Lightshow

After opening up the MIDI editor portion of your program, insert your notes here. The lighting events correspond to the note values as found in section 12 of iminashi’s “Guidelines for Official-Looking Customs (Found Here)

The program only looks for the start times of notes for changing the lights. The lightshow.xml file does not determine when events end.

An example of a full lightshow file looks like this in the editor:

y4m7IiNWX9BFmRVePi2XuSNKNR4T5gd6p_DpOfOG

If using REAPER, please feel free to download this text file: Here

You can import into REAPER to make the note names on the left side correspond to the colours the midi notes represent.

4.    The Program

After setting up and creating your light events, it’s time to export your EVENTS track to a MIDI file. In REAPER, this is done by making sure your EVENTS track is selected. Then, click on File -> Export Project MIDI. Make sure your export settings look like these:

y4m6qjzWs9PxNR7FiaGmECbliO10MjvAVYxrvRMZ

Because we’re only exporting one track, the multitrack option isn’t crucial (I haven’t tested it if "merge to single" is active, better to export as multi, just in case, as I know that will work) and make sure the “Embed project tempo/time signature changes” box is checked.

Save it to where you’d like and go to the folder where the program is. The MIDI file does not need to be in the same folder as the program. Upon opening the program, you’ll be asked to select your MIDI file. Then you’ll be asked where to save the XML file. Then, a box pops up asking for the time you’d like to sync the first note to. What you do here depends on the method used above:

If you used method one, where you did not sync your MIDI project to your EoF project, you type in (up to three decimal digits) the starting note you want your first lighting event to sync to. For example, in my EoF image above, my first note started at 9.514 and using method 1, my intention was for my first light event to match that note. I would type in 9.514 and press enter, it will shift all notes.

If you used method two, you can leave it blank and press enter.

Please note: This program assumes you are using standard charting conventions where you give the player some time before your first note shows up. Therefore, any value entered that’s below 8 will assume that you are using method 2 and make the first note match the MIDI file. If you are using method 1, please make sure your EoF file starts on 8 or after.

After it completes (should only take a second), a new XML file will appear where you saved it. This file can be imported into the toolkit directly.

y4mwQ0UY6ar6881j4GIrbD9BbM3DmZww30DEBXfQ

Please see this video for an example of a lightshow created using this tool. https://www.youtube.com/watch?v=m0JG3BcQakA

See here for the MIDI file used to create the lightshow and converted by the tool: MIDI file

Download Links:

64-bit Executable: Here

Python File: Here

Please excuse the filesize for the compiled exe. I’m only really familiar with Python and the easiest way to compile a Python script into an executable was to compile it with all dependencies included.

If you wish to save space, or use an operating system that doesn't support 64-bit exe files, feel free to download the script and run it in Python instead. The dependencies that are necessary to be on your system are:

  • Mido

  • Easygui
  • Sys
  • Math

Having said that, I hope you enjoy creating some sweet lightshows!

  • Like 1
Link to comment
Share on other sites

if you really want I can give you generate button with some parameters in that showlights editor\viewer (like fog color change allowance or intensity of lights\notes per time unit...) in toolkit >___>

Link to comment
Share on other sites

2 hours ago, Alex360 said:

if you really want I can give you generate button with some parameters in that showlights editor\viewer (like fog color change allowance or intensity of lights\notes per time unit...) in toolkit >___>

I'm not sure what the ">___>" is supposed to imply, but it was my understanding that the generator can be quite tedious if you want to fully manually create a lightshow. Although this tool requires a little bit of setup and MIDI knowledge, it makes manual lightshow creation a lot easier.

If the button you mentioned can create a lightshow based off of MIDI data like this tool, that could be useful for enthusiasts like myself that like to be in control of everything in a custom.

Link to comment
Share on other sites

On 12/14/2020 at 2:19 AM, TommyFletcher said:

If the button you mentioned can create a lightshow based off of MIDI data like this tool, that could be useful for enthusiasts like myself that like to be in control of everything in a custom.

I'm original author of showlights generator from the toolkit so yeah. There was couple revisions (3 to 5 major one) on showlights generator, early version would allow to change fog(aka venue ambient lights color like purple or blue) each 2 seconds without much regard just based on merged note pitches from all arrangements(it was a mess for soar and fast\metal and heavy songs), but I keep on filtering showlights and shaping it's final form to look more like oDLC and in-game songs, minimal, almost none fog color changes, all lights should be stage light and maybe laser effect at the end of the song. showlights by default looks decent, but I myself would like to have ability to mimic live light of a certain concert (I would like to do this to all of my Amon Amarth cdlc)
cozy1 and iminashi has had helped a lot with showlights generator and format itself, EOF, for example can define events like crowd reactions, which is also part of the show... I'm still not sure how to mimic strobe effect tho 🙂 Anyways, If you'd like to have raw showlight notes scrapped from all arrangements let me know I can add button to generate unfiltered xml for you...

EDIT:
Here is iminashi's showlights tool on github if you're still interested 😄

https://github.com/iminashi/ShowlightEditor

Edited by Alex360
  • Like 1
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. - Privacy Policy