Skip to content

How does el.time node work? #17

Answered by nick-thompson
satelllte asked this question in Q&A
Discussion options

You must be logged in to vote

Yes of course! The time node (only available in the web-renderer and offline-renderer) outputs a signal that is very literally a monotonically increasing count of elapsed samples that the Elementary engine has processed. This allows you to coordinate various signals i.e. "time sync" or "host sync."

It's quite a simple utility; but you can derive useful data out of it. For example, if you know that the current time is T (based on el.time) then you can use your own BPM and time signature information (if you have it; or if it applies to your application) to calculate a ppqn or ppq signal like you might find in a DAW or in a MIDI file. That signal could tell you where you are within the curre…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@satelllte
Comment options

@nick-thompson
Comment options

Answer selected by satelllte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants