Classes | Streams-Patterns-Events > Patterns > Function

Pfuncn : Pattern : AbstractFunction : Object

Function pattern of given length
Source: Patterns.sc

Description

Returns a stream that returns values from the func.

Class Methods

Pfuncn.new(func, repeats: 1)

Arguments:

func

Stream function. In an event stream receives the current Event as argument.

repeats

End after this number of times.

Inherited class methods

6 methods from Object ► show

Instance Methods

Inherited instance methods

43 methods from Pattern ► show
159 methods from AbstractFunction ► show
260 methods from Object ► show

Undocumented instance methods

.embedInStream(inval)

.func

.func = value

.repeats

.repeats = value

Examples

Sound example