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
for f in *.flac | |
do | |
flac -c -d "$f" | lame -h -m s -b 192 - "$(basename "$f" .flac).mp3" | |
done |
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
for(int i=0; i<valLen; i++) { | |
valResult += (val[(valLen-1)-i] - '0')*pow(10, i); | |
if(DEBUG) Serial << i << ": " << val[(valLen-1)-i] << " " << (val[(valLen-1)-i] - '0') << " " << pow(10, i) << "=" << (val[(valLen-1)-i] - '0')*pow(10, i) << endl; | |
} | |
/* | |
if(valLen > 3) { | |
valResult += (val[0] - '0')*1000; | |
valResult += (val[1] - '0')*100; | |
valResult += (val[2] - '0')*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
// (spkr is the output pin to your speaker) | |
void playTone(int tone, int duration) { | |
for (long i = 0; i < duration * 1000L; i += tone * 2) { | |
digitalWrite(spkr, HIGH); | |
delayMicroseconds(tone); | |
digitalWrite(spkr, LOW); | |
delayMicroseconds(tone); | |
} |
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
Profile Location | |
Duplicated profiles are saved to your home directory and will show up between different versions of ReplicatorG. | |
Windows: | |
/Users/[USERNAME]/.replicatorg/sf_[VER]_profiles/ | |
Mac: | |
~/.replicatorg/sf_[VER]_profiles/ |
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
import fab | |
title('spheramid') | |
input('x0',float) | |
input('y0',float) | |
input('z0',float) | |
input('r',float) | |
input('width',float) | |
input('height',float) |
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 ldrBehaviour(int ldrL, int ldrR) { | |
// Current angle of X (leftright aka pan) | |
int current = leftright.read(); | |
// Neutral State | |
if(ldrL < (ldrR+thresh) && ldrL > (ldrR-thresh)) { | |
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 | |
FILES=* | |
DIR=converted | |
mkdir $DIR | |
let i=0 | |
for f in $FILES | |
do | |
if [ $f != $DIR ] && [ $f != "convert" ] |
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 port = 0; | |
for (int i=0; i<Serial.list().length; i++) { | |
println(Serial.list()[i]); | |
if (Serial.list()[i].equals("/dev/tty.usbserial-A900F5IY")) { | |
println("ding!"); | |
port = i; | |
} | |
} |
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 randyIsAwesome() { | |
// startup tasks | |
if (effectInit == false) { | |
effectInit = true; | |
effectDelay = 100; | |
} | |
for (byte x = 0; x < kMatrixWidth; x++) { | |
for (int y = 0; y < kMatrixHeight; y++) { |
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
Quick overview of the Bowie Lib: | |
- Modules like BowieHopper, BowieScoop, BowieComms, etc. all get imported by MegaBowieShoreline. | |
- This is so that there can eventually be a MegaBowieSeedPlanter, for the next missions etc. | |
In MegaBowieShoreline.cpp, void MegaBowieShoreline::begin() { | |
This is where the objects get initialised | |
Bowie Lib: | |
https://drive.google.com/open?id=1UxYtklpj5Cls7tZ_94N0011cSO4xvv_t |
OlderNewer