HISE Logo Forum
    • Categories
    • Register
    • Login

    SNEX C++ Template template arguments

    Scheduled Pinned Locked Moved C++ Development
    script fxscriptnodec++
    2 Posts 1 Posters 333 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.
    • langermarc19L
      langermarc19
      last edited by langermarc19

      Yes I meant to write "template" twice....

      I am trying to create a new scriptnode node. I created a new C++ file by selecting File>Create C++ third party node template in HISE, and have opened the template.

      I looked at a few of the built-in nodes for reference, and watched this video, both of which helped my general understanding of what is going on.

      I noticed however in both the built in code and the video there are calls to a function toChannelData(int channel) on input of templated type ProcessData&. Are we supposed to assume that the data being taken as a template argument is of a certain type with particular methods available? If so, what type is being assumed both in the video and the examples that we can call toChannelData(ch) on? Is there documentation somewhere that explains all of this.

      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • langermarc19L
        langermarc19
        last edited by langermarc19

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

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

        29

        Online

        1.7k

        Users

        11.7k

        Topics

        102.3k

        Posts