aboutsummaryrefslogtreecommitdiffstats
path: root/ext/port-props.lv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-03 22:36:43 +0000
committerDavid Robillard <d@drobilla.net>2011-11-03 22:36:43 +0000
commitd2fa4f8292a50b47864d561c33ced39c55c89254 (patch)
tree72e320a6cd7979c66941ce1203334617a57df227 /ext/port-props.lv2
parente8b25617db84184a2b299ef57f7c4295081b7576 (diff)
downloadlv2-d2fa4f8292a50b47864d561c33ced39c55c89254.tar.xz
Syntax highlight C and Turtle code in documentation.
Diffstat (limited to 'ext/port-props.lv2')
-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>