HISE Logo Forum
    • Categories
    • Register
    • Login

    Rendering a "sequence" in the DAW not working

    Scheduled Pinned Locked Moved Bug Reports
    39 Posts 3 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey @Lindon
      last edited by d.healey

      @Lindon

      All will be revealed.

      const myPeriod = Engine.getMilliSecondsForQuarterBeats(1);
      
      Engine.showMessageBox("time", myPeriod, 0);
      

      Basically the timer never runs.

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @d.healey
        last edited by Lindon

        @d-healey sadly it still never runs in the compiled VST3... no matter where Im setting the timer....so its still broken.

        HISE Development for hire.
        www.channelrobot.com

        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @Lindon
          last edited by

          @Lindon I shall investigate

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @d.healey
            last edited by

            @d-healey

            so:

            function onNoteOn()
            {
            	Message.ignoreEvent(true);
            	local myP= Engine.getMilliSecondsForQuarterBeats(1);
            	
            	
            	if(Message.getNoteNumber() == 60)
            	{
            		playMyNote();
            		Engine.showMessageBox("time", myP, 0);
            		myTimer.startTimer(myP);
            		
            	}
            }
            

            gives this output:

            067cfafe-adde-4639-a17a-e86fdeeeae52-image.png

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey
              last edited by

              It's working here. I added a visual indicator so we can see that the timer is running.

              HiseSnippet 1250.3oc2W80aaaCDmJNZnxcYXcnXXOpUrGjARMrx5xVPwPchicgwpS7hS61SqfQh1lKTjpTzoynH.6q2daeT52fsijRVxYNAYFqCqynnP73c79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+QV2eW2Q.Kk4Bow4epYs+Ofuf3+TBmH0IuvaXdje+1NOR5sddjiiTf6OEnhyREYKcviHIzSgV9rpBedF7hK4UmnqlUk2Qfkqbq29jdPPtRaFgUyjl1h8SDy3pkZCpcSyEEtlyEs4+4lK58fK6KM5lWAFGQSRYjt7KHLf8zfwOAnKGimwTERWtWdffKRmJ3znpE5SHJIcxDhrJ1WY.suRAidUJ49sOgvH3pMseQ6mAMaXIjmHqYtH7u8Xrqrd8YtV35qu.5+9KIcs+eSRaGTcBLNpjBOZ6BicMB3FiHf24vS45gRb1PyuYW2Ru1RNxiMK9C3W9lg50N4aFVr4+J9HAGIEuLxNtktO8NFIPbyM+kldtCzq8CQlQv.6ba0rEJAX3dYTjNE+Pfvb01ryZXyWtF17n0vluZMrY20vludMr4atQazOtr+LkHwdkCDLrqYtTGmtbLz8Z5zQ+IXoWQx.
              

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              LindonL 1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @d.healey
                last edited by Lindon

                thanks and so now we get to the ACTUAL problem....

                Load this into a track in reaper, and render the track....this is what you get:

                28d661e2-516b-4bb9-96e4-290f07dbafdc-image.png

                So the timer DOES NOT WORK in off-line renders....and this is very very bad because some DAWs(I'm looking at you Logic) are really bad at real-time rendering... and some (I'm looking at you Reaper) do not offer out-of-the-box real-time rendering for tracks....

                Can you please go confirm this is correct...(that this is what is happening for you too..)

                HISE Development for hire.
                www.channelrobot.com

                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @Lindon
                  last edited by

                  @Lindon I get the same result with offline render. Realtime render works as expected though.

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @d.healey
                    last edited by Lindon

                    @d-healey thanks -- so yes, same as my results - so this is a BIG problem...

                    @Christoph-Hart !!!!!!

                    HISE Development for hire.
                    www.channelrobot.com

                    d.healeyD 1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @Lindon
                      last edited by

                      @Lindon

                      so this is a BIG problem...

                      Yes I think so too. I also tested using a fixed interval of 500ms and the result is the same, so it's not related specifically to the tempo functions but is a problem with the timer in an offline render.

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      LindonL 1 Reply Last reply Reply Quote 0
                      • LindonL
                        Lindon @d.healey
                        last edited by

                        @d-healey yeah this all started with a plugin I wrote that uses fixed time rendering -in truth there's more than one of them, and they are ALL failing in this way...

                        HISE Development for hire.
                        www.channelrobot.com

                        LindonL 1 Reply Last reply Reply Quote 0
                        • LindonL
                          Lindon @Lindon
                          last edited by

                          @d-healey -- I'd imagine this breaks your legato scripting badly....

                          HISE Development for hire.
                          www.channelrobot.com

                          d.healeyD 1 Reply Last reply Reply Quote 0
                          • d.healeyD
                            d.healey @Lindon
                            last edited by

                            @Lindon said in Rendering a "sequence" in the DAW not working:

                            @d-healey -- I'd imagine this breaks your legato scripting badly....

                            I am testing that right now :) Actually I think the legato will be ok because I'm using the built in fade functions, but the portamento/glide is controlled with timers. I'm also going to double check older versions of my plugins to see if it used to work. If so there is hope :D

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            LindonL 1 Reply Last reply Reply Quote 0
                            • LindonL
                              Lindon @d.healey
                              last edited by Lindon

                              @d-healey fingers crossed here!! -- I'm hopeful, as I seem to recall it working fine at one point...

                              HISE Development for hire.
                              www.channelrobot.com

                              d.healeyD 1 Reply Last reply Reply Quote 0
                              • d.healeyD
                                d.healey @Lindon
                                last edited by d.healey

                                @Lindon The mystery deepens. My glide script works.

                                I can think of two reasons why this might be.

                                1. I'm using the synth on timer callback rather than a timer object.
                                2. The glide script is not part of the main interface script.

                                Libre Wave - Freedom respecting instruments and effects
                                My Patreon - HISE tutorials
                                YouTube Channel - Public HISE tutorials

                                LindonL 1 Reply Last reply Reply Quote 0
                                • LindonL
                                  Lindon @d.healey
                                  last edited by

                                  @d-healey said in Rendering a "sequence" in the DAW not working:

                                  @Lindon The mystery deepens. My glide script works.

                                  I can think of two reasons why this might be.

                                  1. I'm using the synth on timer callback rather than a timer object.
                                  2. The glide script is not part of the main interface script.

                                  What Synth.onTimer!!!!

                                  HISE Development for hire.
                                  www.channelrobot.com

                                  1 Reply Last reply Reply Quote 0
                                  • d.healeyD
                                    d.healey
                                    last edited by

                                    Using the synth timer the offline render works. And now I think about it I seem to recall that timer object callbacks are always deferred (I'll see if I can find a reference for that).

                                    HiseSnippet 1220.3oc2W01aaaCDlJNZnxcYXcnXXeTqXePFH0UJqMaAAC0IN1EFqNwKNsceZErRmsIhDoJEU5LJBv9IteJ8ev1QJYa4LmhLi0g0YDDXd7NdO2K7gmGHEgPVlPRrbNaZJPr9T6gS4pIsmPYbRuiHVaYeFKAjmAYJ+cHGNMklkAQDKqZOQqhkylDym283CowTdHrPDg7bAKDdJKgoVHcPqejEG2kFA5Cdg7G1pWnf2VDKxQ3Ty1mjRCOmNFNlpUaCah0mzIhoDxgJpBxHVadnHZ5vIh2vKz+4rL1qhA8h.xP7fJD2UDGoQrVJo8DVbzfYgcFgXYOXQRnVQR3t18YQr4xWjL9byFtKrnZ9vZikgWskfWPU34WAdq.RVUfzlEP5N1CCkrT0hcz341183JPNhho8pPoPWxFo0raKPM3plIzygtRbwbK7102eaW7eM1udcIL1MY5wBEz6H2ev896sGJjwiYbvcTNOTwDb2zX5z9Fk7ZT+sN0cXib8VXkwrF0cdacGmJmkogpo1Vik6hNMXGsSctrtCDmAEVTnFGU4jQiNbZmKPT2KZ9wq024pHDOgKqWGaaxTtWPktCnbHN.2cVTOFTsEIoBNtv6dEaeOc7V70lYfZ.VbUmJxUXn5MKT8FiAXcmwMGg8pGDG60mhfSR4QX5yKvu3y1t6U9M+F3gdYi8mmpDbMROg6YNmXQHMFyuC.ISDg3yu4i1+AOnCeL5TMH6itgMDvHIJqqP9S4TIVkNDnpLu.Mdc5iUc7xPS1XtPBlrimRlClM00gYJfml10Gmm7JP50PWV10urpTs.t+7bdlB8l4Vt2LH1XeGmhrq6UCoQiJhoajO0mxbuHRKbhw03eK0870y5dtIcBWSqPEnpa.jh3Xs6zn8JQRIPz6bkbRYigDR08EZQKaY4A6wMw51XaWLVDl4B795xj.1WOIPUNpvh90JJJ383L0Io.+5XtHkM432dVuinJpl4nTFpWJHULMDrNBt.ogK3QbrOBxNGKEFcKuYfLqJytaMikQmDHLjK4V1EIDxutfoNp0zpKdCKRMYtfe60sl.rwSpv3+KsH+UBMjJUDkGSUKyupeTobCLeuDoll3hmwTSq9ny+Xjt2THdG6ALU3jUiwMVAFwpxGBLV9T0V1cFMBBUK.3l1c+4OLuKU08eVg6us8PjAybg037uzr18EzK.2m.bPpSdAumwF98a5XCo23wFNITgt+LjrNKUjszAODRXmgs7YUE9rL7gQ30mpqlUk2VPkqbq283tXPtRaFRU4RSawAIhbtZo1fZuuwWBVywW17+biu7Qvk8klvxYFFGxRRigN7KfXj8zfwu.oKGQyiUyjtbubeAWjNQvYgUKzmBJIa7XPVE6qLfNPovYbWH4tsNEhAZ0l1uo0SwlMpDySvZlKB9aOs4JqWekcAbc0W.c+3kjt1+uIoKFkcLNvpjgOZaiCkMD4FCAz6b7ob8PIVan42JV6qWWPNxiLK9C7S4lA50VkaFLay+U7QBMTJdYXw3V59zaYjfwM27CBcr6qW6FPLifg1Y62zmjfLbuLLTmhuORXtZa1YMr4aWCad3ZXyiVCa1cMr46VCa992qM5GWNHWIRJtxgBFzwLWpkUGNE6dMc5j+DfqiwQK
                                    

                                    Libre Wave - Freedom respecting instruments and effects
                                    My Patreon - HISE tutorials
                                    YouTube Channel - Public HISE tutorials

                                    LindonL 1 Reply Last reply Reply Quote 0
                                    • d.healeyD
                                      d.healey
                                      last edited by d.healey

                                      @Casey-Kolb said in Text values for output bus, effects or gain reduction - use label, paintRoutine or animated strip?:

                                      The Synth timer is different than the Engine timers you create with Engine.createTimerObject(). You'd use this call instead Synth.startTimer(double seconds) and put your logic in the onTimer callback of your MIDI processor. I believe other timers are on the message thread already? I'm not totally sure, but worth experimenting.

                                      Libre Wave - Freedom respecting instruments and effects
                                      My Patreon - HISE tutorials
                                      YouTube Channel - Public HISE tutorials

                                      1 Reply Last reply Reply Quote 0
                                      • LindonL
                                        Lindon @d.healey
                                        last edited by

                                        @d-healey we need a way to "undefer " them then or we are back to a single (nearly un)usable timer - just like Kontakt....

                                        HISE Development for hire.
                                        www.channelrobot.com

                                        d.healeyD 1 Reply Last reply Reply Quote 0
                                        • d.healeyD
                                          d.healey @Lindon
                                          last edited by

                                          @Lindon Do you need multiple timers running simultaneously at different rates on the audio thread?

                                          Libre Wave - Freedom respecting instruments and effects
                                          My Patreon - HISE tutorials
                                          YouTube Channel - Public HISE tutorials

                                          LindonL 1 Reply Last reply Reply Quote 0
                                          • LindonL
                                            Lindon @d.healey
                                            last edited by

                                            @d-healey yes.

                                            HISE Development for hire.
                                            www.channelrobot.com

                                            d.healeyD 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            29

                                            Online

                                            1.8k

                                            Users

                                            12.0k

                                            Topics

                                            104.6k

                                            Posts