Skip to content

Instantly share code, notes, and snippets.

index a b c d e f g h
0 1.0000 0.0624 -0.0624 -1.0000 0.0215 0.0215 -1.0000 -1.0000
1 -0.9579 -0.9861 -0.6310 -0.8100 -0.9094 -0.6415 -0.9466 -0.9265
2 -0.9933 -0.5758 0.3697 -0.5160 0.8868 -0.2780 -0.9969 0.1435
3 -0.8254 -0.8311 0.4734 0.6095 0.3770 0.6794 -0.7360 -0.9298
4 -0.9896 0.5811 0.2703 -0.5235 0.9200 -0.6865 -0.7522 -0.9121
5 0.8905 0.9535 0.9544 0.8007 0.6632 0.6331 0.7218 0.7382
6 0.5355 -0.9440 -0.6908 0.6977 0.1048 0.4740 0.5587 -0.7965
7 -0.5221 -0.6041 0.9833 0.9924 -0.8704 -0.9585 -1.0000 -0.9999
8 0.3689 -0.4448 0.4905 0.4718 -0.9603 -0.0743 -0.3943 1.0000
symbol date price
MSFT Jan 1 2000 39.81
MSFT Feb 1 2000 36.35
MSFT Mar 1 2000 43.22
MSFT Apr 1 2000 28.37
MSFT May 1 2000 25.45
MSFT Jun 1 2000 32.54
MSFT Jul 1 2000 28.4
MSFT Aug 1 2000 28.4
MSFT Sep 1 2000 24.53
@jarmitage
jarmitage / aux-task.cpp
Last active February 28, 2024 09:17
Bela auxiliary task pattern
#include <Bela.h>
AuxiliaryTask myTask;
void myTaskProcess (void*);
bool setup(BelaContext *context, void *userData)
{
myTask = Bela_createAuxiliaryTask(myTaskProcess, 50, "bela-task");
return true;
}

/** This script exemplifies the use of SuperCollider on Bela. When a project contains a _main.scd file, sclang is started and the content of the file is executed. If you want to interact with SuperCollider running on the board from within the SuperCollider IDE on your computer, check out the 12-SuperCollider/remote examples instead. Those files also include more code examples to interface with Bela-specific UGens. */

// live audio input
(
SynthDef(\anintest, { |out, sustain = 1, speed = 1, begin = 0, end = 1, pan, accelerate, amp = 1, offset|
var env, sound, rate, phase;
phase = Line.ar(begin, end, sustain);
rate = (begin + 1) * (speed + Sweep.kr(1, accelerate));
sound = SinOsc.ar( AnalogIn.ar( 0 ).poll.exprange( 200, 5000 ), 0, 0.1 );
OffsetOut.ar(out,
DirtPan.ar(sound, ~dirt.numChannels, pan, amp)
)
@jarmitage
jarmitage / init.tidal
Last active December 6, 2018 11:01
init.tidal
import Sound.Tidal.SpectralTricks -- https://github.com/datamads/SpectralTricks
import Sound.Tidal.Scales as Sc
import Sound.Tidal.Chords as Ch
let (accel,_) = pF "accel" (Just 0)
(bits,_) = pI "bits" (Just 0)
(carPartial,_) = pF "carPartial" (Just 0)
(detune,_) = pF "detune" (Just 0)
@jarmitage
jarmitage / harmony.tidal
Created September 20, 2017 23:16
harmony and ur
do
let key = "[0 2 4]/6"
mScale = Sc.chromatic
melody = "[[7 4 5](5,8)]*2"
harmony = "0"
tonic = "[0(3,8) [<[-7*2 -5*2] [3*2 5*2]>]]"
bScale = mScale
bass = tonic
d1 $ slow 2
$ (|+| n key) $ stack [
@jarmitage
jarmitage / tab.tidal
Created September 29, 2017 03:20
Guitar tab -> TidalCycles
-- (untested!)
{-
Parsing guitar tabs into Tidal code. Because.
Tab template for a six string guitar in standard tuning:
e|-------------|
B|-------------|
@jarmitage
jarmitage / midi.tidal
Created September 29, 2017 03:21
MIDI copy/paste -> TidalCycles
{-
Importing MIDI to TidalCycles
Beethoven 7th Symphony II Allegretto
Time signature: 2/4
Key: C Major
@jarmitage
jarmitage / livecodingyoutube.js
Last active March 30, 2021 19:42
Live Coding YouTube at ICLC 2017
// livecodingyoutube.github.io
// iclc.livecodenetwork.org/2017/
// search("andrew sorensen")// click a video
// search("koyaanisqatsi part 7")
// search("inception building")
// search("godzilla original")
// note: shift+enter to run, highlight blocks to run multiple lines at once