AstroScraps / ultrabox

ultrabox source code
MIT License
0 stars 0 forks source link

[feat] Custom FM (slider? type in values?) #1

Open AstroScraps opened 3 months ago

AstroScraps commented 3 months ago

More options for FM would be nice...

Mid-The-Modder commented 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.

AstroScraps commented 3 months ago

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.

Mid-The-Modder commented 2 months ago

Dogebox2 may be a good mod to base your additions off of; it recently just started developing custom FM frequencies which is neat.

AstroScraps commented 2 months ago

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.

Mid-The-Modder commented 2 months ago

https://github.com/DogeisCut/dogebox2_typescript/commits/main/ here you go. This should be the right repo.

AstroScraps commented 2 months ago

Gotcha, thanks