HISE Logo Forum
    • Categories
    • Register
    • Login

    Set the Frequency of the Sine Wave Generator?

    Scheduled Pinned Locked Moved Solved General Questions
    12 Posts 4 Posters 146 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.
    • clevername27C
      clevername27
      last edited by

      Does anyone know how to set the frequency of the sine wave generator? (The documentation appears to be incomplete.) Cheers.

      MorphoiceM ulrikU 2 Replies Last reply Reply Quote 0
      • MorphoiceM
        Morphoice @clevername27
        last edited by

        @clevername27 I was wondering that too but all I could get is it playing the frequency according to the midi note played

        https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

        clevername27C 1 Reply Last reply Reply Quote 1
        • clevername27C
          clevername27 @Morphoice
          last edited by clevername27

          @Morphoice Yeah, that's weird? But obviously you can set the frequency of a sine wave generator in a virtual instrument system.

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

            @clevername27 Use a scriptnode osc if you want to set a frequency other than from a MIDI note.

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

            clevername27C 1 Reply Last reply Reply Quote 1
            • clevername27C
              clevername27 @d.healey
              last edited by clevername27

              @d-healey I appreciate that—but surely there must be a way to simply set the frequency of the sine wave generator…it's the single most basic function I can think of in a virtual instrument system. (I've gone ahead and built the ScriptNode synth, though it's a huge amount of overhead just to generate frequency-specific sine waves.)

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

                @clevername27 said in Set the Frequency of the Sine Wave Generator?:

                a way to simply set the frequency

                It expects MIDI notes which will set the frequency.

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

                clevername27C 1 Reply Last reply Reply Quote 1
                • clevername27C
                  clevername27 @d.healey
                  last edited by clevername27

                  @d-healey I get that (and thank you), and that's useful. But at its core, the most basic thing a virtual instrument system can do is (simply) generate sine waves that you set the frequency for. So I'm just a bit baffled here.

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

                    @clevername27 If it's a virtual instrument I would expect that it plays frequencies that match MIDI, why would you want anything else (other than for microtuning I guess)?

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

                    clevername27C 1 Reply Last reply Reply Quote 1
                    • clevername27C
                      clevername27 @d.healey
                      last edited by

                      @d-healey Because not all overtones are harmonics.

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

                        @clevername27 Are you trying to do additive synthesis with it? What about using a waveform generator, there you can control the semi-tone and octave shift, you still can't set a fixed frequency though.

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

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

                          @clevername27 if you don't mean in scriptnode, then you can do like this with the factory osc

                          HiseSnippet 1655.3oc4XssabSDF1NIFwtsTQQUHtzZEHsoMrwd6lCkPaSyIRnMGT1zJ3ppI1i2cTsmwXONoaZiTEuEvSCOBbIOF8M.9mCd2YS1DRWQQpvdQj87e5a9l+CiydYr.bdNKyxt5A8RwV1W2ocOJu6pcQDp0VqYY+4N6lGPhiQbVl6FY3ep.SC5YsRuTTdNNzx1dxuSnqckorj+d6CWAEinA3AKYY8LFI.+DRBgOX08V9wfe2.EhOfjXncqk2JfQWkEyJ.bMoimUJJ3EnN3cPB0lvwZSTdWK6a6D52xOZw.z7K52pYPPyEWn48VH.ihhvy6O2BsVLpUDJvqok8GsdHA1.s4HNN2xdpUXg8Z2kcLUEfmQxIGFiEu3a0FhrZ4MXwghsnXUqU6RhC2qjvxsrrc1a.8Moh9tky1jPR+0GPiepTf6.KLIP6IFFdSND77MgmmA7F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PYaDPjoriq2rgHusg2r9M8DlrTohPaNtfU.kk9eI2Ym00.0RP6Y51bPUO496XnqGtDeO39pfd69tTmnXDgynfHSP5w6bmxxFcVk7bPC+nXFKqtTuY88Lfd4YjDKBhRgtuBZ54ArybdZ.H8lLDUJMA7so1S690veOSoqgtFpJClhsceUMoqgNR57wZk1.KU9HTkBYkUuf6MuMLH.9PmFjNTVFVV+CkJxJn+mdiZ6IznBTkKmadC8by1wjPblEITbWZckrkDx8ugwad0xVWj4pIjRyulS+FimwAVi4U5EnV2zDV9Jf6WBzo8OCQqm3AQXSTWI7W+E32O5sLLCsDUu4M+wxpgeh6yt4IVCO6zb2aN67LrRe3M0UhWdYItj.rpk0GBe1xPW6pRIFaSRRiwqSOBGCGj5acslhoJW0eHTtMixR6xnj.yLi8w7LRmN3LSrOxMzi3bXfyfUt0x6iiwHyKh+kK+DnCAJC3I7XxE9uyWAcjmWegiBtthFEte394lS9e6O2beVAmP6.yDyDMBb1oHoM78dAXH5TJLzRTmNgnUp5cuxB31XZn7k+D9oE5Kd2VKzuT3+JwHAEjwddfpKsHO8ikq.6ap7e2WEmsEu65e9VyhKj77ffgc04Lr43Z3cGWCaMtFN23Z37iqgKLtFt3eughOr9QEbVhpzzxZ68VWNJ01VMWQVQX8W.y9KAL
                          

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

                          clevername27C 1 Reply Last reply Reply Quote 2
                          • clevername27C
                            clevername27 @ulrik
                            last edited by

                            @ulrik My dude. I cannot thank you enough for this.🚀🎆🌈

                            1 Reply Last reply Reply Quote 1
                            • clevername27C clevername27 has marked this topic as solved on
                            • First post
                              Last post

                            52

                            Online

                            1.7k

                            Users

                            11.7k

                            Topics

                            101.8k

                            Posts