• Need SliderPack like behavior for buttons

    6
    0 Votes
    6 Posts
    1k Views
  • How do you play a note of a certain length?

    6
    0 Votes
    6 Posts
    1k Views
    Christoph HartC
    HiseSnippet 1053.3oc4Ws0aaaCElx1BqVcNXcnCXOJXrGb.xLjRujADLzbowEFq4Bhxx5acLRT1DklzihxsdE4+39oz+AaGJJaI6pkXm0sArYD6.9ctnOdHOej5LoHjjjHjHq6ewzwDj0maGLkqFd3PLki5+bj0F1GiSTDoqA5foiwIIjHjkU8WnArZ1.k84CO6.LCyCIEPHzkBZH4kzQTUA5Ou2OPYrd3HxEzQk79w60OTvOTvDo.epa6gFiCeCd.4Dr1sZ1nITxaSPVd1OZ6tx23e0ute2k9L8xgvuwKhiBSkRBWcIDNxx152gOV1GEQUBYfBqHPNabfHZZvPwa4lG8kzD5ULhdfOJ.3jAtmfEom7ZTzgCornylUBSPPtOqnfV2TPen8wzH5b7hB6WjYvsHhxkVqZ2D87uc54UE8rJQuFF58.6fPIcrpvhlaeYN5eB6LFQ0dUMaGXIKQ4NAKcOHUoDb2u28PAWAk6t3nHCVm1l+2dKWee3q2l65XP5lPTcZqHuSA1ZCyVop8l61xokCkynbhabJOTQgzNlgmdhPQ5vgeNIczUD4VtLBefZXe9wvFJZBA3RTxlsbdeKmlLQHlM2g.7nwLRBPti3Cf71c.Qki0SHyBOvDdmJyIPolveY8F54klImx6.Slxzwe6c1x0Ky4E8LNdYWWhXPA45cmOWE777uoy6cZ5bsyxVf7UgIccWJXLhrJq5lsbCyqkO0SuZXXbk4pCOmuSvrTRVvz3NlAPL5BcQ11Y6hrkW.RzqnlmrW2m.yxlWqMBeIrDRY+DiyIHTIbfcvKt+2Y01+GZ14UxQAuOmpNcLIuudVo8iPhiKCUTJKilwvJbaFTUZBn7tAc6Wt6fqprluMxayL8BHJzbcO67AY03xRonOt4EjPDQoLrZQcEstbtAXwbgN29ZtjPUSKqauFhMdqrV3pR2GXeFUENrZ9VqB9BEx+t4atzcK6ihiIgpBx1vt2qtq5z2MprggJ22N.Tsx5UxHxWkM18mvSHtufvIRcQ8FNb929ze37ogJ3oegDySFKRVHwAjQzKDbcAo.7GSH8jje4b8hbY7CEXYkl9vy5AywJiI.qRkY6V1ejHkqVX2wRRG1qlzwhMMk7+VNxuw+BG4+ouK7utnQ8Uit2xsR9rYbLfpOW7H9DBS.HFkhmShwoL0bzakj6qTvUHKPd3dmSXDb4cqeyduD1kgkvbmbGme9q976lVC9ZaCcc0cdt+2P.u9+OEvOWjpn7AGiUR56.IH3VeAfvYHAXBmCW8Q+ZH0zhelwd5wFkSdj2r2QI2nudrUtQ+YF+G4YLBGJEuNzbsE8d46kg.yad16j0Dd4PXrq+rqqnqMi.MtWGFpK1eKTcpNhsW6HdzZGwiW6HdxZGwSW6H1Ysi36tgHzGnrepRLxz5gP+A.KWjDd

    The most important part:

    inline function playNote(noteNumber, lengthInMilliseconds) { local lengthInSamples = Engine.getSamplesForMilliSeconds(lengthInMilliseconds); Synth.addNoteOn(1, noteNumber, 127, 0); Synth.addNoteOff(1, noteNumber, lengthInSamples); };
  • 0 Votes
    5 Posts
    1k Views
    d.healeyD

    Not every control, you can do a check to see if the control is in the array before looping, which now that I think of it would give you the array index of the control so you wouldn't need a loop after all.

    I just realised that's what Christoph has suggested.

  • Can't access object in object

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

    4
    0 Votes
    4 Posts
    1k 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
    3k Views
    Christoph HartC

    Yeah I'll take a look.

  • Ignore sustain pedal

    8
    0 Votes
    8 Posts
    2k Views
    d.healeyD

    Yep that did it :) thanks!

  • Some basic questions

    74
    0 Votes
    74 Posts
    22k 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
    2k 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
    1k 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
    3k 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
    2k 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
    755 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
    997 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
    2k Views
    d.healeyD

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

  • MidiProcessor Exists

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

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

    2
    0 Votes
    2 Posts
    851 Views
    Christoph HartC

    Fixed in the latest commits.

32

Online

1.8k

Users

12.1k

Topics

105.1k

Posts