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 "JWModules.hpp" | |
#if defined(METAMODULE_BUILTIN) | |
extern Plugin *pluginInstance; | |
#else | |
Plugin *pluginInstance; | |
#endif | |
#if defined(METAMODULE_BUILTIN) | |
void init_JW-Modules(rack::Plugin *p) { |
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 | |
######################################################################################## | |
# Requires: | |
# shuf - install on a mac with `brew install coreutils` | |
# Args: | |
# -d | --source-dir source dir to copy wav files from | |
# -f | --find find a word ignoring case ie. kick | |
# -s | --samples number of samples to copy to a new random dir | |
# -r | --repeat number of times to create a random sample dir | |
# -x | --max-size maximum file size ie. 2MB |
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
$ make | |
g++ -std=c++11 -Wsuggest-override -Wno-deprecated-declarations -o0 -Werror=implicit-function-declaration -Isrc -Ilib/oscpack -fPIC -I../../include -I../../dep/include -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_WIN -D_USE_MATH_DEFINES -c -o build/lib/oscpack/ip/IpEndpointName.cpp.o lib/oscpack/ip/IpEndpointName.cpp | |
cc1plus.exe: error: too many filenames given. Type cc1plus.exe --help for usage | |
cc1plus.exe: fatal error: build/lib/oscpack/ip/IpEndpointName.cpp.d: No such file or directory | |
compilation terminated. | |
make: *** [../../compile.mk:62: build/lib/oscpack/ip/IpEndpointName.cpp.o] Error 1 | |
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
void MyModuleWidget::step() { | |
ModuleWidget::step(); | |
MyModule *myModule = dynamic_cast<MyModule*>(module); | |
knobToMove->setValue(myModule->params[MyModule::SOME_INPUT].value); | |
knobToMove->dirty = true; | |
knobToMove->step(); | |
} |
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 | |
################################################################################################################################# | |
# community-builds-from-source.sh | |
# by Jeremy Wentworth | |
# | |
# This script pulls down the VCV Rack community repo, finds source urls, pulls down source repos, and builds plugins. | |
# | |
# This script requires: | |
# git - https://git-scm.com/ |
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 | |
for gitPlugin in $(curl https://github.com/VCVRack/Rack/wiki/List-of-plugins | grep "<strong>Source</strong>" | awk -F'"' '{print $2}' | awk -F'/' '{print "git@"$3":"$4"/"$5".git"}') | |
do | |
baseDir=$(echo $gitPlugin | awk -F'/' '{print $2}' | awk -F'.' '{print $1}') | |
if [ -d "$baseDir" ]; then | |
echo "$baseDir exists" | |
else | |
echo "$baseDir does not exists" | |
# git clone $gitPlugin | |
fi |
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
<html> | |
<head> | |
<script src="p5.js"></script> | |
<script src="addons/p5.sound.js"></script> | |
</head> | |
<body> | |
<script> | |
var playing = false, recording = false; | |
var mySound, recorder, recordedSound; | |
var clips = [ |
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
<html> | |
<head> | |
<script src="p5.js"></script> | |
<script src="addons/p5.sound.js"></script> | |
</head> | |
<body> | |
<script> | |
var playing = false, recording = false; | |
var mySound, recorder, recordedSound; | |
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
//Put this file in $HOME/.groovy/groovysh.profile | |
//Example Output: | |
// groovy:000> time{(1..1000).collect{it}.unique();} | |
// took 59 millis | |
time = { Closure c -> | |
def start = new Date() | |
c() | |
println "took ${new Date().time-start.time} millis" | |
} |
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
use_bpm 140 | |
#kick | |
live_loop :a do | |
s = (ring 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.75).tick(:t1) | |
k = (ring :bd_ada, :bd_haus, :bd_zum).tick(:t2) | |
sample k, start: 0.06, finish: 1, sustain_level:0, decay:0.2, amp: 3, rate: 0.9 | |
sleep 1 #1 | |
end |
NewerOlder