Skip to content

Instantly share code, notes, and snippets.

View digitalohm's full-sized avatar

digitalohm digitalohm

View GitHub Profile
@digitalohm
digitalohm / test04062018.vert
Created December 30, 2018 21:04
veda example no longer working
/*{ "vertexCount": 100, "midi": true }*/
precision mediump float;
attribute float vertexId;
uniform float vertexCount;
uniform float time;
uniform vec2 resolution;
varying vec4 v_color;
uniform sampler2D midi;
uniform sampler2D note;
s.options.numBuffers = 1026*2;
s.options.memSize = (512*1024);
s.options.device = "Soundflower (64ch)";
s.options.numOutputBusChannels = 16;
//s.options.maxLogins = 50;
s.waitForBoot {
~dirt = SuperDirt(2, s); // two output channels, increase if you want to pan across more channels
//~dirt.loadSoundFiles("/Users/digitalohm/samples/*");
~dirt.loadSoundFiles("/Users/digitalohm/Library/Application Support/SuperCollider/downloaded-quarks/Dirt-Samples/*");
s.sync; // wait for samples to be read
@digitalohm
digitalohm / tidal.boot
Created December 30, 2018 16:58
old tidal.boot file with options, clearly breaking everything
:set -XOverloadedStrings
:set prompt ""
:module Sound.Tidal.Context
(cps, nudger, getNow) <- cpsUtils'
(d1,t1) <- superDirtSetters getNow
(d2,t2) <- superDirtSetters getNow
(d3,t3) <- superDirtSetters getNow
(d4,t4) <- superDirtSetters getNow
Channel 4 :
Release : 0.6900
PitchCV : 0B 0.50
ReleaseMod : 0C 1.00
ZonesCV : 0A
Zone 1 :
Sample : sampleA.wav
SampleEnd : 0
MinVoltage : +1.57
Zone 2 :
@digitalohm
digitalohm / gist:048058c8b1a9a61bbeb9b49808b603a7
Created April 25, 2018 19:10
multi threaded restore dbatools
# Get credentials and store them securely in an encrypted xml file
if (-NOT (Test-Path "${env:\userprofile}\DBA001.Cred")){
$Credential = Get-Credential
$Credential | Export-CliXml -Path "${env:\userprofile}\DBA001.Cred"
}
#Load the credentials
$SqlCredential = Import-CliXml -Path "${env:\userprofile}\DBA001.Cred"
# Create a CSV of all the databases that are in the availability group. This updates each time to be complete