Skip to content

Update API design #14

@watilde

Description

@watilde

Sync with this nice proposal
rwaldron/johnny-five#372 (comment)

beeplay.play({
  song: [
    ["C4", 1 / 4],
    ["D4", 1 / 4],
    ["F4", 1 / 4],
    ["D4", 1 / 4],
    ["A4", 1 / 4],
    [null, 1 / 4],
    ["A4", 1],
    ["G4", 1],
    [null, 1 / 2],
    ["C4", 1 / 4],
    ["D4", 1 / 4],
    ["F4", 1 / 4],
    ["D4", 1 / 4],
    ["G4", 1 / 4],
    [null, 1 / 4],
    ["G4", 1],
    ["F4", 1],
    [null, 1 / 2]
  ],
  tempo: 100
});

beeplay.play({
  song: "C D F D A - A A A A G G G G - - C D F D G - G G G G F F F F - -",
  beats: 1 / 4,
  tempo: 100
});

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions