Forum
    • Categories
    • Register
    • Login
    1. Home
    2. Daanyoo
    3. Posts
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 26
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Moonbase

      Tobias just informed me that their newer C++ module is indeed JUCE 6 compatible: https://github.com/Moonbase-sh/moonbase-cpp

      Just swapped out my self-built solution with the C++ module with the help of Opus 5.5 - works like a charm! Nevertheless looking forward to see a official integration with HISE in the future :)

      posted in General Questions
      D
      Daanyoo
    • RE: Moonbase

      @Christoph-Hart Would love to hear an update about this! We already implemented Moonbase manually in our plugin but would rather use the official Moonbase Module for HISE, which unfortunately only runs on JUCE 8.

      posted in General Questions
      D
      Daanyoo
    • RE: I am unable to get an AudioAnalyser to display in a floating tile

      @Chazrox Hey everyone, I am currently running into the same issue with this setup. HISE crashes on Index 1 or 2, but works fine on Index 0. Even on a fresh project.
      Did you anyone of you get this running the with other options? Would love to incorporate an oscilloscope into my plugin :)

      posted in General Questions
      D
      Daanyoo
    • RE: Remove Sample Install Dialog

      @dannytaurus I mean I'm removing the .vst3 from the VST3 folder and copy the new version into it - usually the DAW should detect the new version if the plugin has the same name... thats at least what it used to do

      posted in General Questions
      D
      Daanyoo
    • RE: Remove Sample Install Dialog

      @David-Healey Oh, thats a good hint - but it still didn't remove the dialog after recompilation..
      This is the right place to put the definitions, isn't it?
      77088d9b-d913-490f-98c4-f419781148fa-image.png

      posted in General Questions
      D
      Daanyoo
    • RE: Remove Sample Install Dialog

      @David-Healey Do I need to remove the entire build folder? I just used to go into the Release folder and delete the .lib and .vst3 before recompiling

      posted in General Questions
      D
      Daanyoo
    • Remove Sample Install Dialog

      Hello everyone,

      I want to remove the install samples dialog on startup of the plugin, as I'm implementing my own initialisation flow using Expansions.

      I researched the forum and found some posts regarding removal of the dialog and tried adding these preprocessors to my project:

      HISE_DEACTIVATE_OVERLAY=1
      HISE_SAMPLE_DIALOG_SHOW_INSTALL_BUTTON=0
      HISE_SAMPLE_DIALOG_SHOW_LOCATE_BUTTON=0

      Option 1 seemed to the latest approach to this problem, but I also saw some people using Option 2+3 for this. Unfortunately none of these options seem to work as my compiled plugin still prompts me to install the samples on the first startup...

      What am I missing here?

      Would really appreciate some input on this :)

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      @Daanyoo I just tried to reproduce it on a empty project on WIN, it worked there and all of the sudden it worked in the regular project as well... I am so confused haha

      But at least its fixed, thank you guys for your help!!

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      As already mentioned, the request using the same function with the JSON string is delivered perfectly fine on OSX:

      2019e1bc-04d3-4a60-82a2-b1b13744982b-image.png

      I cant figure out why it wouldn't work on WIN, even though the code is identical.

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      @David-Healey I already did:

      Server.setBaseURL(MOONBASE_API);   
              Server.setHttpHeader("Content-Type: application/json\nAuthorization: Bearer " + currentAccessToken); 
      
      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      @Christoph-Hart I use trace(data) and it works perfectly fine on OSX.

      local jsonData = trace(data);
                  
                  Server.callWithPOST(endpoint, jsonData, function(status, response) {
                      if (status == 200) {
                          currentHttpCallback(true, response);
                      } else {
                          currentHttpCallback(false, {"error": "HTTP " + status});
                      }
      

      However when executing the same function on my Windows HISE build the typecheck fails and String is rejected:

      Interface:! LicenseManager.js (767): Illegal type: string, expected: JSON

      The json content type is also being correctly passed, as the request is successful on OSX.

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      No Matter how I try passing the JSON object into the callwithPOST function, it always arrives in this URL-encoded format, which makes my request for the license activation fail.

      One for Christoph I guess...

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      @David-Healey Yes, both are running on the latest version of HISE - I also didn't expect any OS specific differences here..

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      @David-Healey @Christoph-Hart As I've just started building out the Installer of the plugin on a Windows VM I'm strangely running into a error again....

      As discussed the Server.callWithPOST function worked perfectly fine passing the JSON via trace() as stringified data - however, when trying to execute the same function on Windows the parsed string into the request is rejected due to the type check:

       local jsonData = trace(data);
                  
                  Server.callWithPOST(endpoint, jsonData, function(status, response)
      

      Error: Illegal type: string, expected: JSON

      Is there any other type check embedded here which will only trigger while on Windows?
      Not sure how I could create a workaround for that..

      posted in General Questions
      D
      Daanyoo
    • Unlocker - How to use?

      Hi everyone,

      as I'm currently working on the last few steps of implementing a Moonbase license system into our HISE Plugin, I stumbled upon the native Unlocker, which is available via the HISE API.

      Initialising the Unlocker inside the script automatically seems to block the audio processing of the Plugin and the CPU is at 0%, regardless of what Preset I choose. Looking at the documentation I couldn't really figure out the workflow behind the Unlocker. I'm receiving a JWT license token by Moonbase, which then should be written into the KeyFile on the users device, but I can't manage to get this running.

      I know that the Unlocker itself is part of HISE Activate - does that mean it can only be used within this setup? Or is the third party use of the Unlocker without HISE Activate still possible?

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      @Christoph-Hart I found the mistake - I had accidently reset the Server.HttpHeader() of the request when passing it into the makeHttpRequest function. Therefore only the the Auth Bearer Token was passed and the Content-Type was automatically set by HISE. Now I correctly appended the Bearer Token within the request and everything works perfectly fine :)

      Thank you guys so much for your help, I really appreciate it!!

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      @Christoph-Hart this is how im passing the JSON data:

      inline function requestDirectLicenseActivation(deviceName, deviceSignature, accessToken)
          {
              local requestData = {
                  "deviceName": deviceName,
                  "deviceSignature": deviceSignature
              };
              
              currentAccessToken = accessToken;
              
              makeHttpRequest("POST", "/client/licenses/" + PRODUCT_ID + "/request", trace(requestData), handleDirectLicenseResponse);
          }
      

      Even when converting the JSON object using trace, I'm getting the 415 error due to an unsupported media type, as the endpoint will not receive the content as application/json, as its converted to x-www-form-urlencoded data.

      a7efb73a-5e4a-4f34-ad20-59419326215a-image.png

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      @Christoph-Hart Another problem im still facing is the JSON encoding issue that was also mentioned in the linked thread.

      Im struggling to send a POST with regular application/json Data, as HISE seems to package the data into x-www-form-urlencoded when using Server.callWithPOST. Everytime I'm trying to send out a POST request to receive a license token I'm getting a 415 error.

      Do you have any idea how to change the format of the request in a way that the regular JSON dictionary will be transferred?

      Checked the request and its format with Postman:

      Using the x-www-form-urlencoded (same as HISE probably uses)
      5c7b66c0-204c-4174-83e6-ed99d367c242-image.png

      Using the JSON dictionary to receive a license token:
      559a71c8-fbbf-44d1-ac37-b11a10daa41b-image.png

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      @Christoph-Hart That was the solution! Thank you so much!!!

      posted in General Questions
      D
      Daanyoo
    • RE: callWithPOST change content type

      @Christoph-Hart Okay great, this fix already allowed me to pass the plain string into the function.

      Another problem, that also was mentioned in the referenced thread is that data is not being processed as text/plain or plain JSON as it looks like HISE is sending the data as URL-encoded form data (like a web form submission)

      This leads to problems in calling the sign-in API endpoint of Moonbase - this is how Moonbase expects to receive sign-in data:

      POST https://demo.moonbase.sh/api/customer/identity/sign-in?email=test@example.com
      Content-Type: text/plain
      
      Password1234!
      

      I need to embed the mail into the URL endpoint and pass on the password as plain text. This is how I implemented it within HISE:

      makeHttpRequest("POST", "/customer/identity/sign-in?email=" + email, password, function(success, response)
      

      Due to the faulty URL encoding the data is being received in the format shown below:

      3a248157-0ea9-4a66-b1e2-c01622177b33-image.png

      I am not sure how to create a workaround for this..

      posted in General Questions
      D
      Daanyoo