• Hide preset browser when saving a preset.

    13
    0 Votes
    13 Posts
    1k Views
    ThinkTankT

    @xxanx

    Figured it out.

    In case anyone else wants a preset browser that kinda works, with opening and closing (with preset overwrite prompt)
    heres my code:

    // SHOW AND HIDE PRESET BROWSER WITH BUTTON const var FloatingTile1 = Content.getComponent("FloatingTile1"); const var Button1 = Content.getComponent("Button1"); Button1.setControlCallback(Button1CB); inline function Button1CB(control, value) { FloatingTile1.showControl(value); }; // Timer for handling delay after saving a preset const var saveTimer = Engine.createTimerObject(); var saveTimerCounter = 0; saveTimer.setTimerCallback(function() { if (saveTimerCounter > 0) { saveTimerCounter--; if (saveTimerCounter == 0) { FloatingTile1.set("visible", false); Button1.setValue(false); saveTimer.stopTimer(); } } }); // Close Preset browser after save const var uph = Engine.createUserPresetHandler(); uph.setPostSaveCallback(function() { saveTimerCounter = 1; // Set the counter for a brief delay saveTimer.startTimer(5500); // 500 milliseconds delay }); // Logic for handling preset loading (remains unchanged) uph.setPostCallback(function() { FloatingTile1.set("visible", false); Button1.setValue(false); });
  • Dark mode via LAF?

    2
    0 Votes
    2 Posts
    237 Views
    d.healeyD

    @paper_lung You can either check the button's value in the LAF function, or what I would probably do is change the color properties of the components from within the button's callback.

  • This topic is deleted!

    5
    0 Votes
    5 Posts
    18 Views
  • Different Encryption Types in HISE?

    59
    0 Votes
    59 Posts
    4k Views
    orangeO

    @Casmat said in Different Encryption Types in HISE?:

    @orange ahh I didn’t think of that possibility, is obfuscation the only way to avoid this or what are some other methods you’ve used to avoid this?

    And btw, your licensing system is amazing, we’re definitely planning on making something like it in the future:
    https://forum.hise.audio/topic/4967/woocommerce-linked-licensing-system-for-your-plugins/2?_=1705339675044

    Thanks.

    Frankly, there is not much about obfuscation for now.

    I think cracking the plugin depends on user demand. If it is a well-known company and it is a plugin that is really demanded by the users, the cracking of the plugins will take at most 1 week, sometimes 2 weeks.

  • Multiple synth timers

    7
    0 Votes
    7 Posts
    443 Views
    d.healeyD

    @aaronventure Yeah that's what I meant by subdivide it. Have it running at a fixed interval and use counters to track the amount of time for each task.

  • LFO Animation not visible inside compiled plugin

    3
    0 Votes
    3 Posts
    232 Views
    P

    @Oli-Ullmann said in LFO Animation not visible inside compiled plugin:

    "ENABLE_ALL_PEAK_METERS=1"

    Thanks, I'll give that a try!

  • Screenshot Button

    3
    0 Votes
    3 Posts
    311 Views
    Adam_GA

    @d-healey ty sir

  • Custom table path, look and feel

    4
    0 Votes
    4 Posts
    285 Views
    ulrikU

    @d-healey try this

    TBLLaf.registerFunction("drawTablePath", function(g, obj) { var p = Content.createPath(); p.clear(); var str = obj.path.toString(); var arr = []; if (str.contains("q")) { str = str.substring(0, str.lastIndexOf("l")); var arr = str.split(" "); } else { arr = str.split(" "); for (i = 0; i < 3; i++) arr.pop(); } arr[10] = arr[13]; str = arr.join(" "); p.fromString(str); g.setColour(Colours.withAlpha(Colours.cadetblue, 1)); g.drawPath(p, p.getBounds(1), 1.5); });
  • panel.set("enabled", false)

    3
    0 Votes
    3 Posts
    218 Views
    ulrikU

    @d-healey said in panel.set("enabled", false):

    @ulrik I believe my solution was to loop over the child elements and any that are panels I disable/enable along with the parent.

    Ok, thanks for the tip

  • Reload via scripting

    4
    0 Votes
    4 Posts
    306 Views
    d.healeyD

    Try ExpansionHandler.refreshExpansions()

  • What Are You Using for Server/DB?

    3
    0 Votes
    3 Posts
    164 Views
    d.healeyD

    I'm using Vultr - https://www.vultr.com/

    I think it's MariaDB but from my point of view it works the same as MySQL.

    This is for my site and for making GET/POST requests.

  • Enable/Disable slider function

    3
    0 Votes
    3 Posts
    246 Views
    P

    @d-healey Great, thanks

  • Switch between LAF sliders?

    3
    0 Votes
    3 Posts
    163 Views
    P

    @d-healey will do in that case, thanks!

  • HISE RSA Not Working

    17
    0 Votes
    17 Posts
    1k Views
    LindonL

    @ustk said in HISE RSA Not Working:

    @Lindon said in HISE RSA Not Working:

    (and using RSA stops that as they cant generate your private key)

    unless 512 is "easily" hackable, right? Hence the 2048 size 🤷
    because if a hacker can easily hack a 512 key there's no point in building the most protective code

    yeah - EdDSA seems to be the way to go...if you want it secure - buit really the last hour has told me I know nearly nothing about asymmetric encryption...

  • Delay sync values?

    5
    0 Votes
    5 Posts
    504 Views
    P

    @Straticah Thanks, I'll take a look!

  • DB label linked to slider

    2
    0 Votes
    2 Posts
    149 Views
    d.healeyD

    @paper_lung Use a slider and style it with custom look and feel.

  • Initialize value at init?

    4
    0 Votes
    4 Posts
    370 Views
    Dan KorneffD

    Got a working solution. Just declare the variable as undefined, and then use an if statement in the knob callback to define if == undfined

  • Change modifier keys?

    2
    0 Votes
    2 Posts
    310 Views
    A

    @Dan-Korneff For sliders: https://docs.hise.audio/scripting/scripting-api/scriptslider/index.html#createmodifiers

    My experience so far is that you can disable or remap them here. If you want custom behavior, you can then use a mouse broadcaster to set up your own behavior.

    Buttons always trigger on click so if you want to do something else other than to flip it, you'll have to use a panel, but then you lose out on the snappy 0-1 DAW automation. You could try to use a slider and really slow down the mouse drag, use the broadcaster to switch 0/1 on click but I don't know if the DAW automation is snappy when the slider step size is 1 and the range 0-1.

  • How to debug Server.isOnline()

    6
    0 Votes
    6 Posts
    697 Views
    d.healeyD

    @Christoph-Hart said in How to debug Server.isOnline():

    I know that sometimes on macOS there is an issue with connecting to non SSL domains.

    That might be why I did this

    https://github.com/christophhart/HISE/pull/328/files#diff-16813562fe191a1534f1f835248ab9446725ab9ffa0543f31d84d9743adaf874R114

  • has something changed in Scripnode compiled nodes?

    3
    0 Votes
    3 Posts
    332 Views
    Dan KorneffD

    @Christoph-Hart said in has something changed in Scripnode compiled nodes?:

    Can you elaborate on that?

    This part is not related to Scriptnode (as far as I can tell).
    If I create a variable in my script and hit Compile, sometimes it doesn't show up in the ScriptWatchTable. I have to hit Shift+F5. And even then, sometimes that doesn't fix it. I have to restart. Even then the variable doesn't show up until I hit compile.

    I'm noticing a lot of overall crashes with HISE standalone as well.

    Any my exported plugins are now crashing with:

    Exception thrown at 0x00007FF971D0567C in PluginDoctor64.exe: Microsoft C++ exception: juce::JSONParser::ErrorException at memory location 0x00000035EA8FF4E8. The thread 0x46b8 has exited with code 0 (0x0). The thread 0x2abc has exited with code 0 (0x0). Debug Error! HEAP CORRUPTION DETECTED: after Normal block (#1714932) at 0x000001CCB2C5BF70. CRT detected that the application wrote to memory after end of heap buffer.

    Looks like I have a nice long day of debugging ahead of me 🕵

23

Online

2.0k

Users

12.8k

Topics

110.8k

Posts