/* Working reference for ATK coding style: Receiver-verbose
General Hierarchy:
- Receiver-verbose
- unless it is clearer in Functional-verbose
*/
// ~~~~~~~~~~~~~~~~~~~~
/* Working reference for ATK coding style: Receiver-verbose
General Hierarchy:
*/
// ~~~~~~~~~~~~~~~~~~~~
/* Working reference for ATK coding style: Receiver-sparse
General Hierarchy:
*/
/*** DDWSnippets config ***/ | |
DDWSnippets.autoEnable = nil; | |
DDWSnippets.verbose = true; | |
DDWSnippets.hotkeyCode = 50; // ` | |
DDWSnippets.hotkeyMods = 262144; // control key | |
DDWSnippets.put("SynthDef", | |
"SynthDef(\\##name##, { arg outbus = 0; |
// ~~~~~~~~~~~~~~~~~~~~ /* switch statements */ // ~~~~~~~~~~~~~~~~~~~~ ( var a = \two;
// 1a. functional style switch(a, \one, { 1 }, \two, {
/* Michael McCrea, Jo Anderson 2019 The code below is a modification of examples found in SuperCollider's Hilbert quark by Jo Anderson: https://github.com/ambisonictoolkit/Hilbert */
/* Preview the amplitude modulation of various phase rotation methods. */
( | |
~bufDur = 0.1; | |
b = Buffer.alloc(s, ~bufDur * s.sampleRate, 1); | |
) | |
// write a line to buffer: 5> 500 over FOUR seconds | |
// BufWr:loop = 0, so only the ramp from 0 > ~bufDur should be written | |
// but... run the synth (longer than the buffer duration), and value 500 | |
// is written to the buffer for some number of frames (which is less | |
// than a block size) | |
( |
IDE: | |
editor: | |
blinkDuration: 600 | |
disableBlinkingCursor: false | |
font: | |
antialias: 2 | |
family: Source Code Pro | |
size: 15 | |
highlightBracketContents: true | |
highlightCurrentLine: false |
( // enable repo class lib LanguageConfig.addExcludePath(Platform.resourceDir +/+ "SCClassLibrary"); LanguageConfig.addIncludePath("/Users/admin/src/supercollider-mtmccrea/SCClassLibrary"); LanguageConfig.store; thisProcess.recompile )
( // restore default class lib LanguageConfig.removeExcludePath(Platform.resourceDir +/+ "SCClassLibrary");
txtblk='\e[0;30m' # Black - Regular | |
txtred='\e[0;31m' # Red | |
txtgrn='\e[0;32m' # Green | |
txtylw='\e[0;33m' # Yellow | |
txtblu='\e[0;34m' # Blue | |
txtpur='\e[0;35m' # Purple | |
txtcyn='\e[0;36m' # Cyan | |
txtwht='\e[0;37m' # White | |
bldblk='\e[1;30m' # Black - Bold |
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/* PartConv, PartConv2: Test signal - Impulse or DC */ | |
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
// Testing the kernel at specific locations against expected | |
// output position, amp and delay | |
// SOME RESULTS: | |
// DonConv has errors in certain impulse positions once the 'ksize' gets to 2**19 (~12s @ 44.1k) at 44100 |