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 / SC_MultiChannel.scd
Created May 11, 2015 08:02
multichannel in SuperCollider: Array argument to Out vs. Pan2, PanAz. Watchout ...
SynthDef("nick",{Out.ar(0,SinOsc.ar(Rand(300,500),0,0.3))}).
ServerMeter(Server.default);
{ Out.ar(0, WhiteNoise.ar(0.1)) }.play;
@iani
iani / loopieraclass20150512.sc
Last active August 29, 2015 14:21
Very early almost empty draft for loop player with GUI, as a class
/* File 2 in "Loopiera"
20150512, 19
Define a class to hold the data and processes (variables and methods)
that are needed for each instance of a loopiera.
The class must be in a file ending in .sc, and placed in the Extensions directory.
Make the Extensions directory, if it does not already exist:
@iani
iani / TolixHopscotch.scd
Last active August 29, 2015 14:21
a little glitchy dance with 3d object data. Tested with Tolix 3D data from Sketchup Warehouse
//: First thing to do:
Server.default.boot;
//: Recording!
// Do this at the beginning, before setting up, but after booting the server:
Server.default.prepareForRecord;
//: Do this to start recording:
Server.default.record;
@iani
iani / level_order_sort.scd
Created June 2, 2015 10:04
Re-order a list in level-order (breadth-first traversal), in SuperCollider, using recursion
(
f = { | list |
if (list.size == 0) {
[]
}{
list.collect({ | x | (if (x.size > 0) { x[0] } { x })})
++ f.(list.select ({| x | x.size > 0}).collect ({|x| x [1..]})
.select ({|x| x.size > 0}));
}
}
@iani
iani / sc_first_steps_01.scd
Created October 2, 2015 09:04
Session 1 of Computer Music Class - first steps in SuperCollider (2015-10-02)
().play;
(degree: 15).play;
(degree: 15, dur: 0.1).play;
(degree: 15, dur: 10.1).play;
@iani
iani / TwoWorldsSoundNames
Last active October 31, 2015 15:27
Two Worlds List of Sounds + default path
[ '*null-buffer*', 'Catholic_Church', 'Construction_Mixer_Small', 'Customer_Punks', 'Employee_BacktoTheirCountries', 'Forest', 'Forest_leaves', 'Fridge', 'GC_PlayingCards', 'Ghana_problems', 'Haircut_Machine', 'Kurd_baglama', 'Kurdish_makingTea', 'Kurdish_win', 'Magazi_Speech_Foreigners', 'Magazi_Speech_for_Housing', 'Muslims_Eating', 'Nepal_afraid', 'Pakistani_Playing_Cricket', 'Papas_Planodioi', 'Philippines_Karaoke', 'Philippines_Party_Out1', 'Philippines_Party_Out2', 'Philippines_Talking1', 'Polish_kultur', 'Pontiacs_Chatting_Noisy', 'Syria_soundOftheBomb', 'TC_PlayingCards', 'TC_nooneleft', 'Truck_incar', 'construction1', 'construction2', 'haircut1', 'haircut2', 'halloumi1_distantVehicle', 'halloumi2', 'halloumi3_onsalt', 'hodjawithnoise', 'maronites_hymn', 'maronites_hymn2', 'muslims_hymn_mobile', 'philippines_pray', 'romaSing_Kormakiti', 'talk1', 'talk2_pelop', 'tourist_zone' ]
/Users/twoworlds/Library/Application Support/SuperCollider/sounds/
Names of Tiddlers:
Just replace the _ from the name of
@iani
iani / nelly.scd
Created May 27, 2016 12:37
some notes on patterns from a lesson with Nelly Pasakou
//:
a = Array.newClear (10);
a.put (4, 50);
a.at (0);
a.at (4);
a add: 1000;
@iani
iani / vangelis.scd
Created May 27, 2016 12:59
Short example from a session with Vangelis
// Wind
//:
~wind = { | freq = 1000 |
// Alternative:
// freq = \freq.kr (1000);
LPF.ar (
WhiteNoise.ar (0.2),
freq
)
@iani
iani / scremoteserverfix
Created May 20, 2017 17:18
enable working with remote servers in supercollider
*remote { arg name, addr, options, clientID;
var result;
result = this.new(name, addr, options, clientID);
// result.startAliveThread;
result.setRunningTrue;
^result;
}
setRunningTrue {
serverRunning = true;
@iani
iani / .jackdrc
Created November 23, 2017 13:46
Location of doc for jacdrc configuration for Scsynth on raspberry pi
http://swiki.hfbk-hamburg.de/MusicTechnology/634