Skip to content

Instantly share code, notes, and snippets.

(ns chords
(:require [clojure.java.io :as io]
[leipzig.melody :refer :all]
[leipzig.live :as lz]
[leipzig.scale :as scale]
[leipzig.melody :as melody]
[leipzig.chord :as chord]
[leipzig.temperament :as temperament]
[overtone.core :as overtone]
[overtone.inst.piano :as piano]
/usr/local/Cellar/ffmpeg/4.2.2-with-options_1/bin/ffmpeg \
-i background.png -i Glory.wav \
-acodec libfdk_aac \
-filter_complex "[1:a]showwaves=mode=line:s=hd1080:colors=White[v];[0:v][v]overlay=format=auto,format=yuv420p[vout]" \
-map "[vout]" -map 1:a -vcodec libx264 -pix_fmt yuv420p \
output.mp4
# next time I'll use
# https://github.com/newscorp-ghfb/audiogram
# crop to mobile vertical
ffmpeg -i horizontal.mp4 -filter:v "crop=607:1080:760:0" vertical.mp4
/usr/local/Cellar/ffmpeg/4.2.2-with-options_1/bin/ffmpeg \
-i Screen\ Shot\ 2020-04-13\ at\ 8.52.51\ PM.png -i Glory.wav \
-acodec libfdk_aac \
-filter_complex "[1:a]showwaves=mode=line:s=hd1080:colors=White[v];[0:v][v]overlay=format=auto,format=yuv420p[vout]" \
-map "[vout]" -map 1:a -vcodec libx264 -pix_fmt yuv420p \
output.mp4