-
This is a small utility i wrote to make it easy to detect the pitch of incoming audio (i.e. your voice into your mic). I recommend binding the execution of "~pitchTrack.();" to a keyboard shortcut in your editor/IDE. It's incredibly conveni ...
-
A quick utility function for decoding UTF-8 characters in %hex codes (such as for web URLs). Save the code into a .sc file in your Extensions/ directory, recompile, and then: "%E5%A4%A7%E5%AE%B6%E5%A5%BD".decodeHex; -> 大家好 This proba ...
-
some missing string operations: split on regex; replace regex; between regex by 56228375 (56228375) Code
some useful string operations which appear to be absent in sclang // note: first install quark https://github.com/shimpe/scstringext // using Quarks.install("https://github.com/shimpe/scstringext"); // then you should be be able to r ...
-
If you have a large class with a lot of methods, you probably want to sort the methods in the auto-generated SCDoc template into an order that's meaningful for the end user (related methods grouped together, more important methods toward th ...
-
useful for expanding or reducing arrays by 2^x. I would like to know if there is a more concise way to write this! Any suggestions? (duplicate post, sorry! forgot to log in!) ( b = {|x,y| var arr = List[]; case {y % x ...
-
This is a setup that allows you to plot a Synth() output, using a buffer. See https://scsynth.org/t/what-is-the-best-way-to-plot-a-synth/5160 . s.boot; ( var bufferSize = s.sampleRate * 1; // Buffer size is fixed. s.sampleRate * seconds ...
-
... phore. ~locks = List[]; ~executing = false; // Utility. Translate Symbols arrays to Strings ~symbolsArrayToString = { |arr| var res; if( arr.size == 0 ) { res = arr.asString; } { ...
-
Helper function to extract audio from a youtube video, and save it to a file. Note: Linux/OSX/Unix only (uses .unixCmd), needs yt-dlp to be installed, the download procedure is synchronous // Helper function to extract audio from a youtu ...
-
Utilizing some Ar's, Kr's, and Pbinds, we can find ourselves in a counter of the fourth mind. ( SynthDef(\closeN, { |out=0, freq=440, gate=1| var son = BPF.ar(in: WhiteNoise.ar(20!2), freq: freq, rq: 0.005, ...
-
One of the common questions on the list is about handling very large sound files with BufRd. BufRd indexes into the buffer using a single-precision float, which supports buffers only up to 2**24 frames (a bit more than six minutes at 44.1 k ...