Thanks for reminding me of the dangers of macros :)
Josh
On Mon, 2006-12-11 at 14:58 +, Paul Millar wrote:
> On Monday 11 December 2006 14:24, Josh Green wrote:
> > On Mon, 2006-12-11 at 00:19 +0200, Mihail Zenkov wrote:
> > > IMHO better replace roundf with this code in all case:
> >
Sorry, I should have been more specific. I was trying to get an open cymbal
sound
using the sequencer, and none of them worked using the SONiVOX.sf2 font
(258mb).
(They all sound like a very short closed high hat sound)
Now I now realize the problem is not the sequencer, and possibly not even
F
On Monday 11 December 2006 14:24, Josh Green wrote:
> On Mon, 2006-12-11 at 00:19 +0200, Mihail Zenkov wrote:
> > IMHO better replace roundf with this code in all case:
> >
> > inline int roundi(float x)
[..]
> > It slightly faster then gcc roundf (1.5 time).
>
> Sounds good, will also be more port
On Mon, 2006-12-11 at 00:19 +0200, Mihail Zenkov wrote:
> IMHO better replace roundf with this code in all case:
>
> inline int roundi(float x)
> {
> if (x >= 0.0f)
> return (int)(x+0.5f);
> else
> return (int)(x-0.5f);
> }
>
> It slightly faster th