Mega Search
23.2 Million


Sign Up

Make a donation  
MIDI noise...  
News Group: embarcadero.public.delphi.multimedia

Hi all,

my plan is simple : given n 3D locations, I want to hear the sound of them...

What I first did was to loop a TMediaPlayer, but as you well think, it was not so efficient.

Then, I tried to build a WaveForm's TMemoryStream of 1s, filling it with a pretty herz values and a distant volume level for every 3D locations...Inefficient, as other sounds may happen meanwhile...

I now think about MIDI note definition to produce a global note to be played, but how ?

Thanks by advance

--
DH
blueperfect@hotmail.fr

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 27-Oct-2012, at 5:53 AM EST
From: david harouche
 
Re: MIDI noise...  
News Group: embarcadero.public.delphi.multimedia
This sounds like another art project involving audio noise.. reading your question its really not clear what your intentions are, and what problem you face realizing them.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 22-Nov-2012, at 10:48 AM EST
From: N Depred
 
Re: MIDI noise...  
News Group: embarcadero.public.delphi.multimedia
> {quote:title=N Depred wrote:}{quote}
> This sounds like another art project involving audio noise.. reading your question its really not clear what your intentions are, and what problem you face realizing them.

What I finally need is a sort of loop :

* building a TMemoryStream of 1s of Herz frequencies (with a volume that is calculated according  a distance).
* playing that TMemoryStream (asynchrone)
* loop...

- I have the object that loops in background (inherited from TThread)...
- I have the procedure that builds a TMemoryStream of 1 frequency during a delay (ms)
- I know that PlaySound plays TMemoryStream, but using it doesnt play the sound since it takes a little time before the sound effectively plays...

I am actually taking a look at WaveOut (msdn)...

--
DH
blueperfect@hotmail.fr

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 22-Nov-2012, at 3:30 PM EST
From: david harouche