Tom Leylan said:
I know this is going to sound rude but how does that constitute the "best
way"?
I am not a sound engineer, but perhaps a quick change in the amplitude
or slope is the "best" way because it is the "only" way. Again, I'm not sure
what API you have access to, but if you're just setting amplitudes at
various points in time, setting the amplitude is probably "easier" (in that
it doesn't involved calculus), but depending on the values chosen, you may
get "pops" instead of "clicks". I haven't played around with sudden slope
changes much, so I don't know, assuming a uniformly random distribution of
all possible slope changes, whether the probability of getting a "click"
instead of a "pop" (or any other sound) is better than a sudden change in
amplitude.
I see another reply that reports that J2ME doesn't support tone
generation and it only supports playing existing sound files... that of
course comes as a shock to the developers of J2ME I'm certain. I even
wrote "I can make tones" so that would hardly seem to be the case right?
Perhaps your tone generating API is an vendor specific extension, and
not actually part of the J2ME standard? Again, just speculating here,
because I'm not familiar with that portion of the J2ME spec.
Where are the real answers posted?
If you can generate tones, and you specifically want to generate this
click sound (and not use existing sound files), it seems like your question
is not nescessarily Java-specific. You just want equations for waveforms
describing clicking sounds, right? So maybe this is the wrong newsgroup to
ask this question in.
- Oliver