• Can't access object in object

    1
    0 Votes
    1 Posts
    400 Views
    No one has replied
  • How do you create an array of gui elements?

    4
    0 Votes
    4 Posts
    845 Views
    Christoph HartC

    Actually using a temp variable doesn't make a difference performance wise because the variabe just stores a lightweight reference internally and doesn't duplicate the actual label.

    Using the new array.reserve() function before the loop would make things a bit faster though...

  • Trying to create a retina GUI, but am hitting max allowable resolution.

    6
    0 Votes
    6 Posts
    1k Views
    Christoph HartC

    I'll take a look at it tomorrow. Meanwhile, you could use the ScriptPanel and simple draw the image there (the ScriptPanel is working correctly, I am using it for another iPad project).

    const var Panel = Content.addPanel("Panel", 0, 0); // [JSON Panel] Content.setPropertiesFromJSON("Panel", { "width": 1024, "height": 768 }); // [/JSON Panel] // Load the retina image with double resolution Panel.loadImage("{PROJECT_FOLDER}bg.png", "bg"); Panel.setPaintRoutine(function(g) { // name, x, y, w, h, xOffset, yOffset g.drawImage("bg", [0, 0, this.getWidth(), this.getHeight()], 0, 0); });
  • Script Panel Properties Related with Popup Menu

    13
    0 Votes
    13 Posts
    2k Views
    Christoph HartC

    Yeah I'll take a look.

  • Ignore sustain pedal

    8
    0 Votes
    8 Posts
    1k Views
    d.healeyD

    Yep that did it :) thanks!

  • Some basic questions

    74
    0 Votes
    74 Posts
    17k Views
    LevitanusL

    Huge Thanks for You! I've got couple of very hard days, and the night should br also very busy, but tomorow I will try everything.
    By the way, i tried to fix it before the first compilation:

    somehow your sample references got messed up. If you copy the Main Container in the clipboard and paste it in Sublime Text or another text editor, you'll see that the file references in the samplers look like this:

    But couldn't. The matter is, I think, there was wrong sample and i just deleted it from the map.

    You'll need to build a new HISE

    Scares only the first time, then everything just a cup of tea)

  • Weird transposition problem

    7
    0 Votes
    7 Posts
    1k Views
    d.healeyD

    I figured out why my code had been pasted in the on Controller callback. I'd put the timer callback before the controller callback in my script - I think I've done this in a lot of scripts because I setup a template for it... time for some revision :)

  • Auto Complete

    5
    0 Votes
    5 Posts
    983 Views
    Christoph HartC

    Escape is the native shortcut for Autocomplete on OS X's Xcode, but this may be not obvious for Windows people :)

  • Merging scripts

    14
    0 Votes
    14 Posts
    2k Views
    d.healeyD

    Oh now why didn't I think of that! That's the perfect solution, thanks again!

  • Dynamically adding effects

    8
    0 Votes
    8 Posts
    2k Views
    LindonL

    Nice, well done, and thanks.

  • Calling child functions

    8
    0 Votes
    8 Posts
    1k Views
    d.healeyD

    Coming from Kontakt I think of it this way, each sampler you use in HISE is essentially what you get when you have a single NKI in Kontakt. Each sampler can have groups, just like a Kontakt instrument, into which you can map your RR or dynamic layer samples.

  • Refresh Map

    2
    0 Votes
    2 Posts
    584 Views
    Christoph HartC

    onInit is enough (actually you only need to call it when the mapping changes)...

  • Connecting a table to multiple processors

    3
    0 Votes
    3 Posts
    751 Views
    d.healeyD

    My use case was to put a CC modulator in each sampler to control gain via expression and then have a table on the interface that controls the table of each modulator. After playing with it some more I realised I could just grab the CC value in the script and scale it to the table setting, then forward that to the modulator. This saves me having to specify the modulators in the script too.

  • Purging all samplers

    5
    0 Votes
    5 Posts
    1k Views
    d.healeyD

    Wow that was fast! I'll try it out soon

  • MidiProcessor Exists

    1
    0 Votes
    1 Posts
    470 Views
    No one has replied
  • Already included error

    1
    0 Votes
    1 Posts
    541 Views
    No one has replied
  • Includes absolute path

    2
    0 Votes
    2 Posts
    660 Views
    Christoph HartC

    Fixed in the latest commits.

  • numPressedKeys and isLegatoInterval with ignoreEvent

    3
    0 Votes
    3 Posts
    675 Views
    d.healeyD

    Aha! I misunderstood what was happening. The current behaviour is fine :)

  • Timer callback in multiple scripts

    4
    0 Votes
    4 Posts
    1k Views
    Christoph HartC

    It creates an extra timer but it runs in the message thread, so I would use it for audio stuff, and actually since ScriptPanels also have a timer for animation it became pretty useless - I think I added it before I added timers to the Panels but left it in the code base for some weirder use cases. Somehow the API doc didn't make it in the autocomplete list, but this is the usage:

    const var timer = Engine.createTimerObject(); timer.startTimer(150); // in milliseconds timer.callback = function() { Console.print("tut"); };
  • How to check if a key is held

    4
    0 Votes
    4 Posts
    800 Views
    Christoph HartC

    I thought it was there, but it wasn't. But I added it now, this is a reasonable request.

9

Online

1.9k

Users

10.7k

Topics

93.1k

Posts