HISE Logo Forum
    • Categories
    • Register
    • Login

    Free-running, or randomised phase, for Waveform Generator oscillators?

    Scheduled Pinned Locked Moved General Questions
    8 Posts 3 Posters 179 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.
    • dannytaurusD
      dannytaurus
      last edited by

      Is it possible to have the Waveform Generator oscillators free-running, or to randomize the phase on note-on?

      @Lindon asked here in 2021, but got no response: https://forum.hise.audio/topic/4752/waveform-generator-free-running

      @Zerofox97 asked here in 2016, @Christoph-Hart responded but it doesn't look like it was implemented: https://forum.hise.audio/topic/43/would-it-be-easy-to-add-in-a-way-to-control-the-phase-of-synth-oscillators

      Looking to make thick synth pads and the waveform re-triggering kills it.

      Meat Beats: https://meatbeats.com
      Klippr Video: https://klippr.video

      1 Reply Last reply Reply Quote 0
      • OrvillainO
        Orvillain
        last edited by

        I did a really crappy version of random phase, by writing a polyphonic c++ node that adds small amounts of delay to a voice every time a note is pressed. I'm not proud of it, but it might be something to consider.

        Musician - Instrument Designer - Sonic Architect - Creative Product Owner
        Crafting sound at every level. From strings to signal paths, samples to systems.

        dannytaurusD 1 Reply Last reply Reply Quote 1
        • dannytaurusD
          dannytaurus @Orvillain
          last edited by

          @Orvillain Clever idea, but pretty hacky though (no offence! πŸ˜€)

          I'm gonna start nagging @Christoph-Hart to add it directly to the WG.

          In the meantime, I'm gonna spelunk into the source code to see if I can see any way forward.

          Meat Beats: https://meatbeats.com
          Klippr Video: https://klippr.video

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

            easy job for scriptnode:

            HiseSnippet 1455.3oc4X0saaaCEVJNzswKqHcnWrcmuXWjNTDXm5kzfcQb9wIyX0oFQoA6tBFJ5XBKQpIQkDugALfcydE5c60X2sWfALf8hj2fsCojrjhbbs8RSwvb.BDOjT76b9N+Q00WPnAABeCyJmLziZXtLxZHW1e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.OR8WiLhOuccJaDPzMUt80pNujBxQXFTUWk8Tc8FyRY5ZLJmlZD3srfBBKiZGbpZVB1w3TUQZklpempkWJVYTKsLxEJRZjSudjVufB8qomqHri2z+JLVFoywGitJnSgBNDkCeFd6Dr+4TYPbyxbJIxSPSFssUgN9Xtsv0nK1G.FbQDkzGfhdooRUt7Yz4QaKmVuxHsNd1h58nMNKZ9LnOKiDADnCMUBhapSc6qJTlSm.aZxH3pacX7XiYZZ9N3qtgrq21RR8hhERWm0.5kQFibEw2O0XdB8J4IB8y.zu.TN8ghdM2l1Ch.rAjcdzcusBO6PeQnmdPAHE2gQA46DJEtPdM6QtpwrUNiRg3Oe5ZYltHkka2yDsoRs3PuJ41Z6yB7bvC2MDpsEY7yIQ4UClhqRR+0B5P1FtQnd6IoDyQdkyPdUlNxaklEIOfPuUxKNF6Nh6td6ai6LlrpznYAU4W9qapJ+5ae6uUTUZ9yt+w1QeYhC7oeWHjgd3cj97SCZNV8Aj+Nzmq2tH0TaFolk05S0iU4EdeSPWuswr6qMtDES1W6PH589UUdukyKJY68bNu6FNZRJVY8cPuO4HUhzcEhAtXc+ey2W+59naUWLwW7l3N.TomenVBTTfqqirDpiZb05FWbSdQ0KzaHj7upBab84ciOed2Xi4cie47twMl2Mt47twW7t2n5i.EGno51Bhi51JpprYKNFtujtaAi+QDB5ZT
            
            dannytaurusD 1 Reply Last reply Reply Quote 1
            • dannytaurusD
              dannytaurus @Christoph Hart
              last edited by

              @Christoph-Hart Yes, works great! Is it similarly easy to add it to the built-in modules?

              I feel like the more we can do with built-in modules, the smoother the on-ramp to learning HISE.

              Feels like having to dive straight into scriptnode for this might prove too steep of a learning curve for someone getting started, like me! πŸ˜€

              Meat Beats: https://meatbeats.com
              Klippr Video: https://klippr.video

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

                The idea of scriptnode was precisely to be able to customize stuff like this so that I donβ€˜t have to frankenstein every HISE module with fringe use cases.

                You can literally rebuild the waveform generator with a few nodes (minus hardsync)

                dannytaurusD 1 Reply Last reply Reply Quote 1
                • dannytaurusD
                  dannytaurus @Christoph Hart
                  last edited by

                  @Christoph-Hart Diving in to ScriptNode now. Fun stuff.

                  Quick question - if I want several random-phase oscillators, would I do this with multiple simple Scriptnode Sythns (like your snippet) in the Module Tree? Or would I create the whole multi-oscillator thing in one Scriptnode Synth?

                  I'm guessing both are valid approaches, but is there a benefit of one over the other?

                  Meat Beats: https://meatbeats.com
                  Klippr Video: https://klippr.video

                  OrvillainO 1 Reply Last reply Reply Quote 0
                  • OrvillainO
                    Orvillain @dannytaurus
                    last edited by

                    @dannytaurus said in Free-running, or randomised phase, for Waveform Generator oscillators?:

                    @Christoph-Hart Diving in to ScriptNode now. Fun stuff.

                    Quick question - if I want several random-phase oscillators, would I do this with multiple simple Scriptnode Sythns (like your snippet) in the Module Tree? Or would I create the whole multi-oscillator thing in one Scriptnode Synth?

                    I'm guessing both are valid approaches, but is there a benefit of one over the other?

                    Definitely recommend digging into Scriptnode and just playing around with it. Your best friends in this case are going to be the various container types. So if you wanted multiple random-phase oscillators, you could reproduce Christoph's example a couple of times over, using the split chain.

                    Musician - Instrument Designer - Sonic Architect - Creative Product Owner
                    Crafting sound at every level. From strings to signal paths, samples to systems.

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

                    29

                    Online

                    2.0k

                    Users

                    12.8k

                    Topics

                    110.7k

                    Posts