Hello Max community!
I finally get the courage to start with Java in Max, that means understanding how mxj works, as far as I know.
I intend to make a little java external with the following description:
- It has 3 inlets (it's a sort of a configurable switch)
1st inlet - int values;
2nd inlet - accept int values, that should correspond to the number of outlets the object has. The value received should be >= 2;
3rd inlet - int value between 1 and the value of the 2nd inlet, that decides which outlet outputs the values inputed in the 1st inlet.
it should send an error message to the max window if the user chooses a value superior to the number of outlets, and it should send the values of the first inlet to the first outlet, if that error occurs.
Any help is truly appreciated!
And if you could comment the code, that would be a must!
Thank you in advance for any help