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
inlets = 1; | |
outlets = 1; | |
autowatch = 1; | |
function patchPath() | |
{ | |
var patchPath = this.patcher.filepath; | |
var patchName = this.patcher.name + '.maxpat'; | |
if(patchPath != patchName){ |
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
#Protoolsで出てきたデュアルモノラルファイルをステレオに変換する便利な奴 | |
mkdir merged | |
array=($(find ./ -name '*.L.wav')) | |
outdir="merged" | |
for obj in "${array[@]}"; do | |
echo $obj | |
lwav=$obj |
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
library(tuneR) | |
library(signal) | |
if(!is.na(commandArgs(T)[1])){ | |
isPrenormalize = commandArgs(T)[1] == "-normalize" | |
}else{ | |
isPrenormalize=FALSE | |
} |
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
#ファイル名、backgroundとかは適当に設定してくれ | |
echo "test.jpeg" | xargs -I{} bash -c 'convert -resize 1200x630 {} ogp_{} && convert -background white -gravity center -extent 1200x630 ogp_{} ogp_{}' |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/bin/bash | |
cd `dirname $0` | |
IFS=' | |
' | |
for file in $(find content -type f -name index.*md ); do | |
echo $file | |
cppath=`echo $file|sed -E 's!(.*)/(.*\..*)!\1!g' ` | |
for grep in $(cat $file | grep -e "JPG" -e "jpg" -e "png" -e "svg" -e "" ); do | |
echo "grepped $grep" | |
img=`echo $grep| sed -E 's!(.*)(\(| |"|/)(.*)(\.)([a-zA-Z]{3,4})(.*$)!\3\4\5!g' ` |
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
declare name "reversedelay"; | |
declare version "1.0"; | |
declare author "Tomoya Matsuura"; | |
declare license "MIT"; | |
declare copyright "(c)Tomoya Matsuura 2019"; | |
import("stdfaust.lib"); | |
MAX_DELAY = 48000; | |
phasor_phase(dtime,phase)= ((os.lf_rawsaw(dtime)+phase)% dtime) :int; //phase shift in sample | |
indexphasor(dtime,phase) = phasor_phase(dtime*2,phase)<: <=(dtime),(*(-1)+dtime*2),_ : select2; //folded triangle |
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
#include <stdio.h> | |
int main(){ | |
int a = 540; | |
float b = 460.1; | |
auto fun = [&](int x){ | |
putchar(a); | |
putchar((int)b); | |
putchar(x); | |
}; | |
fun(1); |
OlderNewer