Last active
June 28, 2025 21:22
-
-
Save diracdeltas/7e81285a361f1a3717b777d1e2da0c02 to your computer and use it in GitHub Desktop.
copy all your rekordbox hotcues to memory cues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this. I had a specific use-case where thousands of tracks had a single hot cue around the first beat of the track that I wanted to convert to memory cues and used your program as a base. Posting this here in case anyone has a similar problem.