Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic fm #669

Merged
merged 5 commits into from Aug 20, 2023
Merged

basic fm #669

merged 5 commits into from Aug 20, 2023

Conversation

felixroos
Copy link
Collaborator

@felixroos felixroos commented Aug 20, 2023

adds basic fm synthesis to the synth:

strudel-fm.mov

(in the video, fm = fmh, and fmi = fm ... i flipped this because it is probably more common to change the modulation index)

note("c a f e")
.fm(4) // set modulation index to 4
note("c a f e")
.fm(4)  // set modulation index to 4
.fmh(.5)  // set harmonicity to .5

fm is short for fmi, so you can also do

note("c a f e")
.fmi(4)  // set modulation index to 4
.fmh(.5)  // set harmonicity to .5

array notation is also supported:

note("c a f e").fm("4:2")

@felixroos felixroos merged commit b08337a into main Aug 20, 2023
2 checks passed
@felixroos felixroos deleted the fm branch August 20, 2023 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant