HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. Tags
    3. c++
    Log in to post
    • All categories
    • A

      Custom nested modulators

      Watching Ignoring Scheduled Pinned Locked Moved C++ Development c++ juce modulator
      1
      0 Votes
      1 Posts
      67 Views
      No one has replied
    • ustkU

      C++ pass data[i] and xcode breakpoint misunderstanding

      Watching Ignoring Scheduled Pinned Locked Moved C++ Development c++ xcode breakpoints
      2
      0 Votes
      2 Posts
      82 Views
      ustkU

      @ustk So I tried to set the Hise executable as debug, the node as debug, and any combination, I get only crashes...

      But I still think it is a scheme configuration vs debug executable/node thingy:

      Screenshot 2024-12-03 at 17.40.03.png

    • M

      Export static library

      Watching Ignoring Scheduled Pinned Locked Moved General Questions export standalone c++
      5
      0 Votes
      5 Posts
      290 Views
      M

      @Christoph-Hart Yes, GDExtension is the framework for creating the dynamic libs, but I have no formal training in C++, so I have no idea how involved it is to write an API.

    • 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
      712 Views
      jonhallurJ

      @d-healey @DanH

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

    • langermarc19L

      SNEX C++ Template template arguments

      Watching Ignoring Scheduled Pinned Locked Moved C++ Development script fx scriptnode c++
      2
      0 Votes
      2 Posts
      333 Views
      langermarc19L

      Actually I think I may have found the answer in hi_dsp_library/snex_basics/snex_ProcessDataTypes

    • 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)