• Change Variables within function

    5
    0 Votes
    5 Posts
    37 Views
    ChazroxC

    @Ben-Catman

    I think you could just

    reg x = yourKnob.getValue(); // declare x // then just use 'x'...

    I think you can also

    local x = yourKnob.getValue(); // from within your inline function... // then use 'x'...
  • Adding JSON properties to a component via script?

    4
    0 Votes
    4 Posts
    54 Views
    Christoph HartC

    @VirtualVirgin Little unrelated tip of the day:

    mySliders.map(function(element){return element.getId();});

    can also be written as

    mySliders.map(element => element.getId());

    Link Preview Image Arrow function expressions - JavaScript | MDN

    An arrow function expression is a compact alternative to a traditional function expression, with some semantic differences and deliberate limitations in usage:

    favicon

    MDN Web Docs (developer.mozilla.org)

  • How do I send 'noteOff' messages from UI Button?

    Solved
    7
    0 Votes
    7 Posts
    72 Views
    ChazroxC

    @VirtualVirgin This worked best for me! Thank You! I got it working with my chord script perfectly. 🙏

    Bingo:
    Screenshot 2025-06-20 at 11.38.07 PM.png

    The script:

    for (i = 0; i < chord1.length; i++) { Engine.setKeyColour(i, NoKeyColour); Synth.addNoteOff(1, chord1[i] + 60 + Octave1 + Chord1Choice - 1, 0); } //THANK YOU!
  • Just wondering about how this logic condition evaluates

    6
    0 Votes
    6 Posts
    87 Views
    VirtualVirginV

    @d-healey said in Just wondering about how this logic condition evaluates:

    @VirtualVirgin said in Just wondering about how this logic condition evaluates:

    Yes! That is the solution :)

    You can probably also get rid of the ternary operator at the end - ? true : false because the statement itself should return true or false.

    Yes, that makes sense. It is just evaluating to that anyway, so no need to make it redundant.

  • Articulation Switches Alternative Routing??

    Solved
    5
    0 Votes
    5 Posts
    64 Views
    ChazroxC

    @d-healey makes sense! 🙏

    @d-healey said in Articulation Switches Alternative Routing??:

    Of course not

    Its much appreciated!

  • Preset browser LAF - hover?

    7
    0 Votes
    7 Posts
    93 Views
    Christoph HartC

    @tomekslesicki I'm quoting your deleted post her because these are still valid questions:

    thanks! How do I know which css classes correspond to which elements? Also - I remember seeing a commit when you allowed LAF and CSS to co-exist. How do I approach this?

    This is documented in the Preset browser docs with a cheat sheet that shows all CSS identifiers for each component. However I've noticed that I haven't ported all the nice debugging tools that are available in the multipage dialog editor to the HISE CSS workflow, so I'll be doing that over time. For now I've added a simple overlay that shows some (but not all nested component IDs):

    I remember seeing a commit when you allowed LAF and CSS to co-exist

    Yes, this is now possible, you can give a single LAF object a style sheet as well as a script paint routine and it will use whatever is best (with the script functions always having the precedence over the style sheet definition with the exception of the popup menu styling which is CSS first).

    On some objects, obj.over works, on some it's obj.hover. Wouldn't it make sense to make both of these descriptions perform the same function in LAF?

    Yes that also annoyed me whenever I'm writing LAF functions. I obviously can't just correct the typo as this would break existing projects, but I can duplicate the property so that every LAF object that has over will get a hover property with the same value, then we can phase out over in 20+ years lol.

  • Changing playback position of audio looper

    2
    0 Votes
    2 Posts
    47 Views
    LindonL

    @marbey consider replacing your Audio Looper with a Sampler and using a SampleStart modulator there, remember the sample start modulator will work in percentages of the range you set up for the sample (wav file) itself in the sample editor

  • enable Midi select

    7
    0 Votes
    7 Posts
    68 Views
    ulrikU

    @d-healey thank you, good example!

  • FFT Analyser Path - Need help drawing the magnitude to height

    Unsolved
    20
    0 Votes
    20 Posts
    2k Views
    C

    @HISEnberg I couldn't make a better example snippet than @ustk has already done above. Maybe you can post your code and we can see if we can get it to work.

  • Chord Player Inversions || Help with Indexing!

    Solved
    10
    0 Votes
    10 Posts
    151 Views
    ChazroxC

    @dannytaurus it does also have a WaveGenerator for auditioning chords on its own as well. When the 2nd track is piggy backing the midi from the this I just mute the output and hear Serum only for instance. Its great!
    Its no more work than setting up a send track. All good with me.

  • Any particular reason that eval() does not work here?

    8
    0 Votes
    8 Posts
    59 Views
    d.healeyD

    @VirtualVirgin parseInt and trace

    I think I made a video about undocumented functions (if I didn't I should).

  • Memory leak with Engine.loadAudioFilesIntoPool

    12
    0 Votes
    12 Posts
    666 Views
    d.healeyD

    @Elezeid said in Memory leak with Engine.loadAudioFilesIntoPool:

    Am I really the first to run into this issue?

    First one to report it at least, I haven't tested for it though.

  • -1 Votes
    34 Posts
    5k Views
  • Real-Time Skew Control on Linked Knob – Need a Better Way

    4
    0 Votes
    4 Posts
    119 Views
    ILIAMI

    @Chazrox
    Thanks a lot, man! but it doesn’t seem to update the behavior after I tweak the Skew knob and then move Knob1.
    You need to hit compile every time after changing the skew value

  • Preset Browser callback?

    3
    0 Votes
    3 Posts
    99 Views
    L

    @d-healey Ahh gotcha - thanks as always d.healey!

    For the future:

    //PresetDisplay const var PresetNameLabel = Content.getComponent("PresetNameLabel"); UserPresetHandler.setPostCallback(function() { PresetNameLabel.set("text", Engine.getCurrentUserPresetName()); });
  • Midi-Out Messages?

    Unsolved
    11
    0 Votes
    11 Posts
    341 Views
    ChazroxC

    @ulrik Besides these weird hang notes...I got it somewhat working. Ableton is atleast printing out full chords now! Any advice why only these notes getting hung up?

    Im able to play full chords in real time through another instrument, in this case Waves Grand.
    Screenshot 2025-06-12 at 11.45.40 PM.png

  • Protocol || Compiling MidiFX plugin....

    Solved
    19
    0 Votes
    19 Posts
    991 Views
  • Faust Meter > Global Cable > Interface?

    5
    0 Votes
    5 Posts
    370 Views
    whoopsydoodleW

    I wrote a reply but I guess it got sucked into the void with the forum server instability yesterday.

    I did get it working. The things I changed were that I switched to using a global_cable node instead of a global_send. I don't understand why I needed one over the other but with that change my scriptnode now compiles fine.

    Also I needed to be routing a 0-1 value to the cable input in scriptnode. I was sending a negative value which shows up fine on the value knob readout in the scriptnode but I guess was being clamped to the 0-1 range and showing up as all 0.0 once it was read by the interface script. Using the .setrange() function apparently maps 0-1 data being input to the range you set, it doesn't change the requirement for the input data to be within 0-1.

    All of this is somewhat stabs in the dark as there seems to be very little documentation on anything scriptnode. But it is working.

  • Running a shell script

    17
    0 Votes
    17 Posts
    477 Views
    ustkU

    @Dan-Korneff said in Running a shell script:

    I think the .command will automatically open terminal.

    Seriously ? I searched for hours and GPT couldn't say more than "use Automator to start the shell automatically..." 🙄
    Your're the man 👍

  • Modulation intensity modes (bipolar, scale, add?)

    12
    6 Votes
    12 Posts
    1k Views
    griffinboyG

    @Christoph-Hart

    Amazing indeed, thank you

21

Online

1.8k

Users

12.0k

Topics

104.2k

Posts