:sign0085:
Hi there,
I am trying to write a little eartraining program. The idea is to load a chromatic scale of ogg-files into an array and then play intervals, chords or scales. To add some "feeling" to the music I would like to put the playing thread asleep with different values (e.g. longer ones at the end (let ring...)). I didn't have any problem getting the FMOD-library to work with single notes each played separately, but trying something like that
player1.Play(AppPath & "\dSharp.ogg")
player1.Play(AppPath & "\c1.ogg")
only plays the c1.ogg file; the dSharp is simply skipped. Putting a sleep(someTime) statement in between these lines only gives strange results, too (stopping the first sound some strange time (not corresponding to the 'someTime' in the sleep-statment) in between).
I did some tests on another IDE which allows the user to init the sound-engine with multichannel-play (the other IDE doesn't run stable at all and does not compile what it promises that it should, so I would like to stick to b4p).
Now my questions are: Is there any way to program multichannel wav/ogg-output with b4p? If so, does anyone have an idea how to run the playing in a second thread in order to let the exercises run continously but still being able to stop them?
Any help would be appreciated
tnx in advance
littlun
Hi there,
I am trying to write a little eartraining program. The idea is to load a chromatic scale of ogg-files into an array and then play intervals, chords or scales. To add some "feeling" to the music I would like to put the playing thread asleep with different values (e.g. longer ones at the end (let ring...)). I didn't have any problem getting the FMOD-library to work with single notes each played separately, but trying something like that
player1.Play(AppPath & "\dSharp.ogg")
player1.Play(AppPath & "\c1.ogg")
only plays the c1.ogg file; the dSharp is simply skipped. Putting a sleep(someTime) statement in between these lines only gives strange results, too (stopping the first sound some strange time (not corresponding to the 'someTime' in the sleep-statment) in between).
I did some tests on another IDE which allows the user to init the sound-engine with multichannel-play (the other IDE doesn't run stable at all and does not compile what it promises that it should, so I would like to stick to b4p).
Now my questions are: Is there any way to program multichannel wav/ogg-output with b4p? If so, does anyone have an idea how to run the playing in a second thread in order to let the exercises run continously but still being able to stop them?
Any help would be appreciated
tnx in advance
littlun