Skip to main content
mart-martinlofqvist
Known Participant
May 2, 2021
Question

Best way to smooth out keyframe values from generated midi

  • May 2, 2021
  • 1 reply
  • 270 views

Hi, 

I have used the tool at Factory Settings that generates a keyframes from a midi file through a .jsx script. I really like the idea as it gives me the oppurtunity to create automated and seamless animations tightly connected to a music track. 

 

Although the generated keyframes have a some caveats: mainly that it generates one keyframe for every frame, giving me sharp, drastic changes. How could I automate the process of converting the keyframes at every frame to fewer and smoother keyframes, as you would have made by hand? 

I looked at the .smooth() expression without any major breakthrough. 

 

Anyone? Ideas? 

This topic has been closed for replies.

1 reply

Mylenium
Legend
May 2, 2021

Well, the obvious answer would have to be that you would need to run a key reduction script. There are several ones at AEScripts.com. of course you can still use .smooth() expressions and otehr techniques, but you will have to considerably expand them to only sample every n-th frame using valueAtTime() and similar trickery.

 

Mylenium

mart-martinlofqvist
Known Participant
May 2, 2021

thanks, 

do you have any recommendation on good reduction scripts or plugins?