• Rotation around center of mass is weird.

    Solved Scripting
    14
    0 Votes
    14 Posts
    4k Views
    ChazroxC

    StarKnobNoiseMaskLayerFixed.gif

    Heres the fix:

    MyKnobLaf.registerFunction("drawRotarySlider", function(g, obj) { var a = obj.area; var range = obj.max - obj.min; var stableSize = a[2] * (1.0 - 2.0 * 0.15); var ox = a[0] + (a[2] - stableSize) / 2; var oy = a[1] + (a[2] - stableSize) / 2; var cx = ox + stableSize / 2; var cy = oy + stableSize / 2; var sw = stableSize / 200.0; var startOffset = 2.5; var totalSweep = 2.0 * startOffset; var endOffset = -startOffset + totalSweep * (obj.value - obj.min) / range; var cStarBody3Top = 0xffFF0000; var cStarBody3Bot = 0xff00FBFF; var cStarBody3Outline = 0xfa000000; var starBody3Size = stableSize * 0.76; var starBody3X = cx - starBody3Size * 0.5; var starBody3Y = cy - starBody3Size * 0.5; var starBody3Static = Content.createPath(); starBody3Static.addStar([0.5, 0.5], 3, 0.13, 0.5, 0); starBody3Static.roundCorners(1); var starBody3StaticBounds = starBody3Static.getBounds(starBody3Size).translated(starBody3X, starBody3Y); var starBody3Star = Content.createPath(); starBody3Star.addStar([0.5, 0.5], 6, 0.05, 0.6, endOffset); starBody3Star.roundCorners(1); var starBody3RotBounds = starBody3Star.getBounds(starBody3Size).translated(starBody3X, starBody3Y); // PASS 1: gradient fill g.beginLayer(false); g.setGradientFill([cStarBody3Top, cx, starBody3Y, cStarBody3Bot, cx, starBody3Y + starBody3Size, false]); g.fillPath(starBody3Star, starBody3RotBounds); g.endLayer(); // PASS 2: noise — use full obj.area so noise fills behind mask cleanly g.beginLayer(false); g.applyMask(starBody3Star, starBody3RotBounds, false); g.rotate(endOffset, [cx, cy]); g.addNoise({"alpha": 0.3, "monochromatic": true, "area": [a[0], a[1], a[2] * 2, a[3] * 2]}); g.rotate(-endOffset, [cx, cy]); g.endLayer(); // PASS 3: outline g.beginLayer(false); g.setColour(cStarBody3Outline); g.drawPath(starBody3Star, starBody3RotBounds, 3.06 * sw); g.endLayer(); });
  • 0 Votes
    3 Posts
    1k Views
    ustkU

    @observantsound You can use both references at the same time. Just use the one that works for the bypass, and the other for your sampler job

    What I said might work, but do as @David-Healey said it's better implementation even if the reference are the same behind the scene 👍

  • Ellipse Masking // Mask makes shape dark.

    Unsolved Scripting
    13
    0 Votes
    13 Posts
    4k Views
    ChazroxC

    Update: I bowed out gracefully.....for now lol

  • AI is the future

    AI discussion
    3
    5 Votes
    3 Posts
    2k Views
    Christoph HartC

    Not gonna lie I‘ve made this exact mistake about three times in my life already without help from a robot…

  • Disable frontend Macros on right click

    General Questions
    3
    0 Votes
    3 Posts
    1k Views
    David HealeyD

    I think you can probably do it using the MidiAutomationHandler: https://docs.hise.dev/scripting/scripting-api/midiautomationhandler/index.html

  • 0 Votes
    36 Posts
    11k Views
    Y

    @David-Healey ok thank you

  • Thoughts on Moonbase?

    General Questions
    20
    0 Votes
    20 Posts
    6k Views
    J

    @JC Hey i actually got the moonbase module to work in juce 6..
    took David's advice and messed around with Claude and got it to work.

    little tricky for me but its working. I Havent shipped anything yet though--Hopefully soon.

  • 0 Votes
    11 Posts
    2k Views
    J

    @jeffd

    So i got a notarized .pkg working of the .hr files. still need to test more but i got them into the plugin's own per-user app-data folder. Then when the plug-in opens and installs the samples it can also auto-delete the .hr files right after extracting. And no gatekeeper quarantine from macos. Ill have to do the same on pc and create .exe for the .hr files to match. but perhaps this will be best. less confusing for people i imagine?

  • Compiling VST files on Windows for macOS!!

    General Questions
    3
    0 Votes
    3 Posts
    806 Views
    David HealeyD

    @Oli-Ullmann Yes a vm is the way to go if you don't have a mac

  • 0 Votes
    3 Posts
    1k Views
    Y

    @David-Healey payload is good.

    Oh ok, I didn't know. I do it right now.

  • Latency problem on FX plugins...

    Bug Reports
    26
    0 Votes
    26 Posts
    13k Views
    J

    i had to set eh latency upto 80ms, for the sample to sync. inside flstudio and reaper

  • compiled DSP network wont work after vst export

    General Questions
    3
    0 Votes
    3 Posts
    1k Views
    J

    @David-Healey Thank you. It compiled and worked just fine.

  • Drawing gradient along a path? Thermometer style gradient?

    Scripting
    17
    0 Votes
    17 Posts
    5k Views
    dannytaurusD

    @Chazrox Never used them, sorry.

  • Show default preset name on first launch

    General Questions
    8
    0 Votes
    8 Posts
    1k Views
    ustkU

    @dannytaurus Oh nice one! 👍