Categories

  • General questions and announcements about HISE

    8k Topics
    72k Posts
    ulrikU

    @dannytaurus @Oli-Ullmann @Oli-Ullmann thank you all for the help, all your suggestions work great!

  • Scripting related questions and answers

    2k Topics
    16k Posts
    CyberGenC

    Hi friends, it's been a minute.

    So my question is about declaring loop variables before a for loop, given that HISE doesnt like it inside the loop.

    There seems to be conflicting guidance (and examples in the wild) about whether loop variables should be declared beforehand, and how much they can interfere with other functions.

    Both versions seem to work most of the time, but in larger namespaces with many inline functions, I’ve seen odd behavior that looks like iterator variables leaking or being reused across functions (off-by-one bugs, wrong source index, etc.).

    My questions

    Are loop variables (i, s, n, etc.) implicitly local to the inline function, or are they shared unless explicitly declared local?

    Is it considered best practice to always declare loop iterators as local at the top of each inline function?

    Can undeclared loop variables interfere with other inline functions in the same namespace, or is that a myth?

    I'm looking for some clarity as I’m trying to decide whether it’s worth doing a cleanup pass where every inline function explicitly declares its loop iterators (e.g. local i, s, n;) to avoid subtle bugs, or whether that’s unnecessary.

    Thanks.

  • To share HiseSnippets, Interface Elements, GUI, UI/UX, Panel LAF etc..

    196 Topics
    2k Posts
    D

    @David-Healey Alright I understand how am I going to connect this code to a knob on my main interface and a button aswell

  • All about ScriptNode DSP nodes, patches, SNEX and recipes.

    351 Topics
    2k Posts
    iamlampreyI

    @Christoph-Hart said in (ScriptNode) Smeary Reverb / Washy Cymbals?:

    @iamlamprey haha everybody always rips out the dither stuff from air windows :)

    i assume he has it there for a reason but most DAWs apply dithering now anyway and I can't hear a difference lol

  • A subforum for discussing Faust development within HISE

  • If you need a certain feature, post it here.
    625 Topics
    5k Posts
    DanHD

    @ustk ah yeah, that's it

  • Develop better software through collaboration and shared knowledge. Not just about coding —> covering the entire journey, from development to launching and promoting plugins or software.

    144 Topics
    1k Posts
    dannytaurusD

    @David-Healey Yeah, me too. But I thought for someone learning how to do the basics of optimising repetitive code into loops, I would just show the basic method.

    @goldee What David means, if we're talking about the same thing, is that you can get an array of components and loop through them directly, instead of fetching each one by name.

    const panels = Content.getAllComponents("instimg_pnl\\d+"); for (panel in panels) { panel.loadImage("{PROJECT_FOLDER}" + panel.getId() + ".png", "img"); panel.setPaintRoutine(function(g) { var a = this.getLocalBounds(0); g.drawImage("img", a, 0, 0); }); }
  • If you encounter any bug, post it here.
    2k Topics
    12k Posts
    ustkU

    @dannytaurus Oh cool! Bug or not I can at least make my project to work so thanks!

  • Post your example snippets that you want to add to the official HISE snippet database here. We'll revise it, upload it to the repo and delete the post when finished.

    22 Topics
    135 Posts
  • Everything related to the documentation (corrections, additions etc.) can be posted here
    70 Topics
    476 Posts
    David HealeyD

    @weezycarter make a minimal test plugin with 4 channels. Then we'll have a baseline.

  • Collection of Blog Entries

    81 Topics
    770 Posts
    David HealeyD

    Another one you might be interested in is Floe: https://floe.audio/

  • The nerdy place for discussing the C++ framework
    179 Topics
    1k Posts

21

Online

2.2k

Users

13.4k

Topics

116.3k

Posts