Skip to content

Instantly share code, notes, and snippets.

View schollz's full-sized avatar
🎺

Zack schollz

🎺
View GitHub Profile
-- melody generator
engine.name="PolyPerc"
musicutil=require("musicutil")
function init()
engine.release(2)
engine.amp(0.3)
local chords={"I","vi","IV","iii"} -- change to any chords
local movement_left=6 -- change to 0-12
<html>
<head>
<style>
html {
font-family: Roboto, arial, sans-serif;
font-size: 18px;
margin: auto;
max-width: 700px;
}
@schollz
schollz / audioSynths.scd
Created November 3, 2022 16:49 — forked from furenku/audioSynths.scd
INSTRUMENT SynthDefs
SynthDef(\audioBus, {|inBus=99,outBus=99,amp=1,pan=0|
var sig = In.ar(inBus);
Out.ar(outBus, Pan2.ar(sig * amp,pan))
}).store;
SynthDef(\audioInput, {| inBus=0, out = 0, gate=1,amp=1|
@schollz
schollz / supersaw-shooter.scd
Created November 2, 2022 22:10 — forked from audionerd/supersaw-shooter.scd
SuperSaw (Roland JP-8000 and JP-8080) in SuperCollider
// via https://www.nada.kth.se/utbildning/grukth/exjobb/rapportlistor/2010/rapporter10/szabo_adam_10131.pdf
(
{ | freq = 523.3572, mix=0.75, detune = 0.75 |
var detuneCurve = { |x|
(10028.7312891634*x.pow(11)) -
(50818.8652045924*x.pow(10)) +
(111363.4808729368*x.pow(9)) -
(138150.6761080548*x.pow(8)) +
(106649.6679158292*x.pow(7)) -
@schollz
schollz / perlin.lua
Created October 25, 2022 22:10 — forked from kymckay/perlin.lua
Perlin Noise in Lua
--[[
Implemented as described here:
http://flafla2.github.io/2014/08/09/perlinnoise.html
]]--
perlin = {}
perlin.p = {}
-- Hash lookup table as defined by Ken Perlin
-- This is a randomly arranged array of all numbers from 0-255 inclusive
@schollz
schollz / raspi_sc_install.sh
Created July 15, 2022 17:43 — forked from madskjeldgaard/raspi_sc_install.sh
Raspberry pi 3 SuperCollider installation and setup script
#!/bin/bash
#
# Steps to install and set up a headless raspberry pi (3) for SuperCollider use
# This is primarily copied from https://supercollider.github.io/development/building-raspberrypi
#
#
# Get updated
sudo apt-get update
@schollz
schollz / againagain.scd
Created May 24, 2022 12:36 — forked from karnpapon/againagain.scd
Cadson Demak - again_again(TBC-interpretation)
/////////////////////////////////////////////////////////////////////////////////////////
************************************** INITIALIZE ***************************************
/////////////////////////////////////////////////////////////////////////////////////////
Server.default.options.outDevice = "Built-in Output";
s.options.numBuffers = 2048 * 16;
s.options.memSize = 8192 * 16;
s.options.maxNodes = 1024 * 32;
// s.options.numOutputBusChannels = 12;
s.options.numInputBusChannels = 0;

my faust code. the faust code generates a "teensy" library "Volume.h" and "Volume.cpp" from https://faustide.grame.fr/

import("stdfaust.lib");
gain		= vslider("[1]", 0, -70, +4, 0.1) : ba.db2linear : si.smoo;
process		= *(gain);

then my teensy code here (volume.ino) will pass through audio unless I comment out volume.setParamValue("gain",0.5);!

@schollz
schollz / deep_dreams_music_video.ipynb
Last active April 18, 2024 14:49
aimovie.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
linking libraries
cleaning up...
compiling class library...
Found 738 primitives.
Compiling directory '/usr/local/share/SuperCollider/SCClassLibrary'
Compiling directory '/usr/local/share/SuperCollider/Extensions'
Compiling directory '/home/we/.local/share/SuperCollider/Extensions'
Compiling directory '/home/we/norns/sc/core'
Compiling directory '/home/we/norns/sc/engines'
Compiling directory '/home/we/dust'