-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MIDI output messages as integers #294
Comments
The only issue is then for the GUI views, how to display this properly |
Can't this be done with a (Control) |
When you do byte-encoding you do not want to go through a floating point representation as is the case in a spec (which always converts to/from a 0 to 1) I guess it could be an output collective where you combine all of the options into one byte and then send it. I have to admit that I am not uptodate enough with the code base to know how much of the work on Collectives that I put in is still in the current version. The ItemSpec comes close, but you'd want to pass in values as symbols/strings and then output integers. |
For reference, here is the function to set the encoder ring in meter mode:
and here in the other mode:
Another common case seems to be the LED [ \off, \blink, \on] case. |
@adcxyz , can you comment? |
AFAIR, all the collective stuff is still there and works. |
Speaking of |
This seems similar to the CinematixWheel #117, hardware with indiosyncratic ways of compressing data into (MIDI) messages. Like there, I think it good to provide a specific solution for the case and document its logic; like there also, I don't understand what the general case to solve is. For a no-spec MKtlElement, one could use MAbstractElement; for mapped/unmapped integer values, one could write a ControlSpec subclass with a flag whether to do .asInteger on the output or not. |
@sensestage ping |
In some cases it is useful to set the raw value of a MIDI output element, as the bytes may have some clever encoding.
This is for example the case with the Tascam US-2400 for the encoder ring display.
I will commit an IntegerClip class which can act as a spec to restrict a value to a certain integer range.
The text was updated successfully, but these errors were encountered: