i was asking myself if the idea of having more low-level units (at the UI level, not in middle layer) would be possible and\or auspicable.
i think for example about what @Joe did explicitating the Comparator into an independent unit.
the possible units i’m thinking about are mathematical\trigonometric units like “absolute” “sin” “cos” “tan” and stuff like that.
maybe a shift register…
i’m almost sure some of this might even be possible now with actual units…
example: i know that a shift register can be made by chaining multiple sample and hold units (alike what i did with my Kanonika custom unit simulating an analog shift register), do you have suggestions in that area? from that one might be able to even build more chaotic stuff like lfsr (linear feedback shift register)?
in his great Synthesis Workshop Rob Hordjik extensively talk about chaos generation. https://rhordijk.home.xs4all.nl/G2Pages/
one of the things he mentions as necessary for certain chaotic modules is a special “one-and-one-only” module that permits to feed the “seed” value to the sample and hold for ONLY the duration of one clock pulse.
i tried patching the last expression, it is missing the connections to X but can please someone more clever than me check if this is theoretically correct?
maybe @odevices pretty please? 4xXx1-X.unit (10.0 KB)
well, something is happening!
i “completed” theorically the circuit and tried mapping it to stuff, i was able to knock out a sine osc fb parameter, now it says “nan” in place of the value and stopped producing sound
UPDATE 2: i make it go BOOM but i was able to test it and it IS working! just a couple of seconds but it was giving me (pseudo) random values! just sampling an “offset” for approximately one clock pulse, it was generating patterns!
i try to tidy it up a bit and post the patch in its own thread.
I don’t think the sample scanner cares about number of samples. It will just map the entire sample to the input range (e.g. from -1.0 to 1.0). Brian gave a python code example in a different thread. I meant to try some experiments with it but it has not risen to the top of my list yet.
– use Excel, Libre Office etc. to iterate through a formula. For instance:
=TANH(-2 + (ROW()-1)*0.01)
for 400 rows. Select that column, paste into a text editor, save it as tanh.txt.
Open Audacity, and use the “Sample Data Import” option under the Tools menu to import the text file.
(Does this mean I’m going to be selling my tanh too…? )
(And honestly, I find it simpler in spreadsheets to create an “x” row and then apply the function in a “y” row. Put the initial value at A1, set A2 to “=A1+.01” and then copy/paste A2 as far down as necessary. Then stick the function in B1 and copy/paste it down. Plotting column B on a graph within the spreadsheet helps verify it’s right.)
This is a good time to ask: does the sample scanner do any sort of interpolation, or would we be better off creating longer files with more data points?