# Craft Multi-Waveform Audio Rife Healing Frequencies Experiment from HQ-Tone: Needed some help with a nyquist plugin I'm working on, building on top of Arbitrary Wave Function code by Steve, to add multiple frequencies

**URL:** <https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161>\
**Category:** Programming and Development\
**Tags:** plugins, generators, sfx\
**Created:** [March 16, 2025, 5:55am UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161 "2025-03-16T05:55:37Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeanTips](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/s/ecccb3/32.png) [@SeanTips](https://forum.audacityteam.org/u/SeanTips)\
**Post date:** [March 16, 2025, 5:55am UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/1 "2025-03-16T05:55:37Z")

</div>

I’d just like to be able to get like 20 to a 100 frequencies altogether in one shot(Frequency Healing stuff, Raymond Rife-related) :

```auto
;nyquist plug-in
;version 4
;type generate
;name "HQ-Tone"
;preview linear
;action "Generating tone..."
;author "Steve Daulton"
;copyright "Steve Daulton (audionyq.com)"
;release 3.0.2-2
;copyright "Released under terms of the GNU General Public License version 2 or later."

;; Released under terms of the GNU General Public License version 2 or later:
;; http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

;; hq-tone.ny An alias free oscillator by Steve Daulton. Sept 2011
;; Released under terms of the GNU General Public License version 2:
;; http://www.gnu.org/licenses/old-licenses/gpl-2.0.html .
;; For Audacity 1.3.4 or later.

;control wave "Waveform" choice "Sine,Square,Triangle,Saw,Inverse Saw" 1
;control freq "Frequency (Hz)" real "" 440 20 10000
;control amp "Amplitude (0 to 1)" real "" 0.8 0 1
;control dur "Duration" time "" 30 0 nil
;control phase "Phase (-180 to 180)" real "" 0 -180 180
;control smooth "Smoothing" choice "Enabled,Disabled" 0

(setf smooth (= smooth 0))

;;; (hq-tone frequency duration | opt-arg [wave] [linear amplitude] [phase])
;;; wave 0=sine 1=square 2=triangle 3=saw 4=inverse saw
(defun hq-tone (f dur &optional wave (amp 1) (phase 0))
  (setq len (* *sound-srate* dur)) ; set LEN to get a progress bar
  (setq wlength (/ *sound-srate* freq)) ; wavelength in samples
  ;; if at least one harmonic
  (cond
    ((or (and (= wave 1)(< f (/ *sound-srate* 6.0)))
            (and (> wave 1)(< f (/ *sound-srate* 4.0)))
            (= wave 0))
      (case wave
        (1 (square-wav f amp dur phase))
        (2 (tri-wav f amp dur phase))
        (3 (saw-wav f amp dur phase))
        (4 (inv-saw-wav f amp dur phase))
        (T (sine-wav f amp dur phase))))
    (t ; else return a sine wave and debug warning
      (format T "Warning:~%~
                Frequency (~a Hz) very high for sample rate (~a Hz).~%~
                Only the fundamental frequency can be produced."
                f *sound-srate*)
      (sine-wav f amp dur phase))))

  ;; Square wave function (no alias)
  (defun square-wav (f amp dur ph)
    (setq f (float f))
    (let* ((wave (build-harmonic 1 2048))
           (wl (+ (/ *sound-srate*)(/ freq))) ; adjust start
           (dur (+ wl dur)))
      (do ((i 3.0 (setq i (+ 2.0 i)))) ; odd harmonics
          ((or (>= (* i f)(/ *sound-srate* 2.0))(> i 2048)) wave)
        (setq wave (sum wave (mult (/ i) (build-harmonic (truncate i) 2048)))))
      (setq wave (osc (hz-to-step f) dur (maketable wave) ph))
      (when smooth
        (setq wave (lowpass2 wave (/ *sound-srate* 4) 0.56))
        (setq wave (extract-abs wl (+ dur wl)(cue wave))))
      (mult wave amp (/ (peak wave (truncate (* 4 wlength)))))))

  ;; Triangle wave function (no alias)
  (defun tri-wav (f amp dur ph)
    (setq f (float f))
    (let ((wave (build-harmonic 1 2048)))
      (do ((i 3.0 (setq i (+ 2.0 i))) ; odd harmonics
           (alt -1.0 (setq alt (* -1.0 alt)))) ; reverse phase of alternate harmonics
          ((or (>= (* i f)(/ *sound-srate* 2.0))(> i 2048)) wave)
        (setq wave 
          (sum wave (mult (/ alt(* i i))(build-harmonic (truncate i) 2048)))))
      (setq wave (osc (hz-to-step f) dur (maketable wave) ph))
      (mult wave amp (/ (peak wave (truncate (* 4 wlength)))))))

  ;; Inverse Saw wave function (no alias)
  (defun inv-saw-wav (f amp dur ph)
    (setq f (float f))
    (let* ((wave (build-harmonic 1 2048))
           (wl (+ (/ *sound-srate*)(/ freq))) ; adjust start
           (dur (+ wl dur)))
      (do ((i 2.0 (setq i (1+ i)))) ; all harmonics
          ((or (>= (* i f)(/ *sound-srate* 2.0))(> i 2048)) wave)
        (setq wave (sum wave (mult (/ i) (build-harmonic (truncate i) 2048)))))
      (setq wave (osc (hz-to-step f) dur (maketable wave)(+ 180 ph)))
      (when smooth
        (setq wave (lowpass2 wave (/ *sound-srate* 3.8) 0.55))
        (setq wave (extract-abs wl (+ dur wl)(cue wave))))
      (mult wave amp (/ (peak wave (truncate (* 4 wlength)))))))

  ;; Saw wave function (no alias)
  (defun saw-wav (f amp dur ph)
    (mult -1 (inv-saw-wav f amp dur ph)))

  ;; Sine wave function
  (defun sine-wav (f amp dur ph)
    (scale amp (osc (hz-to-step f) dur *table* ph)))

;;; Error check and run if OK.
(cond 
  ((> freq (/ *sound-srate* 2)) ; check max frequency
    (format nil "Error.~%~
                Frequency (~a hz) will alias at~%~
                current sample rate (~a hz)."
                freq *sound-srate*))
  ((< freq 1) ; check min frequency
    (format nil "Error.~%Frequencies below 1 Hz are not supported,~%"))
  ((<= amp 0) ; check for sub-zero amplitude
    (format nil "Amplitude set to ~a (linear).~%Nothing to do.~%" amp))
  ((<= dur 0) ; check for zero duration
    (format nil "Duration set to ~a seconds.~%Nothing to do.~%" dur))
  ; else generate tone
  (T (hq-tone freq dur wave amp phase)))

```

This will create a single track with all specified frequencies playing simultaneously using the selected waveform at the specified amplitude, also allowing me to create multiple tracks if need be (#!/buffer\_overflow?).

---

<div class="post-metadata">

**Author:** ![Trebor](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/trebor/32/45854_2.png) [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Post date:** [March 16, 2025, 7:38am UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/2 "2025-03-16T07:38:20Z")

</div>

> [@SeanTips](#):
>
> 20 to a 100 frequencies altogether in one shot

[Chirp](https://manual.audacityteam.org/man/chirp.html) can sweep through the whole audio spectrum: spanning thousands of frequencies.

[Further reading … [Royal Rife - Wikipedia](https://en.wikipedia.org/wiki/Royal_Rife#Health_fraud_after_his_death) ]

---

<div class="post-metadata">

**Author:** ![SeanTips](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/s/ecccb3/32.png) [@SeanTips](https://forum.audacityteam.org/u/SeanTips)\
**Post date:** [March 17, 2025, 6:00am UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/3 "2025-03-17T06:00:00Z")

</div>

That’s real nifty; actually the real video I’d recommend watching as for further viewing is: [https://youtu.be/1w0\_kazbb\_U](https://youtu.be/1w0_kazbb_U)

I have to say Trebor, thanks that Chirp feature you mentioned- can come really in handy for trying out the Hoyland Harmonics, Bob Beck, and most definitely the Hulda Clark Sweeps.

Though for my current needs, I’m trying to grab as many of the Rope Worm frequencies I can find, along with Coronavirus, Vaccines and their Spike Proteins, Graphene Oxide, Chemtrails, and finally Schulman Resonance.

These altogether end up at around the 80-90 count of frequencies altogether. I hope Steve can lend a helping hand for his own plugin. The way this was engineered by him, along with the Chirp plugin they just go above and beyond what I myself would’ve wrote in nyquist:

```auto
;type generate
(defun tone (hz dur)
  (stretch dur
    (hzosc hz))) 
(setf frequencies (list 
1016
1155
1333
5000
6273
7344
10000 ))

(simrep (i (length frequencies))
  (tone (nth i frequencies) 42.0)) 

```

---

<div class="post-metadata">

**Author:** ![Trebor](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/trebor/32/45854_2.png) [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Post date:** [March 17, 2025, 7:39am UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/4 "2025-03-17T07:39:24Z")

</div>

> [@SeanTips](#):
>
> video I’d recommend watching as for further viewing is:

Even _if_ Rife/[Bare](https://youtu.be/1w0_kazbb_U?feature=shared&t=369) technology worked, it used electric fields, not sound. Audio Rife is quackery.

BTW#1: That Dr. James E. Bare is a [chiropractor](https://rationalwiki.org/wiki/Chiropractor), not a doctor of medicine.  
BTW#2: Patents are not proof a device is safe or effective.

> [@SeanTips](#):
>
> Bob Beck

**Dr** Bob Beck, (doctor of physics, not medicine) … [https://youtu.be/14aZbjs0mIY?&t=154](https://youtu.be/14aZbjs0mIY?&t=154)

> [@SeanTips](#):
>
> Hulda Clark

**Dr** Hulda Clark, (PhD in Zoology) … [https://youtu.be/gDdLNNqIFJo?&t=37](https://youtu.be/gDdLNNqIFJo?&t=37)

---

<div class="post-metadata">

**Author:** ![SeanTips](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/s/ecccb3/32.png) [@SeanTips](https://forum.audacityteam.org/u/SeanTips)\
**Post date:** [March 20, 2025, 9:21am UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/5 "2025-03-20T09:21:38Z")

</div>

Haha, enough said. Although if you’re using a “mishin coil” to drive said audio frequencies froim a powerful enough amplifier, to then drive the frequencies deep within the organs you might have better results. The science is certainly there, and the modes and methods to getting it there, and that’s enough I’d say for things that have no medical solutions like the long-haul-COVID symptoms, things like fibromyalgia, and debilatating brain-fog etc…

Anyhows- I am one for thinking that it’s the mind and the body which work in tow to heal. If some quack device can help the mind believe that the body is working in tow to help it heal, then I’m all for it- I mean that’s what essentially all Pharmaceutical Marketing, and Pharmaceutical Sales Representatives do anyways- but I drift.

Hopefully again Steve can chime in and give us a way to actually, solve this issue altogether, or maybe someone else would like to take a stab at turning the HQ-Tone plugin from Steve Daulton into a multi-frequency arbitrary waveform generator.

---

<div class="post-metadata">

**Author:** ![Trebor](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/trebor/32/45854_2.png) [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Post date:** [March 20, 2025, 11:16am UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/6 "2025-03-20T11:16:51Z")

</div>

> [@SeanTips](#):
>
> solve this issue … a multi-frequency arbitrary waveform generator.

If you simultaneously played **all** \* frequencies at equal power, the result is [white noise](https://en.wikipedia.org/wiki/White_noise).  
( \* will include any alleged healing frequencies, whatever they are ).

> [@SeanTips](#):
>
> If some quack device can help the mind believe that the body is working in tow to help it heal, then I’m all for it

The placebo effect does not occur for objectively measurable organic disease,  
be it a dummy pill or dummy device.

> **[Placebo interventions for all clinical conditions](https://www.cochrane.org/CD003974/COMMUN_placebo-interventions-for-all-clinical-conditions)**

---

<div class="post-metadata">

**Author:** ![SeanTips](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/s/ecccb3/32.png) [@SeanTips](https://forum.audacityteam.org/u/SeanTips)\
**Post date:** [March 31, 2025, 2:50am UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/7 "2025-03-31T02:50:45Z")

</div>

> [@Trebor](#):
>
> simultaneously played **all** \* frequencies at equal power, the result is [white noise](https://en.wikipedia.org/wiki/White_noise).  
> ( \* will include any alleged healing frequencies, whatever they are ).

I need to play the necessary frequencies for a total of 180 seconds running what is called a MOR(Dr. Rife believed that detecting their specific electromagnetic frequency and transmitting this into a person’s body would kill the microbes by vibrating them at a “mortal oscillatory rate” and cure the disease.)

I mean, is there no way to use the HQ-Tone plugin, to create multiple frequencies very easily?! -I mean to at least add 8, or 24 frequencies, which are all then playing consecutively for 3 minutes each?

Thank you-

---

<div class="post-metadata">

**Author:** ![Trebor](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/trebor/32/45854_2.png) [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Post date:** [March 31, 2025, 3:23am UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/8 "2025-03-31T03:23:24Z")

</div>

> [@SeanTips](#):
>
> electromagnetic frequency

[Sound is not electromagnetic](https://www.difference.wiki/sound-waves-vs-electromagnetic-waves/).

> [@SeanTips](#):
>
> … Rife believed …

Rife believed he could see “motile” “turquoise” viruses with an optical microscope …

[![](https://img.youtube.com/vi/W4JtNQnnut8/hqdefault.jpg "Royal Rife-In His Own Words") ](https://www.youtube.com/watch?v=W4JtNQnnut8&t=437)

Viruses are too small to be seen with an optical microscope, and are not capable of propelling themselves.  
What he’s probably seeing are occasional [white blood cells traveling through the vessels in his retina](https://en.wikipedia.org/wiki/Blue_field_entoptic_phenomenon), which appear to him as turquoise, (the [complement of](https://en.wikipedia.org/wiki/Complementary_colors) surrounding red blood).

[Rife was a cancer quack](https://quackwatch.org/ncahf/articles/o-r/rife/).

---

<div class="post-metadata">

**Author:** ![SeanTips](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/s/ecccb3/32.png) [@SeanTips](https://forum.audacityteam.org/u/SeanTips)\
**Post date:** [April 6, 2025, 3:52am UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/9 "2025-04-06T03:52:17Z")

</div>

Alright then-

Let’s try this a different way, rather than falling into black holes that swallow up person both from above and below.

I would like to add the ability to add multiple frequencies like in this simple script:

```auto
;type generate
(defun tone (hz dur)
  (stretch dur
    (hzosc hz))) 
(setf frequencies (list 
1016
1155
1333
5000
6273
7344
10000 ))

(simrep (i (length frequencies))
  (tone (nth i frequencies) 42.0))

```

Into this script which is finely tunes:

```auto
;nyquist plug-in
;version 4
;type generate
;name "HQ-Tone"
;preview linear
;action "Generating tone..."
;author "Steve Daulton"
;copyright "Steve Daulton (audionyq.com)"
;release 3.0.2-2
;copyright "Released under terms of the GNU General Public License version 2 or later."

;; Released under terms of the GNU General Public License version 2 or later:
;; http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

;; hq-tone.ny An alias free oscillator by Steve Daulton. Sept 2011
;; Released under terms of the GNU General Public License version 2:
;; http://www.gnu.org/licenses/old-licenses/gpl-2.0.html .
;; For Audacity 1.3.4 or later.

;control wave "Waveform" choice "Sine,Square,Triangle,Saw,Inverse Saw" 1
;control freq "Frequency (Hz)" real "" 440 20 10000
;control amp "Amplitude (0 to 1)" real "" 0.8 0 1
;control dur "Duration" time "" 30 0 nil
;control phase "Phase (-180 to 180)" real "" 0 -180 180
;control smooth "Smoothing" choice "Enabled,Disabled" 0

(setf smooth (= smooth 0))

;;; (hq-tone frequency duration | opt-arg [wave] [linear amplitude] [phase])
;;; wave 0=sine 1=square 2=triangle 3=saw 4=inverse saw
(defun hq-tone (f dur &optional wave (amp 1) (phase 0))
  (setq len (* *sound-srate* dur)) ; set LEN to get a progress bar
  (setq wlength (/ *sound-srate* freq)) ; wavelength in samples
  ;; if at least one harmonic
  (cond
    ((or (and (= wave 1)(< f (/ *sound-srate* 6.0)))
            (and (> wave 1)(< f (/ *sound-srate* 4.0)))
            (= wave 0))
      (case wave
        (1 (square-wav f amp dur phase))
        (2 (tri-wav f amp dur phase))
        (3 (saw-wav f amp dur phase))
        (4 (inv-saw-wav f amp dur phase))
        (T (sine-wav f amp dur phase))))
    (t ; else return a sine wave and debug warning
      (format T "Warning:~%~
                Frequency (~a Hz) very high for sample rate (~a Hz).~%~
                Only the fundamental frequency can be produced."
                f *sound-srate*)
      (sine-wav f amp dur phase))))

  ;; Square wave function (no alias)
  (defun square-wav (f amp dur ph)
    (setq f (float f))
    (let* ((wave (build-harmonic 1 2048))
           (wl (+ (/ *sound-srate*)(/ freq))) ; adjust start
           (dur (+ wl dur)))
      (do ((i 3.0 (setq i (+ 2.0 i)))) ; odd harmonics
          ((or (>= (* i f)(/ *sound-srate* 2.0))(> i 2048)) wave)
        (setq wave (sum wave (mult (/ i) (build-harmonic (truncate i) 2048)))))
      (setq wave (osc (hz-to-step f) dur (maketable wave) ph))
      (when smooth
        (setq wave (lowpass2 wave (/ *sound-srate* 4) 0.56))
        (setq wave (extract-abs wl (+ dur wl)(cue wave))))
      (mult wave amp (/ (peak wave (truncate (* 4 wlength)))))))

  ;; Triangle wave function (no alias)
  (defun tri-wav (f amp dur ph)
    (setq f (float f))
    (let ((wave (build-harmonic 1 2048)))
      (do ((i 3.0 (setq i (+ 2.0 i))) ; odd harmonics
           (alt -1.0 (setq alt (* -1.0 alt)))) ; reverse phase of alternate harmonics
          ((or (>= (* i f)(/ *sound-srate* 2.0))(> i 2048)) wave)
        (setq wave 
          (sum wave (mult (/ alt(* i i))(build-harmonic (truncate i) 2048)))))
      (setq wave (osc (hz-to-step f) dur (maketable wave) ph))
      (mult wave amp (/ (peak wave (truncate (* 4 wlength)))))))

  ;; Inverse Saw wave function (no alias)
  (defun inv-saw-wav (f amp dur ph)
    (setq f (float f))
    (let* ((wave (build-harmonic 1 2048))
           (wl (+ (/ *sound-srate*)(/ freq))) ; adjust start
           (dur (+ wl dur)))
      (do ((i 2.0 (setq i (1+ i)))) ; all harmonics
          ((or (>= (* i f)(/ *sound-srate* 2.0))(> i 2048)) wave)
        (setq wave (sum wave (mult (/ i) (build-harmonic (truncate i) 2048)))))
      (setq wave (osc (hz-to-step f) dur (maketable wave)(+ 180 ph)))
      (when smooth
        (setq wave (lowpass2 wave (/ *sound-srate* 3.8) 0.55))
        (setq wave (extract-abs wl (+ dur wl)(cue wave))))
      (mult wave amp (/ (peak wave (truncate (* 4 wlength)))))))

  ;; Saw wave function (no alias)
  (defun saw-wav (f amp dur ph)
    (mult -1 (inv-saw-wav f amp dur ph)))

  ;; Sine wave function
  (defun sine-wav (f amp dur ph)
    (scale amp (osc (hz-to-step f) dur *table* ph)))

;;; Error check and run if OK.
(cond 
  ((> freq (/ *sound-srate* 2)) ; check max frequency
    (format nil "Error.~%~
                Frequency (~a hz) will alias at~%~
                current sample rate (~a hz)."
                freq *sound-srate*))
  ((< freq 1) ; check min frequency
    (format nil "Error.~%Frequencies below 1 Hz are not supported,~%"))
  ((<= amp 0) ; check for sub-zero amplitude
    (format nil "Amplitude set to ~a (linear).~%Nothing to do.~%" amp))
  ((<= dur 0) ; check for zero duration
    (format nil "Duration set to ~a seconds.~%Nothing to do.~%" dur))
  ; else generate tone
  (T (hq-tone freq dur wave amp phase)))

```

Thank you!

---

<div class="post-metadata">

**Author:** ![Trebor](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/trebor/32/45854_2.png) [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Post date:** [April 6, 2025, 8:32am UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/10 "2025-04-06T08:32:50Z")

</div>

> [@SeanTips](#):
>
> the ability to add multiple frequencies like in this simple script:

If you don’t include a scale factor, the result of simultaneously combining the tones will clip.  
The scale factor should be at **least** (1/ number-of-frequencies-on-list) to avoid [clipping](https://en.wikipedia.org/wiki/Clipping_(signal_processing)).

```auto
;type generate
(defun tone (hz dur)
  (stretch dur
    (scale 0.01 (hzosc hz)))) 
(setf frequencies (list 
1016
1155
1333
5000
6273
7344
10000 ))

(simrep (i (length frequencies))
  (tone (nth i frequencies) 42.0))

```

---

<div class="post-metadata">

**Author:** ![SeanTips](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/s/ecccb3/32.png) [@SeanTips](https://forum.audacityteam.org/u/SeanTips)\
**Post date:** [April 10, 2025, 2:22pm UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/11 "2025-04-10T14:22:39Z")

</div>

Thanmk you for that, and as far as editing the HQ script to do the same for just since with the clipping formula?

---

<div class="post-metadata">

**Author:** ![Trebor](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/trebor/32/45854_2.png) [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Post date:** [April 10, 2025, 3:18pm UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/12 "2025-04-10T15:18:21Z")

</div>

> [@SeanTips](#):
>
> HQ script

Just adds the options to create waveforms other than sine waves.  
If you use waveforms other than sine, additional frequencies will be created.

 ![sine vs square at 440Hz](https://forum.audacityteam.org/uploads/default/original/3X/9/9/991574486194e509bd2b9b96c1bef881921ade3b.png)

---

<div class="post-metadata">

**Author:** ![SeanTips](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/s/ecccb3/32.png) [@SeanTips](https://forum.audacityteam.org/u/SeanTips)\
**Post date:** [April 12, 2025, 10:38am UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/13 "2025-04-12T10:38:05Z")

</div>

Ohh I dont wanna create anything other than sine waves heard they dont tack pretty well on top of each other.

I saw you udated the script I had started with, and you added a what scale division? So I see a line udated:

```auto
;type generate
(defun tone (hz dur)
  (stretch dur
    (scale 0.01 (hzosc hz)))) 
(setf frequencies (list 
1016
1155
1333
5000
6273
7344
10000 ))

(simrep (i (length frequencies))
  (tone (nth i frequencies) 42.0))

```

Do I need to change that scale like ever, or you calculated that from 100 frequencies to .1 ?

---

<div class="post-metadata">

**Author:** ![Trebor](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/trebor/32/45854_2.png) [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Post date:** [April 12, 2025, 12:09pm UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/14 "2025-04-12T12:09:47Z")

</div>

> [@SeanTips](#):
>
> calculated that from 100

I just picked a value that generated a reasonable, (audible but not deafening), loudness.  
If you want to avoid clipping, (which will distort the sine waves), the scale value must be (1/ number-of-frequencies-on-list), e.g. 0.01 for 100 frequencies.  
(I would err on the side of caution and use 0.001 for 100 frequencies).

---

<div class="post-metadata">

**Author:** ![system](https://forum.audacityteam.org/uploads/default/original/1X/81a69b20bcd548215067cfaceccc8a10bfa2d176.png) [@system](https://forum.audacityteam.org/u/system)\
**Post date:** [April 15, 2025, 5:55am UTC](https://forum.audacityteam.org/t/craft-multi-waveform-audio-rife-healing-frequencies-experiment-from-hq-tone-needed-some-help-with-a-nyquist-plugin-im-working-on-building-on-top-of-arbitrary-wave-function-code-by-steve-to-add-multiple-frequencies/134161/15 "2025-04-15T05:55:45Z")

</div>

Closed on April 15, 2025, 5:55am UTC

This topic was automatically closed after 30 days. New replies are no longer allowed.
