Skip to main content

A simple CLI tool for generating beat marks of music for FCPX and PRE

Project description

<div align="center"><img style="display:inline-block" width='150' src="./assets/DJbeat-logo.png"/><p>
<span style="font-size: 14px">Version: 0.1</span><br>
<span>"A Simple Beat Time Marks Generator"</span><br>
<span style="font-size: 12px;color= #95dafc">-- Created by <a>Kevin T. Lee</a> --</span>
</p>
<a href="./LICENSE"><img alt="MIT" src="https://img.shields.io/github/license/mashape/apistatus.svg?&url=LICENSE&longCache=true&style=for-the-badge"></a>
<a href="http://lidengju.com"><img alt="Code" src="https://img.shields.io/badge/Code%20with-Love-red.svg?longCache=true&style=for-the-badge"></a>
<a href="https://github.com/kevinleeex/dj-beat/"><img alt="Version" src="https://img.shields.io/badge/Version-0.1-blue.svg?longCache=true&style=for-the-badge"></a>
</div>

# DJ-beat

Dj-beat is an easy-to-use generator that automatically detects audio beats and generates time markers for FCPX and Adobe Premiere*.

> P.S. why the tool is called DJ beat? DJ is from my chinese first name of course...

## Overview

A good music-driven video requires a perfect combination of sound and picture. Think about you're using the video editing software like Final Cut Pro X, you need to manually mark the place on the soundtrack that denotes the beat. Now, you have the **DJ-beat**, which can help you handle such a boring thing, mark, mark, mark...While it may do better than us.

Dj-beat is a simple tool developed based on python3 and madmom library, supports operating via command line and graphical interface*. The principle of the tool is the music beat tracking, then the tool output the XML file, which the FCPX and PRE can read.

Learn more about **beat tracking**:

- for Chinese readers click [here](./post).

- for English readers click [here](https://www.analyticsvidhya.com/blog/2018/02/audio-beat-tracking-for-music-information-retrieval/).


## Installation

### Requirements
numpy==1.14.3
madmom==0.16.1
tqdm==4.31.1
librosa==0.6.3

```bash
cd ./src
pip install -r requirements.txt
```

## Usage

### Command-Line Tool

```bash
cd src
python djbeat.py -f ../test/treasure-sample.mp3 -r 30
```

### Arguments

```
-h, --help show this help message and exit.
-p, --platform The platform, fcpx or pre, default='fcpx'.
-f, --filepath The filepath of the input audio.
-s, --fps FPS The sample rate of the music, a integer number, default='100'.
-r, --frame_rate The frame rate of your video setting, choose from {23.98,24,25,29.97,30,50,60}, default='30'.
```

### Graphic User Interface

[TO-DO]

## Support me

If this project helps you, you can support me to do better.
<a href="https://paypal.me/kevinleeex"><img alt="Coffee" src="https://img.shields.io/badge/PayPal_me_a-Coffee-7A501E.svg?longCache=true&style=for-the-badge"></a>

Or click <a href="http://lidengju.com/donate">Donete me</a> with Wechat or Alipay

## TO-DO

- [ ] Distributio
- [ ] Support the GUI
- [ ] Support generate marks for PRE


## License

Copyright © 2018 [Kevin T. Lee](http://lidengju.com). All rights reserved.

The project is licensed under the MIT license. See [LICENSE](./LICENSE) for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dj-beat-0.1.tar.gz (5.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page