float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
return mix(rand(fl), rand(fl + 1.0), fc);
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Feb 27 02:46:51 2018 | |
@author: memo | |
very quick & simple dictionary / json based graph builder for tensorflow | |
( inspired by https://github.com/dribnet/discgen/blob/master/discgen/vae.py#L43-L163 ) | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////// | |
// Using the very comfotable Ndef from JITLIB | |
/////////////////////////////////////////////// | |
( | |
Ndef(\reverb, { | |
| in = 2, roomsize = 200, revtime = 40, damping = 0.1, inputbw = 0.5, | |
spread = 15, drylevel = 0.2, earlylevel = 0.1, taillevel = 0.2, wet = 0.8 | | |
var sig = \in1.ar; | |
sig = GVerb.ar(sig, roomsize, | |
revtime, |