• Set font style?

    4
    0 Votes
    4 Posts
    16 Views
    VirtualVirginV

    @ustk Thank you!

    I made an inline function to load all of the fonts from your project fonts folder and auto-name them. I thought it would be easier just to drag the .ttf or .otf into the Fonts folder and let this do the rest. FYI- the naming here removes "-Regular" from the loadFontAs target name so for instance "Nunito-Regular" will now just be referred to as "Nunito". The other types will keep their suffix.

    // this will load all of your fonts which are stored in the projectFolder/Images/Fonts inline function loadAllFontsFromProjectFolder() { local appDataFolder = FileSystem.getFolder(FileSystem.AppData); local fontsFolder = appDataFolder.getChildFile("Fonts"); local fontFiles = FileSystem.findFiles(fontsFolder, "*.ttf;*.otf", false); for (file in fontFiles) { local fontPath = file.toString(File.FullPath); local fontName = file.toString(File.Filename); local targetName = ""; // if the file name suffix is "-Regular", loadAs will use just the prefix if (fontName.endsWith("-Regular.ttf") || fontName.endsWith("-Regular.otf")) targetName = fontName.substring(0, fontName.lastIndexOf("-Regular.")); else if (fontName.endsWith(".ttf") || fontName.endsWith(".otf")) targetName = fontName.substring(0, fontName.lastIndexOf(".")); Engine.loadFontAs(fontPath, targetName); } }
  • 0 Votes
    7 Posts
    21 Views
    ustkU

    @Bicrome A global cable to set a scriptFX attribute is a bit overkill ☺

  • LAF a vertical slider using CSS

    5
    3 Votes
    5 Posts
    29 Views
    CatABCC

    @DabDab Yeah, that's the problem I encountered too.😂

  • Loading Files Into MIDIPlayer via script?? || SOLVED! 🙏

    Solved
    34
    0 Votes
    34 Posts
    108 Views
    ChazroxC

    @d-healey I got it....wheres that damn t-shirt. Thats my outfit for the week. hahaha.

    Thank you so much! 🙏

    @HISEnberg I see the answers in your snippet as well and so much more! Im already learning a few things just looking at this. 🙏 Bless!

  • panel in front

    7
    0 Votes
    7 Posts
    309 Views
    ChazroxC

    @VirtualVirgin .loseFocus?

  • FFT Analyser Path - Need help drawing the magnitude to height

    Unsolved
    25
    0 Votes
    25 Posts
    2k Views
    HISEnbergH

    I made some progress towards solving the UI lag from the FFT. @Consint & @oskarsh @Oli-Ullmann this may be of some interest to you.

    Basically I found that if you run the FFT inside of a scriptnode network, you need to script the buffer size in order for it to take effect (editing the buffer size within the scriptnode will not work).

    Now in my case I need to drop the size to at least 4096 samples which is barely tolerable, but it seems to have cleared up the UI lag issue. The minimum the FFT will accept is 1024 samples (which is virtually useless imo). There's also a direct correlation between the size of the FFT on your UI and the lag you experience (smaller ones don't seem so bad).

    You can kind of see the refresh rate slowing down here:

    giffymetimbers.gif

    I created a script to resize my visual/buffers, and I use sliders to control their sizes. It looks something like this:

    namespace BufferManager { reg isUpdating = false; const var BUF_SIZE = [1024, 2048, 4096, 8192, 16384]; // FFT Buffer Properties const var FFT_BUF_PROPERTIES = { "BufferLength": 1024, "WindowType": "Blackman Harris", "Overlap": 0, "DecibelRange": [-100.0, 0.0], "UsePeakDecay": false, "UseDecibelScale": true, "YGamma": 1.0, "Decay": 0.5, "UseLogarithmicFreqAxis": true }; for (i = 0; i < fftBuffers.length; i++) { fftBuffers[i].setRingBufferProperties(FFT_BUF_PROPERTIES); } // ----- CONTROLS ----- // Control - FFT Size inline function onknb_fftSizeControl(component, value) { if (isUpdating) return; isUpdating = true; // Stop all processing for (b in fftBuffers) b.setActive(false); //Engine.allNotesOff(); // I was using this but doesn't seem necessary // Updates local newSize = BUF_SIZE[value]; FFT_BUF_PROPERTIES.BufferLength = newSize; // Apply to all buffers for (b in fftBuffers) b.setRingBufferProperties(FFT_BUF_PROPERTIES); LafFftAnalyser.createReadBuffers(); // Restart processing for (b in fftBuffers) b.setActive(true); isUpdating = false; }; knb_fftSize.setControlCallback(onknb_fftSizeControl);
  • ARP || Tie Notes?

    Unsolved
    13
    0 Votes
    13 Posts
    133 Views
    ChazroxC

    @cassettedeath Built in arp is behaving well as it is now in DAW. I dont use the hold or tie tho so I cant speak on performance in that case.

  • Link animation speed to rate?

    3
    0 Votes
    3 Posts
    59 Views
    M

    @dannytaurus Thank you for the guidance! I'll give it a go :)

  • Stretch player questions

    4
    0 Votes
    4 Posts
    103 Views
  • Memory leak with Engine.loadAudioFilesIntoPool

    20
    0 Votes
    20 Posts
    1k Views
    T

    @AbidextrousMoose thanks for a detailed report!

    We fixed all of this by including the ConvolutionIR itself in the preset.

    Do you mean by including an Audio Waveform UI element and pointing it to the IR slot?

    @Christoph-Hart did you have a chance to look into it?

  • ARP || Shift Click Slider Pack Values

    Unsolved
    8
    0 Votes
    8 Posts
    102 Views
    ChazroxC

    @d-healey ahh..Thank You. 🙏
    Watchin now..

  • Get Preset Category Name to print?

    Solved
    10
    0 Votes
    10 Posts
    120 Views
    ChazroxC

    @ustk Thanks guys. @ulrik

  • indexOf Bug?

    7
    0 Votes
    7 Posts
    165 Views
    Oli UllmannO

    @ustk
    Great, I didn't think of that. Thank you very much! :-)

  • Global Cable Scaling?

    2
    0 Votes
    2 Posts
    142 Views
    iamlampreyI

    Answered my own question again, where's my shirt?

    Use a math.map node with the regular core.peak node to scale the value down to the 0-1 range, then scale it back up in the paint routine.

    I still think the global cable might be broken but 🙂

  • Routing Matrix (FX)?

    1
    0 Votes
    1 Posts
    68 Views
    No one has replied
  • SliderPack StepSequencer Mode || LAF Help

    Unsolved
    7
    0 Votes
    7 Posts
    65 Views
    ChazroxC

    @d-healey
    Thank You! 🙏 this was all I needed to do. lol. I know I make things hard on myself but we get there. lol.

    Screenshot 2025-08-24 at 5.04.12 PM.png

  • Smoother version of table 'line' animation

    1
    0 Votes
    1 Posts
    68 Views
    No one has replied
  • Snippet not working

    19
    0 Votes
    19 Posts
    223 Views
    d.healeyD

    @pcs800 Just chain them up in the module tree, add the delay, then add the script effect below it.

  • This topic is deleted!

    3
    0 Votes
    3 Posts
    17 Views
  • RE: Buffer.detectPitch()

    9
    0 Votes
    9 Posts
    223 Views
    resonantR

    @iamlamprey This will be very helpful, thank you.

    I tried it with guitar samples and it works well.

23

Online

1.9k

Users

12.4k

Topics

107.9k

Posts