HISE Logo Forum
    • Categories
    • Register
    • Login

    Scriptnode synthesizer. - How to?

    Scheduled Pinned Locked Moved General Questions
    24 Posts 5 Posters 1.4k 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.
    • lalalandsynthL
      lalalandsynth @Matt_SF
      last edited by

      @Matt_SF ok, that is a bummer, would that affect polyphony ?

      https://lalalandaudio.com/

      https://lalalandsynth.com/

      https://www.facebook.com/lalalandsynth

      https://www.facebook.com/lalalandsynth

      Matt_SFM 1 Reply Last reply Reply Quote 0
      • lalalandsynthL
        lalalandsynth @Matt_SF
        last edited by lalalandsynth

        @Matt_SF this quickly becomes a problem actually.

        If you set the Default envelope to 20sec and the "SN" envelope to 20 sec , the overall envelope is no longer 20 sec. Apart from the fact that using 2 envelopes is hacky.

        https://lalalandaudio.com/

        https://lalalandsynth.com/

        https://www.facebook.com/lalalandsynth

        https://www.facebook.com/lalalandsynth

        1 Reply Last reply Reply Quote 0
        • lalalandsynthL
          lalalandsynth
          last edited by

          I am also still wondering if its possible to make a monophonic synth in HISE ?

          https://lalalandaudio.com/

          https://lalalandsynth.com/

          https://www.facebook.com/lalalandsynth

          https://www.facebook.com/lalalandsynth

          1 Reply Last reply Reply Quote 0
          • Matt_SFM
            Matt_SF @lalalandsynth
            last edited by

            @Matt_SF ok, that is a bummer, would that affect polyphony ?

            From the little time I played around earlier, It doesn't seem so.

            If you set the Default envelope to 20sec and the "SN" envelope to 20 sec , the overall envelope is no longer 20 sec. Apart from the fact that using 2 envelopes is hacky.

            What do you mean ? I tried with both envelopes at 20sec and it seem to last 20sec...

            I am also still wondering if its possible to make a monophonic synth in HISE ?

            I think that would be best handled with scripting

            Develop branch
            Win10 & VS17 / Ventura & Xcode 14. 3

            lalalandsynthL 1 Reply Last reply Reply Quote 0
            • lalalandsynthL
              lalalandsynth @Matt_SF
              last edited by

              " What do you mean ? I tried with both envelopes at 20sec and it seem to last 20sec..."

              You can hear the difference between default at 20 sec and disable the SN envelope.
              Then enable the SN envelope on top of the other one, not the same , understandably.

              https://lalalandaudio.com/

              https://lalalandsynth.com/

              https://www.facebook.com/lalalandsynth

              https://www.facebook.com/lalalandsynth

              Matt_SFM 2 Replies Last reply Reply Quote 0
              • Matt_SFM
                Matt_SF @lalalandsynth
                last edited by

                @lalalandsynth ha indeed, I didn't even bother to try them, I tought they would be the same. We should have access to a "Release curve" parameter...

                Develop branch
                Win10 & VS17 / Ventura & Xcode 14. 3

                1 Reply Last reply Reply Quote 0
                • Matt_SFM
                  Matt_SF @lalalandsynth
                  last edited by

                  @lalalandsynth and replacing the 'global' envelope module by a Script Envelope Modulator doesn't seem to work...
                  Tweaking the skew factor of the OSC gain parameter does the trick. This way the release is not linear (but the release time is not precise though) :

                  f50fc763-6823-499f-89ca-c541a980f83c-image.png

                  Develop branch
                  Win10 & VS17 / Ventura & Xcode 14. 3

                  Christoph HartC 1 Reply Last reply Reply Quote 0
                  • Christoph HartC
                    Christoph Hart @Matt_SF
                    last edited by

                    You can do the entire synth in scriptnode but then you must implement the voice killing logic there too or the voices will stack up until the polyphonic limit.

                    1. Remove the default envelope and replace it with a "Scriptnode Voice Killer" envelope - you will definitely need a HISE envelope that tells the voice to stop at some point but this module is made for precisely this use case and will handle the voice killing when a voice kill message is sent from within scriptnode.
                    2. In your scriptnode network, add a envelope.voice_manager node. This will send a voice kill message to the envelope when the value is zero.
                    3. Connect the gate output of a envelope with the "Kill Voice" parameter of the voice_manager node. Now the voices should be killed properly when the ahdsr gate closes (watch the voice counter if it works correctly).
                    HiseSnippet 1415.3oc4X8zaaTDEeVmLN0ooPpDRTwIefCoRkH6RnfDGhyeasnN0JNDwsno69b7Hu6LK6NaRLHjPhK8qPuwWCtUINwAjPhu.7QneCf2ryZ6cscMdcSbQhToJOu2al2ad+426May.oMDFJCHVkNomOPrVi1pmP0YuNLtfTeeh06QavBUPPYCoc64yBCAGhk0ROVSvpzxj3+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z3DRSU6mJpqz.xXmLY5pdqZio5W7mip5e9ku7WFW009IueeayyNNL.91HPX2aD8+icq8un+Wu83W8J47puVr9KerttgL14SxuuGUVN88OFwmtwTMhy7FU8JzlcXg4Otecn6hwCEMgqcpx2UnrNNgiT4tNEDW.tXA3lFt4nvkNUfk2WCrmpzKw1L3ijVWpmZ3DVv4fRu6BoIj7lNADOub3HhOF2zKSPWq6nMfKziYclGSvziNMvVzLWipm9xLH10KnC5Yxh3TJ2g+W7qyXY+QM9ssMsw2QoX1cGMA3iqs.x8tShxeJfIRWGUd495Wj9DbVcxX3oK.UuBcevlMJX6qBVDN9RzVQgpIT2+WKBmdI5wfKLA.usVjIc6EEbAbcb+ycmlaSG9praJH+72oSezCdJ1.30zsAFEVLS6f6MrcPVoxQagBYlmKCTnUJ2xJ2LtkL.6icV6DojdnaK9ajkw1H6Jkc8XwuTX99zhKh203wrCjmYa97QZO5shofCQKh+96knMzqKWkbQR6V8iNHdbG9Y115GC+IUIjIumGNG64Smi8r0brmOaN1yili874ywd9hotG8mNKIqSOdBRn4AlAErNPvvWLGWRQ9GfgnxRK
                    
                    Christoph HartC 1 Reply Last reply Reply Quote 5
                    • Christoph HartC
                      Christoph Hart @Christoph Hart
                      last edited by

                      And a mono synth can be implemented using a ScriptFX and a midi_chain container. In this example I'm using a midi node to control the frequency of the oscillator so that I can smooth it for a portamento effect. In this case I need to put the oscillator in a no_midi container so that the frequency is not controlled by the note input.

                      HiseSnippet 1534.3ocwY0zaaaCFlxIzoNM8KrMrK6fOrCo.cA1aYcCXGpSbhWMVcpQTVPuEvHQGSXIRUIpj3MLfsa81N2CCX+M1sBrS679CreB87tr8RQIaJaOuHiD2TfTwW9RxG979oT5FJbnQQhPjUkiFFPQVafsGxk8a1mv3n16grtKtCIRRCqpEs6v.RTD0EYYsxWqDXUYUTxOu8I6R7HbG5XQHzwBlC8YLelbrztM9FlmWKhK8Hlug1a2nsif2T3IhA7rBtFJf3LfbF8.hRsRXjU48cYRQnsjHo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iKn1gb4Dxd6Srkz.UECS8rGPuPyalZptZYVzo15chkBenhPR0bjAPJOAP90W+5e6ISAjF+biI.Rhd+2.4dX6DKHT.Ioieis6u+kW+Surw7vPAHi2NGLTAuOW4I6hlZiLcKqf4hSlN9+8LxOkov6hr747zlprTHcKioWT7MQB.qIComPh5RvcoWlUFeenSDWnK6jkmUZOmqe4hasueihYsyGUaXpmeT21Ml5ne0eVPmcyP97a0ONnwUNxKY6llGpUPdXiDvT8PUZr4yF2PgckgW1QRuwN54m9qaeRzLR+sDN6xIui27t1yq13ZXRe2nIBvuOlxOm5Awoaoms.w234l+4dpt4MvRJp0MHiruP8pfiKAVxTP9RhQSn9zydclZIoUIy7JUJrc8U+9UK3twAc9iD65sv6HkPGPSZY+3FKAmp6jd3OiB9AWGgTE95WF+Tg2TUP2twR3nWCuG0gLYJ02DtLH9JX63H4+S.8M1MuB9PpGcFYx1dY5z0LN77oPvesLJgba39KCYmcFbF2T4xKdILzLeAg4jeeWgXfOI4iZrXedwkwmfwm3DJNI88tT4TuUhDnCQdx2fuBtiZb05nySKRn9VIHU+vm33n9tbeRcDZ1q4SWf07YKvZ1dAVymu.q4wKvZ9hEXMe4bWi5OMQZWkpWJEDzcec8QqrW3Q8gN9W.kYXt5C
                      
                      Matt_SFM lalalandsynthL 3 Replies Last reply Reply Quote 3
                      • Matt_SFM
                        Matt_SF @Christoph Hart
                        last edited by

                        @Christoph-Hart nice! I wouldn't ever have thought of doing this :beaming_face_with_smiling_eyes: . And we don't have to even connect the envelope to anything, just having it "filtering" the signal is sufficient... interesting.

                        Develop branch
                        Win10 & VS17 / Ventura & Xcode 14. 3

                        1 Reply Last reply Reply Quote 0
                        • lalalandsynthL
                          lalalandsynth @Christoph Hart
                          last edited by lalalandsynth

                          @Christoph-Hart that is interesting but is it possible to have note priority as well , this particular one is " last note " but not really as you hold one note , play another , let go of the second it should go back to playing the previous one , and without retriggering any envelopes.

                          Portamento as also strange as it glides to the note then jump to it at the end.
                          prominent if you set the time higher like 5 sec

                          https://lalalandaudio.com/

                          https://lalalandsynth.com/

                          https://www.facebook.com/lalalandsynth

                          https://www.facebook.com/lalalandsynth

                          Christoph HartC 1 Reply Last reply Reply Quote 0
                          • Christoph HartC
                            Christoph Hart @lalalandsynth
                            last edited by Christoph Hart

                            @lalalandsynth That's the job of a MIDI processor. Just add a Legato with Retrigger script or script one yourself with the behaviour you want.

                            And the portamento might sound better with a linear fade in the smoother node.

                            lalalandsynthL ulrikU 3 Replies Last reply Reply Quote 1
                            • lalalandsynthL
                              lalalandsynth @Christoph Hart
                              last edited by

                              @Christoph-Hart great , will check it out.

                              fluff.png

                              https://lalalandaudio.com/

                              https://lalalandsynth.com/

                              https://www.facebook.com/lalalandsynth

                              https://www.facebook.com/lalalandsynth

                              1 Reply Last reply Reply Quote 0
                              • ulrikU
                                ulrik @Christoph Hart
                                last edited by

                                @Christoph-Hart Would this work with script node?

                                HiseSnippet 2127.3oc6Z80aabbD+NIcJlz1RI.0nOEfK7IJ.YERE2zhDzHJIJYQXIJVQE6DH3Fu5tkjKzwcud2RIQaH.i9TeqOa+TA5mh9l.5WfBzG5q4if6Wf5NytGI2ihhhQ.J01nDBPbmclY+M+Y2Y1UpVjviFGKhrryre2Ppk8cbp2kKasdKBiaUork8m4rifKbUToOmESib4BoarWDKTxE9Tq05FRhio9V11S+PTL6LyXo97lUViDP3dzAjrrdrf4Q2l0lIGPsVoGwBB1j3S2m01f6GTphmfutHPzAf3zNErBIdGQZRqRP1lxwxd1M7YRQTcIQRisrmYMge25sDmv07+XVL6v.JNnnUcPQZxaJB7QDie2Z8Vr.+Z8bEwVV1N0F3XlV6X9EN6v7Y8oOvA8wpIbGHgo+vdpzva5TvqnI7JX.uQ.IaCHMiFRehScUTXvLHdtsSEtjF0f3kNzn40Zp+8rNqK.N3xkZSNhtYDLnuD4+xBEVz8AEJrvWmMaDsoaU2eq6KxEFQQ0bDsabtux8fmdFLKDXhktGSh.SmIdD+PfydJtIUttncnfCCxmKY9bfNS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sXu2v1wovREv6Bx9AOOLm99f+Yzxr70Plu3ZHyCtFx7qtFx7kWCY90WCY9MiUFrK3U6HEs04+.gZanePQ6M58Xq1Sa8ewHzTSD
                                

                                Hise Develop branch
                                MacOs 15.3.1, Xcode 16.2
                                http://musikboden.se

                                ulrikU 1 Reply Last reply Reply Quote 0
                                • ulrikU
                                  ulrik @ulrik
                                  last edited by

                                  @ulrik or is it not possible to control the midi from outside script node?

                                  Hise Develop branch
                                  MacOs 15.3.1, Xcode 16.2
                                  http://musikboden.se

                                  1 Reply Last reply Reply Quote 0
                                  • lalalandsynthL
                                    lalalandsynth @Christoph Hart
                                    last edited by lalalandsynth

                                    @Christoph-Hart when controlling an osc with that midi node , its way out of tune.
                                    Probably the Lowpass , it also skews a straight 440hz sent into it.

                                    tune2.gif

                                    https://lalalandaudio.com/

                                    https://lalalandsynth.com/

                                    https://www.facebook.com/lalalandsynth

                                    https://www.facebook.com/lalalandsynth

                                    1 Reply Last reply Reply Quote 0
                                    • lalalandsynthL
                                      lalalandsynth @Christoph Hart
                                      last edited by

                                      @Christoph-Hart BTW, I am always getting this issue with compiled dll´s where it says its failed the sanity test and I need to compile , after I have compiled.

                                      https://lalalandaudio.com/

                                      https://lalalandsynth.com/

                                      https://www.facebook.com/lalalandsynth

                                      https://www.facebook.com/lalalandsynth

                                      Christoph HartC 1 Reply Last reply Reply Quote 0
                                      • Christoph HartC
                                        Christoph Hart @lalalandsynth
                                        last edited by

                                        @lalalandsynth Yes the low pass might have a error margin that is relevant in a pitch context (it usually stops smoothing at a difference of ~-80dB but this might be a audible error when you map 0...1 to a 20kHz range.

                                        The linear mode should be fine though.

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

                                        30

                                        Online

                                        1.7k

                                        Users

                                        11.8k

                                        Topics

                                        102.8k

                                        Posts