Struct sorceress::ugen::In[][src]

pub struct In { /* fields omitted */ }

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]

impl PartialEq<In> for In[src]

impl PartialOrd<In> for In[src]

impl StructuralPartialEq for In[src]

Auto Trait Implementations

impl RefUnwindSafe for In

impl Send for In

impl Sync for In

impl Unpin for In

impl UnwindSafe for In

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.