# Suggestion: New module or formula system to control Harmonic Ratios and Pitches

**URL:** <https://forum.soundradix.com/t/suggestion-new-module-or-formula-system-to-control-harmonic-ratios-and-pitches/2696>\
**Category:** Radical1\
**Created:** [July 2, 2026, 7:04pm UTC](https://forum.soundradix.com/t/suggestion-new-module-or-formula-system-to-control-harmonic-ratios-and-pitches/2696 "2026-07-02T19:04:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![iossearth1119](https://avatars.discourse-cdn.com/v4/letter/i/c89c15/32.png) [@iossearth1119](https://forum.soundradix.com/u/iossearth1119)\
**Post date:** [July 2, 2026, 7:04pm UTC](https://forum.soundradix.com/t/suggestion-new-module-or-formula-system-to-control-harmonic-ratios-and-pitches/2696/1 "2026-07-02T19:04:21Z")

</div>

Hello developer team,

_Please note that I am using a translation tool to write this post, as English is not my native language. I apologize for any awkward phrasing._

First of all, thank you for making such an amazing additive synthesizer.

I have a suggestion to make the engine even more powerful. Would it be possible to implement a feature that allows us to modify the **Ratio** or **Pitch** of each harmonic using mathematical formulas?

I know Radical1 already has the **Harmonic Stretch** module, but I am looking for a way to manipulate partial frequencies with mathematical expressions independently. This could either be integrated into the existing system, or **it could be a completely separate, dedicated new module apart from the current Formula module.**

For example, by using `h` (harmonic bin) in a mathematical expression, we could create unique effects such as:

- **Inverse effects** : Inverting the harmonic structure or scaling frequencies backward.
- **“Magnetic” attraction effects** : Mathematically snapping or gently pulling specific partials toward designated target frequencies, musical scales, or chords.

Giving users mathematical control over the partial frequencies/pitches would take Radical1’s additive synthesis to the next level and allow for unprecedented sound design possibilities (like complex microtonal structures and crystalline inharmonic textures).

Thank you for your hard work and for reading my request!

* * *

---

<div class="post-metadata">

**Author:** ![luke](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@luke](https://forum.soundradix.com/u/luke)\
**Post date:** [July 2, 2026, 7:30pm UTC](https://forum.soundradix.com/t/suggestion-new-module-or-formula-system-to-control-harmonic-ratios-and-pitches/2696/2 "2026-07-02T19:30:46Z")

</div>

Hi! Thanks for your feedback, and I’m glad you’re enjoying our work! I think this is a great idea, it sounds exciting to play with – and I also find the current formula is cool but too limited in expressiveness compared to what the engine is actually capable of.

The trouble I’m having with it is I can’t figure out what the formulas would actually look like, concretely. Your “inverse effects” could be achieved by having something like our existing formula with another expression for “what frequency is this partial” in addition to the amplitude.

Magnetic attraction is different beast. Waterfall Glide is one example of an effect that does something like that, but it’s just one of so many possibilities. The trouble with magnetic attraction is it requires **state** which further complicates the design – it’s not just about what the input frequency is now, it’s also about what our own output was last timestep. And I don’t have a good idea for how to phrase that as a formula. And what if you wanted an effect that required _two_ pieces of state, e.g. the last frequency and the average amplitude over the last second or something?

At some point you stop wanting to maintain your own hand-rolled programming language and just embed someone else’s well-designed work, and once we start talking about state, that’s my instinct. But we can’t just throw python in there, for example, because we need things to be allocation-free, mutation-free, and easily parallelizable. Something more like a shader language, but I find those pretty baroque and hard to work with.

Do you have some idea how you would want the code to look for your effects, if you could have the language of your dreams?

Thanks again for your interest!

Luke

---

<div class="post-metadata">

**Author:** ![iossearth1119](https://avatars.discourse-cdn.com/v4/letter/i/c89c15/32.png) [@iossearth1119](https://forum.soundradix.com/u/iossearth1119)\
**Post date:** [July 4, 2026, 4:24pm UTC](https://forum.soundradix.com/t/suggestion-new-module-or-formula-system-to-control-harmonic-ratios-and-pitches/2696/3 "2026-07-04T16:24:45Z")

</div>

Thanks again for the detailed explanation.

After thinking about it more, I realized that the most important part of my request is not necessarily stateful processing.

The “magnetic attraction” example from my original post was only one possible use case.

What I am primarily interested in is giving users mathematical control over the frequency placement of individual partials.

Conceptually, I imagine something like a Frequency Formula or Ratio Formula that allows users to define where each partial is placed.

For example, expressions such as:

h\*\*1.02

could create stretched harmonic series,

while:

h + 0.1\*sin(h\*0.5)

could create subtle inharmonic structures.

Or conditional expressions such as:

(h \> 8) \* (h\*\*1.03) + (h \<= 8) \* h

could affect only higher partials.

Ideally, this Formula would support the same operators, functions, and conditional expressions that are already available in the current Formula system.

One thing I find particularly interesting is the possibility of working in both ratio space and frequency space.

For example, it could be useful to access values such as:

ratio (the current frequency ratio of the partial)

and:

partialFreq (the actual frequency of the partial in Hz).

These two representations are related, but they are useful for different types of sound design.

Ratio-based operations are very natural for things such as:

- stretched harmonic series

- inharmonic spectra

- microtonal frequency mappings

- harmonic structure design

Frequency-based operations are useful for things such as:

- formant attraction

- resonance attraction

- fixed-frequency harmonic quantization

- spectral alignment to arbitrary frequency sets

Another interesting possibility would be a helper function such as:

snap(value, targetSet, amount)

which attracts a value toward the nearest element in a user-defined target set.

For example:

snap( partialFreq, harmonicSeries(55, 70, 82.4), 0.8)

Here, harmonicSeries() would generate a target frequency set from one or more fundamentals.

For example:

harmonicSeries(55)

could generate frequencies such as:{55, 110, 165, 220, 275…}

while:

harmonicSeries(55, 70, 82.4)

could combine multiple harmonic series into a single target set.

This could attract partials toward the combined harmonic structures of multiple fundamentals, enabling chord-like spectral designs.

Another use case could be:

snap( partialFreq, {800, 1200, 2500}, 0.8)

which could attract partials toward a formant structure or resonant frequency set.

With:

amount = 0 the original value remains unchanged.

With:

amount = 1 the value fully snaps to the nearest target.

Values between 0 and 1 would smoothly interpolate between the original and snapped positions.

Because the target set is user-defined, the same mechanism could potentially be used for:

- harmonic quantization

- chord-based spectral attraction

- microtonal systems

- formant structures

- resonant frequency sets

- Colour Bass style spectral design

- experimental inharmonic spectra

To me, the exact implementation is less important than the capability itself.

Whether this takes the form of a Frequency Formula, a Ratio Formula, or some combination of both, I think giving users mathematical control over partial frequency placement would open up a huge range of new sound design possibilities.

---

<div class="post-metadata">

**Author:** ![Magical\_Unicorn](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.soundradix.com/magical_unicorn/32/503_2.png) [@Magical\_Unicorn](https://forum.soundradix.com/u/Magical_Unicorn)\
**Post date:** [August 10, 2026, 4:46am UTC](https://forum.soundradix.com/t/suggestion-new-module-or-formula-system-to-control-harmonic-ratios-and-pitches/2696/4 "2026-08-10T04:46:05Z")

</div>

I just wanted to mention that I think it’s incredible that there’s a scripting engine/UI implemented into Radical (blew my mind it exists TBH) as it opens up so many possibilities for individual expression and deep exploration so kudos for implementing this from the start! It’s just so cute as well as the limited amount of commands available reminds me so much of the heyday of beautiful Vector Graphic based interactive art in Macromedia Flash (circa 2K) before Adobe got their hands on it and destroyed it.

Flash started life purely as a drawing and animation package (A.K.A Future Splash Animator) and in its early days had the tiniest basic non expandable pop-up scripting window with a similar set of limited commands and Math/Logic operations as Radical (but naturally with the ability to define, instantiate and target objects too, as well as create things like ‘for” loops and arrays etc) but similar all the same!

The restrictions were wonderful as it was literally utterly insane the incredible creative things artists were achieving with only a subset of commands (Vox Angellica, 2Advanced, Yugop et al) at the turn of the millennium creating bespoke 3D engines within a 2D space (Ice Queens skating around frozen lakes, spinning molecular structures you could explore, beautiful rich design universes etc) …so cool!

Naturally, as soon as I discovered Radical featured a similar compact scriptable programming UI, my romance with it began! 🤣

Something I was curious about, is it LUA based? Regardless, it’s an incredible feature to include and I’m really excited about the weird and wonderful possibilities it opens up to the creative community! 🙂

---

<div class="post-metadata">

**Author:** ![Magical\_Unicorn](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.soundradix.com/magical_unicorn/32/503_2.png) [@Magical\_Unicorn](https://forum.soundradix.com/u/Magical_Unicorn)\
**Post date:** [August 30, 2026, 4:43am UTC](https://forum.soundradix.com/t/suggestion-new-module-or-formula-system-to-control-harmonic-ratios-and-pitches/2696/5 "2026-08-30T04:43:48Z")

</div>

Hi there,

I just wanted to mention something I didn’t get a chance to go into last time as I’m busy exploring Radical in a ‘spatial’ context which involves considering it in different environments (namely Sound Particles, Wavelab, Cubase and Fieldler)! However, I found this topic really interesting so many thanks @iossearth1119 in creating this thread (…which led me on an intriguing tangent)!

So after performing further research into Musicology (namely classical but with a specific emphasis on the progression of music as an art form) re-reading about [Serialism](https://en.wikipedia.org/wiki/Serialism), [Musique Concrète](https://en.wikipedia.org/wiki/Musique_concr%C3%A8te) and the shift into abstract and [Generative Music](https://en.wikipedia.org/wiki/Generative_music) production, sound art etc, I thought I’d revisit this topic!

It’s likely after initially reading this thread I didn’t realise fully at the time that something I thought you might be able to already do with Radical script, is in actual fact exactly what the OP was describing, so for clarity I just figured I ask the creators at this stage to get a definitive answer…

_(Sorry accidentally posted it at this point)_ 🤣

---

<div class="post-metadata">

**Author:** ![Magical\_Unicorn](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.soundradix.com/magical_unicorn/32/503_2.png) [@Magical\_Unicorn](https://forum.soundradix.com/u/Magical_Unicorn)\
**Post date:** [August 30, 2026, 7:03am UTC](https://forum.soundradix.com/t/suggestion-new-module-or-formula-system-to-control-harmonic-ratios-and-pitches/2696/6 "2026-08-30T07:03:40Z")

</div>

_[Caffeine break]…_

So as I was saying, the idea of using formulas is really interesting as its a compact way to describe wild things and using basic algebra you can have some serious fun (_even if coding isn’t your thing_); so naturally I can more fully appreciate the value of what the OP was describing now! Then by random coincidence I stumbled across a music article about a _beta_ currently in development which seemed kinda relevant to this thread; that being [MathSynth](https://mathsynth.com/), which uses math equations to generate sound(s) in a general sense from what I understand (but intended as a teaching aid mainly)!

Thus, if you navigate your way through all of the above it brings you into the realm of contemplating things like coding languages dedicated to music/sound (such as [SuperCollider](https://supercollider.github.io/), and [FAUST](https://faust.grame.fr/)), repeating transcendental patterns like [Julia Set](https://en.wikipedia.org/wiki/Julia_set) and [Mandlebrot](https://en.wikipedia.org/wiki/Mandelbrot_set), [Mathematical Constants](https://en.wikipedia.org/wiki/Mathematical_constant) (PI and _e_ etc) and how any of these abstract things might manifest as a means to generate and synthesise harmonics (scales, notes, and sequences) and cascades of freaky generative output using R-Script?

I figured what was needed was some kind of [Turing Test](https://en.wikipedia.org/wiki/Turing_test), or rather ideally some basic starting point (a simple repeating formula) and try to realise it (in any form what so ever) within R-Script (sorry I kind of coined that phrase as I needed a simple name to save me retyping it fully every time)… 😂

Finally leading me to consider the [Fibonacci Sequence](https://en.wikipedia.org/wiki/Fibonacci_sequence), which I remember a Sound Artist ([Mileece](https://www.mileece.is/bio)) trying to persuade a house plant to perform live on stage in my earlier days as a postgraduate!

So out of curiosity, apparently the basic formula is ‘_Fn = Fn-1 + Fn-2_’ which produces the series: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144 (to _infinity_) …and I just wondered can this be used creatively with R-Script as it stands, or does it require ‘states’ to implement in any meaningful way?

From what I understand the same issues mentioned originally by @luke would still stand, as it’s not possible to ‘get at’ an object and affect it, and defining formula requires variables, but I assume you can at least type in a series (even if you can’t hold it in an array and randomly pick from it)?

If it was possible to use this (as it stands) what would it look like? Naturally, I intend to give this the further attention it deserves when I’ve completed my Radical vs. spatial project, but I just figured its best to ask such a question of the makers of the language (ideally), as I know very little of what it can and can’t do currently, but it also figures that it could be helpful to have a thread (somewhere) where people can post ‘commented’ examples (tutorials etc) to help others learn?

I just didn’t want to waste all that reading I had in mental RAM by getting waylaid in spatial La La Land (which is a 3D rabbit hole unto itself), plus as you know RAM is one rare ass commodity these days (thanks to RAMageddon) …even if it is organically based, so at least the Musicology rabbit hole is collated thoughtfully above with comprehensive links for any that dare to follow! 🙂
