Skip to content

Instantly share code, notes, and snippets.

@joshuazt
Last active February 19, 2021 01:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuazt/56ff8ff8243048850c439dda1a3587e6 to your computer and use it in GitHub Desktop.
Save joshuazt/56ff8ff8243048850c439dda1a3587e6 to your computer and use it in GitHub Desktop.
//define scales
float seed = ch('seed') + @primseed;
@Rand_Pscale = fit01(rand(i@ptnum+seed+225), -ch('Rand_Scale'), ch('Rand_Scale')) * chramp("Ramp_Scale", @curveu);
@Uniform_Pscale = chf('Scale') * chramp('Ramp_Scale', @curveu);
//apply pscale
@pscale = @Uniform_Pscale + @Rand_Pscale;
@joshuazt
Copy link
Author

REQURIED ATTRIBUTES:
resample-
curveu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment