HISE Logo Forum
    • Categories
    • Register
    • Login

    HISE built plugin would not scan and load in DAW....answers inside

    Scheduled Pinned Locked Moved General Questions
    1 Posts 1 Posters 113 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.
    • LindonL
      Lindon
      last edited by

      So I just spent 4 days going thru my massive project because - all of a sudden new versions of my dll would not scan in any DAW.....

      So this is to help you out if you have any similar problem. Here's the piece of code that was the culprit, it got called ONLY when the play button was pressed -and I'd saved and installed the plug-in every other time with this play button OFF(so I never saw this problem before..), but storing and saving with play button ON got to this code:

             recordingSpeed = Engine.getMilliSecondsForQuarterBeats(0.0625);
      
             while (recordingSpeed < 25)
             {
                 recordingSpeed = recordingSpeed * 2;
             }
      

      Can you see the problem? Took me a minute or two.....

      So when the plug-in is being scanned by the DAW - the first time its ever loaded, then the DAW is not providing any timing information, so the call:

      Engine.getMilliSecondsForQuarterBeats(0.0625)
      

      is likely returning undefined, or at best zero....

      so this:

              while (recordingSpeed < 25)
              {
                  recordingSpeed = recordingSpeed * 2;
              }
      

      is an endless loop.....

      HISE Development for hire.
      www.channelrobot.com

      1 Reply Last reply Reply Quote 2
      • First post
        Last post

      45

      Online

      1.7k

      Users

      11.7k

      Topics

      101.8k

      Posts