Jump to content

Fit peak values of channel to range (0,1)


XJIOR_UA

Recommended Posts

Hello. I have a lot of channels with different peaks and with different number of them. I'm trying to fit value of them with vopchop to range (0,1). Can you help me to do that. Thank you. I've attached two images for your understanding of my problem.

post-11386-0-42459600-1458214026_thumb.p

post-11386-0-53706000-1458214031_thumb.p

Link to comment
Share on other sites

Pictures you provided show only values already in the range (0,1).

 

I don't know if inside vop chop houdini have "whole channel handling at once" routines or you have to parse each channel manually using loops. So more efficient way for that is with standard chop nodes. In general form you can normalize channel by  LIMIT node (turn on normalize option) and that would bring all values in range (-1,1) and than use Expression node where in the first expression edit box type:  ($V+1)*0.5 . That will rescale range (-1,1) to range (0,1).

 

That is about FITTING channel in range (standard normalization process. It finds maximum value in the channel, calculate scalingfactor = 1/max,  and scale all values in channel by scalingfactor).

 

If you want to rescale/reshape peaks so each peak starts with a ramp at 0 value and end at 1 value then use sign function to convert your SAW TOOTH shape  to square pulses, then use LAG node to tense fast rising edge to linear slope, normalize result, and refit it to (0,1) range.

 

Here is example scene

 

https://mega.nz/#!HRoxgR5J!fTC_YezgB7wBRZTuKypHdiT6_orcvsuIlORqkZSb1sU 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...