Synth.startTimer() Error!



  • Hi!
    Can anyone help me with this Timer error?
    i have nothing in onTimer().
    Thank you......

    Content.makeFrontInterface(980, 600);
    Synth.startTimer(1);
    
    

    Error: Line 3, column 17: All 4 timers are used {SW50ZXJmYWNlfHw3NXwzfDE3}



  • @sakorada well for a start you wont get anything useful (or probably working) out of a timer frequency of 1, start with say 5000



  • @Lindon Actually the Synth.startTimer function takes an argument in seconds not milliseconds (which is a mistake I've made before), so 5000 would take quite a long time 😉

    @sakorada It's hard to know what's going on with the timer without seeing the project in more detail. It might also depend on where you're calling that function in the code. Could you post a snippet?

    Also, is there a reason you're calling Synth.startTimer right after you make the interface? Are you just trying to setup a normal timer? The Synth timer is a special kind of timer.



  • @Lunacy-Audio said in Synth.startTimer() Error!:

    @Lindon Actually the Synth.startTimer function takes an argument in seconds not milliseconds (which is a mistake I've made before), so 5000 would take quite a long time 😉

    Silly me - thinking about the demo-timer I use...



  • It will working normal if I do restart hise after those error message show up.
    It just show up sometime after I hit compile code.
    When it's show up, even I made new project (not restart hise) and just add Synth.startTimer(1).
    The error show up again.

    That's why make me think, it's Hise Bugs!
    Maybe.....



  • Normally this message appears only if you're using more than ScriptProcessors / MidiProcessors that use a timer inside a single sound generator module (because each sound generator has a slot for 4 independent timers).



  • @Christoph-Hart Thank you .
    It's Good to know .


Log in to reply
 

10
Online

752
Users

3.0k
Topics

24.9k
Posts