Skip to content

Instantly share code, notes, and snippets.

View eirikblekesaune's full-sized avatar

Eirik Arthur Blekesaune eirikblekesaune

View GitHub Profile
@eirikblekesaune
eirikblekesaune / Not so strange times in Yann land anymore.scd
Last active October 17, 2018 12:51
Code used at Skandinavisk SuperCollider Klubb #2 @ NOTAM October 8th 2018
(
SynthDef('cristal', {
arg out = 4, freq,
ring = 0, atk = 0.001, sus = 1, rel = 5,
xp = 0.0, yp = 0.0, dist = 0.0, amp = 0.8, dur = 8;
var e = EnvGen.kr(
Env.perc(atk, rel, 1.0, -12),
doneAction: 2
);
var outsig;
@eirikblekesaune
eirikblekesaune / Notam Studio 3 ATK Decoder.md
Last active November 9, 2018 20:13
This is code plays sound files using the different decoders that were set up for Studio 3 at Notam

###Requirements This setup has been made for Mac using macOS 10.13.5. Untested on other versions of macOS. It assumes that you are installing SuperCollider and packages from scratch.

###Setup and install

  1. Download this folder: https://www.dropbox.com/sh/gbidyq2gxd3j2mq/AABeopzZvTJ6eZZsRyqhN9yta?dl=0
  2. Install the version of SuperCollider found in this folder:
    • Unzip SuperCollider3_10beta2.zip
  3. Install the RME MADI face driver for macOS:
@eirikblekesaune
eirikblekesaune / MaxJavascriptLog.js
Created March 9, 2018 10:31
For printing prettier and more informative in Max/js dev
//from: http://compusition.com/writings/js-live-api-logging
function log() {
for(var i=0,len=arguments.length; i<len; i++) {
var message = arguments[i];
if(message && message.toString) {
var s = message.toString();
if(s.indexOf("[object ") >= 0) {
s = JSON.stringify(message);
}
post(s);
@eirikblekesaune
eirikblekesaune / PprotoTventTypeTests.scd
Last active November 22, 2015 04:48
Pproto event type tests
///Testing event type 'allocRead'
(
s.waitForBoot({
SynthDef(\help_playbuf, { | out=0, bufnum = 0, rate = 1, startPos = 0, amp = 0.1, sustain = 1, pan = 0, loop = 1|
var audio;
rate = rate * BufRateScale.kr(bufnum);
startPos = startPos * BufFrames.kr(bufnum);
audio = BufRd.ar(1, bufnum, Phasor.ar(0, rate, startPos, BufFrames.ir(bufnum)), 1, 1);
audio = EnvGen.ar(Env.sine, 1, timeScale: sustain, doneAction: 2) * audio;