• This topic is deleted!

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Hide Panels When Idle! [Solved]

    5
    0 Votes
    5 Posts
    301 Views
    ulrikU

    @Natanr my pleasure! :)

  • Need help with painting routines

    12
    0 Votes
    12 Posts
    418 Views
    ulrikU

    @Lindon thank you!

  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Get array by value

    3
    0 Votes
    3 Posts
    294 Views
    d.healeyD

    I found a less dirty solution :)

    newArray = oldArray.clone();

  • This topic is deleted!

    2
    0 Votes
    2 Posts
    13 Views
    No one has replied
  • Variable Persistence

    29
    0 Votes
    29 Posts
    5k Views
    d.healeyD

    I wrapped it into a namespace with some get/set helper functions.

    namespace PersistentData { //The data object. This will be overwritten by the onControl callback of the restorer reg _persistentData = {}; /*This panel will restore the storage object in its control callback. If the value is not an object, it won't do anything but use the given storage variable as value*/ const var pnlDataRestorer = Content.addPanel("pnlDataRestorer", 0, 0); pnlDataRestorer.set("saveInPreset", true); pnlDataRestorer.set("visible", false); pnlDataRestorer.setControlCallback(onpnlDataRestorerControl); inline function onpnlDataRestorerControl(component, value) { // Check if the panel's value is an object // If not, set the value to the storage object if (typeof(value) == "object") _persistentData = value; //Copy the object from the panel to the storage object else component.setValue(_persistentData); //Initialize the restorer }; inline function set(id, value) { _persistentData[id] = value; pnlDataRestorer.setValue(_persistentData); } inline function get(id) { return _persistentData[id]; } }
  • Sample Start/End Knob

    7
    0 Votes
    7 Posts
    357 Views
    d.healeyD
    HiseSnippet 1206.3oc4X0saaaCElJNLs1KKnMnXX2L.cwFPJPWgcaR5.1Ew42BiVmHXkVr6JXjnrIBEo.EUV7F1iyteOB4AnOD6h8.z2fsCojsj8LbccyVA17U57C44imeIsmRFPSSkJjS8yGlPQNqi8GJzCNb.gIPcNB4rAtKIUSUt4rNXXBIMkFhbbp8bCCm5qhr+d2dGP3DQ.sjEB8ZIKf9RVLSWx0q8KXb9IjP54r3JZuc6NARwgRtLCvSMbSTBI3RR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W2FESIcAqqz2pw4OtWrzX7kBKdpR4cDmGHs2a9VqvYQ8hqisCbbM2O3SUsROYlFl6OZ1KFFP6CWJIfVcL8JlQ+4zMMzF.4SEgVh+D9UHr0nY5FgsFIDELZqfyVw21Gn3TiJLyzr2KkC2VfWsVazCEf4t+qfxXRfR9lf7GdYv5csb.TJr+u.0wcMztiewEF27wMMuzg8lf.SE52Bd3YulmrDq4oKwZ1dIVyNKwZ1cIVyyVh07cycMl6urelVFm28FX3cbdhkywiSrpg9KPWTZNq
  • keyboard hover callback?

    5
    0 Votes
    5 Posts
    444 Views
    ulrikU

    @ustk Great, I will check this out, but it looks like I could use this, thank a lot! πŸΊπŸ‘

  • Keyboard To Draw Lines

    7
    0 Votes
    7 Posts
    429 Views
    NatanN

    @d-healey Omg, You're A Genius David <3
    Thanks a Ton

  • Cartesian product function

    20
    0 Votes
    20 Posts
    709 Views
    d.healeyD

    @Natanr Not sure what you mean. In the image above it's just a C major chord, so the intervals would be 0, 4, and 7.

  • Changing Audio Folder

    7
    0 Votes
    7 Posts
    423 Views
    LindonL

    @dustbro my brain wont retain stuff from 10 mins ago... so your doing OK there.

  • Audio Loop Enabled Button

    3
    0 Votes
    3 Posts
    235 Views
    NatanN

    @dustbro Awesome Thanks A Ton πŸ‘

  • What a mess I made for my self

    9
    4 Votes
    9 Posts
    664 Views
    ulrikU

    @ulrik Ok, I found a glitch
    When shift + click I should receive a value saying which area/slice, the marker is closest to, the value is based on the radius and the angle, from which it then calculates the length between each slice and the marker, then it compares the 5 lengths and decide which is the shortest (this are quiet heavy calculations, maybe that's why the glitch?)

    I used Console.print and found that 95% of the clicks I got the right value but 5% I got nothing.
    So there's something fishy happening in my code.

    If anyone is reading the code, look for the line

    //Console.print("area:"+area+" slice:"+slice);

    it's around line 220

  • Inline functions sharing iterators

    9
    2 Votes
    9 Posts
    395 Views
    Christoph HartC

    This is because the i variable is in fact a global variable, because inline functions do not have a scope for default variables.

    In order to fix it, just create a local variable before using the loop:

    inline function one() { local i = 0; for (i = 0; i < 20; i++) { two(); } } inline function two() { local i = 0; for (i = 0; i < 10; i++) { Console.print(i); } }
  • Inconsistency between timer and timer object

    2
    0 Votes
    2 Posts
    220 Views
    Christoph HartC

    Yes this is one of the most annoying inconsistencies, but I can't change it without breaking every single use of the timers.

    The reason for it was that I created the global timer first and didn't bother about milliseconds as unit, but the UI timer object is just a wrapper around a JUCE class which uses milliseconds as unit.

  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Possible to download data Within Hise Script

    4
    0 Votes
    4 Posts
    223 Views
    d.healeyD

    @nodeToVst

    You can use the Expansions system to provide additional sample content (sample maps + samples) to your plugin. This is how PercX works but it does it all from within the VST. You'd need to build a separate installer to place the content in the right location on your user's system and you'd need to design your plugin to make use of the expansions.

  • One panel multiple popup menus

    9
    0 Votes
    9 Posts
    781 Views
    d.healeyD

    Yeah this example (built on your snippet) demonstrates the issue. Clicking on a menu item opens the popup but all I want is to trigger the callback. The work-around obviously is to not store the menu items in the panel, but this is the perfect place for them :)

    HiseSnippet 1528.3ocsWs2aaaCDWJMZn1cYcEXe.3LvJjZ7brcR5ikETm5jrZrkVu31thk0UvHQaSDYRAI5j3FDr9Ed.6av1QR8f1wIqv.k+CEui2wi+tG5X2XtOIIgGaYW5UShHV1eoSuILwv1CwTlUmcsr+JmCvIBRLRS5YShvIIj.Ka6a8SRB1kV1RM9mm9LbHl4SJHYY8FN0m7KzQTQA0ts9YZX393.xqniL18Fs53yYs4g7wf8bKm5VQX+SvCHu.K21RNV1ewdATAOtm.KHIV1K+LdvjdC4mwz6+MzD5wgD4hFV8.EoIuOOLPZwRpVsGRCC5lcuSr.szs.EtkFE9FmCnAzb5EnwWqXfJjvDOrW5lLuFllW8Ocyy1v7VVad2yomeLMRTvQZa2woCCbT8wfKvzrz60Zo+71Ns4vNXhZivmP1OFVjKg6CqWuJZy5081Zkxv1R3gjZ9gDbrqjxJkAWSh.cJNF0EyHgMPaixz1.hnMeTDmAKbq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k4OAS5tN6DFhJHjmhnJH.l7RJJujcnTSsCo9mHahSFem0ZbouHq85BpMMIe7fqtUATn4pTOlGGPh6Q+vTcsqodHNfNNwjtkArcmqC1J4jFxZfae7XCbq0ulgaN19v5LLyw9ugUSWxvxdUG4GnFkUSM0Sqqm1POsod5gVyE4FBsW2IYZZ+eNkSyBUcr0OY4JsfCODfGLNDKl90AxmDkx.xYlpMbYq1rDpXh4Sl9r7jgOUy8dNcoB+gy2dWZN1Kjk841dSe.1JN60uO7m3BicYm8e6m+WaYo68Z.zIaLEhecdw3Q8fbFeBXILHDWVWydIYpfdc8rXjdDVfZw+BiTlMjqsSY1Hio0HreL+895poxm3caEEvlXpW5VBdxMrF0vRUgEjyods5VifWd9deeIT78fsOeYZt.xr9BHyFKfLat.x7vEPlGs.x73aTF4i92YrfORml.D5tm52N116wvPTlJhz5+.q75xQ.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    6 Views
    No one has replied

35

Online

1.7k

Users

11.6k

Topics

100.7k

Posts