Tonejs / Tone.js

A Web Audio framework for making interactive music in the browser.
https://tonejs.github.io
MIT License
13.39k stars 976 forks source link

Uncaught TypeError when calling `remove` on a sequence #1106

Closed scottwhudson closed 2 years ago

scottwhudson commented 2 years ago

Describe the bug

According to the docs, I should be able to remove an event from an existing sequence using the remove function. However, calling remove on an existing sequence returns an Uncaught TypeError

To Reproduce

Here is a Svelte REPL of the issue. I initialize a basic sequence and bind a "Remove Element" button that tries and fails to remove the 3rd element from the sequence.

Expected behavior I expect to be able to remove events from an existing sequence using this function.

What I've tried I've logged the sequence object to the console and inspected its available methods. A few others seem to be missing that are referenced in the documentation.

chrisguttandin commented 2 years ago

Hi @scottwhudson,

the docs that you linked to are for v11. The current version doesn't seem to provide this function anymore. I'm not sure when it was dropped.