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
#! /usr/bin/env ruby | |
require 'aws/s3' | |
include AWS::S3 | |
# set these ENVs for connection | |
id = ENV['AMAZON_ACCESS_KEY_ID'] | |
key = ENV['AMAZON_SECRET_ACCESS_KEY'] | |
Base.establish_connection!(access_key_id: id, secret_access_key: key) |
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
# This is the CMakeCache file. | |
# For build in directory: /Users/jrsa/Desktop/dlibpybuild | |
# It was generated by CMake: /opt/homebrew-cask/Caskroom/cmake/3.3.2/CMake.app/Contents/bin/cmake | |
# You can edit this file to change values found and used by cmake. | |
# If you do not want to change any of the values, simply exit the editor. | |
# If you do want to change a value, simply edit, save, and exit the editor. | |
# The syntax for the file is as follows: | |
# KEY:TYPE=VALUE | |
# KEY is the name of a variable in the cache. | |
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. |
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
diff --git a/dlib/CMakeLists.txt b/dlib/CMakeLists.txt | |
index f947e03..ad0420b 100644 | |
--- a/dlib/CMakeLists.txt | |
+++ b/dlib/CMakeLists.txt | |
@@ -457,7 +457,7 @@ if (NOT TARGET dlib) | |
# Note that we add __STRICT_ANSI__ to avoid freaking out nvcc with gcc specific | |
# magic in the standard C++ header files (since nvcc uses gcc headers on | |
# linux). | |
- list(APPEND CUDA_NVCC_FLAGS "-arch=sm_30;-std=c++11;-D__STRICT_ANSI__;-D_MWAITXINTRIN_H_INCLUDED;-D_FORCE_INLINES") | |
+ list(APPEND CUDA_NVCC_FLAGS "-arch=sm_30;-D__STRICT_ANSI__;-D_MWAITXINTRIN_H_INCLUDED;-D_FORCE_INLINES") |
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
# This is the CMakeCache file. | |
# For build in directory: /Users/jrsa/Desktop/cvbuild | |
# It was generated by CMake: /opt/homebrew-cask/Caskroom/cmake/3.3.2/CMake.app/Contents/bin/cmake | |
# You can edit this file to change values found and used by cmake. | |
# If you do not want to change any of the values, simply exit the editor. | |
# If you do want to change a value, simply edit, save, and exit the editor. | |
# The syntax for the file is as follows: | |
# KEY:TYPE=VALUE | |
# KEY is the name of a variable in the cache. | |
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. |
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
#!/usr/bin/env python3 | |
"""stft.py | |
Provides stft, a Short-Time Fourier Transform function. | |
Author: James Anderson | |
Email: jrsa@jrsa.co | |
Date: 09/24/2016 | |
CalArts MTEC-480/680 |
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
class DelayLine { | |
44100 => int n; | |
float buffer[n]; | |
int pointer; | |
fun float tap(int i) { | |
pointer - i => int index; | |
if(index < 0) { | |
index + n => index; | |
} |
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
#version 330 core | |
in vec4 pos; | |
out vec4 color; | |
uniform vec2 dims; | |
uniform float width; | |
//uniform float amp; | |
uniform float scaleCoef; |
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 t = 69; | |
void setup() { | |
for (int i = 0; i < 8; i++) { | |
pinMode(i, OUTPUT); | |
} | |
} | |
void loop() { | |
t++; |
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
// adapted from https://github.com/4ms/PEG-v1 | |
#define SPI_PIN PINB | |
#define SPI_PORT PORTB | |
#define SPI_DDR DDRB | |
#define SPI_MOSI PB3 | |
#define SPI_MISO PB4 | |
#define SPI_SCLK PB5 | |
#define DAC_CS_PORT PORTB |
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 many oscillators will there be? | |
30 => int bankWidth; | |
TriOsc sines[bankWidth]; | |
// adjust gain of bank to avoid clipping | |
0.1 / bankWidth => float oscGain; | |
// rest of dsp chain | |
LPF f => Pan2 p => dac; | |
10000.0 => f.freq; |