Skip to content

Instantly share code, notes, and snippets.

View dyfer's full-sized avatar

Marcin Pączkowski dyfer

View GitHub Profile
@dyfer
dyfer / .gitignore
Last active October 20, 2023 07:52
brew install universal
.DS_Store
brew-universal/*
// CtkBuffer sync method
// get a folder of files
FileDialog({|path| ~path = path}, {}, 2, 0, true);
~path;
// or set manually
// ~path = /path/to/files
~path.openOS
@dyfer
dyfer / test class library changes from src.scd
Last active September 11, 2020 23:02
SuperCollider: switch configuration to test class library changes directly from the source repository
// a script for testing class library changes living outside of SuperCollider installation (e.g. in the source repository)
// please note, if using non-default language config file, this only works on SC 3.11 and up, due to a bug in previous versions
// this is not 100% foolproof, but should work in most cases; tested on macOS
//posting
LanguageConfig.includePaths.do(_.postln);
LanguageConfig.excludePaths.do(_.postln);
Platform.resourceDir +/+ "SCClassLibrary";
//check state
@dyfer
dyfer / scsynth_main.cpp
Created July 6, 2019 03:10
test for unicode support for device names in scsynth
/*
SuperCollider real time audio synthesis system
Copyright (c) 2002 James McCartney. All rights reserved.
http://www.audiosynth.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
@dyfer
dyfer / sc convolution tests
Last active June 8, 2019 00:32
Tests for various convolution UGens in SuperCollider
// testing convolution behavior
// s.options.hardwareBufferSize = 2048; //optionaly test with hardware buffer size equeling kernel size...
// s.reboot;
( // allocate three buffers
~kernelSize = 2048;
~kernel = Buffer.alloc(s,~kernelSize);
~inOut = Buffer.alloc(s, ~kernelSize * 2, 2); //
// An ad hoc decoder builder using mode matching (pseudo-inverse)
// FuMa, MaxN normalized
// created by Mike McCrea
// adapted by Marcin Pączkowski
/*
– 0° –
/ front \
90° ^ 270°
\ /
– 180°–