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
<pre><code> | |
----------begin_max5_patcher---------- | |
2706.3oc6bs0jahiE94t+UP4ZeZKGGcAgDyS6tOr+HRlTSgsU6lDavKf6jdl | |
Z5e6qPB4qXKIrv3NUpJwlFj4ny8uyQB9qGeXzz7evKGE7aAeN3gG9qGe3A4o | |
pOwCM+8CiVk7iYKSJkCaTF+64S+5nwpKUw+Qk7zUASCR0mMaypzrk7J4u.1b | |
xz4xAJ9we.Bi1an4apziE0b10IUydNMaweTvmUolcQfnIfwAnv5Ow.4wnIff | |
uz7ST2kpWWyUiezzjrEiFGLJMSbGzipr50kxALZT8I96Ger9iwVx6S2TUkmY | |
OWhZmKgmmKovnIjwAwRdEt8SCb4.wdX2YO.rlkdevdgNydQLx6GsGwc1iBd+ | |
n8.tydDz6GsGzc1CSe2n8.wtydH36FsGf4N6oR+MLr2Yx4uIacxruE.lH9m9 | |
hqK3k7rpjpz7r8l9DhLgMDU+En4isyNyBLpy3EfTEIA35unQlAL7zx7jpZDC |
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
<pre><code> | |
----------begin_max5_patcher---------- | |
1727.3oc6assaaiCD8YmuBAg8oEtF7ltsus6C6OQPQgrLiqRkkxpKoIsn8ae | |
oHEkkskLojncbJ5Cw1gjQCmyLbl4Ll462svdc1KzBaq+x5dqEK99cKVvGpdf | |
EM+9B6cguDkDVvWl8NZQQ3Vp8RwbkzWJ4iCVAbjC9TNsflVFVFmk9obZToP. | |
PryJvR1af52juX8wl+pzpcwoIzRtbPMCFug+zyV+3GH916WYVUoboPoTCKi9 | |
bb51AkHlT+JB0QlhGS4qOQE+A11sSUT9ZBeTa65A9wc2U+xx4CS5hSAdSCl7 | |
lJLIDHAdKfRPnst5q6T0WWL2q.e8z2GRxXaxd0LXOZlS+ZFZXMCC.BGd252b | |
.ZnZKsrWGltsWUrYjGxx2ExkfaqnyC2QKo4ehlFtVrbvD.jT5WYZ5I1+zr3B | |
5OUbLwwU3uFn9XROfKNXztMGHPhqZrsHdaZXhobdF.q9SMwIemoENALUbRHP |
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
tell application "QuickTime Player 7" | |
activate | |
present document 1 | |
play document 1 | |
get rate of document 1 | |
end tell |
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
# そもそもやりたいこと | |
convert "sc 2017-05-04 at 21.54.14.png" -crop 1920x1480+360+0 out.png | |
# 参考 [画像のサイズ変更(切り抜き・塗足し etc.)](http://imagemagick.rulez.jp/archives/550) | |
# リネーム(ファイル名から空白除去) | |
for FILE in *; do mv "$FILE" ${FILE// /_}; done | |
# 画像をcrop | |
for f in `ls` ; do |
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
− test: 単色画像の生成 | |
convert -size [width]x[height] xc:[bgcolor] [out] | |
convert -size 10x10 xc:red test_red.jpg | |
− test: グラデーション画像の生成 | |
convert -size [width]x[height] gradient:[bgcolor1]-[bgcolor2] [out] | |
convert -size 10x10 gradient:red-green test_grad_01.jpg |
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
− test: 単色画像の生成 | |
convert -size [width]x[height] xc:[bgcolor] [out] | |
convert -size 10x10 xc:red test_red.jpg | |
− test: グラデーション画像の生成 | |
convert -size [width]x[height] gradient:[bgcolor1]-[bgcolor2] [out] | |
convert -size 10x10 gradient:red-green test_grad_01.jpg |
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
int B_MASK = 255; | |
int G_MASK = 255<<8; | |
int R_MASK = 255<<16; | |
int bar_height = 10; | |
int span = 8; | |
void setup(){ | |
size(256, 136); | |
colorMode(RGB); | |
noStroke(); |
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
// How to increase keyboard key repeat rate on OS X? | |
// http://apple.stackexchange.com/questions/10467/how-to-increase-keyboard-key-repeat-rate-on-os-x | |
Processing:509$ defaults read -g InitialKeyRepeat | |
25 | |
Processing:510$ defaults read -g KeyRepeat | |
12 | |
Processing:511$ |
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 | |
#sox -n sin440.aif synth 0.5 sin 440 gain -10 | |
for i in {0..12}; | |
do | |
freq=`echo "(440.0) * ($i / 12) + 440.0" | bc` | |
#echo $freq | |
echo sox -n sin_$freq.aif synth 0.5 sin $freq gain -10 |
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
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby | |
#or | |
#!/usr/bin/ruby | |
# サインの波をアニメーションで表現する | |
# inspired by iPhone CoreAudio Programming - chaper 5 | |
SAMPLES = 44100 | |
RAD_PER_SAMPLE = (2 * Math::PI) / SAMPLES | |
current_rad = 0 |
NewerOlder