SampleStartMod LAF?
-
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.
-
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.
-
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.
-
@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