Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SFX
#3
I walked to the store and back and did some more thinking on the subject.

You could probably never use the SFX library to create, let's say, a piano tone. Because a piano tone contains lots of overtones and subtones. That is, a piano tone isn't a single sine wave. You would need to add several layers of sine waves with double (and double double, can't find the word, and so on) the frequency, and half (and half half ...) the frequency, all of these at much lower volume. And then there's the thing called "attack, sustain, release and decay", but that you could probably control with the 'vol' array.

Hm, maybe you could just call SFX.SineWaveData to get data for the main tone and all the over- and subtones and add them together into a new array and then send that array to 'createsound'.
   I think I've got to try this, to create the sound of a piano, when I get the time Big Grin

Sorry for rambling.
Reply


Messages In This Thread
SFX - by johnno56 - 02-19-2024, 07:02 PM
RE: SFX - by Marcus - 02-20-2024, 04:44 PM
RE: SFX - by Marcus - 02-20-2024, 05:58 PM
RE: SFX - by johnno56 - 02-20-2024, 06:52 PM
RE: SFX - by 1micha.elok - 02-21-2024, 06:38 AM
RE: SFX - by Marcus - 02-21-2024, 04:07 PM
RE: SFX - by 1micha.elok - 02-22-2024, 05:04 AM
RE: SFX - by Marcus - 02-21-2024, 06:37 AM
RE: SFX - by johnno56 - 02-21-2024, 11:37 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)