W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2013

Re: [web-audio-api] spatial coords should just be in metres (#129)

From: Olivier Thereaux <notifications@github.com>
Date: Wed, 11 Sep 2013 07:29:49 -0700
To: WebAudio/web-audio-api <web-audio-api@noreply.github.com>
Message-ID: <WebAudio/web-audio-api/issues/129/24244401@github.com>
> [Original comment](https://www.w3.org/Bugs/Public/show_bug.cgi?id=20681#2) by Marcus Geelnard (Opera) on W3C Bugzilla. Fri, 26 Apr 2013 07:01:21 GMT

I think that what we're missing is a consistent use/definition of "unit". For instance, the comment for speedOfSound could read:

"in units / second (default 343.3)"

But then we should define the term "units" somewhere in the spec.

In Open Dynamic Engine (ODE), for instance, the units are undefined: "Technically, ODE doesn't use specific units. You can use anything you wish, as long as you stay consistent with yourself." (the manual also recommends that you use SI units since that typically implies that you're "consistent with yourself"). In the ODE manual, you can find language such as "If a sphere of size 1 has to roll over a polygon a 1000 units long...".

Perhaps a good solution to the problem would be to introduce a short section in the spec about units, and then refer to things such as speed in terms of "units" (i.e. units / second).

Side note: Technically, "seconds" could also be "units of time", but on the other hand we already use seconds in many places in the spec, so I think it's safe to always use/mandate seconds for time.

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-audio-api/issues/129#issuecomment-24244401
Received on Wednesday, 11 September 2013 14:30:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:23 UTC