creating a multiband gui
-
hey there, so i had the idea of using tables to show the frequency split of my multiband setup.
Any idea what kind of calculation i should use in scriptnode to set these closer to the crossover points?
If anybody has a better idea let me know aswell, i have not stumbled across a solution that lets me adjust the bands inside the waveform display directly like other multiband processors do, so i went for this. :)
HiseSnippet 2818.3oc6azzaabbcWIMRhL1oIownE8PvV2VDJTYZtKI0G0nvTeQY1XIQHpHaDCW0g6NjbCWtK6tCsLcpAJPujSMWat49GnGRt2ZjqsE8ibnW6khhdonn+AZeyr6xcVJR8AsjrUUErk47l488adyadCcYWGchmmiqjbhc51lHIeETkt1zFqz.aZKUZUI4qgZ0whZVEaarmGl1wESgkub21XOOhgjr73qyVpbhIj3+7ut8xXKrsNIBjjztNl5j6Z1xjFAsbg2yzxpH1friYKgUmqPIcG6Ubrb5.h03nLRsw5Mw0IahYKaLjj7jqYXBRQEJlR7jjmXYGitUZ3rus+520zyrpEgMPUpBPHevEcrLXRL6yRqzvzxnbn56IIIiJGYLF22X71nMLML6AOxn7F7IThvPzdHOVbwa7Xhmpn3kQP7FfHIKHRS3KRuIphtqYaZzLL440PkroD2ZXvrKJJ9qUZr2BgVwAVgMMcKbSRQWXPOLRMWlLyp.+ZlakDVkmiEIstEA6lB.j7l2TYk6rzlqulxN2YMkJk9f0T1pH+yK+9EKt119fJsIGz6VYksKUdGkh2W8cUbrKYaRUB.kLI3U8nJOB6pz11pXM5pldssvcU99JgxVcBcEmVscrgAotdrUccPVhHfGDanS.L4AqL7BV1xcpUi3VgOcpq2KdkgcxXzKsAlhSWku7L.g7o3AnTJlQY.H1FSajQPx0cIfytL.kazbI0UXzlsDeBErhTCWHX7daB1Hfwyj1hXWm13fRtGgVFBDoa6zgZZSRUqisN0zwNU8YR9QISvrOXfuzFldLZdWGcr0xNcrM73ZCeA6CK.+.sGFLrAeXV1vjIpy3f+9uT9+iW58MoMVxpcCbDjFlTxrJYRO2LLhVOsgKdetAfy3HqzrJO.9K7mPA5dlFLyTDf6PLq2flZlGNqhZZtHFHD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kWYpRL6ks7yCkZw65ku33+lPQhdzamHryn2CnDErF8fAh6VRLwu8m7Ol+m052e6dn9UW+C9x+r1OuP+8gQdHsSRrmfw5vQudqIMXsP6rTKF6ui9Cc+rO+TSKzFMW6xNNMag4cBej9F8H9NLWyexWCcO7iH7ubnAeIlYiq431RYcBbDNqe0pGxWh4+3w8Kwb6i8Wh4szofHriK11qsiGQUjx8MmlvSs8aVkP6X2a4O6S+zu4y8AoI.p.S8JBpm.YmtGPMQfkw1BK5seNLVXd0BaXJ7Jm+0aulMKMXEBnMFa4oCJKNHbJ7s.K2wxiv+FPFRWke05+IAvgj+G8Iewe612A6Z.9E8XuN23G6WmS7Ebh+nkBqe.uU1jmUe4tOWe4yW7Gp8z40FSDJiULYGdtl8iHVv1TtL9Vv9xZ3NVzPnw2msgisS3qTEEArMg5ZVuNIVf0.UnknTrdSg.3BaSrHXOg8de6B2EJSG6tA+TyQxVndh+d4OP+0WG4KtJrjCJ+uwCrO9EsGX+bdGJj+7him9qgfb5ZJb2sxKe+84wCvedviVXcWm8BtkBKgwzbHfday++vTBzFrwJC3q3cK3nm8z0iSpCfn1nhX1QEwbiJh4GUDmaTQb9QEwENZDYUFDb8M19D35ZkWy+J5x9UJw2xH8eAkXR1PA
-
@Straticah Looks like @Lindon is the guy to ask - https://channelrobot.com/product/loopboss/
-
@d-healey i found exactly this in another thread from @Lindon i am not sure how i would go about connecting this to the scriptnode templates gain and freq. values we have in HISE.
https://forum.hise.audio//post/55476
HiseSnippet 4870.3oc6a01aiakcVNIdQsZ2hcA5m5mX8GBj2gjCuuRx3jNulI6flIYPljzDLvXJsDsM6HK5Uhd731M.En+g6+f1mmC06VismAX2EKPEjHEu2y8dd64bN2KE0yGW2ubxj5wc1Zmu+xyJ6r0e21u3xQMm7nSJpF04oOtyV+8a+rhIMkiCZa5gWdVwjIkC5r0Ve7WwF1ZmOoi75+4dOrXXwn9kKZpSmertpe4WWcZUyhVe98+WpFN7IECJ+9pSWhZ68eZ+5QOpdX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.72.UetxsVbzZ4QPl5aNRfU2gJu5tlh5cCh3dLA4sT62+cJdpaFl9WRwSeyvl+RJdlaT7r+YR7ZOd26xeHo4z+3hlhojsZsllw7oUdM4cuVJuVtwxexRYZe3Bp3uv0LqBV7zokHzezwxBlXYxUiy9gylV5ayqfZS+3HbVjsEMaWOXQQeScS42NpW6Ne9ktAq20QGsw93Om235gCKGuwt4iN+3qaf8Fc9oGVNNr8dTNmvNa8Iq9Pp+qtcOj58a+0EWhv5QOcTUy2dV4zqu9mx9NS+4I4C29TIDj1HOZ6+5YOZ6zC1oZf7X1uhasinDK+GKnyO7TBWlMcXlA2NqbbSEUpsdb4ap5W19jyuy1OtbxqapOSnc5uLZms5dqY9aWv3e99WN+h+qWd+KXEi4M7u8ee+SjeFmEzO39xCD+rcCCQ6eb6GwELOIL32KO5IeZviQDzw.F14v5wCJG+cECpNexx5Za6un5+XEK.Ccd5nmK+.rPy9nNW8+L.zj5AmOrnY0+BCL3dZG.xrx+a.9eCXDVn5kK++5383+0Px09+Z31Jh+1sedUS+S1rL9QaPFAL3OEx3z+MH+5s+xiNBw5KDvOY6m7Sen+0OtA129qHd7yJZFWAf21ey4m9h5yG2uDbeDPiXx2FNaNT45DdMs.unbz.4h+W7ZZmJd8VS6TMqyNmVzeb8q52FFx+uI+MRKPlFI+Ua1Y6mwqCTyh61d6j3jNmVMn5U86S0OBw3adL5OfwX9.Fi8CXLtOfw3+.FS5GvXxt1wv+0QO37l5SaCGPCO+Kk7eas0WNhONZBJry+GVWpMR.
-
@Straticah said in creating a multiband gui:
its pretty simple - look at the setMouseCallBack in the snippet...and in there you'll find things like this:
if(selectedFLine == 1) { if(event.mouseDownX + event.dragX > 9 && (event.mouseDownX + event.dragX) < fl2 - 9) { MultiBandValues.Band1_2Boundary = FreqLookUp[event.mouseDownX + event.dragX]; MultiBandPanel.repaint(); } };
so this is checking for a freq value change for the first freq (selectedFLine)... and uses the FreqLookUp[] array to get a freq, value. Now you can use this freq value however you like....
same for the gain values(there are 4 of these in the snippet):
if(selectedGLine == 0) { MultiBandValues.Band1Gain = GainLookUp[140-((event.mouseDownY + event.dragY)-10)]; MultiBandPanel.repaint(); };
so getting a value for the first gain value from the GainLookUp array....
-
But why don‘t you use the filterdisplay? That‘s precisely what it‘s made for.
-
@Christoph-Hart said in creating a multiband gui:
But why don‘t you use the filterdisplay? That‘s precisely what it‘s made for.
example?
-
@Christoph-Hart like from my initial post?
-
@Straticah said
Hi, I'm offended to remind you, in the hope that Christophe will look this way. The multiband filter is broken in Hise, I could not understand the reason, I will try to consult other programmers working with Juce.
When two segments approach each other, a parasitic burst of the signal appears. This is exactly why Christophe hung a divider on each band of the signal in his examples. Which, as it is not difficult to understand, is effective only in the static position of the segments. Trying to make them manageable, you inevitably get a parasitic spike at the output, the distance of information is unacceptable - depending on the frequency, the higher, the correspondingly greater the distance you need to block.@Christoph-Hart My friend and I recently tried to disassemble the Monster plugin trying to determine the presence of an exponential formula by which the channel could be muted, neither I nor a familiar C++ programmer found it, unfortunately. I will try to contact jd13 directly, it is surprisingly quite responsive, perhaps it will tell you why LinkwitzRaily in C++ does not give a parasitic splash, but in the script it does. Which is very strange in itself.
-
@Maarid-Ekimmu I mean it is quite hard and fiddly to make an intuitive multiband UI imo, i have not started to try @Lindon s promising script yet. @Christoph-Hart A multiband container inside HISE or even scriptnode would definitely be a big plus if its easy to integrate into the UI. i was also wondering about the upper curve of the LR filter but then i found this and thought its just the mathematical definition and there is no other way.
-
the link to the source of the Monster plugin is above, the name of the plugin is clickable, you can make sure it works and not find a formula for compensating the edge of each selected channel, although maybe we are blind and you will succeed?
We also read about Linkwitz Riley, watched the Juce forums, well, it works for an open source person, without problems, miraclesadded
the only thing that comes to my mind is to contact the developer directly, explain this situation and ask for the formula, if it exists. It will be very funny if he answers the same way the programmer answered me - there is no formula, there is nothing to compensate -
@Maarid-Ekimmu well that looks pretty much like the resonance of the two filters in your example.
-
@Lindon and?
I can't make any obvious sense out of your idiomatic sarcasm.Maybe you can point a finger at a silly boy, where is the compensation for the volume surge, which is missing in this plugin?
#include "CrossoverProcessors.hpp" namespace { void processBand(BandState& band, juce::AudioBuffer<float>& buffer) { if (band.isMuted) { buffer.clear(); } else { float* leftSamples {buffer.getWritePointer(0)}; float* rightSamples {buffer.getWritePointer(1)}; // Do the processing if (!band.isBypassed) { for (size_t index {0}; index < buffer.getNumSamples(); index++) { const double mid {(leftSamples[index] + rightSamples[index]) * 0.5}; const double side {(rightSamples[index] - leftSamples[index]) * (band.width / 2)}; leftSamples[index] = mid - side; rightSamples[index] = mid + side; } } // Update the envelope for (size_t index {0}; index < buffer.getNumSamples(); index++) { band.env.getNextOutput(leftSamples[index] - rightSamples[index]); } } } } namespace CrossoverProcessors { void prepareToPlay(CrossoverState& state, double sampleRate, int samplesPerBlock) { // We don't filter sidechain channels but do copy them to each buffer - so filters may need less channels than the buffers do for (juce::dsp::LinkwitzRileyFilter<float>& filter : state.lowpassFilters) { filter.prepare({sampleRate, static_cast<juce::uint32>(samplesPerBlock), static_cast<juce::uint32>(2)}); } for (juce::dsp::LinkwitzRileyFilter<float>& filter : state.highpassFilters) { filter.prepare({sampleRate, static_cast<juce::uint32>(samplesPerBlock), static_cast<juce::uint32>(2)}); } for (juce::dsp::LinkwitzRileyFilter<float>& filter : state.allpassFilters) { filter.prepare({sampleRate, static_cast<juce::uint32>(samplesPerBlock), static_cast<juce::uint32>(2)}); } for (juce::AudioBuffer<float>& buffer : state.buffers) { buffer.setSize(2, samplesPerBlock); } for (BandState& band : state.bands) { band.env.setSampleRate(sampleRate); } state.sampleRate = sampleRate; state.samplesPerBlock = samplesPerBlock; } void reset(CrossoverState& state) { for (juce::dsp::LinkwitzRileyFilter<float>& filter : state.lowpassFilters) { filter.reset(); } for (juce::dsp::LinkwitzRileyFilter<float>& filter : state.highpassFilters) { filter.reset(); } for (juce::dsp::LinkwitzRileyFilter<float>& filter : state.allpassFilters) { filter.reset(); } for (juce::AudioBuffer<float>& buffer : state.buffers) { buffer.clear(); } for (BandState& band : state.bands) { band.env.reset(); } } void processBlock(CrossoverState& state, juce::AudioBuffer<float>& buffer) { const size_t numCrossovers {state.bands.size() - 1}; // First split everything into bands and apply the processing for (int crossoverNumber {0}; crossoverNumber < numCrossovers; crossoverNumber++) { // We need to make a copy of the input buffer before processing // lowBuffer will be lowpassed, highBuffer will be highpassed juce::AudioBuffer<float>& lowBuffer = crossoverNumber == 0 ? buffer : state.buffers[crossoverNumber - 1]; juce::AudioBuffer<float>& highBuffer = state.buffers[crossoverNumber]; highBuffer.makeCopyOf(lowBuffer); { juce::dsp::AudioBlock<float> block(juce::dsp::AudioBlock<float>(lowBuffer).getSubsetChannelBlock(0, 2)); juce::dsp::ProcessContextReplacing context(block); state.lowpassFilters[crossoverNumber].process(context); // Crop the internal buffer in case the DAW has provided a buffer smaller than the specified block size in prepareToPlay juce::AudioBuffer<float> lowBufferCropped(lowBuffer.getArrayOfWritePointers(), lowBuffer.getNumChannels(), buffer.getNumSamples()); processBand(state.bands[crossoverNumber], lowBufferCropped); } { juce::dsp::AudioBlock<float> block(juce::dsp::AudioBlock<float>(highBuffer).getSubsetChannelBlock(0, 2)); juce::dsp::ProcessContextReplacing context(block); state.highpassFilters[crossoverNumber].process(context); // If this is the last band we need to apply the processing if (crossoverNumber + 1 == numCrossovers) { // Crop the internal buffer in case the DAW has provided a buffer smaller than the specified block size in prepareToPlay juce::AudioBuffer<float> highBufferCropped(highBuffer.getArrayOfWritePointers(), highBuffer.getNumChannels(), buffer.getNumSamples()); processBand(state.bands[crossoverNumber + 1], highBufferCropped); } } } // Finally add the bands back together if (state.numBandsSoloed > 0 && !state.bands[0].isSoloed) { buffer.clear(); } for (int crossoverNumber {0}; crossoverNumber < numCrossovers; crossoverNumber++) { // If there is another crossover after this one, we need to use an allpass to rotate the phase of the lower bands if (crossoverNumber + 1 < numCrossovers) { juce::dsp::AudioBlock<float> block(juce::dsp::AudioBlock<float>(buffer).getSubsetChannelBlock(0, 2)); juce::dsp::ProcessContextReplacing context(block); state.allpassFilters[crossoverNumber].process(context); } if (state.numBandsSoloed == 0 || state.bands[crossoverNumber + 1].isSoloed) { for (int channelNumber {0}; channelNumber < 2; channelNumber++) { buffer.addFrom(channelNumber, 0, state.buffers[crossoverNumber], channelNumber, 0, buffer.getNumSamples()); } } } } }
-
@Maarid-Ekimmu said in creating a multiband gui:
@Lindon and?
I can't make any obvious sense out of your idiomatic sarcasm.Why would you assume its sarcasm? Have I been sarcastic at anyone expense here?
To be clear nearly all filters have some resonant component at the freq cut-off point, if we look at your image:
its clearly demonstrating that resonant "bump" in both the low pass and the high pass filters....which appears to be what is appearing in the second of your images:
Of course this may well be wrong as I have no idea what is being measured here. If so please feel free to ignore me, and pursue your solution elsewhere.
-
@Lindon said in creating a multiband gui:
If so please feel free to ignore me, and pursue your solution elsewhere.
Do I understand correctly that the lack of response initiates trolling? Otherwise, why should I ignore anyone when they are diligently trying to help me?
I sincerely assure you, we can kindly exchange subtleties and barbs for any length of time, moreover, I will be sincerely glad to do so.
You're not trying to turn the topic of conversation offtop by ignoring common sense, I hope? -
@Maarid-Ekimmu he's trying to help you mate....
-
@DanH of course, ignore, just like you do. understand?
It's a pity all this tripe does not solve the question of why there is no glitch on C++ Juce, but there is on Scriptnode, lasers, piu, piu, piu
-
@Maarid-Ekimmu then I look forward to you solving the problem on your own
-
@DanH then, I will make vst available in an independent application by bringing it to the daw constructor, as soon as I learn c++