• This topic is deleted!

    Unsolved
    9
    0 Votes
    9 Posts
    11 Views
  • Console.print "drawThumbnailRange" start and end

    Solved
    2
    0 Votes
    2 Posts
    58 Views
    rglidesR

    Solved. Thanks to an old post from @Lindon , thanks!

    inline function onbtn_GET_SAMPLE_LENGTHControl(component, value) { if (value) { local selection = SP_1.createSelection(".*"); local sampleStart = selection[0].get(SP_1.SampleStart); local sampleEnd = selection[0].get(SP_1.SampleEnd); Console.print("Sample Start: " + sampleStart + ", Sample End: " + sampleEnd); } }; Content.getComponent("btn_GET_SAMPLE_LENGTH").setControlCallback(onbtn_GET_SAMPLE_LENGTHControl);
  • Global Variables || Global Icon Paths in namespaces?

    8
    0 Votes
    8 Posts
    189 Views
    d.healeyD

    @Christoph-Hart said in Global Variables || Global Icon Paths in namespaces?:

    Can you make an example of what customization makes internal scripts "more approachable"?

    Here's a script for handling guitar picking

    fbb92c17-f5df-4c3f-b1df-74a5a150e782-image.png

    Here's the front end view that the users see

    4f8476f7-31b3-4bdf-84fe-5d60719ee565-image.png

    Making the back-end look a bit more like the front end would make it easier for developers to understand how the two things relate, without having to look into the script so much.

  • Drop Shadows || Can we do drop shadows for text?

    4
    0 Votes
    4 Posts
    96 Views
    ChazroxC

    I love it when we work together.

  • 0 Votes
    24 Posts
    1k Views
    d.healeyD

    @Lurch said in XY Panel controlling Knobs, Panel does not create DAW automation but Knobs do?:

    but I get a load of errors

    Start by making a minimal snippet. 1 panel and 1 knob.

    Then try and implement Christoph's solution.

    You can leave this part out if you want, it's just a check to see if you've compiled HISE with the HISE_SEND_PANEL_CHANGED_TO_PLUGIN_PARAMETER preprocessor definition, and this needs to go at the very top of your script, before any comments.

    #on #if !HISE_SEND_PANEL_CHANGED_TO_PLUGIN_PARAMETER // If this causes an error, you need to add HISE_SEND_PANEL_CHANGED_TO_PLUGIN_PARAMETER=1 // to your ExtraDefinitions of the project and rebuild the component tree (either reload the patch) // or click on the refresh icon in the interface designer) Console.assertTrue(false); #endif // FOR AUTOMATION FROM PANEL
  • How to specify text color

    3
    0 Votes
    3 Posts
    80 Views
    Christoph HartC

    "#FFB7AA5B" is a hex representation of a colour with the #AARRGGBB format. You're almost there, you just need to turn that into an actual number with the hex format:

    const var RED = 0xFFFF0000; const var GREEN = 0xFF00FF00; // same as #FF00FF00 const var TRANSPARENT = 0; // shortcut for 0x00000000
  • Do something only when automating?

    7
    0 Votes
    7 Posts
    169 Views
    Christoph HartC

    @tomekslesicki yes there are plenty of other solutions

    just not calling changed() in the slider would prevent the infinite loop writing a custom panel instead of the buttons that store its value and is assigned to a plugin parameter would also work. you could even get away with just styling the slider with a laf and make it look like a few buttons but thatβ€˜s advanced hackery and might not work with you design.
  • Timestretching sounds robtic/metalic

    5
    0 Votes
    5 Posts
    195 Views
    W

    @griffinboy Thanks for the information. I'll continue finishing my plugin without it for now then, and look into zynaptiq in case. Otherwise, might just have an informational snippet on saying use FL or the DAW built in stretching.

  • Moddifying the table UI element

    9
    0 Votes
    9 Posts
    362 Views
    DanHD

    @Christoph-Hart ah nice, didn't know about this :)

    It would be also be an excellent ux upgrade to include drag handles for the curves rather than mousewheel / right-click dragging.

  • This topic is deleted!

    3
    0 Votes
    3 Posts
    14 Views
  • MidiOverlay Drag but not Drop

    3
    0 Votes
    3 Posts
    99 Views
    rglidesR

    Solved. Bit of a workaround but simpler than I expected

    const var pnl_DETECT = Content.getComponent("pnl_DETECT"); const var tile_DRAGROP = Content.getComponent("tile_DRAGROP"); const var pnl_BLOCK = Content.getComponent("pnl_BLOCK"); pnl_DETECT.setMouseCallback(function(event) { var w = this.getWidth(); var h = this.getHeight(); var isMouseOver = (event.x >= 0 && event.x <= w && event.y >= 0 && event.y <= h); var isDragging = event.drag || event.mouseDown || (event.x != this.data.lastX || event.y != this.data.lastY); this.data.lastX = event.x; this.data.lastY = event.y; if (isMouseOver && isDragging) { pnl_BLOCK.showControl(false); } else { pnl_BLOCK.showControl(true); } });
  • LAF help - Flip vertical slider for gain reduction

    3
    1 Votes
    3 Posts
    85 Views
    DanHD

    @d-healey thank you kindly πŸ™Œ

  • This topic is deleted!

    8
    0 Votes
    8 Posts
    8 Views
  • This topic is deleted!

    7
    0 Votes
    7 Posts
    49 Views
  • Deleting .json Items || = undefined??

    5
    0 Votes
    5 Posts
    121 Views
    ChazroxC

    @d-healey If its writing the new data, and not deleting the old one...where are these numbers coming from?

    d888f7f6-a101-4c0f-b840-a849d08ade97-image.png

    they look like items i've added and removed before but if they arent showing up in the .json file, where are they?

  • Learning Objects || One last thing!

    Solved
    5
    0 Votes
    5 Posts
    212 Views
    ChazroxC

    @Matt_SF you're right. I dropped the .length and boom. Good to go!

  • Script processors are blank after my last export.

    16
    0 Votes
    16 Posts
    336 Views
    ChazroxC

    @d-healey damn that thing is going around rn.

  • Pushing Array Values || Its me again...

    Solved
    9
    0 Votes
    9 Posts
    304 Views
    ChazroxC

    @VirtualVirgin damn I been up all night on this...

    and this was the fix...

    WRONG

    for (i = 0; i < NumSliders.length; i++)

    CORRECT

    for (i = 0; i < NumSliders; i++)

    Thank You!

    πŸ™

  • The Death Crash || Prevention?

    15
    0 Votes
    15 Posts
    307 Views
    ChazroxC

    @d-healey super critical. Good thing I back up the entire project folder after ever new function added. I'll lose a few hours of work at most. I'll see about recreating that.

  • Help Me Get SliderPack Values please! Thank You!

    Unsolved
    11
    0 Votes
    11 Posts
    212 Views
    ChazroxC

    @d-healey I Love a good cheat sheet! Thank You! πŸ™

15

Online

1.9k

Users

12.5k

Topics

108.9k

Posts