Kyma Forum
  Tips & Techniques
  natural numbers

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   natural numbers
robertjarvis
Member
posted 05 March 2013 17:48         Edit/Delete Message   Reply w/Quote
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
posted 05 March 2013 20:06         Edit/Delete Message   Reply w/Quote
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
posted 07 March 2013 10:17         Edit/Delete Message   Reply w/Quote
Thanks. That should do the trick!

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c