• Query multiple TOKENS? || Please advise!

    Unsolved
    11
    0 Votes
    11 Posts
    429 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
    475 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
    2k Views
  • 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
    1k 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
    323 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
    687 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
    317 Views
    d.healeyD

    @VirtualVirgin I think both work, not sure

  • Convertings problems

    4
    0 Votes
    4 Posts
    246 Views
    ChazroxC

    @hyperphonias np! 🙏 Have a great day!

  • Preset Browser Laf || Multi-line?

    Solved
    16
    0 Votes
    16 Posts
    1k Views
    ChazroxC

    @treynterrio Did you already have a LAF going for column background? If you didnt, you will have to draw it again yourself because now you're taking over the look and feel of that section.

    start with :

    g.drawRect(obj.area); // or g.drawRoundedRectangle( obj.area, 6, 1.0); //etc.
  • Midi Seq and Track to Display in Ui

    10
    0 Votes
    10 Posts
    430 Views
    T

    @HISEnberg ok but i think there a way to make viewport and display both seq and track in order to select difference seq and difference tracks in midiplayer

  • Sliderpacks, Working like Radio buttons, How?

    5
    0 Votes
    5 Posts
    355 Views
    ILIAMI

    @d-healey Thank you so much

  • Making a list of global, classless functions for reference

    3
    2 Votes
    3 Posts
    200 Views
    It_UsedI

    @VirtualVirgin I looked at the js manual, of course there are more functions, but only the ones you mentioned work in Hise, maybe undefined match to context

  • How to ensure MIDI Overlay Panels Load on Exported Plugin?

    24
    0 Votes
    24 Posts
    2k Views
    ustkU

    @ILIAM Then you should first learn to get a list of your midi files, load them in a combobox, then use the combobox to load the sequences in the player.
    Here's a good place to start https://docs.hise.dev/hise-modules/midi-processors/list/midiplayer.html

  • Where is the "EDIT TAGS" Button?

    Solved
    7
    0 Votes
    7 Posts
    354 Views
    d.healeyD

    @Chazrox But the process for the user for adding tags is weird, I don't like it anyway :p

  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    13 Views
  • FLIP FFT Display? || Solved || Code Snippet.

    Solved
    4
    0 Votes
    4 Posts
    313 Views
    ILIAMI

    1000050915.jpg

  • Midi Player - Playlist

    11
    0 Votes
    11 Posts
    1k Views
    ChazroxC

    @d-healey thats the best kind come on. 🤣

  • Range (min/max) of an attribute of an effect

    Unsolved
    12
    0 Votes
    12 Posts
    562 Views
    Oli UllmannO

    @d-healey
    That's right. Because with SlotFX.getCurrentEffect(), you always get the effect loaded in the slot. So you could also implement it in the effect class and still have access to the functionality from a slot.

    So I believe... :-)

42

Online

2.1k

Users

12.9k

Topics

112.1k

Posts