Skip to content

MichelleAppel/Automark-for-Rekordbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automark for Rekordbox

Automark for Rekordbox is a Python script that automates the process of adding cue points to your Rekordbox collection XML file. The script reads the XML file and adds cue points to the tracks based on a set of predefined rules. The cue points are added before the drop, which must be manually selected in Rekordbox.

Prerequisites

Before you can use the script, you'll need to have Python and pip (the Python package manager) installed on your computer. If you don't have them installed yet, you can download Python from the official website and follow the installation instructions. Pip is usually included with the Python installation.

Getting the Script

To get the script, you'll need to clone this repository (i.e., make a copy of the code on your computer). You can do this by installing Git and running the following command in your terminal or command prompt:

git clone https://github.com/MichelleAppel/automark-for-rekordbox.git

This will create a new folder called automark-for-rekordbox containing the script and related files.

Installation

To use the script, first install the required dependencies by running the following command in your terminal or command prompt:

pip install -r requirements.txt

This command installs the necessary Python libraries for the script to work.

Running the Script

To run the script from the command line, navigate to the directory containing the script (automark-for-rekordbox) and run the following command:

python main.py path/to/rekordbox.xml

This will process all tracks in the XML file and add the cue points based on the predefined rules.

You can also specify a comma-separated list of playlists to edit by using the --playlists option:

python main.py path/to/rekordbox.xml --playlists "Playlist 1,Playlist 2"

This will only process the tracks in the specified playlists.

Customizing Cue Points and Loops

The cue points and loops are defined in cue_points.py. You can customize the cue points by modifying the hot_cue_points, memory_cue_points, and loop_cue_points lists. You can also create your own lists and combine them to create a custom set of cue points and loops.

To create a custom cue point or loop, add a dictionary with the following keys to the appropriate list:

  • "name": A descriptive name for the cue point or loop (e.g., "32 pre")
  • "beats": The number of beats relative to the drop (e.g., -32 for 32 beats before the drop)
  • "num": The cue number (0-7 for hot cues, -1 for memory cues)
  • "type": The cue type ("cue" for hot cues and memory cues, "loop" for loop cues)
  • "length": The length of the loop in beats (only for loop cues)

Please note that the cue points and loops are added relative to the drop, which must be manually marked in Rekordbox. The script only adds cue points and loops when there is already a drop marker set, and the tempo and location of the drop marker must be correct before running the script.

Customizing Drop Marker Number

By default, the script uses the hot cue labeled "D" in Rekordbox (represented by the number 3) as the drop marker. However, you can customize the drop marker number by modifying the drop_mark_num variable in cue_points.py. Set it to the desired hot cue number that corresponds to your preferred drop marker (e.g., 0 for A, 1 for B, 2 for C, etc.).

Please note that you need to manually set the drop marker in Rekordbox for each track, and the script will only add cue points and loops relative to the selected drop marker.

Workflow

The recommended workflow for using this script is as follows:

  1. In Rekordbox, export your collection to an XML file (File > Export Collection).
  2. Run the script on the XML file using the command line as described above.
  3. In Rekordbox, make sure that your XML file is loaded in the rekordbox xml tab. Settings for this are in Preferences > Advanced > rekordbox xml > Imported Library.
  4. To update the tags for the tracks in a specific playlist, select all the tracks in the playlist and drag them into your local playlist. This will update the tags for the tracks and add any new cue points and loops that were added by the script. Press "Skip" to skip importing any duplicate tracks.

Please note that the script does not modify your original Rekordbox library directly. Instead, it creates a modified copy of your library in the form of an XML file, which you can import back into Rekordbox.

Contributing

Contributions are always welcome! If you find any bugs or issues with the script, please open an issue in the repository. If you would like to contribute to the code, please feel free to fork the repository and submit a pull request.

License

This project is licensed under the MIT License. You are free to use, modify, and distribute the code for personal or commercial purposes. Please see the LICENSE file for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages