You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
755 B
Plaintext
26 lines
755 B
Plaintext
s.boot;
|
|
|
|
a = CSVFileReader.read("/home/lcoogan/snd/releases/kabbalistic-sound-art/gematria.csv")
|
|
|
|
|
|
b = a[1..].collect { |row| row[0].asFloat }; // Skip header row
|
|
|
|
//b.postln;
|
|
|
|
~freqs = Buffer.loadCollection(s, b); // Load the values into a SuperCollider buffer
|
|
|
|
(
|
|
~synth = {
|
|
//var index = Phasor.kr(0.0001, 1, 0, b.size); // Moves through list at 1 Hz
|
|
var index = Line.kr(0, b.size, 30);
|
|
var freq = Index.kr(~freqs, index) * 50; // Get frequency from buffer
|
|
var signal = Pan2.ar(LFSaw.ar(freq, 0, 0.2)); // Generate signal (LFPulse)
|
|
//Pan2.ar(LFPulse.ar(freq, 0, 0.2)) // Generate sine wave
|
|
var filteredSignal = HPF.ar(signal, freq); // Modulate filter frequency with values from the table
|
|
//signal
|
|
filteredSignal
|
|
|
|
}.play;
|
|
)
|
|
|
|
~synth.free |