• CableBox

    13
    0 Votes
    13 Posts
    124 Views
    LindonL

    @Retromelon said in CableBox:

    So you need to read the connections array to see what connections are implemented... here's a start:

    HiseSnippet 2611.3oc0Zztaaibjxw5PhZOfbnG5OZ+yBWf.JaZZI4OhikSiiUhabarsPjStqPv3vJxURKBEIORpXKD3mg97z2p9FzNytjhjRj5qjfCkHQl6tyL6rym6tCa54Xv78c7TJT55QtLkB+9hsFYGzuQeJ2V47WoT3gEa5w7YAJmNxk56yLUJT3A+MbzBOZcEwy+4EmRsn1Fr3tTT9fC2f8V9.dPbuMO4evsrNiZxtlOHAz6cx4FN1MbrbFBbxCJVQwkZ7QZO1kTDr0Jp7FpeekBaVrV2NF059zcOr5yp9rmt2ypVc+C6rWkZFl6+rc28fcM6V6P5AGBH8cu1jG330JfFv7UJr9oNliZ024Va4D7AtOuiECaTUoELyxtOywxDWhXuJM5ysLaFIh7U.pzLVf8.o.6GKdA2jOt+XA2iECPhwHo.rvZoYuGjh8plj8pjf8xfkJjfkVWxR+PwVFdb2f3QP942U7b6.lWWJnmRxJRXUV6e+mK1vAfvNPe.8iry7fFiwP8fJUzHvOkqWpzNatI44q3SIxljFTXocpycjFNCbcrgYD6syHRi9db+.G29j2P8BzHnLhYhi7NVfmy.lkiM.JBcK9.WKdWNL7mXd9bG6iHba2gA63LL.9CYiNCCBbr82fP8XDOlQ.0tmEyGQla6yMYjf9Lx.PcQbo1LKcxYCsrFQ5Nz1H.nG0RiX6PX2E3QkP3qiHupqbxl6TpjMXP6CF2rwBgRetDAdPY5KMM8IThM61wipiXgiyss31rwLGwviAVNpH8zH2oQFUV.ljX3ikiA0hzAjxOmDoWollMwERRzpOFiHn.mcvxwk4EvY9fYvf+dqqtLDkX5iOabK2Ln+FGQpVshV5Q5y385GfCUYxgnVVN21.9sC3j6CfrQCKN7lF4MNftj7Dxq7n85ws6swDX5S+D6baY7H.u.ugrw.bOZYF0.V15lz.ptvj.jiLePLz9l5SCgzbYlf.wlrYBwd9fLzyCjcHiepP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NdLo2dx9aLD136fnEf3KTnEriKgIbg1EOXO3fV5c2B+8YMfe18puNsUVBcd0YqyWaAsK+CB0+X8LZHr7llquXlly9quPYo33wFg+e.G+CEaxgPTY67uVF7qhxWMmeko+jV99hutaWlQPLCtdwy94uMe+JJxpE2C14oGGiOCIiaAaMxfAytM9QWfwbWC84jsqfsENtv9ZDM9uvS3fUiBPiCVMZPkATCOmewPltBM9ennGfmrEefQOp3EXaR0nrTwxYXOl7ewvHMolBwZqJh6tpHt2ph39qJhGrpH9zUEwCmOh3mX0KGBwhktMJJWz70xnvEFmBnvCT9eKqyOvA
  • random float 0. - 1. how to?

    6
    0 Votes
    6 Posts
    38 Views
    iamlampreyI

    @Rognvald No problem 🙂

    This is a bit cleaner:

    inline function onButton6Control(component, value) { if (!value) { return; } // works the same as if (value) but the scope is a little bit cleaner local Knob1_value = Math.randInt(20, 20000); // this is already fine local Knob3_value = Math.random(); // you don't need range here, Math.random() is already within the range you're expecting Knob1.setValue(Knob1_value); Knob1.changed(); // these can be single lines if you prefer Knob3.setValue(Knob3_value); Knob3.changed(); }; Content.getComponent("Button6").setControlCallback(onButton6Control);

    If Knob1 and Knob3 already have their own Control Callbacks, you also don't need to independently call these:

    SimpleGain1.setAttribute(SimpleGain1.Gain, Knob1_value); // already handled by Knob1.changed(); SimpleGain2.setAttribute(SimpleGain2.Gain, Knob3_value); // already handled by Knob3.changed();

    Control.changed() is essentially simulating changing the control with the mouse, so you're basically calling the setAttribute function twice.

  • buttonpacks, panels, buttons and midi note fun...HELP! lol

    Solved
    4
    0 Votes
    4 Posts
    78 Views
    J

    @ulrik ahhhhhhh! perfect! thanks so much! this really simplifies everything!

  • Waveform how to get playback position?

    Unsolved
    19
    0 Votes
    19 Posts
    2k Views
    Christoph HartC

    @HISEnberg said in Waveform how to get playback position?:

    Your version is giving the actual sample value so it seems preferable:

    It also runs if your waveform is not visible.

  • Check if (!FILE) do this...

    Solved
    4
    0 Votes
    4 Posts
    45 Views
    ChazroxC

    @Oli-Ullmann @iamlamprey I promise you guys I was looking for this. hahaha. Thank You 🙏

    That was it...Thank you guys!

  • How To Link Keyboard Keys to Buttons

    5
    0 Votes
    5 Posts
    64 Views
    W

    @d-healey THANK YOU! IT WORKS PERFECT!

  • This topic is deleted!

    Unsolved
    7
    0 Votes
    7 Posts
    33 Views
  • FileSystem / How tdo I set USER specified root folder?

    Unsolved
    10
    0 Votes
    10 Posts
    89 Views
    ChazroxC

    @d-healey I eneded up figuring that out reading thru the apis.....then everything went baaaad. lol

  • Multiple start and end ranges in a single AudioLoopPlayer

    12
    0 Votes
    12 Posts
    849 Views
    griffinboyG

    @Chazrox

    Ah I don't unfortunately, not anything I can share freely at least.

    You can paste the code I sent above, into chat gpt and ask it questions about the workings of it

  • Query multiple TOKENS? || Please advise!

    Unsolved
    11
    0 Votes
    11 Posts
    93 Views
    dannytaurusD

    Yeah, regex is your friend here. The HISE regex seems to be missing a lot of features but you can still condense it down a bit like this:

    const kickPattern = "kick|kck|kk|bd|bassdrum|bass\sdrum|bassd"; const snarePattern = "snare|snar|snr|sn"; const hatPattern = "hat|hh|clh|cl|oph|op"; inline function stringMatchesPattern(str, pattern) { return Engine.matchesRegex(str.toLowerCase(), pattern); } Console.print(stringMatchesPattern("Kick".toLowerCase(), kickPattern)); Console.print(stringMatchesPattern("Kck".toLowerCase(), kickPattern)); Console.print(stringMatchesPattern("Kk".toLowerCase(), kickPattern)); Console.print(stringMatchesPattern("kick".toLowerCase(), kickPattern)); Console.print(stringMatchesPattern("kk".toLowerCase(), kickPattern)); Console.print(stringMatchesPattern("BD".toLowerCase(), kickPattern)); Console.print(stringMatchesPattern("Bd".toLowerCase(), kickPattern)); Console.print(stringMatchesPattern("bd".toLowerCase(), kickPattern)); Console.print(stringMatchesPattern("BassDrum".toLowerCase(), kickPattern)); Console.print(stringMatchesPattern("Kick".toLowerCase(), kickPattern)); Console.print(stringMatchesPattern("Kick".toLowerCase(), kickPattern)); Console.print(stringMatchesPattern("Snare".toLowerCase(), snarePattern)); Console.print(stringMatchesPattern("Snr".toLowerCase(), snarePattern)); Console.print(stringMatchesPattern("Hat".toLowerCase(), hatPattern)); Console.print(stringMatchesPattern("Clh".toLowerCase(), hatPattern));

    If some of the usual regex tools worked, we could have shorter patterns like this:

    const kickPattern = "ki?c?k|b(ass)?\s?d(rum)?"

    Although the longer one might be easier to read and understand I guess.

  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    16 Views
    No one has replied
  • drawAnalyserPath but only some of it

    10
    0 Votes
    10 Posts
    118 Views
    iamlampreyI

    @d-healey No there's a duplicate of the chain purely for the FFT display (otherwise the output would be playing the dirac-delta sample)

  • Disable Shift-Click Knob Text Box

    25
    1 Votes
    25 Posts
    971 Views
  • License Manager (Wordpress) Deactivation help

    1
    0 Votes
    1 Posts
    53 Views
    No one has replied
  • 6 Votes
    14 Posts
    1k Views
    HISEnbergH

    @clevername27 Do you have the most up-to date version of this code? Just trying it out from the snippet browser but it crashes HISE instantly.

    Edit @Christoph-Hart even if you just have the code for the Audio Render Example without fixing this issue I would appreciate the opportunity to have a look and study it 😁 If I can fix it I can push the fix to the snippet browser Github repo.

  • SliderPack LAF — Two Quick Questions

    23
    0 Votes
    23 Posts
    565 Views
    ustkU

    @d-healey Oh Math.pow won't be enough then... I haven't paid attention it's for an sp...

  • FileSystem.browse() if user cancels

    4
    0 Votes
    4 Posts
    182 Views
    iamlampreyI

    @d-healey Nice, in the meantime I'll modify it locally.

    @Christoph-Hart merge request initiated 🤖

  • Third Party Node + Offline processing?

    10
    0 Votes
    10 Posts
    384 Views
    iamlampreyI

    @ustk Turns out you're a genius and have already solved my problem 🥳:

    https://forum.hise.audio/post/91573

    Can replace the Sound Generator with a ScriptFX and use a midi container to get the gate information, tested and working in the compiled plugin.

    Thank you very much ustk circa 2024 😂

  • Question about data types specified in the API documentation

    4
    0 Votes
    4 Posts
    176 Views
    d.healeyD

    @VirtualVirgin I think both work, not sure

  • Convertings problems

    4
    0 Votes
    4 Posts
    147 Views
    ChazroxC

    @hyperphonias np! 🙏 Have a great day!

27

Online

2.0k

Users

12.8k

Topics

111.0k

Posts