Update example with link to ToneEvent

This commit is contained in:
Stephen Wolff 2020-10-15 23:06:51 +01:00
parent e7e372d37e
commit 44194e7f44

View file

@ -13,17 +13,18 @@
<script src="./js/tone-ui.js"></script> <script src="./js/tone-ui.js"></script>
<script src="./js/components.js"></script> <script src="./js/components.js"></script>
</head> </head>
<body> <body>
<tone-example label="Events"> <tone-example label="Events">
<div slot="explanation"> <div slot="explanation">
Tone's Event classes (<a href="https://tonejs.github.io/docs/Event">Tone.Event</a>, Tone's Event classes (<a href="https://tonejs.github.io/docs/ToneEvent">Tone.ToneEvent</a>,
<a href="https://tonejs.github.io/docs/Loop">Tone.Loop</a>, <a href="https://tonejs.github.io/docs/Loop">Tone.Loop</a>,
<a href="https://tonejs.github.io/docs/Part">Tone.Part</a> and <a href="https://tonejs.github.io/docs/Part">Tone.Part</a> and
<a href="https://tonejs.github.io/docs/Sequence">Tone.Sequence</a>) <a href="https://tonejs.github.io/docs/Sequence">Tone.Sequence</a>)
simplify scheduling events along the Transport. Each class abstracts away calls to simplify scheduling events along the Transport. Each class abstracts away calls to
<a href="https://tonejs.github.io/docs/Transport.schedule">Transport.schedule</a> or <a href="https://tonejs.github.io/docs/Transport.schedule">Transport.schedule</a> or
<a href="https://tonejs.github.io/docs/Transport.scheduleRepeat">scheduleRepeat</a> <a href="https://tonejs.github.io/docs/Transport.scheduleRepeat">scheduleRepeat</a>
and lets you create precise, rhythmic events which are startable, stoppable and loopable. and lets you create precise, rhythmic events which are startable, stoppable and loopable.
(note that ToneEvent was called <a href="https://tonejs.github.io/docs/Event">Event</a> before Tone.js 14.x)
</div> </div>
<div id="content"> <div id="content">