Divooka Reference

Instrument Map

9 nodes

On this page 9

Drums

Function

What plays the drums; the default SoundFont's kit when null.

Signature
Drums(Instrument Map: Instrument Map) -> Instrument
Instrument Drums(InstrumentMap Instrument Map)

Parameters

nametypedefaultdescription
Instrument MapInstrument Map—

Returns

resultInstrument
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Instrument Map
Package
Music

Fallback

Function

What plays every program not mapped; the default SoundFont's preset for it when null.

Signature
Fallback(Instrument Map: Instrument Map) -> Instrument
Instrument Fallback(InstrumentMap Instrument Map)

Parameters

nametypedefaultdescription
Instrument MapInstrument Map—

Returns

resultInstrument
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Instrument Map
Package
Music

Programs

Function

The programs given an instrument of their own.

Signature
Programs(Instrument Map: Instrument Map) -> ImmutableDictionary<General Midi Instrument, Instrument>
ImmutableDictionary<GeneralMidiInstrument, Instrument> Programs(InstrumentMap Instrument Map)

Parameters

nametypedefaultdescription
Instrument MapInstrument Map—

Returns

resultImmutableDictionary<General Midi Instrument, Instrument>
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Instrument Map
Package
Music

Resolve

Function

The instrument for a program, or for the drums.

Signature
Resolve -> Instrument
    Instrument Map: Instrument Map
    program: General Midi Instrument
    percussion: Truth
    soundFont: Sound Font Bank
Instrument Resolve(
    InstrumentMap Instrument Map,
    GeneralMidiInstrument program,
    bool percussion,
    SoundFontBank soundFont)

Parameters

nametypedefaultdescription
Instrument MapInstrument Map—
programGeneral Midi Instrument—
percussionTruth—
soundFontSound Font Bank—

Returns

resultInstrument
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Instrument Map
Package
Music

To String

Function

This node carries no documentation.

Signature
ToString(Instrument Map: Instrument Map) -> Text
string ToString(InstrumentMap Instrument Map)

Parameters

nametypedefaultdescription
Instrument MapInstrument Map—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Instrument Map
Package
Music

With

Function

This map with one more program given an instrument.

Signature
With -> Instrument Map
    Instrument Map: Instrument Map
    program: General Midi Instrument
    instrument: Instrument
InstrumentMap With(
    InstrumentMap Instrument Map,
    GeneralMidiInstrument program,
    Instrument instrument)

Parameters

nametypedefaultdescription
Instrument MapInstrument Map—
programGeneral Midi Instrument—
instrumentInstrument—

Returns

resultInstrument Map
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Instrument Map
Package
Music

With Drums

Function

This map with its drums on an instrument.

Signature
WithDrums -> Instrument Map
    Instrument Map: Instrument Map
    drums: Instrument
InstrumentMap WithDrums(
    InstrumentMap Instrument Map,
    Instrument drums)

Parameters

nametypedefaultdescription
Instrument MapInstrument Map—
drumsInstrument—

Returns

resultInstrument Map
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Instrument Map
Package
Music

With Fallback

Function

This map with everything unmapped on an instrument.

Signature
WithFallback -> Instrument Map
    Instrument Map: Instrument Map
    fallback: Instrument
InstrumentMap WithFallback(
    InstrumentMap Instrument Map,
    Instrument fallback)

Parameters

nametypedefaultdescription
Instrument MapInstrument Map—
fallbackInstrument—

Returns

resultInstrument Map
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Instrument Map
Package
Music

Empty

Function

A map with nothing in it: every program on the default SoundFont.

Signature
Empty() -> Instrument Map
InstrumentMap Empty()

Returns

resultInstrument Map
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Instrument Map
Package
Music