Giter Site home page Giter Site logo

patrickdroiddev / traktor.beatport2traktor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joematt/beatportprototraktor

0.0 0.0 0.0 216 KB

A utility for converting id3 tags from Beatport Pro into a better format for Traktor's tag importer

License: GNU General Public License v2.0

Ruby 100.00%

traktor.beatport2traktor's Introduction

beatportproToTraktor

A utility for converting id3 tags from Beatport Pro into a better format for Traktor's tag importer

Features

  • Sync Release date to a tag Traktor will recognize
  • Sync 'Key' in code form (Open or other) to 'Key Text' so Traktor can search on that field ++ Traktors "Key" (not 'Key Text') field is not a key but a database entry and is not supported
  • Strip old key codes from Comments field

Installation

Before you install the gem, make sure to have taglib installed with header files (and a C++ compiler of course):

  • Debian/Ubuntu: sudo apt-get install libtag1-dev
  • Fedora/RHEL: sudo yum install taglib-devel
  • Brew: brew install taglib
  • MacPorts: sudo port install taglib

Then do:

gem install taglib-ruby

Execution

Recursively run on directory

./tagsync.rb -s <dir>

For help

./tagsync.rb --help

Usage: fixdates.rb [options]
-s, --searchdirectory NAME       Search directory
-d, --dump FILE                  Dump ID3 tags of file
-q, --quiet                      Be quiet
-c, --cleancomments              String keys from comments
-r, --releaseonly                Only update release tags
-k, --keyonly                    Only update key tags
-1, --stripv1                    Strip v1 id3 tags. Only does this if v2 was updated
-h, --help                       Show this message

Details

Beatport Pro (and iTunes) writes the id3v2 'Date' field "TDRC" with the Year value only. It instead writes the fully YYYY-MM-DD value to "TDOR" and "TDRL", "Original Release" and "Release Tine" respecively.

This script simply copies the values to the TDRC field.

For key, Beatport Pro writes the Open key code to [TKY2] and the musical expression 'ie; fMaj' to [TKEY] Traktor uses a propietry field for its Key field, but uses [TKEY] for any format the user wants. If you want to be able to search the key codes, I this script allows that by copying the [TKY2] field into [TKEY].

TODO

  • Code clean up (my first ruby project)
  • Add open key in addition to camelot keys in comment cleaner
  • Support key code stripping from Title/Artist fields since Mixed in Key supports writing to there
  • Convert Key Code to/from Camelot/Open Key
  • Support Open Key stripping from Title/Artist/Comment

Maybe one day

  • Smart playlist creation
  • GUI
  • Customizable Beatport to Traktor tag mapping ie; Venue -> Comment 2

traktor.beatport2traktor's People

Contributors

joematt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.