Example #1
0
        public static Texture2D Noise(int wh, string hexcolor, NoisePattern pattern)
        {
            var color   = hexcolor.ToColor();
            var texture = new Texture2D(Global.Device, wh, wh);
            var pixels  = NoiseGen.Patterns[pattern].Invoke(wh, wh, color);

            texture.SetData(pixels);
            return(texture);
        }
Example #2
0
 public void Init(Track owner, Note note, ADSR env, NoisePattern pattern)
 {
     Init(owner, note, env);
     _pat = pattern == NoisePattern.Fine ? Utils.NoiseFine : Utils.NoiseRough;
 }
Example #3
0
 public void Init(byte ownerIdx, Note note, ADSR env, NoisePattern pattern)
 {
     Init(ownerIdx, note, env);
     pat = (pattern == NoisePattern.Fine ? GBSamples.NoiseFine : GBSamples.NoiseRough);
 }
Example #4
0
 internal void Init(byte ownerIdx, Note note, ADSR env, NoisePattern pattern)
 {
     Init(ownerIdx, note, env);
     pat = (pattern == NoisePattern.Fine ? fine : rough);
 }