• I hardly dare to ask this... But here we go.

    I have three midi controllers controlling the movement of a 3d-model. To keep the pan straight I have to use the great "pitch/yaw/roll to rotation" actor. then the data is saved. When I recall the data the 3d object behaves fine, but I really would like the midi controllers also to take their right position. So I'll have to recalculate the p/y/t info back to rotation info. Who knows, somebody has made something for this...

    Thanks, Peter


  • @plem some midi controllers (I have an ancient novation controller) that use continuous encoders have the ability to receive a level from midi, so you can send a midi cc signal and the controller will start at that level.

    If your midi controller does have continuous encoders, but does not allow you to send a current starting value you can also create a system that will use the controller to make relative adjustments. So the exact value of the controller does not directly get translated to rotation, but instead take the initial value when you open the patch and add calculate the difference from that value when you move the controller.


  • @plem said:

    So I'll have to recalculate the p/y/t info back to rotation info. Who knows, somebody has made something for this...

    I assume what you want to do is to covert the rotation output from the Pitch/Yaw/Roll to Rotation actor back into Pitch / Yaw and Roll. If that's the case, please see the attached Javascript actor that does the job. Note that there is a Javascript library that is required by this patch (three.min.js). This file must be at the same level as the .izz file, otherwise the Javascript actor won't work.

    Best Wishes,
    Mark

    pitch-roll-yaw-conversions.izz


  • @mark

    Great. Flawless. Exactly what I meant.

    Thanks! Peter