Coder Social home page Coder Social logo

ofxtiming's Introduction

ofxTiming is an addon for openFrameworks

ofxTiming provides classes that implement common patterns associated with timing.

DelayTimer

An asynchronous buffered intervalometer that will accept a framerate, and return a true tick() when it's time to execute an event associated with that interval.

FadeTimer

A class that returns a state between 0 and 1 that will fade from one end to the other given start() or stop(), correctly handling intermediate cases.

Hysteresis

A class for filtering and tracking noisy input. This also plugs into FadeTimer.

RateTimer

A class for timing framerates or intervals of time.

ofxtiming's People

Contributors

kylemcdonald avatar mgsx-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ofxtiming's Issues

example

this looks super useful.
i only got fade and delay working. maybe you have a moment to make some short examples for lerp and hysteresis. :)
thanks.

raspberry pi 4 warnings and error

I am using OF 0.11 on RPI 4 and get these errors which I do not get on macOS.

Will start poking around and see if I can figure this out.

/home/pi/openFrameworks/addons/ofxTiming/src/FadeTimer.h: In constructor ‘FadeTimer::FadeTimer()’: /home/pi/openFrameworks/addons/ofxTiming/src/FadeTimer.h:10:7: warning: ‘FadeTimer::direction’ will be initialized after [-Wreorder] bool direction; ^~~~~~~~~ /home/pi/openFrameworks/addons/ofxTiming/src/FadeTimer.h:9:9: warning: ‘double FadeTimer::referenceTime’ [-Wreorder] double referenceTime, risingLength, fallingLength; ^~~~~~~~~~~~~ /home/pi/openFrameworks/addons/ofxTiming/src/FadeTimer.h:12:2: warning: when initialized here [-Wreorder] FadeTimer() ^~~~~~~~~ In file included from /home/pi/openFrameworks/addons/ofxTiming/src/ofxTiming.h:8, from /home/pi/openFrameworks/addons/ofxTiming/example/src/main.cpp:2: /home/pi/openFrameworks/addons/ofxTiming/src/DurationTimer.h: In function ‘std::__cxx11::string humanDuration(float, int)’: /home/pi/openFrameworks/addons/ofxTiming/src/DurationTimer.h:27:1: error: control reaches end of non-void function [-Werror=return-type]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.