HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. VirtualVirgin
    3. Topics
    • Profile
    • Following 1
    • Followers 0
    • Topics 137
    • Posts 518
    • Groups 0

    Topics

    • VirtualVirginV

      Selecting a whole block of code

      Watching Ignoring Scheduled Pinned Locked Moved General Questions
      3
      0 Votes
      3 Posts
      58 Views
      dannytaurusD

      @VirtualVirgin The editor drives me batty. It functions so differently to what I'm used to that I'm constantly making subtle typos that fail to compile.

      I'm looking into coding in my familiar code editor and hopping back to HISE just to hit F5. Thinking about it, there might even be a way to automate it. Set up a file watcher and every time a script file int he HISE project is saved, tell HISE to compile. 🤔

    • VirtualVirginV

      Set font style?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      16
      0 Votes
      16 Posts
      100 Views
      d.healeyD

      @VirtualVirgin might work, try it in the compiled plugin and let us know

    • VirtualVirginV

      Is there a way to change the double-click delta time threshold?

      Watching Ignoring Scheduled Pinned Locked Moved General Questions
      1
      0 Votes
      1 Posts
      35 Views
      No one has replied
    • VirtualVirginV

      Trouble with Array.contains()

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      3
      0 Votes
      3 Posts
      52 Views
      VirtualVirginV

      @d-healey Right on both counts of course!!

    • VirtualVirginV

      Completely flummoxed over panel value...

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      4
      0 Votes
      4 Posts
      69 Views
      ustkU

      @VirtualVirgin hard to tell without knowing what scribeData is

    • VirtualVirginV

      Any ideas on why .charAt() would suddenly stop working?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      7
      0 Votes
      7 Posts
      78 Views
      VirtualVirginV

      @d-healey Actually, I think I just found the error:

      local MPN = direction == "up" ? noteObject.y[0] : noteobject.y[noteObject.y.length -1];

      vs.

      local MPN = direction == "up" ? noteObject.y[0] : noteObject.y[noteObject.y.length -1];

      I forgot the camelCase on noteObject for the false branch :P

    • VirtualVirginV

      Is there a way to search all included .js files?

      Watching Ignoring Scheduled Pinned Locked Moved General Questions
      3
      0 Votes
      3 Posts
      88 Views
      VirtualVirginV

      @aaronventure Thanks!
      This is great! What a useful feature.

    • VirtualVirginV

      How can I efficiently remove a key from an object?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      7
      0 Votes
      7 Posts
      170 Views
      Christoph HartC

      @d-healey yeah something like JSON.delete(obj, key) is the easiest way, the delete syntax would require a real brain-twister with the current parser.

    • VirtualVirginV

      Is there a guide for the SVG to path converter?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      7
      0 Votes
      7 Posts
      266 Views
      C

      @d-healey They are now in the docs: https://docs.hise.audio/scripting/scripting-api/scriptpanel/index.html#setmousecursor

    • VirtualVirginV

      Just wondering about how this logic condition evaluates

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      6
      0 Votes
      6 Posts
      177 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.

    • VirtualVirginV

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

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      8
      0 Votes
      8 Posts
      156 Views
      d.healeyD

      @VirtualVirgin parseInt and trace

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

    • VirtualVirginV

      Out of curiosity, why are external .js files not allowed inside a namespace?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      6
      1 Votes
      6 Posts
      414 Views
      Christoph HartC

      I think the reason is just that the JS parser can‘t build namespaces across multiple files, but I don’t think there‘s a valid reason for touching that part of the codebase…

    • VirtualVirginV

      LAF to draw text input of a slider?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      10
      0 Votes
      10 Posts
      1k Views
      ChazroxC

      I just found this on the forum compliments to @HISEnberg ! 🙏

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

      Content.makeFrontInterface(200, 50); const var Label1 = Content.getComponent("Label1"); const var lblCss = Content.createLocalLookAndFeel(); Label1.set("text", "CSS Label"); // Email/Key Label Laf lblCss.setInlineStyleSheet(" * { letter-spacing: 2px; font-weight: regular; } /** Render the default appearance. */ label { background-color: var(--bgColour); color: var(--textColour); border-radius: 5px; padding-left: 50px; padding-right: 20px; text-shadow: 2px 2px 5px rgba(0,0,0,0.3); } /** If you edit the text, it will use this selector. */ input { text-align: left; padding-top: 0.5px; padding-left: 50px; padding-right: 20px; caret-color: white; font-weight: bold; } /** Style the text selection with this selector. */ ::selection { background: #50FFFFFF; color: white; } "); Label1.setLocalLookAndFeel(lblCss);
    • VirtualVirginV

      Very strange behaviour with Engine.getUptime()?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      8
      0 Votes
      8 Posts
      736 Views
      VirtualVirginV

      @d-healey There isn't a particular standardization spec for MIDI 1.0 timestamps that I am aware of so I was thinking the HISE timestamp would be related to an internal clock. I would expect the output to be in samples, milliseconds or maybe PPQ, but I don't see that reflected in your Console.print there.

      @Christoph-Hart
      How do the timestamps for MIDI messages work in HISE?

    • VirtualVirginV

      How do I use LAF to draw the dropdown of a comboBox?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      5
      0 Votes
      5 Posts
      459 Views
      VirtualVirginV

      @Chazrox Thanks!!

    • VirtualVirginV

      Font not changing on comboBox. What am I doing wrong?

      Watching Ignoring Scheduled Pinned Locked Moved General Questions
      5
      0 Votes
      5 Posts
      422 Views
      ChazroxC

      @d-healey Good to know! I LAF everything so I didnt notice this was even broken.

    • VirtualVirginV

      Engine.getSamplesForMilliseconds() not working

      Watching Ignoring Scheduled Pinned Locked Moved Bug Reports
      5
      0 Votes
      5 Posts
      515 Views
      C

      @d-healey It's those kinds of catches that make you a legend, mate.

    • VirtualVirginV

      What customs are involved for HISE users editing the the documentation?

      Watching Ignoring Scheduled Pinned Locked Moved Documentation
      2
      0 Votes
      2 Posts
      337 Views
      d.healeyD

      @VirtualVirgin The doc you see in the API browser is auto generated from the HISE source.

      Link Preview Image HISE/hi_scripting/scripting/api/ScriptingApi.h at 372a9e682cff2f3b52ee432ae50977fc95d9173c · christophhart/HISE

      The open source framework for sample based instruments - HISE/hi_scripting/scripting/api/ScriptingApi.h at 372a9e682cff2f3b52ee432ae50977fc95d9173c · christophhart/HISE

      favicon

      GitHub (github.com)

      There are a couple of ways to edit the docs depending on if they are auto-generated or not.

      If you see bafcb1ce-22ff-4c1a-8fe6-cf7f08bca43b-image.png then you can click that to edit the doc directly.

      For the rest of the docs you should clone the docs repo, make your modifications, and make a pull request.

      Bit of info here too - https://docs.hise.dev/working-with-hise/project-management/documentation/contributing.html#setup

    • VirtualVirginV

      Confusing error: "Call of ignoreEvent() outside of midi event callback" happening directly on the midi callback

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      17
      0 Votes
      17 Posts
      1k Views
      d.healeyD

      @VirtualVirgin yeah once in on init is good

    • VirtualVirginV

      Problems with persistent panel data?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      10
      0 Votes
      10 Posts
      858 Views
      d.healeyD

      @VirtualVirgin

      You shouldn't declare a function within a paint routine or mouse callback. I'm pretty sure that will reallocate memory for every redraw of the screen or mouse movement.

      Functions should be declared in on init, and 99% of the time they should be inline functions.

      For paint routines and the like for your factory functions, I would declare them outside of the factory function - unless they're really short. This is more of a code cleanliness thing though than a performance issue.

      local t = Engine.createTimerObject(); t.setTimerCallback(function[panel, t, rangeMinMaxArray]

      Why don't you use the panel's built in timer instead of using a separate timer object?