aboutsummaryrefslogtreecommitdiffstats
path: root/ext/port-props.lv2/port-props.ttl
diff options
context:
space:
mode:
Diffstat (limited to 'ext/port-props.lv2/port-props.ttl')
-rw-r--r--ext/port-props.lv2/port-props.ttl4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/port-props.lv2/port-props.ttl b/ext/port-props.lv2/port-props.ttl
index d2956e5..d811959 100644
--- a/ext/port-props.lv2/port-props.ttl
+++ b/ext/port-props.lv2/port-props.ttl
@@ -197,13 +197,13 @@ encoders, etc.</p>
<p>Note that when used with a pprops:logarithmic port, the steps are
logarithmic too, and port value can be calculated as:</p>
-<pre>
+<pre class="c-code">
value = lower * pow(upper / lower, step / (steps - 1))
</pre>
<p>and the step from value is:</p>
-<pre>
+<pre class="c-code">
step = (steps - 1) * log(value / lower) / log(upper / lower)
</pre>