Relationship Between Max and Jitter Data Types
The tutorials are unclear as to how Jitter data types and Max data types relate. For instance, it says that scalebias converts to floats internally, but doesn’t specify if they mean float32 or float64–which is it, and how would I find this in the documentation? It also says that chars are represented as ints or as floats–how do I determine which in a given case, and how can they be treated as ints if Jitter does not have an int data type, but instead just has char, long, float32, and float64? Also, are the two representations of char actually separate data types, or are they two display formats for one data type?
When we say "int" in Max, we really mean long integer, 32-bits, a.k.a. "long" in Jitter. There’s no real case of a short (16-bit) int in Max.
Float data and MSP signal data are 32-bit floats when passed in Max, regardless of whether they’re treated internally as doubles in any given object.
Char data has only 256 possible values, usually shown as ints 0 to 255, but can sometimes usefully be thought of as float values 0. to 1. with resolution of about 0.004. (See example below.)
One often specifies the attribute values of Jitter objects as floats, even if the data being processed is of type char. Does it really matter whether to you whether jit.scalebias uses double or float internally? (It probably just uses char.)
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 589.3ocwV11aaBCDG+0vmhSn8xrHaJNi020OGSUUNDmDWA1HroKYU8697C3F ZIoiDkQTThCGGG28y+uCdMNJYobGSk.2C+BhhdMNJxYxZHp63njJ5thRpx4V hf8a4xmSl4OklsS6Lqgkv5fU9JmMieeGSBFWKEZAsh4N0CMbZY3Lh1Jtnjoc 2.bO2U7+3bGmNGcvWYqN3bZm0ZptXKWr4oFVg1WM3eZuH.e2B6Rd5bxLHEMG AO1cM9vn2Wy7WPxRpXSxLHYcojZBxiV2dKN19yrQBGykZRviggrqKFLdxqL2 IiUzkyFW.AhMBejMlhJDd76ge.v7fZVG4tHfUHqpXB8.4zdYKTPEfplUvWuG J1RafWnksLEPUf6NaVZjUl5GzRSZFhQIWvJjsBceHzeqH8+ohDcZpml4.MFk 4VV3N5tLK1u.xUwTJ5F1.xoX5BVYIfLeL.C9F9XxQzYxfzygA3ufAjE8JdLx uj+UskWlv5Diopa3GTa8.R9sRSjm6Z9vKBhgPm3UTRr4fj3HkN4FIEBCg7Rg EjIVI7LWOuhpa36.re7BFNZqxM94WgQ0jACoGvGSI8jujrCkutCjW1pA8V1d 2TYonbOrk9By7Oy20115toyidJ7OtQcbc5sTjqwCSN9TXGjcEwmd4HWDs1+H CUx1lhv9P38dLJpvd0JlRyETMWJ56joeDNrgtkuZESzO+q3qpklIVcIwI1QO qbB8OxIxzlRYiHkvSaNMFJgmVJMBsT9zlQnqOjRMOCfXeFPl+c0wuezmZMie K9u.Swy7KC -----------end_max5_patcher-----------
Forums > Jitter