0
0

Hi everyone,
I need for my project to generate on the fly little melody (from a basic set of notes) and then play this melody on a 3D environment (attached to a moving object).

I have tried play an A4 (440Hz) sample and then change the frequency(e.g. 261.63hz for a C4) ,I am not sure that the sound generated is really the desired note.

If anyone as ideas how to generate those "little melody" it would be very helpfull.

  • You must to post comments
0
0

Just for instance… you can record 440Hz sample and use pitch control to set its frequency programmatically.

  • You must to post comments
0
0

Work perfectly except when a same note is played many times.I should probably stop the sample and play it again.Is it possible to stop the sample
while playing and reload/play it from the start?

  • You must to post comments
0
0

Sure… Use API’s Channel::setPosition() call with zero offset if you’re using Ex and, probably, Event::stop() + Event::start() pair with Event API.

  • You must to post comments
0
0

Thanks for the tip.

I do actually face some troubles with the sound Spatialization.I don’t really feel any difference between right and left ears but the volume is ok (if a sound object go away the sound fade…)
Could it be a problem with 3DMinMaxDistance or 3DSpread?

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.