Skip to content

Instantly share code, notes, and snippets.

@diracdeltas
Last active November 11, 2023 22:12
Show Gist options
  • 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 Aug 16, 2019 via email

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