• Better Way to Do This in Scriptnode?

    Solved
    8
    0 Votes
    8 Posts
    167 Views
    clevername27C

    @aaronventure🌈Thanks, mate.

  • Saturation Models (Neve, Tweaker, Oxford Inflator) in FAUST

    22
    5 Votes
    22 Posts
    1k Views
    clevername27C

    @griffinboy Doing each partial statically will model non-linearity.

  • Broken Scriptnode Synth Envelope…

    Unsolved
    1
    0 Votes
    1 Posts
    50 Views
    No one has replied
  • 0 Votes
    7 Posts
    182 Views
    A

    @JeanC
    I don't think scriptnode currently support that...
    If your're writing something like a plugin host, you could take look at the audio plugin host in JUCE source code.

  • Can't Compile DSP mac M1

    7
    0 Votes
    7 Posts
    164 Views
    ulrikU

    @kameron said in Can't Compile DSP mac M1:

    @HISEnberg @Lindon Thank you guys for the help! I just re-built the latest HISE on a different Mac which is M2 and is running an older version of MacOS and it is running Xcode 15.3. The compile worked on there. So, I am assuming is must've been an issue with Xcode version 16.2

    No there were no issue with Xcode 16.2, it was a mistake by Christoph but he has fixed it now
    https://forum.hise.audio/topic/11825/commit-ca06fcb-fail-to-export-plugin-on-mac/2

  • [Free Dsp] Analog Filter (24dB/oct)

    13
    14 Votes
    13 Posts
    513 Views
    DabDabD

    I have tried to make it a High Pass Filter from the Griffin_LadderFilter.h provided by @griffinboy
    I am not a good C++ DSP programmer. Test it whether it is working or not.

    /* Copyright (c) 2024 griffinboy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #pragma once #include <JuceHeader.h> namespace project { using namespace juce; using namespace hise; using namespace scriptnode; template <typename T> class ScopedValue { public: explicit ScopedValue(T& val) : value(val), ref(val) {} ~ScopedValue() { ref = value; } T& get() { return value; } private: T value; T& ref; ScopedValue(const ScopedValue&) = delete; ScopedValue& operator=(const ScopedValue&) = delete; }; template <int NV> struct Griffin_HighPassFilter : public data::base { SNEX_NODE(Griffin_HighPassFilter); struct MetadataClass { SN_NODE_ID("Griffin_HighPassFilter"); }; static constexpr bool isModNode() { return false; } static constexpr bool isPolyphonic() { return NV > 1; } static constexpr bool hasTail() { return true; } static constexpr bool isSuspendedOnSilence() { return false; } static constexpr int getFixChannelAmount() { return 2; } static constexpr int NumTables = 0; static constexpr int NumSliderPacks = 0; static constexpr int NumAudioFiles = 0; static constexpr int NumFilters = 0; static constexpr int NumDisplayBuffers = 0; void prepare(PrepareSpecs specs) { filtersLeft.prepare(specs); filtersRight.prepare(specs); for (auto& filter : filtersLeft) filter.prepare(specs.sampleRate); for (auto& filter : filtersRight) filter.prepare(specs.sampleRate); } void reset() { for (auto& filter : filtersLeft) filter.reset(); for (auto& filter : filtersRight) filter.reset(); } template <typename ProcessDataType> void process(ProcessDataType& data) { auto& fixData = data.template as<ProcessData<getFixChannelAmount()>>(); auto audioBlock = fixData.toAudioBlock(); auto* leftChannelData = audioBlock.getChannelPointer(0); auto* rightChannelData = audioBlock.getChannelPointer(1); int numSamples = (int)data.getNumSamples(); for (auto& leftFilter : filtersLeft) { leftFilter.process(leftChannelData, numSamples); } for (auto& rightFilter : filtersRight) { rightFilter.process(rightChannelData, numSamples); } } class AudioEffect { public: AudioEffect() = default; void prepare(float sampleRate) { fs = sampleRate; reset(); } void reset() { x1 = x2 = y1 = y2 = 0.0f; } void updateCoefficients(float fc, float q) { float omega = 2.0f * MathConstants<float>::pi * fc / fs; float alpha = std::sin(omega) / (2.0f * q); float cosOmega = std::cos(omega); float a0 = 1.0f + alpha; b0 = (1.0f + cosOmega) / (2.0f * a0); b1 = -(1.0f + cosOmega) / a0; b2 = (1.0f + cosOmega) / (2.0f * a0); a1 = (-2.0f * cosOmega) / a0; a2 = (1.0f - alpha) / a0; } void process(float* samples, int numSamples) { for (int i = 0; i < numSamples; ++i) { samples[i] = processSample(samples[i]); } } private: float fs = 44100.0f; float b0 = 0.0f, b1 = 0.0f, b2 = 0.0f; float a1 = 0.0f, a2 = 0.0f; float x1 = 0.0f, x2 = 0.0f; float y1 = 0.0f, y2 = 0.0f; inline float processSample(float input) { float output = b0 * input + b1 * x1 + b2 * x2 - a1 * y1 - a2 * y2; x2 = x1; x1 = input; y2 = y1; y1 = output; return output; } }; template <int P> void setParameter(double value) { if (P == 0) // Cutoff Frequency { cutoffFrequency = static_cast<float>(value); for (auto& filter : filtersLeft) filter.updateCoefficients(cutoffFrequency, q); for (auto& filter : filtersRight) filter.updateCoefficients(cutoffFrequency, q); } else if (P == 1) // Q Factor { q = static_cast<float>(value); for (auto& filter : filtersLeft) filter.updateCoefficients(cutoffFrequency, q); for (auto& filter : filtersRight) filter.updateCoefficients(cutoffFrequency, q); } } void createParameters(ParameterDataList& data) { { parameter::data p("Cutoff Frequency", { 20.0, 20000.0, 1.0 }); registerCallback<0>(p); p.setDefaultValue(1000.0); data.add(std::move(p)); } { parameter::data p("Q Factor", { 0.1, 10.0, 0.01 }); registerCallback<1>(p); p.setDefaultValue(0.707); data.add(std::move(p)); } } void setExternalData(const ExternalData& data, int index) {} void handleHiseEvent(HiseEvent& e) {} template <typename FrameDataType> void processFrame(FrameDataType& data) {} private: PolyData<AudioEffect, NV> filtersLeft; PolyData<AudioEffect, NV> filtersRight; float cutoffFrequency = 1000.0f; float q = 0.707f; }; }
  • Scriptnode graphics rendering time

    4
    0 Votes
    4 Posts
    77 Views
    Christoph HartC

    @HISEnberg no folded nodes are not rendered (anymore).

    I found the graphics performance of scriptnode to be pretty much on par with what my eyes can parse. If the network is getting too big with too many cables, the framerate drop is a nice nudge to reorganize stuff (the tools are there).

  • What does this mean, and how to fix it

    3
    0 Votes
    3 Posts
    158 Views
    ulrikU

    @kameron No I never solved it, sorry

  • Global Modulator Nodes in Script FX can't be compiled

    6
    0 Votes
    6 Posts
    116 Views
    DanHD

    @Morphoice works great!

  • HV-Compiler + HISE

    7
    0 Votes
    7 Posts
    169 Views
    E

    @Christoph-Hart
    Sounds good, really excited to see!
    it would really open a lot of doors :)

  • Snippet/Network: AHDSR Envelope with Curves

    1
    7 Votes
    1 Posts
    106 Views
    No one has replied
  • Control Nodes Are Not Polyphonic?

    Solved
    5
    0 Votes
    5 Posts
    63 Views
    Christoph HartC

    All control nodes which are stateless (eg. the cable_expr node) are automatically polyphonic, but the others should have dedicated support for polyphonic states.

    I just checked in the source code and the input_toggle does in fact only have a monophonic state, but the compare node should be polyphonic. However I just realized that the wrapper code doesn't propagate that info to the UI to show the [poly] suffix like with the other nodes.

    So:

    input_toggle is polyphonic now all control nodes properly show the [poly] suffix (it shouldn't have affected functionality though, was just an UI glitch).
  • Creating Fm capabilities between 2 OSCs

    3
    0 Votes
    3 Posts
    128 Views
    MorphoiceM

    @Addison-DS faust has most of the DX7 functionality, so you can literally build a DX7 with it
    https://faustlibraries.grame.fr/libs/dx7/

  • How to Connect ScriptNode Table to HISEscript Table?

    Solved
    3
    0 Votes
    3 Posts
    74 Views
    clevername27C

    @Christoph-Hart Thanks, man!

  • 5 Votes
    6 Posts
    158 Views
    Matt_SFM

    @clevername27 Nice! Thank you, I'm interested to hear how that sounds.

  • Drum trigger effect plugin

    2
    0 Votes
    2 Posts
    129 Views
    rglidesR

    I'm not sure about the DAW functions but maybe this will get you started with the layering effect

    HiseSnippet 2935.3oc6a07aarUEeFmbsiSS6qsuREqfQEjHUzZ4ww4KJUw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CeKdB8+sjat7Dbwp88a.LNCaQ87+h8MhgT.0JWOkc0bTbpqbWk71UMswofvXuGKb8NFb1ZUoOOu6Lpxn9igEHuJLFm5z9uHs332fE98M38yz1BlrteefErG2+lrTTdN7W3+RR+qYEEdCJ28tJp2j1jB61wSQiIgNxwmJ6sTTYuHQ1nRB+axjPrDtDKH2LGSauwuAwFntxn7dnj7EISx+A3b.+b+e28PpTgMFVarI1WLnYYQoqK6IMdG+Ij1uWvkCLIPJGbUSWHToEgtSumgwaym2hhec32lUfnhnh.fJJ83kTVDVx.YbJWvYzFD5Z1ZM8.p9E1mX4oNbw2ReoLgLcS1Fi7HXyCQZZALYmPmXog0t1LgPYQhMo8UeJ5k1i+hrCclHQwP9mRamZtVt1mJpvqRaEvLPyo6MZNAxB0S7SYNx0qur+gJqP0gU9+iWhwPuq8RLNSfRnk79JitLGQjUzymNHiN12CC8nUkdz6yn68Yz89L59hbFcmGzntltCYKcdbTTy+QX0.xVaV9QIQEokUh3+cCpCw5sktd3o5PCLyfNvIFzAlcPG3jC5.mZPG3zC5.m43GHMTb+y7mZKJIUrTd9acRtSN0xCI8+.eb.wVB

  • Triggering the file_player node

    1
    0 Votes
    1 Posts
    38 Views
    No one has replied
  • Hise freeze and have to force quit

    Solved
    5
    0 Votes
    5 Posts
    96 Views
    ulrikU

    @ulrik Ok I found what was causing Hise to freeze, it was my "node templates" that I made the other day, I removed them and now it seems to work again.

  • Why Does Every ScriptNode Delay Break My Playback?

    Solved
    8
    0 Votes
    8 Posts
    316 Views
    clevername27C

    @ustk

    Can you tell me what is different about jdelay from core.gain

    Not sure what you are asking here. One is a delay and the other a gain, but you know this already ☺

    Lol, I meant core.delay.

    Hmmm… seems a bit technical for users, no? Many of them are not necessarily confident enough with interface buffers length, so understanding internal blocksize might be confusing… (not trying to be pedantic here)

    Good point - I don't make commercial plugins with HISE; they're functional prototypes for other developers and research. Also, I can use the pop-ups myself to easily try different values, and then go back change the dynamic ones to fixed.

    All good on everything else - cheers!

  • How to Modulate Gain with a Table in ScriptNode?

    Solved
    10
    0 Votes
    10 Posts
    496 Views
    clevername27C

    @ustk Got it - thanks!

20

Online

1.7k

Users

11.8k

Topics

103.1k

Posts