HISE Logo Forum
    • Categories
    • Register
    • Login

    FAUST Channel Mismatch, how to tackle it ?

    Scheduled Pinned Locked Moved Solved Faust Development
    4 Posts 3 Posters 540 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.
    • DabDabD
      DabDab
      last edited by DabDab

      How can I get rid of FAUST channel mismatch error ?
      Input = 1, Output = 1 HISE expects 2 . How can I tackle it ?

      import ("stdfaust.lib");
      f0 = vslider("Freq", 100,60,1000,0.1);
      Q = vslider("Q",1.0,1.0,3.0,0.01);
      dtune = hslider("Detune", 100,0,300,0.1);
      process = wa.bandpass2(f0, Q, dtune);
      

      Bollywood Music Producer and Trance Producer.

      Tania GhoshT 1 Reply Last reply Reply Quote 0
      • DabDabD DabDab marked this topic as a question on
      • Tania GhoshT
        Tania Ghosh @DabDab
        last edited by Tania Ghosh

        @DabDab

        try this...

        process = wa.bandpass2(f0, Q, dtune) , wa.bandpass2(f0, Q, dtune) ;
        

        double.jpg

        Tania Ghosh

        DabDabD 1 Reply Last reply Reply Quote 4
        • DabDabD
          DabDab @Tania Ghosh
          last edited by

          @Tania-Ghosh Excellent... Thank you. :)

          Bollywood Music Producer and Trance Producer.

          LindonL 1 Reply Last reply Reply Quote 0
          • DabDabD DabDab has marked this topic as solved on
          • LindonL
            Lindon @DabDab
            last edited by Lindon

            @DabDab said in FAUST Channel Mismatch, how to tackle it ?:

            @Tania-Ghosh Excellent... Thank you. :)

            Ok to make sure the concept is obvious, your initial code is sending in a stereo signal, the faust module you are using expects a mono signal. So there are a couple of ways to fix this. you can pass in a mono signal to the faust module in your scriptnode network, or as @Tania-Ghosh demonstrates, there's the more elegant way of make your Faust network expect a stereo signal, by duplicating the faust call in the process node thus:

            process = yourFaustProcess(and its params), yourFaustProcess(and its params);
            

            see the comma there? its used here to duplicate the channels, so now there are two channels....stereo and all is right with the world..

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 5
            • bendursoB bendurso referenced this topic on
            • T treynterrio referenced this topic on
            • First post
              Last post

            55

            Online

            1.7k

            Users

            11.7k

            Topics

            101.8k

            Posts