HISE Logo Forum
    • Categories
    • Register
    • Login

    Compressor missing from effects list

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 101 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.
    • pcs800P
      pcs800
      last edited by

      Being that there is no gui way to add a compressor to a project (that I can find), I search the documentation for compressor, and all it says is this.
      jdsp.jcompressor
      With no further explanation.
      Since I am not a coder, I don't know what to do with that.

      Ai tells me the following:

      To add a compressor in HISE, you can use Faust compressors. However, it's important to note that the Faust compressors do not output an attenuated signal; instead, they output the attenuation value. Therefore, you need to multiply your input signal with the results of the compressor to achieve the desired effect.

      Here is an example Faust code snippet for a compressor:

      import("stdfaust.lib");

      strength = hslider("Strength", 0, 0, 1, 0.01); // strength of the compression (0 = no compression, 1 means hard limiting, >1 means over-compression)
      thresh = hslider("Thresh", 0, -60, 0, 0.1); // dB level threshold above which compression kicks in
      att = hslider("Attack", 0, 0, 2, 0.01); // attack time = time constant (sec) when level & compression going up
      rel = hslider("Release", 0, 0, 3, 0.01); // release time = time constant (sec) coming out of compression
      knee = hslider("knee", 0, 0, 8, 0.1); // gradual increase in gain reduction around the threshold

      compress(left,right) = left,right : co.RMS_compression_gain_N_chan(strength,thresh,att,rel,knee,1,0,2) : *(left), *(right);

      process = compress;
      After adding the compressor code, you should multiply the input signal with the compressor's output to apply the compression effect correctly. This can be done by modifying the process line to include the multiplication step:

      process = input : compress : *(input);
      This ensures that the input signal is appropriately attenuated based on the compressor's output.

      Can anyone elaborate?

      1 Reply Last reply Reply Quote 0
      • bendursoB
        bendurso
        last edited by

        @pcs800 said in Compressor missing from effects list:

        Use the one called "Dynamics". It has a compressor included :)

        pcs800P 1 Reply Last reply Reply Quote 0
        • pcs800P
          pcs800 @bendurso
          last edited by

          @bendurso That was it, thanks!

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

          16

          Online

          1.8k

          Users

          11.9k

          Topics

          103.9k

          Posts