@Lindon Yes! I was thinking the same exact thing just yesterday. I would like the ability to pass in user defined values to the script slider using an array, similar to items for a comboBox.

Posts
-
RE: User defined array of values returned by slider
-
RE: LAF to draw text input of a slider?
@rglides Thanks, but that only seems to show the main register function and not others.
-
LAF to draw text input of a slider?
Is there an LAF register function available for text box value input for a slider?
Here I am using a slider as a drag number and I am getting this: -
RE: Very strange behaviour with Engine.getUptime()?
@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? -
RE: Very strange behaviour with Engine.getUptime()?
@d-healey It is being called from an inline function placed on the onNoteOn.
Using Message.getTimestamp() directly on the onNoteOn callback also returns "0":
-
RE: Very strange behaviour with Engine.getUptime()?
Message.getTimestamp() always returns 0?
-
RE: Very strange behaviour with Engine.getUptime()?
@d-healey said in Very strange behaviour with Engine.getUptime()?:
@VirtualVirgin Why not store the event IDs along with the timestamp -
Message.getTimeStamp()
. Then you can compare the timestamps directly instead of relying onEngine.getUptime()
.I was trying to make something more generic so I could use it for getting the time difference from buttons as well (for making a tap tempo for instance).
-
Very strange behaviour with Engine.getUptime()?
I am trying to measure and record time deltas for MIDI note on messages with Engine.getUptime() and getting very strange results:
Most of the time, the "currentTime" and "lastTime" are showing as the same here, when I think the logic clearly shows that they should be different.
This means that inside the inline function, the time difference is always evaluating to 0.
But when I am using that inline function to record to an array, is recording non-zero values.
Furthermore, the array and count are set to reset if the timeDelta is greater than 5 seconds, but when even when the array shows that I recorded a timeDelta greater than 5, the array and counter do not reset.What could be going on with the values to create such an issue?
HiseSnippet 974.3ocsV00aaaCEkxwZXRaCXEX.6Ug9jyRWpsisaxBVWWhc1L1RpQcaQAFFJXotxlHTjBTTcyXH+m2+fMRQaKpXmrNiM8fguebt7vit7RMQJHPdtPh7Be4hL.48o9SWvUyOeNlxQiGh79R+WRSgng.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7VBodo1.X2cE3Q6Jvd6Jv96JvA6Jvmrq.O9eFn4q299BkH0dbBgtbxnxwMddi3Xc2XYmK5uo4kFIK
-
RE: How do I connect a knob to a CC controller using code?
@CatABC If you want the knob to represent the actual MIDI values and not a normalized value you can set the "min", "max" and "stepSize" of the knob to reflect that:
knb1.set("min", 0); knb1.set("max", 127); knb1.set("stepSize", 1);
If you do that you would just get rid of of the "inputValue" variable and use the "ccValue" directly to set the knob value.
-
RE: How do I use LAF to draw the dropdown of a comboBox?
@d-healey said in How do I use LAF to draw the dropdown of a comboBox?:
@VirtualVirgin drawPopupMenuItem if I remember correctly
Thanks :) That is the correct draw function.
Do you know how to edit the size of the popupMenu? -
How do I use LAF to draw the dropdown of a comboBox?
I have LAF drawing the front of the comboBox using
.registerFunction("drawComboBox", function(g, obj)
How do I draw the dropdown? Is it a separate draw function?
-
RE: Font not changing on comboBox. What am I doing wrong?
@d-healey said in Font not changing on comboBox. What am I doing wrong?:
@VirtualVirgin I think it's broken, I always use laf.
Thanks :)
-
Font not changing on comboBox. What am I doing wrong?
I can't get the font to change from the default font for the comboBox:
I must be missing something obvious.
-
RE: Engine.getSamplesForMilliseconds() not working
@d-healey said in Engine.getSamplesForMilliseconds() not working:
@VirtualVirgin
MilliSeconds
Ah! I didn't catch that. Is it two words over the pond?
-
Engine.getSamplesForMilliseconds() not working
Snippet:
HiseSnippet 1030.3oc2W80aaaCDmJ1ZnVccXcnXXOJTrGb2JBrh+SSZwPchicmwpSLhRa2CCnfk5jMQjH0HoRm2v9t1OB8avFojcrTqSlqWa.1zS9tiG4Od2u6N5wBNAjRt.Y4b5rD.Y8419yXpo8lhoLzvCQVemce1DJCbm.JebbRDHGvEinQQTIP3r.oqjQSR.E5fYIXoDBPVVUdhweqZUQYeu8wGfivLBrTEB8bNk.OkFSUK0Nt6Oo24A3.3TZbgU2p6P8Y0iGwS0XshcCTBlbFdBbD1rrsrQ+HVN0f116zjzJ3AA6rS685Pvcf8BwggdMCZ0pyt640bObqc6.MZir9r9ATEW3qvJPhrpd.OXl+T9qY4GvyoR5qh.ifGxWex4pGviBLWQiVTuoznfwKBhRDxxd7xPZk7P5crGQCnWneYn8KyL3tzihAPqsJCuJkfmWQ30n.7VAjrJ.op4P5119DAMQszhAO2zdHSAhPrNOUDJ4qEsUSK6db8JXpsiwmACDZgK7ndmFMtua6FMt2itkiiiNaIUtZjufz39Ct4DosuThTcuFF2czGhjGAamHnLU86Z1DWYtGOz8tteewsUubyWXJinnblKmcDWAGypeOm+volye539tlBCWoMyMSvih.wJManihqxw5rz3WAh66dNNJEtXg5Pd47n8kmGKRyH4A5BKjyFxnpiS.1kQ9PyyN5e8rgGhUXSxetN85R.ghZff0gv45RubpPM6CA4YJdht3683IZFJOHMBqJSaME2yMniAk3JF9.SRUyJV7+tb4pqGW9pK0VW3da6wTEY5pw6Vq.u5n1mZ7Nuyvsr6GFBD0RvV0dvOeMzFvN+7cr2mgilIgE0+KD8JggCR0nT3S+8BMjeS2wBMKBd8bVzb02nqUk0FvdWIfQmvSUT1jQXkf9aZLeTZrut8OAzgKFChLESVaYn84xMLxFP3CrfLg+R+M2nmQ1ZtQuEFKlS9h7axMs80MoxFBlET95LY2WfOGbeBv.ggc4cYy559Kz2rty5RV6YcGST5i+TAlIS3xRarODSOkyLQ5kJelT2bF90SLz8h56wwhUZ5sOdf9RtRe7wpTQVcy9w7TlpTcRk0tN4CXDZ0OUiPuVa67uuK4GmR8ZKvnO0LvrO6bHROJHCiekt2eHNMRsPaYd8HNimLkynjhI8S.c83jIfnH1W4EZekR+HskZtS2SfH.Wj.+scepl3gE53DrgwBuO3W+rx702XmCWWSwn6+OltU4+ZS293.kqiAGWGmQLlH3ujj+9RCW9FYZz2aV1+5ol8HirqGJ6MmEyww5thujPJuUumi6roN1bScr0l5X6M0wNapiOXScb2+YGMCs1OUwiyKYQnQi6m8fcKq9LrlwmUcf9a.dn5NcC
-
RE: Midi out plugin is not sending any midi.
@HISEnberg Regarding VST3, Is it only specific MIDI message types that are not working, or is it not outputting any MIDI at all in your host DAW? I have built and tested at least a dozen VST3 plugins with MIDI output now and they are working.
I have encountered trouble at times when testing a VST3 plugin and it does not provide the MIDI out, and in those cases I found that there may be a bug with the "Midi Settings" interfering with build.
To explain, here is a screenshot of my "Midi Settings" when testing with a MIDI controller in HISE:
I have the AKAI MPK mini 3 connected and selected.
Sometimes when opening a HISE project that was configured like this and I have my controller plugged in and available, it is not connected in HISE and appears to be not selected:
I have noticed that if I build the plugin in this state that the resulting VST3 plugin will no longer send MIDI out signals.
The solution has been to get the MIDI controller reconnected and build again.
I am not sure why this would effect the MIDI out of the built plugin, but this has been my experience.
So, it may be something to look into when trying to get MIDI out working for VST3 Instrument build. -
What customs are involved for HISE users editing the the documentation?
How does it work if I see something missing or incorrect in the documentation?
I propose a change on GitHub?Example-
I am looking at this Snippet for a transport metronome:
HiseSnippet 1721.3oc4WstaaTDEd23rkFWLzhpP7yQQHUGvjZW5MABUGmKsVzjXEmVnRHUMd2isG5tyXlc1jZphD+jGi9XvO4QoOB8MnblYu3cC1oFKZ.AVIVdly4Ly27ctLmoiT3BggBok8JGNdDXY+9NcGyUC2bHkwsZukk8G5bnjxCGIjpCgPkUqwinggfmksco6qUxdkksLed88ZQ8obWXxTVVOVvbgGxBXpIy1o42x782g5AGxBxo8Ma11Uv2T3KhP.Uxot0Hp6ynCf8nZ0Vxwx9Ba6wTBYWEUAgV1K2R3Mt6Pww7X8eLKj0yGzCZX0EWn3o2Q36oQrdVqMGx785jdvCsrrc5LgFJESCW0YWlGKa9IzwkMBHSrHOeXuzYAuF4gW84Gd14f2xwv6JNcckrQpIRzX6RNs4JP1mhtf7vJVWqk9sK3ro.0fqVOf9LXGINHyhp2td8ZjaUu9ZeckxUJe8qSNbHKjf+oFBjvwb2gn9hHbbZ7.YHk64CRxwCYtCIGiNUxHe5XiEAfRqe.P3BjLpTFcsgJxQTIJl7Mjs4CXbXcWIfbUVH1ChWwpYfX2Hznd.gxILtOZAoeD2UwDbbVWZT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86J7h7ophMAq67OQ.l.WnaScGk7PlZb9WF7Noy34EtWwoCC6LY53coofWLk+cMdSdmQEms62GbUS.6xN678myOpvIFKkc1fS8GGBoulHcXiB3oUDhXYwHwW0riDKGhcgDWNLY5K1ztTQvWZ9JbOEt6.QjBu7eWpRxvDGm8hB5hgutl9Y3Xyl5f7kz0uiGWWOVCht.2yL3M3mDgMzisSD1HUXd+yGDeRtjSW7oClF5MjxGaFS9N5Q.49.Gj5HsFy5QwM+A1ql2GEOZteT79tJb6S5pJrvB2EBXGhEeByO4iBwm5A+zA5P+7yuofJmpnWeucvC4TsoqtERSNzFAhHtpPNSo4NP8uviyW9e0ON+7qhYo4CtukT8URwXWVvHeXa9QfO1SiAieT5UMoyVLtdWrE1QCEbladm9AXiyrAC.YdrO0CzFJE1G5jYtZyC.eflO.9Sa9PLviJQdBVPtnw7yEmk+5SbhgKQmLR9uwMck9e4McmKWbbdrGATWo3otwOTRGKeQyL34lmzo3t5wjFVlGOoaxr950sBvJhO00US2eAxOS2lar.17kKfM2bAr4VKfM2dAr4NKfM28LsQeYzFQJQPbpHNQmsMunz1dattObSTu0e.zpy6sH
In that I find that the
Synth.addNoteOn();
returns an event ID of the generated note on:
which I do not see represented in the docs:
and an incomplete reference here that mentions that there is a return at all:
So I am thinking it would be helpful if the documentation could reflect this.
How can I make that change or propose the change? -
RE: Panel follows the position of the Eq Drag
@JulesV said in Panel follows the position of the Eq Drag:
@Oli-Ullmann Yes, in the above snippet, as you can see I used that and modified it.
But for example x position, this doesn't work properly.
InfoPanel.set("x", Math.range(200 + event.dragX, 108, 634));
Might it be "event.x" instead of "event.dragX"?
-
RE: Multichannel MIDI FX - Is it possible in HISE?
@HISEnberg Ok, I think it is cleaned up enough to pass along now. If you like we can do a video call or chat to talk about how to adapt it to your project. I'll send you some files in a message.