@DonLiborio You definitely want to save the xml, one per project. Use the archive format for little test patches, but don't rely on it as your main project file.
Beta Testers
All developers participating in the HISE Betatest Program
Posts
-
RE: "The embedded script files could not be saved"
-
RE: "The embedded script files could not be saved"
@DonLiborio Are you using the develop branch?
-
RE: Displaying sync delay time properly
@pcs800 You're referencing the panel like this:
const var displayPanel1 = Content.getComponent("Panel1");
But you are assigning it incorrectly:
Panel1.setPaintRoutine(function(g)
And then later you have a second paint routine which would just overwrite it anyways
displayPanel1.setPaintRoutine(function(g) {
Also you have a bunch of timers set to the panels to repaint them which isn't really the most efficient. It would be better to use the knob's control callback to repaint them like I do in my example.
Probably worth looking into the examples here a bit:
https://docs.hise.dev/scripting/scripting-in-hise/scriptpanel.html#the-paint-routine -
RE: Displaying sync delay time properly
@pcs800 Actually I think you were touching on the solution in the video already. Typically what you would do is map the value to a new set of values. In this case though it looks like the function is already built into the Engine API as Engine.getTempoName();
Here's an example:
HiseSnippet 1039.3ocsV08aaaCDmxIJnwaoXEn+AH3mTFLBjcRlWPvvbi+XyXMoFydAa6k.ZRZahPQJPQ0XuhBz+j6a6wsiRxVJ0YooFX5AAce+i2w6NMTqHr3XkF4Tc7xHFx4qcGsTZl2YNlKQC5hbdt6k3XCS6kw5hkQ33XFE43ryOYY3r+tnzmO9iWfEXIgUvBgtVwIrWyC4lBtCa+KbgnOlxFyCKo8IsGPTxNJgJAvyNtAnHL4V7L1UXqZUbQ+LNdNx4acCXSlPmN43yXMazn4YmFbZqIMAVGyH3lSacRifVm1p4Y.H2qGkaT5QFrgECN8BEc4n4p6jYA3ZdLehfYIZfFAQNiMpybtfNbUxIFgb1cXQpZmrT0KcujS4q4Wjx9lTAdEVTNo4T4wfTiu.H4TBR6lAoW3Nhn4QlBIV77UtCjPEbJFpMkgRltnJ+cE2NJPCo4nP7sr9ZfXsE9GGDT2Cdc34UqB0mXi2awZuakStYLKLR48CdqLdFyzQArj.ges0ZTCrrvvHo3lt73HAd4+ookzwZb0pZ1LORhVCRSc4.Iks.LO.DxkBtj4MMQRLbkzSIWGYq20JgOYkqqCPPjvNr56p5AOOjKSU37TwkfwQZVDTdM9.bde0pqivQwVfmFkNXgXBbg0eS.XOCkcFXzPq29UUhAvt+Jr6OaExrYJLfFybdrM47ZEAKtPkHow91JwJcL1nX6O.c6ImANyp83Ub823Dlaa5qYYn21u4Grne9StFoB6qrkiov6Z08ZFrVDUiu6UB9LIiNlsv3uFF08v08pQfPpYTas68GddoJyUJC6MRe6obeHO58ohlN8AkkmFEL8CJ1NFQ+XF5KSBmvzkp9oJBsM2uWbumVuHI6RaIEUxARt4MQrb59JA01iY+dyNWT9sdaObNBAUMocvOOuCdjfSYZDmZaeWeeBkd.JFY9x1neaPWrAuxUfWgHEwzFt8.4zk8VX.b1vg8c6xhu0nhfYoqa1PNO6IE3EEAcb6kED+Q6PNkJXCUwbaRuPRs1vZinQ7+hUdGQHtjmZ1NTQY1.kFDXyCwlbVCs8xf1AqlpgkLQJxNvsT6TIr8gqKgsOLs8cbpA1X35r.nmy3ylarT+Y5ZnMldBysUzDA1b+g410b4BrGvxSPsSIkvAeY4i3WvD9fGcB+SEhuvcH2Pl+vXrxCfQ31x+GXLeu3At8lNkQLE.bW29+91tD7yD9rQnytDazb3df6UIgif4YDFDcIbcI1VuqX64xnCrz1LvHljlR7OvStvFVZmbgMVIDEhIZ0MjrNU6l2mkxAvjL8OS1G9EIf1qwm1dhPPyA+FB49tZCCatsFd71Z3IaqgmtsF9caqgs1VC+9Oug1+S6UIFUXVaCBc4vdoiScb5IwvMvzaqn+E2LpIuB
Content.makeFrontInterface(300, 300); const var knb_Tempo = Content.getComponent("knb_Tempo"); const var pnl_Display = Content.getComponent("pnl_Display"); reg currentTempoIndex = 0; inline function onknb_TempoControl(component, value) { currentTempoIndex = value; pnl_Display.repaint(); } knb_Tempo.setControlCallback(onknb_TempoControl); pnl_Display.setPaintRoutine(function(g) { var a = this.getLocalBounds(0); var tempoName = Engine.getTempoName(currentTempoIndex); g.setColour(0xFFFFFFFF); g.setFont("font", 20); g.drawAlignedText(tempoName, a, "centred"); });
-
RE: Preset Next/Previous Buttons - How to navigate different categories?
@d-healey @Oli-Ullmann haha yes that's why I will leave it up. I think I learned about this before (watching David's video) and just sort of forgot about what the boolean was for.
-
RE: Preset Next/Previous Buttons - How to navigate different categories?
@HISEnberg
ha ha
That's what the forum is for! :-) And if anyone else has this question, they can now find the answer here. ;-) -
RE: Preset Next/Previous Buttons - How to navigate different categories?
@HISEnberg I also made a video for this
-
RE: Preset Next/Previous Buttons - How to navigate different categories?
@HISEnberg Lol I think this is one of my dumbest posts to date
-
RE: Preset Next/Previous Buttons - How to navigate different categories?
Ahh true it's right there in the docs!
-
RE: Preset Next/Previous Buttons - How to navigate different categories?
@HISEnberg
Just do this:Engine.loadNextUserPreset(false); Engine.loadPreviousUserPreset(false);
If you set it to
false
it should switch to the next folder.