Mercurial > hg > plosc
comparison prolog/plosc.pl @ 6:8f2689f2989d
Added documentation.
author | samer |
---|---|
date | Tue, 28 Feb 2012 22:50:44 +0000 |
parents | 821f56d94b18 |
children |
comparison
equal
deleted
inserted
replaced
5:821f56d94b18 | 6:8f2689f2989d |
---|---|
92 %% osc_now(-TS:osc_timestamp) is det. | 92 %% osc_now(-TS:osc_timestamp) is det. |
93 % | 93 % |
94 % Gets the current OSC time in seconds and 1/2^64 ths of second. | 94 % Gets the current OSC time in seconds and 1/2^64 ths of second. |
95 osc_now(osc_ts(Secs,Fracs)) :- osc_now(Secs,Fracs). | 95 osc_now(osc_ts(Secs,Fracs)) :- osc_now(Secs,Fracs). |
96 | 96 |
97 | 97 %% osc_time_ts(+Time:float,-TS:osc_timestamp) is det. |
98 %% osc_time_ts(-Time:float,+TS:osc_timestamp) is det. | |
99 % | |
100 % Convert between floating point time as returned by get_time/1 and OSC | |
101 % timestamp structure as returned by osc_now/1. | |
98 osc_time_ts(Time,osc_ts(Secs,Fracs)) :- | 102 osc_time_ts(Time,osc_ts(Secs,Fracs)) :- |
99 ( var(Time) -> time_from_ts(Time,Secs,Fracs) | 103 ( var(Time) -> time_from_ts(Time,Secs,Fracs) |
100 ; time_to_ts(Time,Secs,Fracs)). | 104 ; time_to_ts(Time,Secs,Fracs)). |
101 | 105 |
102 %% osc_mk_server(+Port:nonneg, -Ref:osc_server) is det. | 106 %% osc_mk_server(+Port:nonneg, -Ref:osc_server) is det. |