Skip to content

Instantly share code, notes, and snippets.

@diracdeltas
Last active November 11, 2023 22:12
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save diracdeltas/7e81285a361f1a3717b777d1e2da0c02 to your computer and use it in GitHub Desktop.
Save diracdeltas/7e81285a361f1a3717b777d1e2da0c02 to your computer and use it in GitHub Desktop.
copy all your rekordbox hotcues to memory cues
# usage: python3 hotcues-to-memory-cues.py $XML_FILENAME
# see https://djfile.com/how-import-beatgrids-cue-points-and-tags-using-rekordbox-xml for XML export/import instructions
import xml.etree.ElementTree as ET
import sys
print('converting ' + sys.argv[1])
tree = ET.parse(sys.argv[1])
root = tree.getroot()
for track in root.findall('./COLLECTION/TRACK'):
for position in track.findall('POSITION_MARK'):
child = ET.Element('POSITION_MARK')
child.set('Name', '')
child.set('Type', '0')
child.set('Num', '-1')
child.set('Start', position.get('Start'))
track.append(child)
tree.write('output.xml')
@diracdeltas
Copy link
Author

diracdeltas commented Jun 7, 2019

Exporting collection to XML:

in Rekordbox select File and then Export Collection in xml format.

Importing output.xml back into Rekordbox:

In Rekordbox, choose Preferences, Advanced and then Database.
Click on the Browse button, find output.xml and click open
Then choose Preferences, View, and then check the box next to rekordbox xml in the languages section.
Notice that rekordbox xml has appeared in your browser window, click that and then ♫ All Tracks.
Highlight the track or tracks that you want to import and right click and select Import to Collection.

@diracdeltas
Copy link
Author

fixed some bugs and moved this to https://github.com/diracdeltas/rekordbox-scripts

@Tripppdnb
Copy link

Thanks alot for this tool! Saved me hours of work :)

@diracdeltas
Copy link
Author

diracdeltas commented Aug 16, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment