|
Kyma Forum
![]() Tips & Techniques
![]() natural numbers
|
| next newest topic | next oldest topic |
| Author | Topic: natural numbers |
|
robertjarvis Member |
I would like to make a series of subtractions all equal zero, such as 4-6=0 and 3-9=0. I had thought that this would be possible if I were able to ask Kyma to compute the answer as a natural number (1,2,3,4). Is there an easy way to do this (a little like adding abs to get the absolute value)? IP: Logged |
|
SSC Administrator |
Is the expression sometimes not negative? One way to do it (in CapyTalk) might be: (4 - 6) vmax: 0 That way, any subtraction that goes below zero would stick at zero. If you want integers, you could combine it with rounding or truncation, e.g., (4 - 6.1) truncated vmax; 0 [This message has been edited by SSC (edited 05 March 2013).] IP: Logged |
|
robertjarvis Member |
Thanks. That should do the trick! 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.