codeformat
This commit is contained in:
parent
858f4f74b3
commit
51a4c4d13b
8 changed files with 60 additions and 40 deletions
|
|
@ -10,10 +10,11 @@ import { JsDoc } from '../../docs/JsDoc';
|
|||
# Sounds
|
||||
|
||||
We can play sounds with `s`, in two different ways:
|
||||
|
||||
- `s` can trigger audio samples, where a sound file is loaded in the background and played back:
|
||||
<MiniRepl client:idle tune={`s("bd hh sd hh")`} />
|
||||
<MiniRepl client:idle tune={`s("bd hh sd hh")`} />
|
||||
- `s` can trigger audio synthesisers, which are synthesised in real-time using code also running in the background:
|
||||
<MiniRepl client:idle tune={`s("sawtooth square triangle sine")`} />
|
||||
<MiniRepl client:idle tune={`s("sawtooth square triangle sine")`} />
|
||||
|
||||
You can learn more about both of these approaches in the pages [Synths](/learn/synths) and [Samples](/learn/samples).
|
||||
|
||||
|
|
@ -37,4 +38,4 @@ Hmm, something interesting is going on there, related to there being five notes
|
|||
|
||||
Let's now take a step back and think about the Strudel [Code](/learn/code) we've been hearing so far.
|
||||
|
||||
<br/>
|
||||
<br />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue