sudo pacman -S cmake jack2 qt5-base qt5-tools qt5-quickcontrols2
git clone --recursive https://github.com/supercollider/supercollider.git
# No help browser
cmake .. -DSC_USE_QTWEBENGINE=OFF
# No emacs
cmake .. -DSC_EL=OFF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| MiniPond is a tiny variant of the LilyPond note entry syntax. | |
| cdefgab - note name | |
| s - sharp | |
| f - flat | |
| ' - octave up | |
| , - octave down | |
| 4 - quarter note | |
| 2 - half note |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import subprocess | |
| proc = subprocess.Popen( | |
| ["sclang", "-i", "scqt"], | |
| stdin=subprocess.PIPE, | |
| stdout=subprocess.PIPE, | |
| stderr=subprocess.STDOUT, | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ( | |
| SynthDef(\cybernetic, { | |
| var snd, index, divide, cutoff; | |
| var freq; | |
| index = MouseY.kr(1, 7000, 1); | |
| freq = MouseX.kr(0.01, 40, 1); | |
| divide = 1; | |
| cutoff = 1; | |
| snd = LocalIn.ar(4); | |
| snd = Latch.ar(snd, PulseDivider.ar(snd.reverse, LPF.ar(snd, 10 * cutoff) * 1e5 * divide)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import scipy.special | |
| f0 = scipy.special.jn_zeros(0, 1)[0] | |
| print([list(scipy.special.jn_zeros(n, 10) / f0) for n in range(10)]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ( | |
| SynthDef(\kick, { | |
| var snd; | |
| snd = SinOsc.ar(50 * (1 + (8 * Env.perc(0.001, 0.05).ar) + (2 * Env.perc(0.001, 0.3).ar))); | |
| snd = snd + (SinOsc.ar(200 * (1 + (3 * Env.perc(0.001, 0.05).ar))) * Env.perc(0.001, 0.05).ar); | |
| snd = snd + (Hasher.ar(Sweep.ar) * Env.perc(0.001, 0.01).ar); | |
| snd = snd.tanh; | |
| snd = snd * Env.perc(0.001, 1.0).ar(Done.freeSelf); | |
| snd = snd ! 2; | |
| snd = snd * \amp.kr(1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ( | |
| SynthDef(\kick, { | |
| var snd; | |
| snd = SinOsc.ar(Env([400, 70, 50], [0.05, 0.2]).ar); | |
| snd = snd + (Hasher.ar(Sweep.ar) * Env.linen(0.001, 0.001, 0.001).ar); | |
| snd = snd * Env.perc(0.001, 1).ar(Done.freeSelf); | |
| snd = snd ! 2; | |
| snd = snd * \amp.kr(-10.dbamp); | |
| Out.ar(\out.kr(0), snd); | |
| }).add; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Ivo Ivanov ripoff: https://www.youtube.com/shorts/1uukKdBGsY0 | |
| ( | |
| SynthDef(\kick, { | |
| var snd; | |
| snd = SinOsc.ar(Env.perc(0.001, 0.3, curve: -8).ar.linexp(0, 1, 30, 400)); | |
| snd = snd + (SinOsc.ar(XLine.ar(4000, 100, 0.01)) * Env.perc(0.001, 0.01).ar); | |
| snd = snd + (BPF.ar(Hasher.ar(Sweep.ar), 8000, 0.5) * 3.dbamp * Env.perc(0.01, 0.03).ar); | |
| snd = snd * Env.perc(0.001, 0.2, curve: -1).ar(Done.freeSelf); | |
| snd = snd * 5.dbamp; |
/*
|_ | | | | / \ | \ | | |/ / \ \ / / _ | | | | | | | || | / _ \ | | | ' / \ V / | | | | | | | | | _ |/ ___ | |\ | . \ | || || | || | || || |// __| _||_\ || _/ _/
500,000 DAMN SUBSCRIBERS ON THE SYNTHDEF CHANNEL
/* This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the