HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. jonhallur
    3. Topics
    • Profile
    • Following 0
    • Followers 0
    • Topics 14
    • Posts 63
    • Groups 0

    Topics

    • jonhallurJ

      Have the "data" object from ScriptPanel on any ScriptComponent.

      Watching Ignoring Scheduled Pinned Locked Moved General Questions
      18
      1 Votes
      18 Posts
      904 Views
      Christoph HartC

      It's still a good advice to avoid using external data if possible, but I did in fact work on some multithreading issues since I posted the warning so yes by now it's safe enough to use static preallocated path objects in a LAF function.

    • jonhallurJ

      HISE crashes when manipulating table data objects

      Watching Ignoring Scheduled Pinned Locked Moved Bug Reports
      8
      1 Votes
      8 Posts
      726 Views
      jonhallurJ

      @Christoph-Hart This completely eliminates the jasserts in Debug and I can no longer get HISE to crash in Release.

      I really appreciate the fast response.

      Thank you.

    • jonhallurJ

      Keep hitting walls, wouldn't mind some help or ideas.

      Watching Ignoring Scheduled Pinned Locked Moved General Questions c++ floating tile midi
      10
      1 Votes
      10 Posts
      716 Views
      jonhallurJ

      @d-healey @DanH

      I my defense you are both very helpful and have the same initials.

    • jonhallurJ

      LAF "drawComboBox" isPopupActive should be a separate property

      Watching Ignoring Scheduled Pinned Locked Moved Feature Requests
      2
      0 Votes
      2 Posts
      210 Views
      jonhallurJ

      @jonhallur obj.enabled property is also not just the enabled property

      obj->setProperty("enabled", cb.isEnabled() && cb.getNumItems() > 0);
    • jonhallurJ

      LAF should include enabled state

      Watching Ignoring Scheduled Pinned Locked Moved Feature Requests
      5
      0 Votes
      5 Posts
      299 Views
      d.healeyD

      @jonhallur said in LAF should include enabled state:

      @d-healey And it was there all along, just outdated Documentation

      https://docs.hise.audio/working-with-hise/project-management/documentation/contributing.html :D

    • jonhallurJ

      stepped FilmstripSlider has unexpected behaviour.

      Watching Ignoring Scheduled Pinned Locked Moved Bug Reports
      6
      0 Votes
      6 Posts
      302 Views
      jonhallurJ

      @d-healey Right, I somehow missed that.

      Thank you for your assistance.

    • jonhallurJ

      drawPopupMenuBackground draws white rectangle regardless

      Watching Ignoring Scheduled Pinned Locked Moved Bug Reports
      2
      1 Votes
      2 Posts
      191 Views
      d.healeyD

      This is still an issue. I tried commenting out all the internal look and feel for drawPopupMenuBackground, including all the JUCE ones, but still the white background is there. @Christoph-Hart Any suggestions?

    • jonhallurJ

      How to limit combo box drop down size

      Watching Ignoring Scheduled Pinned Locked Moved General Questions
      1
      0 Votes
      1 Posts
      160 Views
      No one has replied
    • jonhallurJ

      Javascript syntax error inside laf.registerFunction will not recompile until you reload project

      Watching Ignoring Scheduled Pinned Locked Moved Bug Reports
      3
      0 Votes
      3 Posts
      171 Views
      jonhallurJ

      @d-healey I could not recreate the behavior in a Content.createLocalLoockAndFeel()

      I spoke too soon, some errors you can not recover from. Some syntax errors are fine, but when something really does not work, laf will not recover. Looks like if I do actual runtime errors that are syntactically correct the laf reverts to something older, and does not try to recompile the laf function until reload.

    • jonhallurJ

      Modulators question

      Watching Ignoring Scheduled Pinned Locked Moved General Questions modulator
      5
      0 Votes
      5 Posts
      506 Views
      jonhallurJ

      For future reference, there is a way to do this, explained in this thread

    • jonhallurJ

      Any easy way to communicate from/to C++ and Javascript

      Watching Ignoring Scheduled Pinned Locked Moved C++ Development c++ javascript valuetree
      11
      1 Votes
      11 Posts
      2k Views
      jonhallurJ

      Just for future documentation and forum searches, this here code works in the other direction, that is calling into the Javascript from C++ from an inline function handed to C++, I image it would work for inline functions added to the Globals object as well.

      _global->setMethod({ "set_callback" }, [&](const var::NativeFunctionArgs& args) -> var { auto *obj = args.arguments->getDynamicObject(); if (obj) { if (auto p = _ref.getProcessor()) { juce::Result* res; var fVar(obj); var args[2] = { 42, 13 }; LockHelpers::SafeLock sl(getMainController(), LockHelpers::ScriptLock); p->getScriptEngine()->maximumExecutionTime = RelativeTime(3.0); p->getScriptEngine()->executeInlineFunction(fVar, args, res); } } return { 0 }; });

      Obviously this is not safe, and if you don't use an inline function, it will crash your C++ code.

      This is rougly the code from

      void ProcessorWithScriptingContent::customControlCallbackIdle(ScriptingApi::Content::ScriptComponent *component, const var& controllerValue, Result& r)
    • jonhallurJ

      Can I pipe the Console output to std out

      Watching Ignoring Scheduled Pinned Locked Moved C++ Development
      12
      0 Votes
      12 Posts
      684 Views
      Christoph HartC

      You're right (I keep forgetting about the layers I've added to the debug handling). All Console.xxx() calls are ignored in the compiled plugin (in fact they are thrown away by the HiseScript compiler when parsing the Javascript code). This is to prevent that any residual debugging code ends up clogging the finished product.

      You can remove this by removing everything inside this preprocessing definition:

      Link Preview Image HISE/hi_scripting/scripting/engine/JavascriptEngineParser.cpp at 2da59a219ce25c10b6d9d9ee3e1ca0da18850940 · christophhart/HISE

      The open source framework for sample based instruments - HISE/hi_scripting/scripting/engine/JavascriptEngineParser.cpp at 2da59a219ce25c10b6d9d9ee3e1ca0da18850940 · christophhart/HISE

      favicon

      GitHub (github.com)