Skip to content

set timer between messages within a loop #285

Answered by dobo365
damiensellier asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Damien,
thx for this question that allows me to explain you what a timer is and how it is working ;-)
I think I already did that in the old forum but it is good to repeat.

A timer is itself a loop running continuously at a certain timing until you stop it.
So, you don't need to have your 1-100 for loop there and starting/stopping the same timer ID 2 100 times.

From my ever expanding never published Step by Step guide 2.x (will further work on it during summer so I can publish it):

The philosophy of a timer is that it loops by executing its code at a specific time interval until it is stopped.
Juce documentation: ((https://www.juce.com/doc/classTimer#details ))

Some properties:

  • Timers …

Replies: 6 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@damiensellier
Comment options

@DRBAUS
Comment options

@dobo365
Comment options

@DRBAUS
Comment options

Answer selected by damiensellier
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Ted-juh
Comment options

@Ted-juh
Comment options

@damiensellier
Comment options

@dnaldoog
Comment options

@dnaldoog
Comment options

Comment options

You must be logged in to vote
1 reply
@Ted-juh
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants