diff options
author | David Robillard <d@drobilla.net> | 2011-11-03 22:36:43 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-03 22:36:43 +0000 |
commit | d2fa4f8292a50b47864d561c33ced39c55c89254 (patch) | |
tree | 72e320a6cd7979c66941ce1203334617a57df227 /ext/port-props.lv2/port-props.ttl | |
parent | e8b25617db84184a2b299ef57f7c4295081b7576 (diff) | |
download | lv2-d2fa4f8292a50b47864d561c33ced39c55c89254.tar.xz |
Syntax highlight C and Turtle code in documentation.
Diffstat (limited to 'ext/port-props.lv2/port-props.ttl')
-rw-r--r-- | ext/port-props.lv2/port-props.ttl | 4 |
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> |