ChristopherC Posted July 21, 2015 Share Posted July 21, 2015 Hi! I have a CHOP channel containing some values and I would like to select only a few values at specific samples to then interpolate between them. I have attached a scene where the node `SAMPLES` needs to be used to select the values from `VALUE` to interpolate from. The node `DESIRED` represents the final result that I am after. I'm getting this result by manually creating constant values to interpolate from but it doesn't seem possible to do this procedurallly based on the nodes `VALUE` and `SAMPLES`? Also the process needs to be fast so I would like to avoid using `ic*` expressions if possible. Any idea? Thanks! chop_interpolate.hipnc Quote Link to comment Share on other sites More sharing options...
ikoon Posted October 27, 2016 Share Posted October 27, 2016 (edited) Hello, have you found a solution? I have tried, but did not succeed. Maybe Hold CHOP might help? Value into left input and Samples into the right input? Edit: Or instead of resample ... Envelope Chop > Local Maximum Window > Interpolate Linear? Edited October 27, 2016 by ikoon Quote Link to comment Share on other sites More sharing options...
ChristopherC Posted October 28, 2016 Author Share Posted October 28, 2016 Hello! It's been a while but if I remember correctly I ended up doing it outside of CHOP much more efficiently. As an exercise, I've just had another look at solving the problem in CHOP and found a not so perfect solution that I've attached. For some reasons, if you look at the 'diff' node you will see some small variations (-0.02 to 0.02 range) from the expected result. I don't know where this is coming from though. Maybe a weird interpolation algorithm used by the `Stretch` CHOP node? chop_interpolate.hipnc 1 Quote Link to comment Share on other sites More sharing options...
ikoon Posted October 28, 2016 Share Posted October 28, 2016 (edited) Wow, you have great knowledge of CHOPs. Thank you for uploading the hip file. I went through it and it seems, that the numerical inaccuracy is going through all the chops, from the beginning. Maybe the trigger Count CHOP has some internal threshold. Thank you very much for introducing me into these chops! OUT chop: SAMPLES chop: Trigger (Count chop) Trim Sample Indices (Math chop) Edited October 28, 2016 by ikoon Quote Link to comment Share on other sites More sharing options...
ChristopherC Posted October 28, 2016 Author Share Posted October 28, 2016 I think that these accuracies are due to the display becoming a bit jittery when you zoom in too much in the view, and don't represent the actual data. In fact, since the `VoiceSplit` crashes, I did manually create `Constant` nodes to still be able to explain the process, and these nodes have perfectly round values since floating points can exactly represent such small integral values. But if you display one of them and zoom enough in the view, it will also show some inaccuracy. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.