Jump to content

hscript pulse-wave modulation?


chrish

Recommended Posts

I'm trying to find an hscript expression that will generate a pulse signal where the pulse interval and the pulse width can be easily controlled and vary with time. I've trying an expression like this . . .

pulse(fit($F % (ch("pulsefreq") * rand($F)),0,ch("pulsefreq") * rand($F),0,1),ch("pulselow"),ch("pulsehi"))

. . . using the modulo operator on frame values. I can get something close, but it is still difficult to control the width and interval of the pulses in an easy way.

Any suggestions (using hscript) would be appreciated.

Thanks,

Chris

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...