HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. d.healey
    3. Posts
    • Profile
    • Following 1
    • Followers 68
    • Topics 1,033
    • Posts 22,035
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Procedure for writing our own API for HiseScript?

      @HISEnberg You've probably seen this already, but - https://docs.hise.dev/cpp_api/index.html#create-your-own-classes

      posted in General Questions
      d.healeyD
      d.healey
    • RE: Scriptnode - Enable filter when Frequency value rises above 20hz

      @DanH said in Scriptnode - Enable filter when Frequency value rises above 20hz:

      although a touch fiddly and hacky

      That's my current scriptnode level :)

      posted in General Questions
      d.healeyD
      d.healey
    • RE: Scriptnode - Enable filter when Frequency value rises above 20hz

      @DanH Maybe something like this

      HiseSnippet 1369.3ocuX0sSiaDEdbfAVR2ssa6V0aizdCaEBk+fETuf.DRaTafz0on8tzA6wjQwdFW6I.Yq5UsWr20WId.1JUIdB5a.8In8LdbRrSRCgT5Fjh7bNmYluy24OGZFHrnggh.jQ1V88oHiGiM6ykcNrCgwQ0qhL9PbCRnjFjSK5f99jvPpMxvXouRIvXskQQetcuCHtDtEcjHD5TAyh9sLOlbjzlU9FlqaMhMsEyKg0kqT2RvOT3J5A3YIbdjOwpK4b5wDkYYvnulD1AY7E3sJVxpr8KsKVbqc21hrMcWGhiSgR1kKu8N6Vnztjx6rMM+VHiUNxlIEAlRhjFBG5AB69lcDWx0WvorP1YtT0hBHS3l0hQG1g4Z2b.4DhPFK2bDUsjlpdFtAylMT9HJ6iiTjazNRRZFYlEjJbOfjQBHsrFROEaZEv7kiznvyGfqygHnCAhMIgh1Vjw03CEfAb4ldjtzZAvhgaX8symeibvWu3Kc5wsjLAOmferPROgu9Kx9SYWK6OmM23pbblpN00DHbcoASUsJcHXVabcdOuynAaj6BhaO5PCA2OMmtx7woVZuNggBdcNSdhOMdcMgqshqTOOYD.ESavSee8pDIQEThkA14SCjLEbLpRu.JCzgn0vUogckBenPXh3Gj4Hr64RjoSmTEZwJ.9HULTEn3gLY+jEh2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ikVzMVdQ23VK5F2dQ23KWzMtycuQ0+hl3oTpDYnNr4Q54rFCJ9g48n+AOpxGkC
      
      posted in General Questions
      d.healeyD
      d.healey
    • RE: Can't reference inline function parameters in nested function body

      @JulesV said in Can't reference inline function parameters in nested function body:

      reg variant can only be used inside the inline function.

      Use local within inline functions. reg is for on init and namespaces.

      However looking at your snippet it seems that the variable isn't visible within the laf function either.

      So here's a better way to do it. Use the ID of the combo box itself, instead of calling them CmB1 and CmB2 we call it cmb followed by the label we want, e.g. cmbStyles. Then in the laf function we can remove the cmb part to get the label.

      HiseSnippet 1327.3ocyW8+SabCE2GvUs651Tqz90MYkeJTkQSBI7kxpZIARGa.E0zQmDppxwmSNu3yN5NGfHJ+59msZR62lz9ksm8cWxQIrgPqR6fPN+76ieedewOaNJVQYIIpXji+qmLhgb9b2tSj5v1gDtDs2NHmuz8.RhlEiSE0ZxHRRBK.43r3KLBb7VBYe98m0hHHRJalHD5XEmx1mGw0yjdzy+QtPzgDvdMOpf1Md9dTkrsRnFC7YQ2pnQD5Px.1gDiZK3h9dRRHx4QtMquJsQv5A0q2by0nj0Xa1mzuesUCZzXsM1r1paRZrwZrpMQN2a2.tVE2USzrDjyRsTAS5FpNSlZfi4I7dBlYPMTWvxoh6nDAFWzHE0NjKBNJOPkffU4nYgsESCaek6A7.9T4yBeOvNAdFhhAPmEtJ8V7JzqVQ5Us.8lCkbJPokRozCc6Ri4izylwvm66tmDxl8IPdpHUR0EsverjaaEngTuRDYHqSLLXJhxMpVsBtd0pKukuuOjrRz31QspgeJlFy.encqUn85P0wSJWhF0yPjjRUvqBnVG9Ta0FUvqYPOEa8aBaW8DgEb8lWCs+ieLtsJpmpk5bruDJORfRE1zEx+BiJdOcNO31VcvuRMVB43YKySm6iOWJ3RFt+XIUyURbNEMFsB97J3IUvmUAGtr+Ed9dBEkHvCAeJOHRBBxMQALfO3kqQByjhFwh0bVBDui9gtu7vTc88tv2yqzY7.cXom.1wLJjwGDpgggU788tb4s.6B+ja7XiiEzt09a2o.MRiL6azXekZ31xfNLlnrEbADqDyFvM616j4ukKEDSNK2CfrQdfn7fJXUueY4TJdJIFS.yARVg.lZqLY5yyDpYmqyEJ5IxjxC.CNRXprLo7RlTqG7.+AxvsdA78.S7IsmP4zuRV4LtNbawnPRY6hnYQoyTqBt5JMW1DbAb8glLYY4WwnZhbffU9DnNB9kbR82BUVq+VChZV.9oF8XhXLKinTSgs0FgpSgNfu+8VVSEb5PVvx3mM00RsO9IVA8FjNbqOh9TqgvviUZGH0Ttz1wbh.hqkqUOm3lH91B9.IK30vZWVCULmPNoZJYaheDP7otfQZIJjhiYAP7yr591.Xp6rOoGSf+V7bWXHQLckquwMsjdoAmKMry2ang5WqNpPITpZwL83XIdnYvk1OoOS2GojGpzrWJKCabryi+3o52etyYpniUBAKdtSaNRI9eBXY43ndr3J3SMY5oJBsMuZuX2atWbwiJnoavJnnRtmjqe4Hl7lN.AksqD5auPFq.U01t1OHqqc9VNDGZO66l2LEYYcwCcQ2pU39tSaoNmk3m1aGhlXNFIiYyZHAx1gcJbHd5gJdt6vRFpUirTOZjRZ7CG+aG4OGBqNeCXyIlW5.uDQrxbgWsc4.KbueM6tCoM5LR9tLIls5.i9Z22.4nX+cIw5P+2vkA9c3wL+2nTA9n7seFf+E7jCblzO7geyJEcK8fhAOKc+y++3BW+be3FGpfwBh9pWCwbYsrIf8CW4rey46xDtdRwhh+ytaxskhOz8HtlFNeNtvb3nY6ym.Nlcituvc298gyMlQvkb67yeZt9FBNmRykCNfni4lpoCGG0ExzTFXcojIL8ibVvTwlNtpYrIBzkICrCLkIYSVyL1IaxZ4SB0ozX06nocKL2Y7yrR.NIs2u1CtnOLFW6iaP.k3vUXeGkd0k5Z.qeWAt5cEXi6Jvl2UfqcWAt9cE3F+6.M+GFaOVqhR21fPGbzt1F5NN6JIPEnsZE824A21d.
      
      posted in Scripting
      d.healeyD
      d.healey
    • RE: Can't reference inline function parameters in nested function body

      @JulesV Yes that's it, it can't be a const though because you can't change the value of a const. You can use a reg instead.

      posted in Scripting
      d.healeyD
      d.healey
    • RE: Can't reference inline function parameters in nested function body

      @JulesV The error there means that label is a parameter of your inline function but it's not in the scope of your laf function which is a different function.

      What you can do instead is declare a label variable in the namespace, set this from within the inline function and reference it in the laf function.

      posted in Scripting
      d.healeyD
      d.healey
    • RE: Floating Tile Keyboard - Possible to Rotate?

      @HISEnberg Sure

      Ah you found it first :)

      posted in Scripting
      d.healeyD
      d.healey
    • RE: Floating Tile Keyboard - Possible to Rotate?

      @HISEnberg said in Floating Tile Keyboard - Possible to Rotate?:

      Looks like it's time for a panel.

      There's a video on my YouTube channel about this if you need it

      posted in Scripting
      d.healeyD
      d.healey
    • RE: Floating Tile Keyboard - Possible to Rotate?

      @HISEnberg Nice

      posted in Scripting
      d.healeyD
      d.healey
    • RE: Floating Tile Keyboard - Possible to Rotate?

      @HISEnberg I think for this you'd need to roll your own using a panel.

      posted in Scripting
      d.healeyD
      d.healey
    • RE: BYPASS Mac Security || sudo code?

      @Chazrox
      xattr -cr pathToPlugin Removes the quarantine flag from the plugin.
      sudo spctl --master-disable Takes a sledgehammer approach and disables gatekeeper entirely.

      posted in General Questions
      d.healeyD
      d.healey
    • RE: How I tell an instance of a ScriptSynth to load a particular DSP network?

      @Dan-Korneff said in How I tell an instance of a ScriptSynth to load a particular DSP network?:

      Am I the only one that ends up with networks like this?

      That's a work of art

      posted in Scripting
      d.healeyD
      d.healey
    • RE: How I tell an instance of a ScriptSynth to load a particular DSP network?

      @Dan-Korneff said in How I tell an instance of a ScriptSynth to load a particular DSP network?:

      basic nodes

      Nope

      posted in Scripting
      d.healeyD
      d.healey
    • RE: Global Variable stuck?

      @Chazrox

      consts should only be declared in on init. If you need to declare a variable in one of the midi callbacks you can use local.

      posted in Scripting
      d.healeyD
      d.healey
    • RE: Can't reference inline function parameters in nested function body

      @HISEnberg

      These are good references

      Link Preview Image
      Scripting Best Practices

      This is a collection of useful tricks which will be extended over time. I divided them into two categories: Interface Design and MIDI Processing. Interface d...

      favicon

      Forum (forum.hise.audio)

      Link Preview Image
      HISE | Scripting | HISE Additions

      A summary of all additions made to standard Javascript

      favicon

      (docs.hise.dev)

      posted in Scripting
      d.healeyD
      d.healey
    • RE: Global Variable stuck?

      @Chazrox Magic! I have never used a global variable in a released project, I recommend avoiding them unless you have no other choice - I have yet to see that situation.

      posted in Scripting
      d.healeyD
      d.healey
    • RE: Can't reference inline function parameters in nested function body

      @HISEnberg said in Can't reference inline function parameters in nested function body:

      Just for starters your paint routine shouldn't be placed in an inline function

      If you're using the factory function pattern then it's an acceptable thing to do. Here's an example from Rhapsody.

      However it's probably a good idea to keep laf external to the factory function and just reference the objects.

      Edit: Ah I just read the OP properly, so it's laf and not a panel's paint routine. Carry on.

      posted in Scripting
      d.healeyD
      d.healey
    • RE: FORUM Gassed??

      I'm still seeing Excessive Load 503 errors quite frequently

      posted in General Questions
      d.healeyD
      d.healey
    • RE: Global Variable stuck?

      @Chazrox Have you declared that global variable in any of your other script processors?

      posted in Scripting
      d.healeyD
      d.healey
    • RE: How can I efficiently remove a key from an object?

      @Christoph-Hart Maybe make it match the array remove method.

      posted in Scripting
      d.healeyD
      d.healey