Skip to content

Instantly share code, notes, and snippets.

@umbrellaprocess
umbrellaprocess / gist:7a4ffe994765fc195d95
Created August 16, 2014 04:38
Just intonation MIDI keyboard with SuperCollider
/**
* Just intonation MIDI keyboard with SuperCollider
*/
MIDIIn.connect;
s.boot;
(
SynthDef("umbSimpleFM",{
arg freq=440, gate=1, amp=1, pan=0;
@umbrellaprocess
umbrellaprocess / gist:973d2aa16e95bf329ee2
Last active December 16, 2021 08:53
A simple example of MIDI Keyboard for SuperCollider 3.6.x
/**
* A simple example of MIDI Keyboard for SuperCollider 3.6.x
*/
MIDIIn.connect;
s.boot;
(
SynthDef("umbSinewave",{
arg freq=440, gate=1, amp=1, pan=0;
@umbrellaprocess
umbrellaprocess / gist:5475886
Created April 28, 2013 04:32
2005年のコードを、Kyoto SuperCollider Meetingの間に修正…したかったけど途中で断念。TabletViewがエラーで動かない。
////////// SynthDef setup for "ANTARES" //////////
(
// Pad1
SynthDef("up-piano-24", {
arg freq=440, amp=1, outBus=0;
var x, e, mod, lfo;
e = Env.perc(0.01,1.2,1,-3);
x = SinOsc.ar(freq + SinOsc.ar(freq*3, 0, 200), 0, 1) * amp;
x = EnvGen.kr(e,1.0,doneAction: 2) * x;