Struct sorceress::ugen::In [−][src]
Read signals from an audio or control bus.
In::ar
and In::kr
read signals from audio and control buses, respectively. (See the
Buses chapter of the Getting Started tutorial series for details on buses.)
In::ar
and In::kr
behave slightly differently with respect to signals left on the bus in
the previous calculation cycle.
In::ar
can access audio signals that were generated in the current calculation cycle by Synth
nodes located earlier in the node tree (see Order of execution). It does not read signals
left on an audio bus from the previous calculation cycle. If synth A reads from audio bus 0 and
synth B writes to audio bus 0, and synth A is earlier than synth B, In.ar in synth A will read
0’s (silence). This is to prevent accidental feedback. [InFeedback
] supports audio signal
feedback.
In::kr
is for control buses. Control signals may be generated by Synth nodes within the
server, or they may be set by the client and expected to hold steady. Therefore, In::kr
does
not distinguish between “new” and “old” data: it will always read the current value on the bus,
whether it was generated earlier in this calculation cycle, left over from the last one, or set
by the client.
The hardware input buses begin just after the hardware output buses and can be read from using
In::ar
(See Server Architecture for more details). The number of hardware input and output
buses can vary depending on your Server’s options. For a convenient wrapper class which deals
with this issue see SoundIn
.
Implementations
impl In
[src]
pub fn ar() -> In
[src]
Create a UGen that calculates samples at audio rate.
pub fn kr() -> In
[src]
Create a UGen that calculates samples at control rate.
pub fn bus(self, value: impl Input) -> Self
[src]
The index of the bus to read in from.
pub fn number_of_channels(self, value: usize) -> Self
[src]
The number of channels (i.e. adjacent buses) to read in.
You cannot modulate this number by assigning it to an parameter in a synth definition. Defaults to 1.
Trait Implementations
impl Clone for In
[src]
impl Debug for In
[src]
impl Input for In
[src]
fn into_value(self) -> Value
[src]
fn add(self, rhs: impl Input) -> Value
[src]
fn sub(self, rhs: impl Input) -> Value
[src]
fn mul(self, rhs: impl Input) -> Value
[src]
fn div(self, rhs: impl Input) -> Value
[src]
fn idiv(self, rhs: impl Input) -> Value
[src]
fn modulo(self, divisor: impl Input) -> Value
[src]
fn madd(self, mul: impl Input, add: impl Input) -> Value
[src]
fn midicps(self) -> Value
[src]
fn cpsmidi(self) -> Value
[src]
fn range(self, lo: impl Input, hi: impl Input) -> Value
[src]
impl PartialEq<In> for In
[src]
impl PartialOrd<In> for In
[src]
fn partial_cmp(&self, other: &In) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for In
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,