• Voice Count: scriptnode synths?

    Solved
    18
    0 Votes
    18 Posts
    493 Views
    griffinboyG

    @griffinboy

    Update*

    Adding the preprocessor definition that Christoph mentions in this post

    NUM_POLYPHONIC_VOICES=1

    in every available preprocessor box (including the juicer file when building Hise from GitHub, and the project preprocessor boxes) seems to have worked. Sometimes I get errors when running Hise debug and going over the limit. But in regular release Hise the limit seems to work. Now that I think about it, I wonder if I was supposed to track down this constant and change it directly in the source code.

    I've noticed quirks such as the seems that it lets you play one less voice than the limit, and it also cancels voices in a bit of an odd way. Maybe there is still something to do, or this is just how it works.

    Voice limit must be set to a power of 2, eg 8, or you'll get an error.

  • Errors Compiling Networks with ScriptNode Clones (macOS)

    Unsolved
    1
    0 Votes
    1 Posts
    18 Views
    No one has replied
  • "Compiler Output"?

    Solved
    8
    0 Votes
    8 Posts
    27 Views
    clevername27C

    @d-healey Thanks on. Imma try rebasing Develop for the IDE, and then see about watching Xcode.

  • Stepped Value Array in Scriptnode

    4
    0 Votes
    4 Posts
    67 Views
    ustkU

    @raydonstudio Yeah you're right, the property assignment takes over the script, we all fell into this one day or another... Having an assertion in the console that informs when people are using both might help beginners, @Christoph-Hart ?

  • Compiling script FX with dynamic number of clones

    4
    0 Votes
    4 Posts
    64 Views
    clevername27C

    @jmannix Thank you for your reply in this thread, @Christoph-Hart — I appear to be having the same issue.

  • xSIMD and hise? Is it integrated already

    Solved
    5
    0 Votes
    5 Posts
    109 Views
    Christoph HartC

    @griffinboy yes it's included within the RTNeural code folder, but it's only available in the translation unit that compiles the RTNeural code (the hi_tools module).

    In order to make it accessible on other translation units and your own nodes you have to add this line to hi_tools/hi_tools.h:

    #include "hi_neural/RTNeural/modules/xsimd/xsimd.hpp"

    The place doesn't really matter, but somewhere around line 150 would be a good spot.

  • Global Cables Flag?

    Unsolved
    5
    1 Votes
    5 Posts
    74 Views
    Christoph HartC

    Yes global cables are supposed to work without any special flags, but you have to create the cable in your main script as the compiled nodes do not have that ability.

  • This topic is deleted!

    2
    0 Votes
    2 Posts
    4 Views
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    21 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Setting Number of Scriptnode Clones for Compiled Network?

    Solved
    3
    0 Votes
    3 Posts
    96 Views
    clevername27C

    @Christoph-Hart Thank you. And very cool.

  • Better Way to Do This in Scriptnode?

    Solved
    8
    0 Votes
    8 Posts
    100 Views
    clevername27C

    @aaronventure🌈Thanks, mate.

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

    22
    5 Votes
    22 Posts
    718 Views
    clevername27C

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

  • ScriptNode Compilation Workflow and What to Do About It

    42
    4 Votes
    42 Posts
    2k Views
    A

    @Christoph-Hart said in ScriptNode Compilation Workflow and What to Do About It:

    @aaronventure There's already a special tool for this: Export -> Clean DSP Network files.

    this doesn't seem to remove the files from ThirdParty folder (the ones generated for faust).

    It also doesn't seem to clean the Binaries directory in DSPNetworks.

  • Broken Scriptnode Synth Envelope…

    Unsolved
    1
    0 Votes
    1 Posts
    32 Views
    No one has replied
  • 0 Votes
    7 Posts
    130 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
    63 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
    393 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
    41 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
    111 Views
    ulrikU

    @kameron No I never solved it, sorry

39

Online

1.6k

Users

11.1k

Topics

96.8k

Posts