I just wanted to make a note on how helpful David Healey is in this community, and that his tireless efforts to upgrade everyone’s knowledge are noticed and appreciated!
Thank you, David :)
Happy New Year!
I just wanted to make a note on how helpful David Healey is in this community, and that his tireless efforts to upgrade everyone’s knowledge are noticed and appreciated!
Thank you, David :)
Happy New Year!
Christoph,
First off, I would like to thank you for this amazing development tool for music :)
I am quite happy to be taking the plunge and learning as much about coding in HISE every day since watching and following the David Healey tutorial video: "How to make a synth"
Now, my main goals with HISE involve making MIDI plugins; some to be released as free utilities, and others as a paid product.
In my tests it seems that HISE does not receive or pass (thru) some MIDI message types:
MIDI clock
MTC
MMC
SysEx
etc.
Then there is Program Change, which HISE can accept and use, but not generate or pass (thru).
My concern:
When using HISE to make MIDI plugins, blocking these messages may deny users access to certain features that are needed for the next plugin in the chain (often a VSTi).
Therefore, if I am to produce MIDI plugins I am apprehensive about blocking those messages, and I, myself as a MIDI plugin customer would not be happy if a plugin that I purchased were to deny the passage of those messages to the output stage.
Personally, I do a lot of orchestral template mockups in a system where the articulation switching of VSTis is managed by expression maps (in Dorico, Nuendo, Bidule and Reaper) which are changed via incoming program change messages. Currently, I can't actually use any of my HISE produced MIDI plugins within this system, as without PC messages, it blocks the articulation switching.
In addition, there are many VSTis that can utilize program change messages directly to change patches. Kontakt, Omnisphere and VSL for starters.
And from my observation, it seems that many electronic producers with outboard gear setups require MTC (MIDI time code) and/or MIDI clock to sync devices.
I also have use-cases for plugin designs involving MIDI clock, MTC and SysEx and would love to have access to them for making custom MIDI controller managers.
Given that, I would like to add a feature request of three different levels (sorted from lowest to highest complexity):
Thanks for your time,
Craig
@clevername27 Thank you very much for your time!
You have a lot of incite to provide and I found the instruction as well as conversation to be quite worthwhile. I would certainly sign up again for more!
I am not sure what is causing this, but sometimes when I open a project/preset I am not getting any MIDI input and when I check the settings the MIDI inputs have been turned off:
Whereas I am certain I have saved it like this:
Yes, you can send MIDI out from button clicks.
I am working on a series of MIDI plugins at the moment.
You need to enable MIDI out in settings:
When using UI components to generate MIDI notes, you need to use Synth.addNoteOn() and Synth.addNoteOff() on the callback to you component.
Here I have pads (made with panels) which play chords when you use a mouse click.
It turns the notes off when the mouse is up.
// mouse callbacks for the pads --
pad.setMouseCallback(function[unitSize](event)
{
var ps = this.data.pitchSet;
var l = ps.length;
if (event.clicked)
{
var velocity = Math.round(event.y / unitSize * 127);
for (k = 0; k < l; k++)
Synth.addNoteOn(1, ps[k], velocity, 0);
}
if (event.mouseUp)
{
for (k = 0; k < l; k++)
Synth.addNoteOff(1, ps[k], 0);
}
});
To get the MIDI to output from the plugin,
as others have said you must use Message.sendToMidiOut();
To make sure it catches everything (and not some intermediate stage of MIDI),
I always place these functions in a script processor and container after all of my other containers:
And place the Message.sendToMidiOut() on each of the three MIDI callbacks:
@HISEnberg said in Let’s Build the “League of Newbies”:
@HISEnberg Done, I created the group chat. I guess anyone else who is interested can post here and we can add them in.
Add me :)
I'll check it out.
@d-healey It needs both ceil and floor to work, so I wrote an inline function to do the job:
inline function roundFix(value)
{
local remainder = Math.fmod(value, 1.0);
local roundedValue;
remainder >= 0.5 ? roundedValue = Math.ceil(value) : roundedValue = Math.floor(value);
return roundedValue;
};
const testRound = roundFix(4.49);
Console.print("test round: " + testRound);
const testRound1 = roundFix(4.5);
Console.print("test round: " + testRound1);
@d-healey said in Is there a method to rotate a path?:
@VirtualVirgin Instead of making a function to rotate a path, why not make a function to create a rotated path. You can pass in the data you would have used to create the initial path.
So based on your suggestion I came up with this and it seems to work:
inline function createRotatedPath(pathArray, angle, area)
{
local rad = Math.toRadians(angle);
local cosA = Math.cos(rad);
local sinA = Math.sin(rad);
local path = Content.createPath();
local rotationCenterX = area[0] + (area[2] * 0.5);
local rotationCenterY = area[1] + (area[3] * 0.5);
for (i = 0; i < pathArray.length; i++)
{
local x = pathArray[i][0];
local y = pathArray[i][1];
local newX = (x - rotationCenterX) * cosA - (y - rotationCenterY) * sinA + rotationCenterX;
local newY = (x - rotationCenterX) * sinA + (y - rotationCenterY) * cosA + rotationCenterY;
if (i == 0)
path.startNewSubPath(newX, newY);
else
path.lineTo(newX, newY);
}
path.closeSubPath();
return path;
}
The pathArray is a 2D array of x,y points
i.e.
[[x,y],[x,y] etc..]
@d-healey I'm imagining that you answered that question before I even submitted it! Lightning fast response.
@ustk said in Is there a way to drag and drop data from one panel to another?:
@d-healey Finally I found a way, it was a bit mind bending...
HiseSnippet 2210.3oc2X0saajaEdFaOYiUVWzTTTzK4pKRkaEzJ4ejSZP6ZaY6MBM1QvRwsEAAAzyPIwpQjSIorr5hEnW1Whd29fz2f9dzq1GfBzdNblQynDIGagjftUFvXH44P9wuyO7P1RI8YZsT43VnyjHli6m60dhvzuQeJW3z7HG2M7NZj+fi35nP5DmCmDQ0ZVfiq6peMJh65q4X+88e0gzPpvmk0kiyERtO647gbSVus1+2wCCOgFv5vGlS5c1uouTzPFJGAvYUupNQT+AzdrynnXq347Lptui6uzq5t0Yr81taP.c6sCpWu9Sd7S14I0ncqtC8xZ0exNasyda838553duiC3FopsgZXZG20NTFLoce4XQ7BbAWyuLjgMp4zFV43tOQFFfaQrWmF84gAsR4IsiiqWqLVa0XV6m5cJOfOs+L16GaGfjoQdBzckYg2py.uZ4gW0bvaNPxMGjVKFROzqsuhGYxFAwyC7ZJLLUWJXmxCkXYcV46tuWCIHgvTYHc.6DEzXpFkpWsZYxtUqt4S2n.HlVFxp3GxnpRa9zBE.qm1PthpHQhPM42PdU5T0iYZHGFIEPiREaQErvZE2rbAx676FzXq6rFaem0Xm6rF6dm0ndwMeMvVE5JUjRQDtvRWaV3aJrdTk.pgVQyB6BzWDpcy.faIe4WR9Si.xkRBFMb3DBJ1Tw4h9LE2.ZTr3SKrN1ulYZAtflykiLbAqT2QBeCWJJ0ayBqCKz58pzEBBOHLrT0q6l7Crg3.AJ53CB48DrfNrqAT293mexulTj7qHl9bcFDKSdU0xUKWqd0x6V80kIE8gMohETbQSTyyd1wm2ryaOWI32Nc6tn46ag+8s.qALApIYHanTw0LMzjQhPhE9hZH8oZxkLlf3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Gr6ubag3C8ZwM98mOFWYNXDBV+Xfwja8sg2wc6x7MY.bMuS9CeBthmW75WHwiAVSbw87N45Zyr5mMZXxE2ObDfTElpzcEXujbcO2+lWVV2H7.VEqirEHeIn3inP14.pgBWBk9CZy+Kr2MUcTLnNDknjOT3JVC2xjQ+d2Zdp1MalhuxSuSovYiPbiGvAssGy0HAcobPR6pXazSoMSDXa7efeICVCa6lLXszAyclvYPIsvorVCTx2NteFZM9bOskjeSWvnbAv8n6p6m4UsB7mCbyK4XLG.OwQFrV19ZICmD0WJ39XWwRjB8CfC3wDFw3+YTcGJOD87aORCGgE7BQaPX6SvfddmICfut2ITefXmzhhIJdnGdHH3txTU7m51NCVybfPFN9wWlQ.bdSellXpqQ7EXrORC30AiiDRJ.h8M6103LCT1viJngSzrJ3PyaUiU58sbHGExtN8r42xg+s6AZ2Dpz45D+mVTErTFVZDd544NN4.+87hXzAyh9G.DohUwNv7vdhNuGvu1xC9Z2D3yxP1wVauUfEIsM0B1BRbtRr6PS8E3nv8Dbt.CTQmLmCkxACoVm8kpVn7YP+QwC9.u1fqn8EGsNh+LaaxumdEi70XEyX9+ZK7UG+m+8+0s8UGit0u53K7MvxaqiORpmYhayFx6.mZqy24K0rSTr+74Hcmu+FRpZtC88e0Ivlbt5zlZFor1szX8bmjs5M8Xl0VxGybs+m6wL+AP8JybX75oXrMGikOVbEKDhErX7m.N+coiBMo8Nqu7oRgLMYelg9bFbzUudX3dF1m6F5.7oaFj0yf8O293.YNs+6ua+mCNaT0o1zYKEWT6N+1yy0d8y8hgKAC.I+vsNyU++55L+jT+zmh0XH0WIeiebYmne58s8.6ag8.508NEaSp4bU7IbY1xgPVt236O6T8NJt0xp31Kqh6rrJt6xpX8kUw8VVEe76WQ7PnCFYjCiCMgpcZcrsZDW2iETvK2FQ37eAPxYXrF
Sorry for taking so long to get back to this!
This is a good solution :)
I ended up doing something similar and this one uses alt/option drag to copy:
HiseSnippet 1420.3ocuWs0aaaCElJIpqxaEaEXuOV+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WFrWpVFRLijhDrhkmWokETSQoUn6eeZELuHdtn5DPX0PUVD.uxXQnfkfMMvDpoHbov0yxZVji.rgwByk0AwJAFvAeKGrR7RxkA06khNfL+LnrYY3hDphNL6r.6.6hCqJuktTwJcmx8k.9YBDKhvVDMZlQrr6YgQKkadYo9r1BMroUdSUbpb4tp0Ra58Kc90pcx..l1Gq9oGL7zN0gtX4MwxSCfBp.CzQPn7v6LyP8tVC08pMDN9TECyxDXMk8U.exqTfX6IZi3UpF19y0trFcYViGuRd3HgXcXnHdkrw0IhuNEanlMcj.R+OmENSrPPXjY04vtW8b3xqIvSmPURPs5HXTyqhDpqZ4AR1XM3au4n8AuKN7NiFHWjH1HQH3ru3bX0ozQ4dt6KRNCh4fUWLHj37YFK26jOnGiZDILN+1t1u2k79EaW8Gms67hUs94cuP5aBJHH2MPfgtxhTsgHw4KcqzPDeJezPo2UAE3v+yP4gWET1c1mDn7gahA6.p8mExLUWLDWeNiAjkVYaLbiKUhzLu750Kus3FebaKd8Ky9wB265NPZ3AqFuqsB7B40+Wi2rcuui6AiGCqeT.1MbO7mt1Es+z.kzM8lbLyDKgbJ2SlMcHzEjK.jnvNn.Mm0vZ9zycvynmYnP4aO72vmLlcwyNYL6lyjLkwi0uim1+B2z+1VJ.lT1eUjm6w3YZWhsmVY++T3Gd7NNupo9.E6cSU7g2TE27lp3itoJ93aphO4lp3S+2UD+cguXFL8NsbhPNdvA1ABNNGnXP1nMyk7O.m+4iUB
@d-healey said in Is there a component to make the collapsible panes in HISE?:
@VirtualVirgin
What do you mean by overwriting? When I load your script I see two panels created.Oh I see the UI is massive, I needed to scroll along. You might want to reduce that a lot, I don't know anyone with a 10000px wide monitor.
HAHAHA! Sorry, just an extra "0" by mistake.
@VirtualVirgin said in HISE Meet Up:
Sorry I came in late! I was looking for a Doodle invite in my email.
When I checked in at the forum here, I noticed that the meeting was already going!
Once the time is accepted, Doodle should send it out in an email to everyone, and my Gmail puts that right in my calendar, so super convenient :)
Oh I see, it's like an optical illusion.
I need to do some more math on it.
@DabDab said in I'm having issues converting an SVG:
@ustk Thank you. Got the fundamentals. one last question. How can I do tracking circle?. Increase /decrease just like regular knobman things.
With
Content.createPath()
and
Path.addArc(var area, var fromRadians, var toRadians)
Multiply your arc endpoint (var toRadians) by obj.valueNormalized.
@Oli-Ullmann said in How can I make a slider with bipolar appearance?:
@VirtualVirgin
This is a shorter version!HiseSnippet 1148.3ocsVstaaaCElJIpnV6BVA5C.g+kbmqicbRiG5tj3j31fkjZTmULfffBZRZItPSJPQmDugBr2r8Js2fsCk7EkDuzTOTYXKe341GO7bgcMZJOMUaPdAmNNgi79R+diU138hIBE5v8QdX+TofwM3qD1XbeQhVRLXRRBmXHJJG0dbBIMkyPddq9JmVdkVCk872+TahLSlYKgPuSKn7iDCE14q1cmeVHkcHL9ohgEjdycNjpU6ok5Q.BW0uNJgPufDwOg3DaEezqIowHum42jy1nUKxVa1rIs020htMkzhSaze65aPFvZ1hy5y1bqMIHuGc.SX0ldVhkmBFsslMtWr9JUtCdmHUzWxcDMP8.OmuLZuXgj0cZ3JEg7Vq67f2p4Aum5erfIls97f32jw.OWihAMuUtOH03S.RdEfzZ4P5I98nFQhcNGGd9B+CUVtY.4Vme4xhVQul+dZPBks1PxE7NFfXlFgund8pX3mJuLH.NeRsXIY.9GvSUgZ3vN4HMkHORquXWEqCmKCmKdeqBhMpHdAkh318zCSzJfHr7LIJCZMinVJ2dGyB91YY3UMCORjBnryHE0JzpvxLC4piDJHWsWVVb4p3ASYFUEq6+aUB9ifRquN9UbKNWF7t.9CJcoKMG.HHSMBrxKCJ49.htOXzox1FRHiL5QJVPoHG9xyVCyekVyU0rqLIlLakHCmqphqWqQE.2k.sF.I+ukSsgjJK1IuiHGwwcI13m++54gBwwboTekCiaUIGR.ffLXlDPgNU3BeAEA9YjypeN9awgjy13b753MpTESNqw4UwMc+o44mmsUyrS9l46+Qb8GnIByW54EXUA+rrykKc1pRAW7YKvU7TI2pmxu19eDPiEVtCMQ0b4e6JEQJNyIe3ApHHarFSOBpnOU2yZDpnvYakp4a6p3xTnLvvYkucFQasA1XK1u8kPx3b+lmRAlrlqR8Cv2oo9Xs5Dsk+FUXV1evGBv2l0fAKjmqZ0nkRtYgrcsuM2mhgpQC6yMUw4mbSEDZWcydfO5g0Cjl27nffZ0gJg8MI7IzczRlq2l6+2siIZR2GWuyIHDD0l047qmz4LOUBIXt1lyZEgx1.EGrg9kC2mXISMEXUvSIbiU31Pd6yuDF7k2Ttj+97zKr5jLYmzzCL+CxwWOyo+IYmwyHvlcFlUgNs.sH1Fdiwx+kEREQdO1ehESsikYi9es1H9c.6DI5JAyBSV881wCgh4hnXqi5of9oPz1kL2VesalA5tCcfwcZ1HIwdyYftaGLggCeEG73Ftn.bOt3sG9DFLV+dGL9Pg3S76Jrz3EiwUV.FgC6OGXbx0I9J+CFL.JhmCv0767qK6cG9Ht+s5QVnWzwDnkDbt5exng8ftJTtKIQwkoti+UbkL4z0cztHPOthkQ7OvyDlMbzdSX1XJSzPB0neOMuPycgkGmsBfIU1E5J4eriF23tUWPts38T5MM0cTbikUwlKqhatrJt0xp3KVVE2dYUr0GWQ20a2cjUOLurAgNt6AYcC87NPQfLvrrUz+BXDm0EA
Oh this is great! Thank you!
Nevermind!
Once I closed and reopened the project from the new folder name it works.
That one should have been obvious to me.
Oh this is great!
I copied a panel with a bunch of components on it and they all copy in one go :)
When I fold/unfold code I am having problems with scrolling.
HISE is not letting me scroll to the bottom somehow, and is therefore truncating the lines of visible code:
There are another few lines after that, but I can't scroll down or use the binoculars to move there.