Skip to content

transpose fails if PitchInterval size is a Float  #30

Description

@cdbzb

the distanceFrom method can return an Array including a PitchInterval with size of class Float

a = PitchClass(\c).distanceFrom(PitchClass(\a));
a[0].size // 6.0

if I try to transpose by this PitchInterval I get an Error

PitchClass(\c, 3).transpose(a[0], a[1])

checking further this fails:

PitchClass(\c, 3).transpose(PitchInterval(\major, 6.0), a[1])

but this is fine

PitchClass(\c, 3).transpose(PitchInterval(\major, 6), a[1])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions