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
#!/bin/sh | |
# p2b.sh | |
# requires rsync | |
# | |
# Created by PARKER Martin on 22/05/2019. | |
# Modified 26/3/2020 by PARKER Martin | |
# This takes your markdown document, renders it to HTML and publishes it straight to blot.im | |
# dependencies: | |
# pandoc http://www.pandoc.org/ |
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
#!/bin/sh | |
# metaInject.sh | |
# | |
# | |
# Created by PARKER Martin on 16/11/2018. | |
# | |
# Dependencies | |
# this script requires a full install of the FFMPEG |
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
#!/bin/sh | |
# analyseExtractFade.sh or aef.sh for short | |
# | |
# | |
# Created by PARKER Martin on 11/10/2018. | |
# | |
# arguments are path of the audio file you want to segment, file format of the files you want to break things up into, fade parameters (fade in time fade out time and fade type and ultimately a text file from which to inject Metadata into the asstes you've generated. | |
# e.g. bash analyseExtractFade.sh ~/Dropbox/sounds/magicSound.wav aif 100s 560s q (this will analyse the audio file with agSegementSf.py and dump all of the slices it detects into a directory named magicSound. The slices will have fade ins of 100 samples fade outs of 560 samples using a quadratic fade function. |
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
#!/bin/sh | |
# mkSymLink.sh | |
# | |
# | |
# Created by PARKER Martin on 06/03/2018. | |
# this cheesy little script makes a simlink to scripts you're sharing across computers (dropbox). Links are made inside /usr/local/bin so that you can call the scripts from Terminal anytime | |
# To get the path to dropbox on the different machines you use, I'm using this script to pull the path from the dropbox info.json file: cat ~/.dropbox/info.json | awk '{print $3}' | sed 's/[",]//g' || thanks to the comment from simgag here: https://forum.keyboardmaestro.com/t/path-of-the-dropbox-folder/2214/6 | |
# usage >> bash mkSymLink.sh shellScripts || shellScripts is an argument specifying the path on dropbox where you keep your folder of shell scripts |
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
### Generate PNG spectrograms using SoX | |
### Use the input file name as the title within the image as well as the output file name | |
### Set the width to 2000 (seems to output a ~2140px wide image) | |
### Generate for five arguments, | |
### arg 1 = file type to make spectrograms from, e.g. .wav, | |
### arg 2 = width of the spectrogram | |
### arg 3 = hight of the spectrogram | |
### arg 4 = the dB level of sounds to pick out, ignoring sounds below that threshold | |
### arg 5 = the frequencies to hone in on e.g. 4k will give you a spectrogram that draws sounds up to 2k |