Skip to content

Commit fdf53a3

Browse files
Ryne PufferRyne Puffer
Ryne Puffer
authored and
Ryne Puffer
committed
sample animation
1 parent 36bbe92 commit fdf53a3

File tree

4,915 files changed

+350245
-32
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,915 files changed

+350245
-32
lines changed

.DS_Store

0 Bytes
Binary file not shown.

inbox/dialogue.txt

-1
This file was deleted.

inbox/firstOfAll.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
okay, first of all

inbox/firstOfAll.wav

306 KB
Binary file not shown.

inbox/gotIm.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
got eeem

inbox/gotIm.wav

315 KB
Binary file not shown.

inbox/whatATwist.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
what a tweeeeest
File renamed without changes.

inbox/wrekt.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
wrecked

inbox/wrekt.wav

84.1 KB
Binary file not shown.

lib/analyze.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const util = require('util');
22
const exec = util.promisify(require('child_process').exec);
33

4-
const analyze = () => {
5-
exec(`$(pwd)/rhubarb/rhubarb -d $(pwd)/inbox/dialogue.txt -f json -o $(pwd)/outbox/timing.json $(pwd)/inbox/audio.wav`)
4+
const analyze = (name = 'audio') => {
5+
exec(`$(pwd)/rhubarb/rhubarb -d $(pwd)/inbox/${name}.txt -f json -o $(pwd)/outbox/${name}.json $(pwd)/inbox/${name}.wav`)
66
.then(() => {
77
console.log('successfully analyzed audio file');
88
})
@@ -11,4 +11,7 @@ const analyze = () => {
1111
})
1212
}
1313

14-
analyze();
14+
analyze('whatATwist');
15+
// analyze('wrekt');
16+
// analyze('firstOfAll');
17+
// analyze('gotIm');

lib/getAudio.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const util = require('util');
22
const exec = util.promisify(require('child_process').exec);
33

4-
const getAudio = (path, type = 'mp3') => {
5-
exec(`curl ${path} --output $(pwd)/inbox/audio.${type}`)
4+
const getAudio = (path, name = 'audio', type = 'mp3') => {
5+
exec(`curl ${path} --output $(pwd)/inbox/${name}.${type}`)
66
.then(() => {
77
console.log('successfully loaded audio file');
88
})
@@ -21,4 +21,6 @@ const clearAudio = () => {
2121
})
2222
}
2323

24-
getAudio('https://d2dkolid8onc3s.cloudfront.net/whatATwist.mp3');
24+
getAudio('https://d2dkolid8onc3s.cloudfront.net/gotIm.mp3', 'gotIm');
25+
getAudio('https://d2dkolid8onc3s.cloudfront.net/firstOfAll.mp3', 'firstOfAll');
26+
getAudio('https://d2dkolid8onc3s.cloudfront.net/wrekt.mp3', 'wrekt');

node_modules/.bin/acorn

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/babylon

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/cleancss

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/mime

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/uglifyjs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@types/babel-types/LICENSE

+21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@types/babel-types/README.md

+16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)