Open AstroScraps opened 3 months ago
As in, custom frequencies?
There are a few approaches. You could get rid of the frequency select entirely and replace it with a input box with a HZ value you can type in, and for support with the frequency select/other mods you convert the values on the dropdown select into values on the input box. Alternatively, perhaps you could make this a "custom" option at the bottom which displays a slider/input box when pressed and from there you can make your own values. Either way, I think most of the functionality work will be located around, say, SynthConfig.ts -> public operatorFrequencies -> mult
and where that is used in the synth code, and the UI code will be around SongEditor.ts
's many array elements which build the FM up by its operator amount.
TY, i will come back to this when school is over. Just messing around with ideas for now, so I have something tangible to work on when I actually get time to check out the stuff.
Dogebox2 may be a good mod to base your additions off of; it recently just started developing custom FM frequencies which is neat.
Thanks @Mid-The-Modder, what do you mean by recently? I'm worried I'm looking @ the wrong repo, says last commits for dogebox2 were 5 months ago.
https://github.com/DogeisCut/dogebox2_typescript/commits/main/ here you go. This should be the right repo.
Gotcha, thanks
More options for FM would be nice...