Math module looks very 'Modular' but how is it used?
- KVRAF
- 10174 posts since 16 Dec, 2002
As usual the built in help does in fact not help
- KVRian
- 1451 posts since 4 Oct, 2012 from Utah
It does the selected math operation on the input signal(s). For example, if you have a sin as input and use derivative, you'll get a cosine as a result (though not the same amplitude, not quite a true derivative as we are in discrete space and not continuous). Some operators can use two inputs to generate a result.
Software portfolio
M.N.I.E - soon to be my musical portfolio
Hey, I'm Eurydice(Izzy for short) - she/her
M.N.I.E - soon to be my musical portfolio
Hey, I'm Eurydice(Izzy for short) - she/her
-
- KVRist
- Topic Starter
- 460 posts since 25 Jan, 2016
Thanks dakkra. Have you found any instances where you used the module for anything? This is one of the modules that causes me to look at MSF in a more traditional 'modular' manner, but I'm still struggling to find ways to actually make use of it.
- KVRian
- 1451 posts since 4 Oct, 2012 from Utah
I haven't made much use of it because of MSF/MXXX huge list of modules. In Bitwig, I've used it to create asymmetric distortion (creating DC offset via signal+constant). In MUX I've used math to build my own crossover filters (not nearly as good as Melda). I mostly find it useful when I have to actually build my own module or device.
Now that said, that doesn't mean there aren't other uses. For example, you can use math to do AM (multiply signal A with signal B), wave shaping, phasing, filtering, or pretty much anything that you know basic DSP about. YMMV.
Now that said, that doesn't mean there aren't other uses. For example, you can use math to do AM (multiply signal A with signal B), wave shaping, phasing, filtering, or pretty much anything that you know basic DSP about. YMMV.
Software portfolio
M.N.I.E - soon to be my musical portfolio
Hey, I'm Eurydice(Izzy for short) - she/her
M.N.I.E - soon to be my musical portfolio
Hey, I'm Eurydice(Izzy for short) - she/her
- KVRian
- 1451 posts since 4 Oct, 2012 from Utah
Follow up post, you can do funny things like this:
I made this in response to a post about MSF not being able to make certain phase distortion sounds...
I made this in response to a post about MSF not being able to make certain phase distortion sounds...
Software portfolio
M.N.I.E - soon to be my musical portfolio
Hey, I'm Eurydice(Izzy for short) - she/her
M.N.I.E - soon to be my musical portfolio
Hey, I'm Eurydice(Izzy for short) - she/her
- KVRAF
- 10174 posts since 16 Dec, 2002
dakkra wrote: Fri May 01, 2020 5:13 pm Follow up post, you can do funny things like this:
I made this in response to a post about MSF not being able to make certain phase distortion sounds...![]()
Sweeet, but how?
- KVRian
- 1451 posts since 4 Oct, 2012 from Utah
Well... it's math: https://kaegi.nl/werner/userfiles/downl ... system.pdf
I think the issue lies in that those who understand how to use the math module also understand DSP and it's concepts (some calculus, lots of algebra, waves and physics, etc...) It's not a creative module unless you're already creative with math.
Software portfolio
M.N.I.E - soon to be my musical portfolio
Hey, I'm Eurydice(Izzy for short) - she/her
M.N.I.E - soon to be my musical portfolio
Hey, I'm Eurydice(Izzy for short) - she/her
- KVRAF
- 2483 posts since 22 Sep, 2016
Cannot explain everything. but let's for instance concentrate on trigonometric functions here.
First thing to note here:
viewtopic.php?p=7638475#p7638475
Here's an example Patch...
First thing to note here:
- Oscillators emit values in a range from -1 to 1. Example if you use a saw wave it will ramp down from 1 to -1 in a linear fashion
- Trig Functions often have a different range for input,take sine: It expects 0 to 2*Pi (the math constant 3.1415...
- To use the trig functions in the math module you have to "translate" somehow between the ranges.
- Setup a Oscillator, change it to saw wave. It will emit 1 to -1 ramp downs
- Wire it into Math Module 1 - "Value range translation": translate 1 to -1 into Pi to -Pi (it's a range of 2 Pi then)
Algorithm: Multiply by constant:
Constant: 3.14
Output Limit: off - Wire this into another Math Module 2 - "Trig Function"
Algorithm: Sin / Cos / ATan
Output Limit: off - Go to FX Page: Add an Oscilloscope Module, playsome notes and watch the waveform closely resemble a "sine"
- We have not talked about transforming the output. If you want to use the output a Oscillator then the output is expected to be in a range of -1 to 1
- If you select Tan as Algorithm then you see what I mean

- This transformation in step 2 is useful for trigonometry functions like sine,other functions like sqrt are different... remember sqrt is not defined for negative values.
Here's an example Patch...
Code: Select all
$eNqlmFtz2jgUgN-5FRrx2gZLvjJju5MQ2M1sCGxM0+yjMCJ4IiTWltPQX78jK3YIIZbThRfQ+c5V8pHk8NvzloEnmheZ4BFEZxYElKdilfGHCJZy-TWA3+JeOE1EyVcTkkqR7wsqZcYfCtC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b6wwPsXl+GidxL7yezBC4pvxB7X2qYR3RFYGNhG0kHCPhGgnPSPhGImgnbglfiS1SNSS8WKv+JzPBD5+5oCpiDdYquKsKblTsrip2o+J0VVGL-y+6L1LCaIdsXtFXNdxdTeVU3xK6ujzijwzgTxo4jOAY7b2aqi9MbUh977pvger7Wwuir1W+04Lo1w4WbkFeXzwg1IK9tIAW4kZIOluv3xPV2xLdKt7JRoLLXDBG8wIkGX9gdLQhnFf31go4T2X2RFVVqQT1yXuRU1qdStQdUO8YIyLpg8j3V5Jur-hagDkpip8iX0VQzeXLmfe9BX3iOTCQSCJpHE4okWVOi8qFOvUrN2pRHHGDF8txeD7XUVb75UHUKol8B26JpHo77YVTKmle4Dj8ka3kZhqHiSjzlIJ5TtfV+6eXi6syVSODWqkXDk692yri3n8jZ8TS- KVRAF
- 2483 posts since 22 Sep, 2016
Interesting find:
If you compare the results of a "normal" Oscillator" with those of a LFO module as source to the math modules, then the later is cleaner.
I think it's due the the fact that "sound" oscillators use a techique called ripples to avoid aliasing.
Compare this patch to the previous one - on a functional perspective they should be the same.
Only difference is that the later uses an LFO module whose output freq is sychronized to "frequency"
It gives much cleaner results!
Damn ... please stop these topics which drive me into nerdistan for hours
If you compare the results of a "normal" Oscillator" with those of a LFO module as source to the math modules, then the later is cleaner.
I think it's due the the fact that "sound" oscillators use a techique called ripples to avoid aliasing.
Compare this patch to the previous one - on a functional perspective they should be the same.
Only difference is that the later uses an LFO module whose output freq is sychronized to "frequency"
It gives much cleaner results!
Damn ... please stop these topics which drive me into nerdistan for hours
Code: Select all
$eNrVmEtz4jgQgO-8CpW4zoAlP6kynsoDdlMbAhtnMtmjMCK4IiTWljNhfv2WLOwQSCwnmz0sucTS163uVuvV4benNQOPNMtTwYcQ9SwIKE-EIuX3Q1jI5dcAfos64SQWBV+MSSJFts2plCm-z0F3CBEE3ZPzc7qRqyG0es6g-AU4CDwIuuOUSZqNBWPi50RwoRDL0szAs31sQ9D9jaULepOuqepFVvlDvh+4ZZ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