Forum
    • Categories
    • Register
    • Login
    1. Home
    2. the red_1
    T
    • Profile
    • Following 1
    • Followers 0
    • Topics 8
    • Posts 23
    • Groups 0

    the red_1

    @the red_1

    5
    Reputation
    2
    Profile views
    23
    Posts
    0
    Followers
    1
    Following
    Joined
    Last Online

    the red_1 Unfollow Follow

    Best posts made by the red_1

    • Auto-Generate 128-Frame Knob Filmstrips for HISE

      Hi everyone,
      I’d like to share a Python script that saves a lot of time when creating knob filmstrips for HISE.
      Instead of rotating a knob image manually frame by frame, this script:
      Takes one knob image
      Automatically detects the visible (non-transparent) area
      Crops and centers it perfectly
      Rotates it smoothly
      Exports a 128-frame sprite sheet (no jitter, no wobble)

      Features

      • True center rotation (no shaking)
      • list itemAutomatic alpha-based cropping
      • list item 128 frames (super smooth)
      • list item Vertical or horizontal filmstrip
      • list item Ready to use in HISE
      • list item Huge time saver

      Requirements :

      pip install pillow numpy
      

      Full Python Code : ⬇️

      from PIL import Image
      import numpy as np
      import os
      
      # === Settings ===
      image_path = "PATH/TO/KNOB.png"
      output_image = "PATH/TO/KNOB_128fps.png"
      num_frames = 128
      start_angle = 150
      end_angle = -150
      orientation = "vertical"  # "vertical" or "horizontal"
      
      # === Load image ===
      img = Image.open(image_path).convert("RGBA")
      w, h = img.size
      
      # === Detect non-transparent area ===
      alpha = np.array(img.split()[-1])
      ys, xs = np.nonzero(alpha > 0)
      x_min, x_max = xs.min(), xs.max()
      y_min, y_max = ys.min(), ys.max()
      
      # === Crop to real knob area ===
      img = img.crop((x_min, y_min, x_max, y_max))
      w, h = img.size
      
      # === Make square canvas for perfect rotation ===
      side = max(w, h)
      square = Image.new("RGBA", (side, side), (0, 0, 0, 0))
      offset = ((side - w) // 2, (side - h) // 2)
      square.paste(img, offset)
      img = square
      w = h = side
      
      # === Lock rotation center ===
      cx, cy = w / 2, h / 2
      print(f"Rotation center locked at ({cx}, {cy})")
      
      # === Create sprite sheet ===
      if orientation == "horizontal":
          sprite = Image.new("RGBA", (w * num_frames, h), (0, 0, 0, 0))
      else:
          sprite = Image.new("RGBA", (w, h * num_frames), (0, 0, 0, 0))
      
      # === Generate frames ===
      for i in range(num_frames):
          angle = start_angle + (end_angle - start_angle) * (i / (num_frames - 1))
          rotated = img.rotate(angle, resample=Image.BICUBIC, center=(cx, cy))
      
          if orientation == "horizontal":
              sprite.paste(rotated, (i * w, 0))
          else:
              sprite.paste(rotated, (0, i * h))
      
      sprite.save(output_image)
      print(f"Sprite generated successfully: {output_image}")
      
      

      Save the file with this name : ⬇️

      generate_knob_sprite.py
      

      Make sure the file extension is .py and not .txt.
      Open Command Prompt / PowerShell & Run the script ⬇️

      python .\generate_knob_sprite.py
      

      Good luck

      posted in Presets / Scripts / Ideas
      T
      the red_1
    • RE: Unable to Move UI Knob Directly — Only via Macro 1

      @David-Healey It worked! Thank you from the bottom of my heart for all your efforts, and thanks once again. 💛

      posted in General Questions
      T
      the red_1

    Latest posts made by the red_1

    • RE: How to show FFT Spectrum behind EQ curve like FabFilter Q3?

      @David-Healey Thank you so much! 🙏🏼🩸

      posted in AI discussion
      T
      the red_1
    • RE: How to show FFT Spectrum behind EQ curve like FabFilter Q3?

      @the-red_1Thank you, I used AI to help me with the LookAndFeel code for AudioAnalyser and it worked great — transparent background and custom spectrum colour. But the white grid lines won't disappear no matter what I try.
      Do you know the correct LAF function name to hide or customize the grid lines in AudioAnalyser?
      And Thank you!

      Content.makeFrontInterface(918, 581);
      
      const var dsb = Synth.getDisplayBufferSource("Script FX1");
      Console.print("✅ DSB OK");
      
      inline function setEqProperties()
      {
          local props = {
              "BufferLength": 4096,
              "WindowType": "Blackman Harris",
              "DecibelRange": [-90.0, 18.0],
              "UsePeakDecay": false,
              "UseDecibelScale": true,
              "YGamma": 0.2,
              "Decay": 0.6,
              "UseLogarithmicFreqAxis": true
          };
          
          local dp = dsb.getDisplayBuffer(1);
          dp.setRingBufferProperties(props);
      }
      
      setEqProperties();
      
      // ===== LOOK AND FEEL =====
      const var laf = Content.createLocalLookAndFeel();
      
      laf.registerFunction("drawAnalyserBackground", function(g, obj)
      {
          g.fillAll(0x00000000);
      });
      
      laf.registerFunction("drawAnalyserPath", function(g, obj)
      {
          g.setColour(0xFF798ca2);
          g.drawPath(obj.path, obj.area, 1.0);
      });
      
      const var waves = Content.getComponent("waves");
      waves.setLocalLookAndFeel(laf);
      

      829898f2-7f06-4121-9230-f45de8ab40c0-image.png
      d0054490-e86d-4fe8-b517-12b280a7c41e-image.png

      posted in AI discussion
      T
      the red_1
    • RE: How to show FFT Spectrum behind EQ curve like FabFilter Q3?

      @David-Healey Thank you, I managed to get the AudioAnalyser working!
      I couldn't find "Enable Spectrum Analyser" from right-clicking the EQ (probably because I'm using SVF EQ nodes in scriptnode, not a built-in Parametric EQ). Instead I used this code:

      javascriptconst var dsb = Synth.getDisplayBufferSource("Script FX1");
      
      inline function setEqProperties()
      {
          local props = {
              "BufferLength": 4096,
              "WindowType": "Blackman Harris",
              "DecibelRange": [-90.0, 18.0],
              "UsePeakDecay": false,
              "UseDecibelScale": true,
              "YGamma": 0.2,
              "Decay": 0.6,
              "UseLogarithmicFreqAxis": true
          };
          
          local dp = dsb.getDisplayBuffer(1);
          dp.setRingBufferProperties(props);
      }
      
      setEqProperties();
      

      And FloatingTile JSON:

      json{
        "ProcessorId": "Script FX1",
        "Index": 1,
        "FollowWorkspace": false
      }
      

      But now I have a new problem:
      The AudioAnalyser background is stuck grey and I can't change it:

      Setting all colours to #00000000 in property editor → no effect
      Tried JSON properties (BGColour, LineColour) → no effect
      I want to make the background transparent so it overlays on top of my EQ curve display

      Is there any way to customize the AudioAnalyser colours / make it transparent? 🙏

      b4ef3835-bd8d-49ee-a185-aa8b9a226a02-image.png
      Enregistrement-de-l_écran-2026-04-04-025543.gif

      posted in AI discussion
      T
      the red_1
    • How to show FFT Spectrum behind EQ curve like FabFilter Q3?

      Hi everyone,
      I'm building an EQ plugin in HISE 4.1.0 and I want to add a real-time FFT spectrum analyzer behind the EQ curve (like FabFilter Q3).
      My setup:

      EQ curve working perfectly with FilterDisplay FloatingTile
      Added a new FloatingTile with ContentType = AudioAnalyser
      Both FloatingTiles stacked on top of each other

      The problem:
      AudioAnalyser FloatingTile shows nothing — I tried different ProcessorId values (Script FX1, instrument name, empty) but nothing works.
      My questions:

      • list itemIs it possible to display FFT spectrum + EQ curve at the same time in the same area?
        Thank you!
        Capture d'écran 2026-04-03 233357.png Capture d'écran 2026-04-03 233420.png
        Enregistrement-de-l_écran-2026-04-03-233542_1.gif 796e14d6-3d6a-4018-8391-4e8c79fca231-image.png
      posted in AI discussion
      T
      the red_1
    • RE: 7-Band EQ - FilterDisplay not updating visually from script (SVF EQ + scriptnode)

      @ustk Hey, thank you so much for your help 🙏 , I was stuck on this problem for a whole day and your solution worked perfectly , Really appreciate your help,

      posted in AI discussion
      T
      the red_1
    • 7-Band EQ - FilterDisplay not updating visually from script (SVF EQ + scriptnode)

      Hi everyone,
      I'm building a 7-band EQ plugin in HISE 4.1.0 and I can't figure out how to get the FilterDisplay to update visually when controlling it from script.
      My setup:

      7 SVF EQ nodes inside a Script FX1 (DSP Network/scriptnode)
      7 Parametric EQ effects in the FX chain (ParamEQ_LC, ParamEQ_L, ParamEQ_LM, ParamEQ_M, ParamEQ_HM, ParamEQ_H, ParamEQ_HC)
      7 FloatingTiles with ContentType = FilterDisplay, each pointing to one ParamEQ effect
      Knobs connected to Script FX1 parameters via property editor (processorId = Script FX1, parameterId = LCF/LF/LG etc.)

      The problem:
      When I call eq_LC.setAttribute(1, 500) from script, the value changes correctly (confirmed with getAttribute), but the FilterDisplay FloatingTile does NOT update visually at all.
      What I tried:

      Synth.getEffect("ParamEQ_LC").setAttribute(1, freq) → value changes but display doesn't refresh
      Connecting FloatingTile directly to svf_eq_1 via ProcessorId → curve disappears completely
      Engine.repaintFront() → no effect

      My questions:

      Is there a way to force FilterDisplay to repaint from script?
      Can FilterDisplay work directly with scriptnode (svf_eq)?
      Should I use ScriptPanel with setDraggableFilterData()? If yes, how to connect it to scriptnode parameters?
      Would it be better to replace SVF EQ nodes with regular Parametric EQ effects and control everything directly from the property editor?

      Thank you so much! 🙏

      HiseSnippet :

      HiseSnippet 3987.3oc6cs7ababFmqkor053l3D2lbpfUnGVEqnrjbelTUsVOVMBwTZWux1Imbn3NqDg3RtljqrTRMp5Kfbn.8XQ.ZQys1SoW5g1aA8TN1hfBDihBTjh1fhdn8+.2YFRt7wRRw8gT7icMf7xY99l427886a144t0z0jfFFZ5ToRu8QcfTodN5FGoZt2J6IJqRswpnzoWVQSa06V+PpkOpingArIUpTSsNN+TybdJxq+2RKKpHpJAcShh51ZxRvaH2V1zM0ZUdKYEkphMgaK21iz4prgjl5JZJZcQXYJ5rTcDk1WbW3lhXwNGMEPzXOpTuJsTybR4jJrSNVQwVEY2o.bmRrEYgkjx2rrjjnT9cjX44EoRM8ZMkM0zaXJZBMnRc9k0ZdTi8ztupUEbaYC4cTf3GXoZfpYqjqpozD2DwoRsxdxJMq4XjLnnRQWy0jMkkI6pzBxMk6ktqo6EHYv3pgWCXpy4GdS4CdrdgWVOvKDHkxCjNuEjtBcCIc4Nlt4fwykn2P0Dp2RD4m7BEKYoN2u5pzqngjP0bg1h6CqpidnmFYJjM67Ln+L2ad4zWNMxaYXxbfnNSqCYVjgPZVXWn4ZsZAkLyLqUYxT8sYmEqfq3v6c2arRXZTSTWr8Z0Q4hzHcZDRLzTfKzQWVEk6hKtHiqDLhll5x6zEY4XP4fUnkldFYT4l8MYjY9NLr3++ZWatzueZFzq.k1FpMgGxLKy0PxdMz+uH48Dnggz0cJ8LxygJ5GjN8q+5Ln5x7MX97eym+ae3Ol4g+HzejIkxC+fO+28vO3g+.llxFcTDOJsUwX3sXPVN14dSDNPkyZphH+5RgIF67L4wFXrXU0g2KTg3Pk0B1BUOTI3Q9IGIvwoKEz9yDq8ODGlPrJHzuFBwVEgn.H1p.DlFwVEfPTHVZGXkYsX1xsxfozKxzE4daIqBaNWP5yW7K+oHlMylasMS0st0lqRzDpX.6SvewOAK3VukcYGHahu6M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ofhkZ
      

      Script :

      Content.makeFrontInterface(600, 600);
      
      const var fx = Synth.getEffect("Script FX1");
      const var eq_LC = Synth.getEffect("ParamEQ_LC");
      
      Console.print("=== ParamEQ_LC attributes ===");
      for(i = 0; i < 10; i++)
      {
          Console.print("Index " + i + " = " + eq_LC.getAttribute(i));
      }
      
      // test
      eq_LC.setAttribute(0, 1);   // Enable?
      eq_LC.setAttribute(1, 500); // Freq?
      eq_LC.setAttribute(2, 1.0); // Q?
      eq_LC.setAttribute(3, 6.0); // Gain?
      const var eq_L  = Synth.getEffect("ParamEQ_L");
      const var eq_LM = Synth.getEffect("ParamEQ_LM");
      const var eq_M  = Synth.getEffect("ParamEQ_M");
      const var eq_HM = Synth.getEffect("ParamEQ_HM");
      const var eq_H  = Synth.getEffect("ParamEQ_H");
      const var eq_HC = Synth.getEffect("ParamEQ_HC");
      
      if(fx == undefined) Console.print("❌ FX NOT FOUND");
      else Console.print("✅ FX OK");
      
      Console.print("eq_LC: " + (eq_LC == undefined ? "❌" : "✅"));
      Console.print("eq_HC: " + (eq_HC == undefined ? "❌" : "✅"));
      
      inline function mapFreq(v, min, max)
      {
          return min * Math.pow(max/min, v);
      }
      inline function mapGain(v)
      {
          return (v * 48) - 24;
      }
      inline function mapQ(v)
      {
          return 0.4 + (v * 0.8);
      }
      
      // ===== LOW CUT =====
      const var UILCF = Content.getComponent("UILCF");
      inline function onUILCF(c,v)
      {
          local freq = mapFreq(v, 20, 100);
          fx.setAttribute(fx.LCF, freq);
          eq_LC.setAttribute(1, freq);
      }
      UILCF.setControlCallback(onUILCF);
      
      // ===== LOW SHELF =====
      const var UILF = Content.getComponent("UILF");
      const var UILG = Content.getComponent("UILG");
      const var UILQ = Content.getComponent("UILQ");
      
      inline function onUILF(c,v)
      {
          local freq = mapFreq(v, 30, 120);
          fx.setAttribute(fx.LF, freq);
          eq_L.setAttribute(1, freq);
      }
      inline function onUILG(c,v)
      {
          local gain = mapGain(v);
          fx.setAttribute(fx.LG, gain);
          eq_L.setAttribute(3, gain);
      }
      inline function onUILQ(c,v)
      {
          local q = mapQ(v);
          fx.setAttribute(fx.LQ, q);
          eq_L.setAttribute(2, q);
      }
      UILF.setControlCallback(onUILF);
      UILG.setControlCallback(onUILG);
      UILQ.setControlCallback(onUILQ);
      
      // ===== LOW MID =====
      const var UILMF = Content.getComponent("UILMF");
      const var UILMG = Content.getComponent("UILMG");
      const var UILMQ = Content.getComponent("UILMQ");
      
      inline function onUILMF(c,v)
      {
          local freq = mapFreq(v, 120, 400);
          fx.setAttribute(fx.LMF, freq);
          eq_LM.setAttribute(1, freq);
      }
      inline function onUILMG(c,v)
      {
          local gain = mapGain(v);
          fx.setAttribute(fx.LMG, gain);
          eq_LM.setAttribute(3, gain);
      }
      inline function onUILMQ(c,v)
      {
          local q = mapQ(v);
          fx.setAttribute(fx.LMQ, q);
          eq_LM.setAttribute(2, q);
      }
      UILMF.setControlCallback(onUILMF);
      UILMG.setControlCallback(onUILMG);
      UILMQ.setControlCallback(onUILMQ);
      
      // ===== MID =====
      const var UIMF = Content.getComponent("UIMF");
      const var UIMG = Content.getComponent("UIMG");
      const var UIMQ = Content.getComponent("UIMQ");
      
      inline function onUIMF(c,v)
      {
          local freq = mapFreq(v, 400, 2000);
          fx.setAttribute(fx.MF, freq);
          eq_M.setAttribute(1, freq);
      }
      inline function onUIMG(c,v)
      {
          local gain = mapGain(v);
          fx.setAttribute(fx.MG, gain);
          eq_M.setAttribute(3, gain);
      }
      inline function onUIMQ(c,v)
      {
          local q = mapQ(v);
          fx.setAttribute(fx.MQ, q);
          eq_M.setAttribute(2, q);
      }
      UIMF.setControlCallback(onUIMF);
      UIMG.setControlCallback(onUIMG);
      UIMQ.setControlCallback(onUIMQ);
      
      // ===== HIGH MID =====
      const var UIHMF = Content.getComponent("UIHMF");
      const var UIHMG = Content.getComponent("UIHMG");
      const var UIHMQ = Content.getComponent("UIHMQ");
      
      inline function onUIHMF(c,v)
      {
          local freq = mapFreq(v, 2000, 6000);
          fx.setAttribute(fx.HMF, freq);
          eq_HM.setAttribute(1, freq);
      }
      inline function onUIHMG(c,v)
      {
          local gain = mapGain(v);
          fx.setAttribute(fx.HMG, gain);
          eq_HM.setAttribute(3, gain);
      }
      inline function onUIHMQ(c,v)
      {
          local q = mapQ(v);
          fx.setAttribute(fx.HMQ, q);
          eq_HM.setAttribute(2, q);
      }
      UIHMF.setControlCallback(onUIHMF);
      UIHMG.setControlCallback(onUIHMG);
      UIHMQ.setControlCallback(onUIHMQ);
      
      // ===== HIGH SHELF =====
      const var UIHF = Content.getComponent("UIHF");
      const var UIHG = Content.getComponent("UIHG");
      const var UIHQ = Content.getComponent("UIHQ");
      
      inline function onUIHF(c,v)
      {
          local freq = mapFreq(v, 6000, 12000);
          fx.setAttribute(fx.HF, freq);
          eq_H.setAttribute(1, freq);
      }
      inline function onUIHG(c,v)
      {
          local gain = mapGain(v);
          fx.setAttribute(fx.HG, gain);
          eq_H.setAttribute(3, gain);
      }
      inline function onUIHQ(c,v)
      {
          local q = mapQ(v);
          fx.setAttribute(fx.HQ, q);
          eq_H.setAttribute(2, q);
      }
      UIHF.setControlCallback(onUIHF);
      UIHG.setControlCallback(onUIHG);
      UIHQ.setControlCallback(onUIHQ);
      
      // ===== HIGH CUT =====
      const var UIHCF = Content.getComponent("UIHCF");
      inline function onUIHCF(c,v)
      {
          local freq = mapFreq(v, 12000, 20000);
          fx.setAttribute(fx.HCF, freq);
          eq_HC.setAttribute(1, freq);
      }
      UIHCF.setControlCallback(onUIHCF);
      

      Photo
      "
      1fbff4c1-8664-4f16-9dba-3adf7880f214-image.png 25f0f610-c427-42a8-9456-7ccaf5f79064-image.png b9fa9924-c0aa-4276-a23f-8f6d9430480f-image.png 117e1b75-4bdf-40ae-88a2-8164102f0893-image.png
      Thank you so much!

      posted in AI discussion
      T
      the red_1
    • RE: Auto-Generate 128-Frame Knob Filmstrips for HISE

      @Ben-Catman Thank you very much! I’m really glad you found it useful. Hope it helps save time in your HISE workflow 😊

      posted in Presets / Scripts / Ideas
      T
      the red_1
    • Auto-Generate 128-Frame Knob Filmstrips for HISE

      Hi everyone,
      I’d like to share a Python script that saves a lot of time when creating knob filmstrips for HISE.
      Instead of rotating a knob image manually frame by frame, this script:
      Takes one knob image
      Automatically detects the visible (non-transparent) area
      Crops and centers it perfectly
      Rotates it smoothly
      Exports a 128-frame sprite sheet (no jitter, no wobble)

      Features

      • True center rotation (no shaking)
      • list itemAutomatic alpha-based cropping
      • list item 128 frames (super smooth)
      • list item Vertical or horizontal filmstrip
      • list item Ready to use in HISE
      • list item Huge time saver

      Requirements :

      pip install pillow numpy
      

      Full Python Code : ⬇️

      from PIL import Image
      import numpy as np
      import os
      
      # === Settings ===
      image_path = "PATH/TO/KNOB.png"
      output_image = "PATH/TO/KNOB_128fps.png"
      num_frames = 128
      start_angle = 150
      end_angle = -150
      orientation = "vertical"  # "vertical" or "horizontal"
      
      # === Load image ===
      img = Image.open(image_path).convert("RGBA")
      w, h = img.size
      
      # === Detect non-transparent area ===
      alpha = np.array(img.split()[-1])
      ys, xs = np.nonzero(alpha > 0)
      x_min, x_max = xs.min(), xs.max()
      y_min, y_max = ys.min(), ys.max()
      
      # === Crop to real knob area ===
      img = img.crop((x_min, y_min, x_max, y_max))
      w, h = img.size
      
      # === Make square canvas for perfect rotation ===
      side = max(w, h)
      square = Image.new("RGBA", (side, side), (0, 0, 0, 0))
      offset = ((side - w) // 2, (side - h) // 2)
      square.paste(img, offset)
      img = square
      w = h = side
      
      # === Lock rotation center ===
      cx, cy = w / 2, h / 2
      print(f"Rotation center locked at ({cx}, {cy})")
      
      # === Create sprite sheet ===
      if orientation == "horizontal":
          sprite = Image.new("RGBA", (w * num_frames, h), (0, 0, 0, 0))
      else:
          sprite = Image.new("RGBA", (w, h * num_frames), (0, 0, 0, 0))
      
      # === Generate frames ===
      for i in range(num_frames):
          angle = start_angle + (end_angle - start_angle) * (i / (num_frames - 1))
          rotated = img.rotate(angle, resample=Image.BICUBIC, center=(cx, cy))
      
          if orientation == "horizontal":
              sprite.paste(rotated, (i * w, 0))
          else:
              sprite.paste(rotated, (0, i * h))
      
      sprite.save(output_image)
      print(f"Sprite generated successfully: {output_image}")
      
      

      Save the file with this name : ⬇️

      generate_knob_sprite.py
      

      Make sure the file extension is .py and not .txt.
      Open Command Prompt / PowerShell & Run the script ⬇️

      python .\generate_knob_sprite.py
      

      Good luck

      posted in Presets / Scripts / Ideas
      T
      the red_1
    • RE: Unable to Move UI Knob Directly — Only via Macro 1

      @David-Healey It worked! Thank you from the bottom of my heart for all your efforts, and thanks once again. 💛

      posted in General Questions
      T
      the red_1
    • RE: Unable to Move UI Knob Directly — Only via Macro 1

      @David-Healey
      Thanks for the suggestion, but when I assign Macro 1 in the property editor, the UI knob still doesn’t move.
      Also, the Macro itself only goes from 0 to 6 instead of 0–127 because in the property editor I set Max = 6, Min = 0, and 7 steps (FPS), so the macro and knob ranges don’t match the full 0–127 range expected for a macro control in HISE

      Also, I have another knob in the UI that is set to 128 FPS, but I set Step Size = 1, Max = 6 and Min = 0 for it. It does rotate, but the steps and angles aren’t accurate — the increments feel uneven and the knob doesn’t feel precise when turning, likely because the UI control range doesn’t line up with the macro’s expected 0–127 range.

      Lastly, I don’t want to use HISE Script for this because the DSP part doesn’t work for me or seems broken — it still fails even after building the latest HISE Dev version. I’m avoiding scripting because I can’t get the DSP network working reliably,

      posted in General Questions
      T
      the red_1