Your SlideShare is downloading. ×
Light o rama-xmlfileformatusedbylor2-sfv6
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Light o rama-xmlfileformatusedbylor2-sfv6


Published on

Published in: Technology, News & Politics

  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

No notes for slide


  • 1.
    • XML File Format Used By LOR2 to Save Sequences
      • The XML format used by LOR2 makes it easier for users to view and edit a sequence file outside of LOR with some level of success.
      • Editing of sequence files outside of the LOR editor is not recommended by LOR and may result in a corrupt file which is unusable.
      • Note: This information is valid for LOR 2.3.4 (saveFileVersion 6)
  • 2.
    • LOR1 used a binary data file to store sequences etc.
      • Binary format could be opened using other applications (like Notepad) but most of the data was not understandable and could not be edited.
      • Binary format was compact to achieve smaller files sizes.
      • I’m not sure where goopblip37 came from, but it was used throughout the sequence file to divide sections of the file.
  • 3.
    • LOR2 uses a XML file format to store sequences etc.
      • XML is a text-based format which can be viewed and understood using simple text readers (like Notepad).
      • XML can be edited and saved using simple text readers (if the correct syntax is used).
  • 4.
    • XML - Extensible Markup Language
      • XML is similar to the HTML format used to save web pages.
      • XML defines a basic syntax that is used to save and share information.
      • Along with using the XML syntax, LOR2 uses a specific structure to store the data (referred to as a schema).
      • The LOR2 schema is not published, but it can be learned by studying the files.
    • XML format basics
      • XML data is stored in a tree type structure.
      • The XML file has one root element.
      • The root element can contain any number of child elements.
      • Each element is designated with a start-tag (<_>) and a corresponding end-tag (</_>).
      • Each element can contain additional child elements, values, and attributes.
      • Additional info on XML can be found by searching the web for XML format.
  • 5. Example of XML data in LOR2 sequence file (viewed using Notepad)
  • 6.
    • XML Notepad is a great tool for understanding the content of an XML file
      • XML Notepad opens any XML file into tree view.
        • The elements of the tree can be expanded or collapsed to navigate the file.
      • You can learn a lot about how a sequence functions by viewing it in XML Notepad.
      • XML Notepad 2007 is available free from Microsoft.
  • 7.
    • The XML declaration element
      • <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?>
      • This should not be edited.
    • The start-tag of the root element and its attributes
    • (sequence start-tag and sequence attributes)
      • <sequence saveFileVersion=“6&quot; author=&quot;RW&quot; createdAt=&quot;2/1/2009 7:30:48 AM&quot; musicFilename=&quot;C:1wertzLightsLorInfo estsnd.wav&quot;>
      • This marks the beginning of all the information contained in the sequence.
      • It also defines sequence specific settings (file version, music file etc.)
      • <sequence is the beginning of the start-tag of the sequence.
      • saveFileVersion, author, createdAt, and musicFilename are all attributes of the sequence.
      • > is the end of the start-tag (and also encloses the attributes of the sequence).
      • The corresponding end-tag (</sequence>) occurs at the end of the file.
      • The saveFileVersion denotes different versions of the structure of the file.
      • Most updates to the saveFileVersion simply indicate new features that are not backward compatible.
      • The official release of LOR2 (2.3.4) changed the saveFileVersion from 5 to 6.
      • This change was significant because they moved the timings from within each track to a separate holding area called timingGrids.
  • 8.
    • The channels element and individual channel elements contained for each channel
      • <channels>
        • <channel name=&quot;Unit 01.1&quot; color=&quot;12615744&quot; centiseconds=&quot;87&quot; deviceType=&quot;LOR&quot; unit=&quot;1&quot; circuit=&quot;1&quot; savedIndex=&quot;0&quot;>
          • <effect type=&quot;intensity&quot; startCentisecond=&quot;0&quot; endCentisecond=&quot;10&quot; intensity=&quot;100&quot;/>
          • <effect type=&quot;intensity&quot; startCentisecond=&quot;50&quot; endCentisecond=&quot;60&quot; intensity=&quot;100&quot;/>
        • </channel>
        • <channel name=&quot;Unit 01.2&quot; color=&quot;12615744&quot; centiseconds=&quot;87&quot; deviceType=&quot;LOR&quot; unit=&quot;1&quot; circuit=&quot;2&quot; savedIndex=&quot;1&quot;>
          • <effect type=&quot;intensity&quot; startCentisecond=&quot;0&quot; endCentisecond=&quot;10&quot; intensity=&quot;100&quot;/>
          • <effect type=&quot;intensity&quot; startCentisecond=&quot;20&quot; endCentisecond=&quot;30&quot; intensity=&quot;100&quot;/>
          • <effect type=&quot;intensity&quot; startCentisecond=&quot;60&quot; endCentisecond=&quot;80&quot; intensity=&quot;100&quot;/>
        • </channel>
      • </channels>
      • This defines the channel settings (name, color etc.) and the lighting effects.
      • <channels> is the start-tag for the element that contains the group of channel elements.
      • <channel is the beginning of the start-tag for a individual channel.
      • channel name, color, centiseconds, deviceType, unit, circuit, and savedIndex are all attributes of the channel .
      • > is the end of the start-tag for the channel (and also encloses the attributes of the channel ).
      • The savedIndex is how LOR references the channel. It does not control the order they are displayed.
      • The lighting effects for the channel are listed next.
      • <effect type=&quot;intensity&quot; startCentisecond=&quot;0&quot; endCentisecond=&quot;10&quot; intensity=&quot;100&quot;/>
      • /> is the end-tag for the effect. effect is not needed because / occurs before the closing angle bracket.
        • This is an empty-element. It contains no other elements, just attributes
      • * Cool Trick - To reduce the intensities in a sequence, do a replace of intensity=&quot;100&quot; with intensity=&quot;50&quot;
  • 9.
    • The tracks element and individual track elements contained for each track
      • This defines which channels are displayed in each track.
      • <tracks>
        • <track totalCentiseconds =&quot;87&quot; timingGrid=&quot;0&quot;>
          • <channels>
            • <channel savedIndex=&quot;0&quot;/>
            • <channel savedIndex=&quot;1&quot;/>
            • <channel savedIndex=&quot;2&quot;/>
            • <channel savedIndex=&quot;3&quot;/>
          • </channels>
          • <loopLevels/>
        • </track>
      • </tracks>
  • 10.
    • The animation element
      • This defines the animation picture, the dimensions of the animation grid, and which cells are assigned to which channels
      • <animation rows=&quot;40&quot; columns=&quot;60&quot; image=&quot;&quot; hideControls=&quot;false&quot;>
        • <row index=&quot;14&quot;>
          • <column index=&quot;24&quot; channel=&quot;0&quot;/>
          • <column index=&quot;25&quot; channel=&quot;0&quot;/>
        • </row>
        • <row index=&quot;16&quot;>
          • <column index=&quot;24&quot; channel=&quot;1&quot;/>
          • <column index=&quot;25&quot; channel=&quot;1&quot;/>
        • </row>
      • </animation>
    • The end-tag of the root element (sequence)
      • </sequence>
  • 11.
    • Editing the LOR2 sequence file using Notepad - Part 1
      • Make a backup copy of the sequence file in case your changes mess up the sequence file.
      • Open Notepad program
      • Open the LOR2 sequence file (File / Open / Files of type: All Files)
      • Make any necessary changes to the file
      • Save the file
      • Find and Replace are the simplest and safest changes
        • Be sure you are replacing only the data you are looking for and you put valid data in its place.
        • Intensity change would be a common change. But notice that the attribute intensity is capitalized differently than the word “Intensity” in the attributes startIntensity and endIntensity .
        • Changing this capitalization could cause LOR to crash when it opens the file.
      • Find and Replace can be done on a specific section of the sequence.
        • Place the cursor at the beginning of the area to be effected and replace until the end of the area is reached.
  • 12.
    • Editing the LOR2 sequence file using Notepad - Part 2
      • Adding channels is significantly more complicated.
        • A channel element must be added at both the sequence level and the tracks level.
        • The savedIndex must be in line with the existing save indexes.
          • (The savedIndex does not correlate with the displayed order in the program)
          • If you are modifying multiple sequence files, the saved indexes will likely be different in each file.
      • Fixing missing musicFilename
        • LOR used to have an issue that made it possible for a music sequence to act like an animation sequence and disable the ability to assign a music file.
        • If a music sequence was saved without the music file set to a valid file, LOR would remove the musicFilename attribute in the sequence element.
        • Once this happened the only way to recover the file was to edit the musicFilename attribute back into the sequence file.
  • 13.
    • Using Excel to extract a sortable copy of the channel configuration – Part 1
      • (This is how it works in Excel 2003)
      • To avoid affecting any LOR files, export a new copy of your channel configuration.
      • In Excel choose File / Open.
      • Change Files of type to All Files.
      • Open the configuration (.lcc) file.
  • 14.
    • Using Excel to extract a sortable copy of the channel configuration – Part 2
      • You may have to choose Open XML As an XML list.
      • You may have to choose OK when told Excel will create a schema.
  • 15.
    • Using Excel to extract a sortable copy of the channel configuration – Part 3
      • Look for the columns labeled “unit” (or possibly “/channels/channel/@unit”) and “circuit” (or possibly “/channels/channel/@circuit”).
      • Scroll down till you see info in theses columns.
      • Copy the info to a fresh Excel workbook. Then you can sort, save, etc.
  • 16.
    • Using Excel to extract a sortable copy of the channel configuration – Part 4
      • Notes:
      • Any channel that is copied to another track will appear multiple times. To avoid confusion, you can remove any entries from your sort list that do not belong to track 1.
      • Unit numbers are saved as a decimal value in the configuration file. This value has to be converted to Hexadecimal in order to compare it with the settings in the sequence and on the controller.