wolfgangw / digital_cinema_tools

Collection of useful scripts and notes for an open source based digital cinema pipeline
https://github.com/wolfgangw/digital_cinema_tools/wiki
95 stars 41 forks source link

cinemaslides: Sigmoid math and off-by-one bug in levels usage #1

Open wolfgangw opened 14 years ago

wolfgangw commented 14 years ago

In cinemaslides a sigmoid function is used to s-shape linear level progressions for fades and crossfades. Problem with that: The first and last values don't touch minimum and maximum (the amount by which they're off depends on the function's 'tuning'). This needs some shearing.

For the time being first and last are hardcoded to min and max.

Also there is a off-by-one bug in the loop that consumes these levels: Last value is not used, hence a fade out/crossfade doesn't land at -100 (which is, for now, hardcoded. See above). Not a real problem for fade in, of course.