![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: curved random | |
franz Member |
![]() ![]() ![]()
Is it possible to create a "curved" random sound like the posted one (coming from the doepfer random module)? The digital random is either in steps or, if smoothed in straight lines. The curved one sounds rather different esp. when it modulates the pitch of a sound. Thanks a lot! IP: Logged | |
keph Member |
![]() ![]() ![]() sure, there are a few different ways to do this, but the easiest that comes to mind is using the random capytalk arguments along with smooth. check out page 486-488 of the reference guide. how controllable do you want it as well? i could see something like this: <noise sound> nextRandom smooth: 50 ms in the noise sound by using some of the controls there you can control how often nextRandom is triggered. also depending on the distribution, you may want to use nextRandExp instead. you can also control the smoothing rate if you so desired. another method could involve a variable lowpass filter IP: Logged | |
SSC Administrator |
![]() ![]() ![]() You could also select from a normal distribution (more likely to be centered around zero, less likely to be an outlier) by using the nextNormal message. Other interesting noisy options are offered by the HotPink checkbox in the Noise module or the nextChaotic: expression. If you use nextRandom to index into an array of points (using the into: expression) you can shape the noise in arbitrary ways. For audio rate noise, you can feed the Noise module into an InputOutputCharacteristic. [This message has been edited by SSC (edited 19 December 2005).] IP: Logged | |
SSC Administrator |
![]() ![]() ![]() I think you can emulate the attached sample by feeding Noise (or, for subaudio controls, a Constant containing one of the random expressions) in the InputOutputCharacteristic and setting the Smoothing to 1 in order to do a spline interpolation between points. As a bonus, you can use the input/output values to reshape the noise into arbitrary distributions, but if you make the input values equal the output values, you will just get the "curved" interpolation between uniformly distributed random values. IP: Logged | |
SSC Administrator |
![]() ![]() ![]() It might also be interesting to add some "physics" to the stream of random numbers using something like the following: (0.1 s random) swarmFollowFromPosition: 0 velocity: !Vel acceleration: !Accel friction: !Friction which would let you move from one random value to the next with adjustable velocity, acceleration, and some friction. The result is a kind of smooth curve similar to the one you attached. When you use it to control a parameter, you get the feeling of a gestural or physical response that has speed and resistance to it. IP: Logged | |
bruno Member |
![]() ![]() ![]()
IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() ![]() |
This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.