HISE Logo Forum
    • Categories
    • Register
    • Login

    Waveform Generator at specific Hz

    Scheduled Pinned Locked Moved General Questions
    16 Posts 3 Posters 206 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.
    • MorphoiceM
      Morphoice
      last edited by

      How can I get the waveform generator to output a square wave in a specific frequency in Hz? It only let's me set octaves and semi tones

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Morphoice
        last edited by d.healey

        @Morphoice Doesn't the MIDI note determine the pitch/frequency?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        MorphoiceM 1 Reply Last reply Reply Quote 0
        • MorphoiceM
          Morphoice @d.healey
          last edited by

          @d-healey true but i'm trying to emulate drum sounds and need specific frequencies that aren related to the note played

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @Morphoice
            last edited by

            @Morphoice You could manually trigger a specific note, or does the frequency you need not fall on a note?

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            MorphoiceM 1 Reply Last reply Reply Quote 0
            • MorphoiceM
              Morphoice @d.healey
              last edited by

              @d-healey nope I need to stack a couple of inharmonic frequencies - this is to create a cymbal / hat sound like an 808

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @Morphoice
                last edited by

                @Morphoice Sounds like a job for scriptnode.

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                MorphoiceM 1 Reply Last reply Reply Quote 0
                • MorphoiceM
                  Morphoice @d.healey
                  last edited by

                  @d-healey I dont know why I'm always trying to avoide scriptnode ;)) it can do so much more

                  Screenshot 2024-12-20 at 01.55.27.jpg

                  it's not pretty but I think I got it

                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @Morphoice
                    last edited by

                    @Morphoice You should probably look into the clone container.

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

                    MorphoiceM 1 Reply Last reply Reply Quote 0
                    • MorphoiceM
                      Morphoice @d.healey
                      last edited by

                      @d-healey even if they all run a different frequency?

                      d.healeyD 2 Replies Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @Morphoice
                        last edited by

                        @Morphoice Yeah, it's been a while since I messed with it but you can use a cable pack (I think that's what it's called) to control the parameters of each clone.

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        1 Reply Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @Morphoice
                          last edited by

                          @Morphoice Ah It's called a clone pack. Here ya go

                          HiseSnippet 1641.3oc6Z8zaZbDEeViWhwINJoxGZtwgdHoIBAFBNV8PwFiSoMXi75ZUodvZ7tCvHVlgr6fsoUUpR8RO0S4RNTo1OF8V+BToJ0uH8aP5alcA10KFaH1NwoKHgX9+u48d+98lA15NbShqK2Aos3d86RPZ2Q2nOSzpbKLkgptIR6t50vtBhSZup1neWrqKwBook34xJzRMOR85e+7Mv1XlIYTUHz9bpI4EzNTwnZqW5qn11agsH6Q6Dn2EJU0jyJys48.7jPOKpK1rMtIYarrayoi9BraKj1mpm8oEIjUy2vxBmOuUwhEW6YqUXsb3FYKfOLWw0JrRgUW4Yq1.okrhEUvcLDXAwElzM3V8MZwOl4s.6ScoGZSjExgLfU1qZT4VTaq5CLNtHjld8QlpDdlpk0qQsnCqejI6dpFROZDAMZZyMIHkaJfjV.HMuGjtutgoCsqXTKR7ba8pLvC1.C9lfPwquHs+TuLG5.SjoCtMYKGnvvA7vhYy9jzvGO5yZziYJnbVZNaatfrC6gOZwuewTK9CKl9zM0nwXaStLNbaahyXaVFN3LoA9PVuNGRbdR5iv18HC6Hr8CaSSdwrold65.cjypxnhc5R7KuE21RZqjeOpG.4a1fu80U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ouSy42j510F2eidvwL7NSWnZlLy2O6THNZxomKbuojilTWcj1Hy73oBHTP54BQgTgRQfzO+OmFR+1qe8eDERk9oN+kurwHY0.S0C98W+q+Rowhqerco06I3cfienttN5pWa6NJPldWYJjqcwsI6PeNXFdOSusdK4solofrqHLkTcs2YwLII9AjQuaPcvb2r0QWJfRXtXgzXgzXgzXgz2IBoq7giP5JwBowBowBowBouSDRy+giPZ9XgzXgzXgzXgz2IBoE9vQHsPrPZrPZrPZrP5UpP5r9uMpqoKQ0k0+z3xktD8pnojArjtQWapvf1jMRg97LjnRgMjav4s6fUOmBy1S470wSUw0wZzAa5vOv+ACPFUsfpFHiCSkjJkdMY4z4PGcZWYGpE8.SyvSUjAtxrNv7y5.KLqC7oy5.KNqCb0YcfO67Gn7AhzO6j7gu.nd0q3kxWqBCens2QQP+WMRohk
                          

                          Libre Wave - Freedom respecting instruments and effects
                          My Patreon - HISE tutorials
                          YouTube Channel - Public HISE tutorials

                          MorphoiceM 2 Replies Last reply Reply Quote 1
                          • MorphoiceM
                            Morphoice @d.healey
                            last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • MorphoiceM
                              Morphoice @d.healey
                              last edited by Morphoice

                              @d-healey on your example I cant get individual frequencies to work, if it's a scriptnode synth instead of a scriptfx then the frequency of the oscillator seems to be hardwired to the note played, although that indeed would make the oscillators not run all the time but only when a note is played

                              A 1 Reply Last reply Reply Quote 0
                              • A
                                aaronventure @Morphoice
                                last edited by

                                @Morphoice no_midi node

                                MorphoiceM 1 Reply Last reply Reply Quote 0
                                • MorphoiceM
                                  Morphoice @aaronventure
                                  last edited by

                                  @aaronventure works like a charm thanks.

                                  @d-healey does the clone node provide a cpu advantage or is it just to simplify the creation of the node network?

                                  A 1 Reply Last reply Reply Quote 0
                                  • A
                                    aaronventure @Morphoice
                                    last edited by

                                    @Morphoice i'm not sure about the CPU advantage, it might as well have a tiny bit of extra overhead because it has a control that lets you select how many of the clones are active.

                                    Check out the clone cable: you can set the number of clones and there are various algorithms in the dropdown. The graph is missing some display values so it's not super useful, and it looks like it would be a good fit for a SNEX option like the timer.

                                    Though for non-realtime usage (where you just wanna set the frequencies statically), clone pack looks like the way to go as you can link it to an external slider pack and then set the frequencies from script.

                                    You can then have a cloned oscillator array which you can dynamically scale for higher or lower resolution/CPU usage for e.g. additive synthesis.

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

                                    14

                                    Online

                                    1.7k

                                    Users

                                    11.8k

                                    Topics

                                    103.0k

                                    Posts