Skip to content

Error in some examples of vortex functions #269

@taconi

Description

@taconi

Some examples give an error when executed.

jux

d1 * s('bd jvbass bd sn').jux(lambda p : p.rev().hpf(500))
AttributeError: 'Pattern' object has no attribute 'hpf'.

layer

d1 * s("arpy [~ arpy:4]").layer(rev, lambda p: p.fast(2)])
    d1 * s("arpy [~ arpy:4]").layer(rev, lambda p: p.fast(2)])
                                                            ^
SyntaxError: closing parenthesis ']' does not match opening parenthesis '('

The second example, after removing the ']', the following error is raised.

d1 * s("arpy [~ arpy:4]").layer(id, rev, lambda p: p.fast(2))
'NoneType' object is not a mapping

From what I was seeing, the id function should be the equivalent of lambda x: x, however, it is a Player.

print(id)  # <Player lock_children=None env=<FishBowl playing clock=<InternalClock running time=417.7 tempo=135 beats_per_bar=4>>>
print(id.__module__)  # sardine_core.handlers.player

id * d('bd')  # [id is swimming]

almostAlways

AttributeError: 'Pattern' object has no attribute 'almostAlways'. Did you mean: 'almost_always'?

almostNever exists. I believe the ideal would be almost_never seeing the pattern of sometimes_by, sometimes_pre, choose_cycles, and others.

choosewith

NameError: name 'choosewith' is not defined

The definition is choose_with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions