diff --git a/.gitignore b/.gitignore index e43b0f9..75884d6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .DS_Store +*.wav diff --git a/kabbalistic-sound-art.scd b/kabbalistic-sound-art.scd new file mode 100644 index 0000000..4e66a39 --- /dev/null +++ b/kabbalistic-sound-art.scd @@ -0,0 +1,26 @@ +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 \ No newline at end of file