Skip to content

Commit e17399b

Browse files
authored
feat: first? iteration of the piano tutorial (#240)
* feat: first? iteration of the piano tutorial * fix: change emoji * feat: docs - more live examples
1 parent e23123b commit e17399b

18 files changed

+2264
-7
lines changed

packages/audiodocs/docs/fundamentals/lets-make-some-noise.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,17 @@ import LetsMakeSomeNoiseSrc from '!!raw-loader!@site/src/examples/LetsMakeSomeNo
108108
In web environment you can use `decodeAudioDataSource` directly on the asset url, without the need to download it first.
109109

110110
:::
111+
112+
## Summary
113+
114+
In this guide, we have learned how to create a simple audio player using `AudioContext` and `AudioBufferSourceNode` as well as how we can load audio data from a remote source. To sum up:
115+
116+
- `AudioContext` is the main object that controls the audio graph.
117+
- `decodeAudioDataSource` method can be used to load audio data from a local audio source in form of `AudioBuffer`.
118+
- `AudioBufferSourceNode` can be used to any `AudioBuffer`.
119+
- In order to hear the sounds, we need to connect the source node to the destination node exposed by `AudioContext`.
120+
- We can control the playback of the sound using `start` and `stop` methods of the `AudioBufferSourceNode` (And other source nodes which we show later).
121+
122+
## What's next?
123+
124+
In [the next section](/fundamentals/making-a-piano-keyboard) we will learn more about how the audio graph works, what are audio params and how we can use them to create a simple piano keyboard.

0 commit comments

Comments
 (0)