# CodyAALOGuha

/permenant student.

github.com/codyguha

aalo.guha@gmail.com

soundcloud.com/aaloguha

## --synth-ia

an experiment with socket.io, web audio and flying nyan cats

SYNTH-IA
go and make some tunes with nyans !!! Hopefully someone will be there to play with :)

## --make_all_the_notes

fun with midi math in ruby

```def make_all_the_notes
(0..127).each do |midi_note|
generate_frequencies(midi_note)
end
end

def generate_frequencies(midi_note)
if midi_note == 0
@frequency = 8.1757989156
print frequency
else
f = 2**((midi_note.to_f-69)/12)
frequency = f*440                    ### silly perfect A's
print frequency
end
end

make_all_the_notes
```

## --o.dots

I have been having a lot of fun with webkitAudioContext... this .js sine wave osc generator seems to always end up in my javascripts folder...

o.Turn up headphones and move slider (note will playback on release).

```var audioCtx = new(window.AudioContext || window.webkitAudioContext)();
var gainNode
var o # oscillator!!!
var frequncy  # note frequencies
var duration  # note length
var volume    # note volume

function oscillatorOn(frequncy, duration, volume, fade) {
var o = audioCtx.createOscillator();
var gainNode = audioCtx.createGain();
o.connect(gainNode);
gainNode.connect(audioCtx.destination);
gainNode.gain.value = volume;
o.frequency.value = freq;
o.start();
o.stop(audioCtx.currentTime + duration);
setInterval(function() {
gainNode.gain.value > 0.001 ?
}, 50);
};
```

## --weird fishes/arpeggi

Turn me on to phantom.

## --(p)rometheus chords

Bill Evans on(p), Reflections in D(ellington)

required research for prometheus chords project.