Rotate2

final case
class Rotate2(rate: Rate, x: GE, y: GE, pos: GE) extends MultiOut

A UGen that can be used for rotating an ambisonic B-format sound field around an axis. It uses an equal-power rotation so it also works well on stereo sounds. It takes two audio inputs ( x , y ) and an angle control ( pos ). It outputs again two channels, using these formulas:

xr = cos(angle) * x + sin(angle) * y
yr = cos(angle) * y - sin(angle) * x

where angle = pos * Pi . This allows, for example, the use of LFSaw to create a continuous rotation around a circle. '''Note''': Be careful when accessing the output channels. xr and yr are the X and Y output channels, whereas x and y refers to the X and Y input channel.

Value Params
pos

angle to rotate around the circle, normalized between -1 and +1. -1 and +1 corresponds to -180 and +180 degrees (behind), -0.5 is 90 degrees left, 0 is frontal, +0.5 is 90 degrees right.

x

B-format X input channel

y

B-format Y input channel

Companion
object
trait Serializable
class MultiOut
class SomeOut
trait Lazy
trait GE
class UGenSource[UGenInLike]
trait Expander[UGenInLike]
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def xr: GE
def yr: GE

Inherited methods

final
def name: String
Inherited from
UGenSource
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Inherited fields

lazy override
val hashCode: Int
Inherited from
UGenSource