-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a595a5
commit 83d9575
Showing
9 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# author: Kevin T. Lee<[email protected]> | ||
# description: DJ-beat is available to detect the beat from the audio and generate time marks for FCPX and premiere. | ||
|
||
__version__ = '0.4.6' | ||
__version__ = '0.4.7' | ||
|
||
import madmom | ||
import librosa | ||
|
@@ -14,6 +14,7 @@ | |
from tqdm import tqdm | ||
from pyfiglet import Figlet | ||
from string import Template | ||
from urllib.request import pathname2url | ||
|
||
|
||
class DJbeat(object): | ||
|
@@ -79,7 +80,7 @@ def gen_fcpxml(self): | |
'date_time': self.date_time, | ||
'frame_rate': self.frame_rate, | ||
'file_name': self.file_name, | ||
'file_path': self.abs_filepath, | ||
'file_path': pathname2url(self.abs_filepath), | ||
'file_length': self.file_length, | ||
'file_real_length': self.file_real_length, | ||
'audio_sr': self.audio_sr, | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ tqdm==4.31.1 | |
madmom==0.16.1 | ||
librosa==0.6.3 | ||
pyfiglet==0.8.post1 | ||
urllib3==1.23 |
This file contains 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
This file contains 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
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE fcpxml> | ||
|
||
<!-- DJ-beat @2019 Kevin T. Lee - Build Version: 0.4.6 --> | ||
<!-- Build Date Time: 2019-06-23 12:04 --> | ||
|
||
<fcpxml version="1.6"> | ||
<resources> | ||
<format id='k1' name='FFVideoFormat1080p30' frameDuration='1/30s'/> | ||
<asset id="k2" name="中文 测试" src="file:/Users/kevin/Projects/GitHub/dj-beat/test/%E4%B8%AD%E6%96%87%20%E6%B5%8B%E8%AF%95.wav" start='0/1000s' duration='5476/1000s' hasAudio="1" audioSources="1" audioRate="22050"> | ||
</asset> | ||
</resources> | ||
<library> | ||
<event name="中文 测试 Event"> | ||
<project name="中文 测试 Project"> | ||
<sequence duration='5000/1000s' format="k1" tcStart="0s" tcFormat="NDF" audioLayout="stereo" audioRate="48k"> | ||
<spine> | ||
<asset-clip name='中文 测试' lane='0' offset='0/1000s' ref='k2' duration='5000/1000s' audioRole='Music'> | ||
<marker start='7/30s' duration='1/48000s' value='beat_at_0.25' completed='0'/> | ||
<marker start='23/30s' duration='1/48000s' value='beat_at_0.77' completed='0'/> | ||
<marker start='38/30s' duration='1/48000s' value='beat_at_1.28' completed='0'/> | ||
<marker start='54/30s' duration='1/48000s' value='beat_at_1.8' completed='0'/> | ||
<marker start='69/30s' duration='1/48000s' value='beat_at_2.32' completed='0'/> | ||
<marker start='85/30s' duration='1/48000s' value='beat_at_2.84' completed='0'/> | ||
<marker start='100/30s' duration='1/48000s' value='beat_at_3.35' completed='0'/> | ||
<marker start='116/30s' duration='1/48000s' value='beat_at_3.87' completed='0'/> | ||
<marker start='131/30s' duration='1/48000s' value='beat_at_4.39' completed='0'/> | ||
<marker start='147/30s' duration='1/48000s' value='beat_at_4.91' completed='0'/> | ||
<marker start='162/30s' duration='1/48000s' value='beat_at_5.42' completed='0'/> | ||
|
||
<audio-channel-source role='music.music-1' srcCh='1, 2'/> | ||
</asset-clip> | ||
|
||
</spine> | ||
</sequence> | ||
</project> | ||
</event> | ||
</library> | ||
</fcpxml> |