Programmer Guide/SPU Reference/MIX: Difference between revisions
From STX Wiki
Jump to navigationJump to search
(initial import) |
No edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
Mix inputs (weighted addition). | |||
==<code>[SPU MIX <var>A KA B KB</var> OUT <var>Y</var>]</code>== | |||
== | {|class="einrahmen" | ||
!In !!Out !!Description | |||
<code>MIX <var>A KA B KB</var></code> | |||
{| | |||
|- | |- | ||
|A | |<var>A<sub>number</sub></var>, <var>B<sub>number</sub></var> | ||
| | |<var>Y<sub>number</sub></var> | ||
|<math>Y=A.KA+B.KB</math> | |||
|- | |- | ||
| | |<var>A<sub>vector</sub></var>, <var>B<sub>vector</sub></var> | ||
|<var>Y<sub>vector</sub></var> | |||
| | |<math>Y[i]=A[i].KA+B[i].KB</math> | ||
|B | |||
|} | |} | ||
with: 0 ≤ i < length of <var>A<sub>vector</sub></var> | |||
The inputs <var>KA</var> and <var>KB</var> (mix/weighting factors) must be numbers. | |||
;See also: | |||
<[[../#Signal Processing Atoms|SP-atoms]]> | |||
<!-- AN, 2.5.2011 --> | |||
Latest revision as of 09:34, 6 May 2011
Mix inputs (weighted addition).
[SPU MIX A KA B KB OUT Y]
In | Out | Description |
---|---|---|
Anumber, Bnumber | Ynumber | |
Avector, Bvector | Yvector |
with: 0 ≤ i < length of Avector
The inputs KA and KB (mix/weighting factors) must be numbers.
- See also
<SP-atoms>