• 0 Votes
    12 Posts
    467 Views
    ustkU

    @VirtualVirgin And to add up on friends examples, you can nest two arrays (aka 2D array) so everything lies in one unique keyboard array:

    const var keyboards = []; for (oct=0; oct<11; oct++) { keyboards[oct] =[]; /* add a nested octave array that will hold 12 keys */ for(key=0; key<12; key++) { var keyNb = oct*12 + key; if (keyNb > 127) break; /* 128 is time to break the loop boy */ keyboards[oct][key] = Content.getComponent("Key" + keyNb); } };
  • Passing info between scripts

    4
    0 Votes
    4 Posts
    181 Views
    A

    this snippet https://forum.hise.audio/topic/10635/snippet-per-event-modulation-from-ui-with-global-storage

    has an example of globals usage where the interface and the processor script talk via a global object.

  • Best Way to Implement User Defaults?

    Unsolved
    2
    0 Votes
    2 Posts
    124 Views
    ustkU

    @clevername27 perhaps a way to do it would be writing the name of the preset in an external file and load it at init

  • Is there a way to set button text from script?

    14
    0 Votes
    14 Posts
    485 Views
    VirtualVirginV

    @d-healey said in Is there a way to set button text from script?:

    @VirtualVirgin I'm not 100% sure what you're doing, but it sounds like you're adding components dynamically at run time (after on init), if that is the case I think you'll run into issues.

    If you want to change which components appear on top of one another you can use setZLevel().

    The function for:

    ScriptButton.setZLevel(String zLevel)

    Does not appear to be working.

    Here is a test snippet:

    HiseSnippet 903.3ocsV01aaaCDlxwpXV6ErBr8ch7ImhhVY4jlZLTzT6D2YrlDi4rhs9kBZpyQDQhTPjJoFECX+j2efg1iRJwJId4EuU+ACc7tGdO2oGdTiyTbPqUYDGuilmBDmuwcxboIZPDSHIi1k37it8yMFkj9N5afSgX5Qf1P5OOko0PHwwYsWaC0oUSRwu+9k8YwLIGVrDg7VkfCuQjHLKVc7N+hHNdHKDNRjTK5M2YDWIGnhU4HsVy0mjx3mvNFNfYCqgK4mY5Hhyib47M6AOeVv19A8fsB2bZPGeVfeudaCrs74S6ArfYS49DmGrWnvnxlXXFPiaZeU37IQpyjkI3sBsXZLXM5PlfYtbYxfHQb33y6QZBwo43Ecr0J6X+f69hPwEquny88ENnKPTuo4z3lnTm6AkbpQolkT5gtS3YhTyBOV970tijFHaFCe2TmJkwRZ7ONtCTXDRySRXm.CyPiKPz9Y99Olh+swO448zm1kNsPUn8v2UZC8TVFsTmzg9B54aywfYfJIUIQi1qW4ecbGtJnfaATvx.08V.0c8RtpACJdiKDuFEMCeHSCTUVHjQaqUztTglhJbSDPmpPnITlLj1470LpzR3a3UUCOA2y2Ubbn85uJ9L1b8gxiTo1DVk65QzG0uUb4kyxkbi.2Xk7.kANT1dCuO50x6O8nW00rYK0msjyTwwP1RcaOLkcS.aKySlBYOF6jw4vEAhhmKqHevcSQxKeCTKPkbjTXNLEprGphCsJM6yWW+RpdEhJ40pXH9joPG+cU53xdJQfaRqpwQcHEzu9PFx8.dv+M3cWB7eaztLCydfrphvpLExLBayzYW3TbDX4wyVt6B5SPUUQIWoZwF9cnn+vhT9G6LegwA6blHzfSEcc9.ZFAhiiLVqgkU18HIA0Rxew9Bkjt0qDwcOIWeVGNkUElGyLWdzq8RoJGn5+Ry6ryzjZgYd8Kst573l+6pe+Zp+aQaeGo6CcGKL7nky2FKgunJ6KMeqtc6ac2a1LfaVP1ltC+8a7pr+enxupxMB4w6yLYBTq3dPdxD7KB3.xDoDh0VMQCqtqz12Za6LS.YXgwmveUN6Xscpb14bmjDFOS8dd44d6coeUwJHmjEeqQK28s1zkLrIAuZ+8b9k2pqALXUA1cUAt4pBbqUE3yVUfaup.e9sCz9kWuJGuIu73Dgr+38JFO63rmjgpwBkK4yf.aA.J
  • How do I get the area of a panel?

    3
    0 Votes
    3 Posts
    150 Views
    VirtualVirginV

    @d-healey Thank you! You are always so helpful!

  • Weird output from sliderpack value

    1
    0 Votes
    1 Posts
    67 Views
    No one has replied
  • changing MIDI channel from onTimer / Filling MessageHolder from eventId

    3
    0 Votes
    3 Posts
    129 Views
    SimonS

    @Simon As usual I found that right after asking :D The lack of a channel parameter in playNote definitely threw me off.

  • MIDI transpose on a Scriptnode Synthesizer

    3
    0 Votes
    3 Posts
    188 Views
    Christoph HartC

    yup, bug, should be fixed now.

  • How do I check on all of the values of objects in an array?

    4
    0 Votes
    4 Posts
    180 Views
    Oli UllmannO

    @VirtualVirgin
    Great, that it works for you! :-)
    Sure, send me a snippet and I'll take a look at it tomorrow. :-)

    All the best
    Oli

  • Clickable URL display that opens the displayed URL -> Snippet

    9
    2 Votes
    9 Posts
    719 Views
    Oli UllmannO

    @aaronventure
    I have added it to the waiting room. :-)

  • How to get correct list of filter modes from Engine.getFilterModeList()

    9
    0 Votes
    9 Posts
    783 Views
    S

    @Oli-Ullmann
    Hi, thnak you !
    I will start studying and create something with Scriptnode (yes I too noticed that the Filter module create some glitches when change some parameters, and it happens also with the VST compiled used in different DAWS).
    I didn't try the standalone if it has the same problems.

  • Matrix Peak Meter LAF MaxPeaks always [0,0]

    2
    0 Votes
    2 Posts
    184 Views
    David HealeyD

    Looks like a little typo, fixed in this PR - https://github.com/christophhart/HISE/pull/616

  • Trigger a chord on a single key press

    3
    0 Votes
    3 Posts
    163 Views
    T

    @Oli-Ullmann great, thank you!

  • Get wav length in milliseconds OR sample rate

    4
    0 Votes
    4 Posts
    305 Views
    D

    Appreciated guys, can't believe I missed these! Also got a bit confused with getting getSampleLength and getSampleRate.
    Case of the mondays I guess.

    const var SamplePlayer1 = Synth.getAudioSampleProcessor("SamplePlayer1"); const var audioFile1 = SamplePlayer1.getAudioFile(0); const var samples = SamplePlayer1.getSampleLength(); const var sampleRate = audioFile1.getSampleRate(); const var lengthMs = (samples / sampleRate) * 1000;

    Thanks again.

  • Trapezoid XY Pad

    7
    0 Votes
    7 Posts
    760 Views
    Evan SplashE

    @Lindon Thanks for the advice! I'll start with that.

  • 0 Votes
    8 Posts
    769 Views
    ustkU

    @orange Here's an example:

    HiseSnippet 1549.3ocuV02SaaDF2FvsKYcSsR6emz8WUtqHZRgBkQaWgPxZzJgHLEUooIzg8Y7Ibtyx2Yfro9+6i09.rOL6av1yycNINjzWVzVopfumW+cOudrq0LQDK5TkfmkwzNNtK2OWFxTJYtia8iG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PqydEvH.67AZNbEJ4NYD0wz7yY5YD3CB9630UcBxMjlNB+PUvdR4ECnl5uEaSvmitkAzvb4og1A.3k6KLTfZEgICWCdnGblzz4R6Eaxr5AvSXNMLbZSMihOdQUb8EUwMVTEexhp3lKphasnJ9zOth3KL2sPKGXmgAE48aaJBccaKvdGSerCCF4GAuq0t0AqUGSAZsKajbci43.9kv+XQx2No0+Q2nUcsjQObxYo+bEOMC5agMGjmwEZRuSdAQoyKB0janFtuInW62dZuC2us+MX9fcfkQ0dziH3yu3zTthQzIrQ63.IHvX1PEIgkypW6RIOZzRS+91+FX3mAa.qAdBr16JM4QLESeSqkwyXovn3pFLGEzeF8et8GRmtu931GEL5b8ZwoRpdjQeE+7jfDVZrukrZUBFOBSJsWNSWjKHpcHfIK0gj.JQTnVjXSnnDNFWOk4es7p+0VGVo8oY7pIC06wC7Xhuh7BBrAMFHM1kyb8AEAk1od8aJx3qvHILHwDhKeEgIIo3mKnokXcRwkFFehklijEq0wQpufTVLXn5eCt2mDAeUdEfpVk1bqfWB0Jg7bCy0fEB8vy1gt9Hvf.TsXYNwGEl+7F6P3OynC7wCeHd8Q6YEgBMg2mn9diw9Y9uXBNF10TfKlaHFCtF+fg.7+ip0lSffpHw3ppYhHH1ZM80uCJnuJiJdlIKtJHP0Pv7byAc2uKgcIzNOU2EDNhRYuBZDai77G+08IrYZQdiockql7pSsj.MSEYFWvtFt03cAQRo8AtsKIiIKeaxoJI.31ZPtHhc8L9LXTS83E4yMB0uLBA9a7Je+HYALgjbYEi9tcp637Oh1I.+.

    You "just" have to implement your filter algorithms and manage per channel integrators (ch arg)

  • Replacing Sample in Sampler

    2
    0 Votes
    2 Posts
    131 Views
    Oli UllmannO

    @VeryHuman
    Maybe you should have a look at the custom sample import demo project from Christoph:

    https://github.com/christophhart/hise_tutorial

  • ComponentPropertyListener not working.

    Solved
    3
    1 Votes
    3 Posts
    115 Views
    David HealeyD

    @ulrik Ah you're right, I was misunderstanding the snippet.

  • Malicious use of snippets

    2
    7 Votes
    2 Posts
    163 Views
    A

    @d-healey delet dis nephew

    On a serious note: it's a good point. Probably needs a snipper preprocessor which will execute the scripts, check if any startAsProcess calls were made or FileSystem deletion was used and warn the user about it or load it in the same window like the snippet browser with the ability to display the offensive lines.

    Just checking the script for text wouldn't be enough as you can easily encode a blowfish string and hide it into an eval call.

  • Record audio of unknown length

    14
    0 Votes
    14 Posts
    571 Views
    T

    @ustk genious, thank you!

25

Online

2.2k

Users

13.6k

Topics

118.1k

Posts