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

    Topics

    • VirtualVirginV

      LAF to draw text input of a slider?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      10
      0 Votes
      10 Posts
      150 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
      112 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
      93 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
      89 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
      131 Views
      clevername27C

      @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
      113 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
      278 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
      213 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?

    • VirtualVirginV

      What is the purpose of the control callback on a Viewport?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      2
      0 Votes
      2 Posts
      69 Views
      ulrikU

      @VirtualVirgin if you set "useList" enabled, it will behave like the combo box

      Skärmavbild 2025-05-07 kl. 06.51.55.png

      HiseSnippet 835.3ocsUstaSCCE1tsAQCWDC3AHZ+pCll58sBBwX8BTAcqhNl3eSdNNqVKwNJwYiJzdl3Ui2.33jz1zstATwxOrhOmy247Yet3gARJKLTFfvlGNwmgvOzXzDgZb6wDt.0uCB+XiAjPEKvJQzdS7IggLaDFm+8ZA3hEPwe+7s6QbIBJatHD5HImx9D2iqlKc3tej651iXyNj6kw5561mJEsktxHfO4MJi7IzyHmx1mnMKmA5CjvwH7KLZTsFst811Uq1nUSJoIqkCwwoRM650atSqJ0ZQpuSSV4FH785ZyUxfQJhhEhvE1SZOYzX4Ehj.bDOjehKSuoBZDD4Dw8jt15inVJp8Xtq8voWTgHvKCmeskO4Z64FC317Yxme88jXEVyQj8BDmaQ5keA5UIK8JmgdKgR3LTpPBkVyXDMf6qlqQymGXzW.YSGBjmxRkDaQ49A1nsDrPn1xibFqW.rYFhRMKWdSKXYiWaZZBIqPkEPb0Qb1E9x.k0arlBlXaOUZo0OLiMquYCvGMztHKzsBYJM1.oaahq6IPluTV8WQWLA3BWtfY4DInJtTXcK1WhJ87kBfYaZcNwMhsg42MKBFEJcYa4GvE.MiUX8p0sdokJPebSrDh0kyhgTruTwNPTJ1AlWZZcUUNNKUWJgbYAKUstUH31.VRD4cBKHK80FBo6EqgLt4Znrk3zj7TFCkh9Bt5.el3lJ7QoIWc8VJq.SUwUaOMsZiMKsi315oGYy8nXtCbDG2v+k9cHJxTuANFBlOKPw0mCbG14vrijZ4hFcXgmoj9w1llIgt6+kX+McbqBgcxzehBgQSgfev43JlGDzmYn+ohodsZ7ZMXd00ZsflZocjKQsXmtddXpBH0sP6ktERDxUSxNu7+V6+eKEWyXHWQGubNlaIbDxM2EbLcn4iL553vnp4DrfQuud2LgD8YYjhKNc.QEv0kB6G4MBdngxfnKDLWcqCNmtHOYe4okoiXB63M+B9RUVQuGmprxTkHOBMPdLMo0POV99wR.NIheBqH7VJr2pxzFg42ydvqDGSoK5pqAr5pBr1pBr9pBrwpBr4pBb6UE3N+Yf5GweWjR5kz1fPCF1Md3EF2UPfJv3pUzuAAdonS.
    • VirtualVirginV

      .get("childComponents") does not work or am I misunderstanding something?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      6
      1 Votes
      6 Posts
      133 Views
      d.healeyD

      @VirtualVirgin Ah I see, then yeah a panel is probably the way to go unless you want to return them in an array or object

    • VirtualVirginV

      "Unexpected character" bug?

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

      @d-healey I asked Gemini to edit a block I was working on but now I have rewritten that entire section so the String() is not being used at all. It was trying to convert the cellValue to a string, which was not necessary anyway.

    • VirtualVirginV

      Bizarre situation with component creation order

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      2
      0 Votes
      2 Posts
      92 Views
      VirtualVirginV

      @VirtualVirgin
      Ok, I solved it.
      The issue had to do with the order that the components were being then assigned to the parent container, which effects their order in the Component List.

    • VirtualVirginV

      Is it possible to change the location of "x" button to close the panel in popup mode?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      2
      0 Votes
      2 Posts
      65 Views
      d.healeyD

      @VirtualVirgin Roll your own pop-up panel, there's not much you can do with the stock one.

    • VirtualVirginV

      Is there a way to limit the scope of variables declared in a loop?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      7
      0 Votes
      7 Posts
      203 Views
      d.healeyD

      @VirtualVirgin said in Is there a way to limit the scope of variables declared in a loop?:

      Is there a way to limit the scope of variables declared in a loop?"

      Nope.

      Local variable scope is limited to the inline function.

    • VirtualVirginV

      Column visibility bool not working for Viewport in table mode?

      Watching Ignoring Scheduled Pinned Locked Moved Bug Reports
      2
      1 Votes
      2 Posts
      78 Views
      d.healeyD

      @VirtualVirgin It wasn't implemented, fixed in this PR.

    • VirtualVirginV

      I seem to have forgotten how to implement LAF on a label

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      5
      0 Votes
      5 Posts
      134 Views
      HISEnbergH

      @VirtualVirgin You might try CSS on the Label instead:

      Link Preview Image HISE | Docs

      favicon

      (docs.hise.audio)

    • VirtualVirginV

      How can I get rid of these floating point errors?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      4
      0 Votes
      4 Posts
      219 Views
      d.healeyD

      @VirtualVirgin Why do you want less precision?

    • VirtualVirginV

      Loading functions stored in an array from a JSON file is coming up "undefined"

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

      @Christoph-Hart said in Loading functions stored in an array from a JSON file is coming up "undefined":

      define your functions in a Javascript object in your script and then just store the function name in the JSON that you export.

      Thanks! I got it working now :)

    • VirtualVirginV

      Viewport in Table Mode - toggle visibility of columns?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      1
      0 Votes
      1 Posts
      44 Views
      No one has replied
    • VirtualVirginV

      Graphic glitches when putting a Viewport in Table Mode onto a panel

      Watching Ignoring Scheduled Pinned Locked Moved Bug Reports
      2
      0 Votes
      2 Posts
      65 Views
      d.healeyD

      @VirtualVirgin Does it work if you disable opaque?