24 lines · 657 B · Text
RawDownload
// name: concat.ck// desc: FeatureCollector is really meant to be used for recording data for machine// learning analysis (see https://chuck.cs.princeton.edu/doc/language/uana.html),// but this example shows bare-bones usage of the UAana for something silly.//// author: Curtis Ullerich FeatureCollector fc =^ UnFlip unflip => dac;SinOsc one => Flip f1 =^ fc;TriOsc two => Flip f2 =^ fc;.5 => one.gain => two.gain; 300 => int freq;freq => one.freq;2*freq => two.freq;second/freq => dur period;(period/samp)$int => int size; // number of samples in a periodsize => f1.size => f2.size; while(true){    period => now;    unflip.upchuck();}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t