HISE Logo Forum
    • Categories
    • Register
    • Login

    SampleStartMod LAF?

    Scheduled Pinned Locked Moved General Questions
    4 Posts 2 Posters 316 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      ally
      last edited by

      When a sample start mod is active on a sample, a little green line appears on AudioWaveforms showing that sample. Anyone happen to know how to change or get rid of this? Doesn't seem to be in any of the laf options I can find.

      1 Reply Last reply Reply Quote 0
      • A
        ally
        last edited by

        Well, after editing little bits of source code and recompiling HISE like 15 times, I finally found it in case anyone else needs to edit this.

        The main reference for ALL the green colored sample stuff (back and frontend) is in hi_tools/hi_standalone_components/SampleDisplayComponent.cpp, line 383:

        JUCE_LIVE_CONSTANT_OFF(Colour(0xff5e892f));
        

        Just the sample start bar in particular is in hi_components/audio_components/SampleComponents.cpp, line 600:

        auto c = SampleArea::getAreaColour(AudioDisplayComponent::AreaTypes::SampleStartArea);
        

        Just change the first one if you want everything but the color to stay the same. If you want to remove it completely, change the second one. You'll also need to change the alpha value on line 607 to 0:

        g.setColour(c.withAlpha(0.3f));
        

        You can probably figure out how to remove just the solid line or just the shaded rectangle in the neighboring lines.

        Would be nice if there was a way to do this without recompiling but this worked for me for now.

        d.healeyD 1 Reply Last reply Reply Quote 1
        • d.healeyD
          d.healey @ally
          last edited by

          @ally

          Would be nice if there was a way to do this without recompiling but this worked for me for now.

          Yeah should probably be added to the laf scripting api.

          By the way, when you're playing around in the C++ code you should use debug builds because they compile really fast after the first compilation. It skips the linking and generally only has to recompile the changes you made.

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          A 1 Reply Last reply Reply Quote 0
          • A
            ally @d.healey
            last edited by

            @d-healey You know, I kept thinking "I wish there was a way to only have to compile the changes I made" during my many hours of waiting... Good to know that exists lol

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            36

            Online

            1.7k

            Users

            11.8k

            Topics

            102.3k

            Posts