Re: FM Synthesis for iOS
Re: FM Synthesis for iOS
- Subject: Re: FM Synthesis for iOS
- From: Gregory Wieber <email@hidden>
- Date: Tue, 12 Mar 2013 10:57:16 -0700
Polychord has an fm synthesizer under-the-hood that I never ended up exposing in the UI -- haven't had the time to make it easy to use, etc.
Anyway, using lookup tables is definitely a good optimization trick.
Also, from what I recall, you'll be using lots of recursion to essentially traverse a tree of connections between oscillators
You may be tempted to model the graph with objects, but that ain't gonna fly -- you'll want to stick to simple pointer / struct setup.
The Yamaha DX7 is obviously a good (academic) architectural reference. They had a fixed number of elements and a bunch of preset patterns, and made it all work on 1980's circuitry. (Beware of patent/trademark constraints.)
Anyway, the idea of having a fixed number of "patches" is not bad for a mobile platform.
If I remember correctly, feedback was the hardest element of fm to model correctly. Get it right, you get some awesome sawtooth sounds. Get it wrong and it just sounds lame.
Sent from my iPhone
On Mar 11, 2013, at 10:56 PM, "Patrick J. Collins" <email@hidden> wrote:
> Hi everyone,
>
> I am currently making an iPad/iPhone game, and I really want FM
> synthesis for my sound effects. I thought I could get away with using
> STK and Momu, but it turns out the library is completely incompatible
> with iOS devices; when I try setup two voices and attempt to play
> polyphony, the entire app freezes. I thought at first it was crashing
> and could possibly debug it-- but it turns out it just slows down to the
> point of not functioning at all... However if I just use one voice,
> then it works perfectly fine-- unfortunately, that's not an option for
> my app.. I need multiple voices.
>
> Soooo... I am now looking at what it will take to build my own basic FM
> synth that I can use in my app. I have very little (and by little, I
> mean practically none) experience with DSP and programming audio, so I
> really could use some resources that can help me get where I need to go
> as quickly as possible.
>
> I've searched the web for other open source FM projects that I might be
> able to modify, but they all seem very complex and I just don't know how
> I would integrate it into my app. Audio programming is something that
> interests me a lot, unfortunately it also intimidates me a lot-- So I'd
> love to take this challenge on and learn some great stuff, but it seems
> like such a vast and complicated world, and I just don't even know where
> to begin! Where is the "how to build your first programmable
> soft-synthesizer for iOS" book??? It seems like resources like this
> just don't exist, and only people with esoteric, magical knowledge can
> pull this sort of thing off!
>
> If anyone can give me some tips, tricks, pointers, etc. I'd greatly
> appreciate it!
>
> Thank you so much.
>
> Patrick J. Collins
> http://collinatorstudios.com
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden