Skip to content

Instantly share code, notes, and snippets.

View iani's full-sized avatar
💭
sc-hacks, sonarts_compmus_2020, emacs-prelude-personal-arch, sc-hacks-redux, dlb

Iannis Zannos iani

💭
sc-hacks, sonarts_compmus_2020, emacs-prelude-personal-arch, sc-hacks-redux, dlb
View GitHub Profile
@iani
iani / jekyll-google-calendar
Created February 9, 2014 22:09
Embed google calendar in a web page for rendering by Jekyll. Copied from: https://github.com/StevenBlack/qst-jekyll-bootstrap/blob/master/calendar.html see it in action here: http://www.queenssailing.ca/calendar/
---
layout: page
title: Queen's Sailing Calendar
permalink: /calendar/
type: info
header_text: Queen's Sailing Calendar
calendar: true
---
<div class="span3">
<h3>List of 2013 Events</h3>
@iani
iani / additive_synth
Last active June 21, 2019 02:03
Additive Synthesis Basics on SuperCollider
// One Sine:
{ SinOsc.ar(400, 0, 0.1) }.play;
// Two Sines:
(
{ SinOsc.ar(400, 0, 0.1) }.play;
{ SinOsc.ar(800, 0, 0.1) }.play;
)
// Two Sines added, in one synth:
@iani
iani / sc_feedback_clamp
Last active August 29, 2015 13:57
Very simple way to limit amplitude of a feedback synth, in SuperCollider
// Pass the signal only when its amplitude is below a given threshold.
(
a = {
var source, clamp;
source = In.ar(Server.default.options.numInputBusChannels);
source = CombN.ar(source); // token effect: edit to add more fancy stuff
clamp = Amplitude.kr(source) < \threshold.kr(0.1);
Out.ar(0, source * clamp);
@iani
iani / array2cycles
Created March 12, 2014 20:25
pi, sin, arrays, plot: Calculating cps to sampling rate ratio, from a series of integers. Algo Comp class AUD812
/*
Resampling example
For class.
Wed, Mar 12 2014, 18:21 EET
*/
//: Create a signal;
~signal = (0..(60 * 1000));
~signal.plot;
@iani
iani / dartmouthfm
Last active August 29, 2015 13:57
location of example for envelopes, fm and am synthesis in supercollider
http://music.dartmouth.edu/~cc12/sc_code/simple_env_mod(fm,am)
(Note: These are very old examples. The Spawn code refers to SC 2. Some of these do not work in SC3.)
@iani
iani / pmfmsc
Created March 14, 2014 10:02
Examples of PM and FM in SuperCollider
// From: http://www.mat.ucsb.edu/275/CottleSC3.pdf
{PMOsc.ar(1000, 1367, 12, mul: EnvGen.kr(Env.perc(0, 0.5), Impulse.kr(1)))}.play
(
{
Mix.ar(
SinOsc.ar(abs((-20..20)*1367 + 1000),
mul: 0.1*EnvGen.kr(Env.perc(0, 0.5), Impulse.kr(1)))
)}.
@iani
iani / sclanguageconfig
Created March 30, 2014 17:45
How to configure which folders are compiled when SuperCollider sclang starts up
This piece of info is buried deep in help, and difficult to find.
However it is quite handy: It saves you from having to copy or to put aliases of folders with your own class definitions
into the SuperCollider user app support dir / Extensions folder.
Instead you add paths of folders like this:
LanguageConfig.addIncludePath("...");
And you can exclude paths that cause problems like this:
@iani
iani / TsepSem140802Routines.scd
Created August 2, 2014 18:40
Routines in SuperCollider - from Tsepelovo seminar - needs buffers loaded ...
q = { PlayBuf.ar(1, b, -1, 0, 0, 1) * 5 }.play;
q.free;
//
(
f = {
q = { PlayBuf.ar(1, b, -1, 0, 0, 1) * 5 }.play;
q.free;

Supercollider

Noise

Filters

Filters to explore

HPF
LPF
RHPF
RLPF
Resonz
@iani
iani / TsepFerries.org
Created August 3, 2014 10:27
Ferry Schedule Igoumenitsa-Kerkyra Sunday 140803

ships igoumenitsa - corfu: 08/03/14 13:20:47

Sunday, 3/8/2014 13:30 - 15:15

Ηγουμενίτσα - Κέρκυρα NORTH WEST FERRIES AGIOS PANTELEHMON

Sunday, 3/8/2014 16:15 - 17:45