Skip to content

Commit 2047400

Browse files
fixing images for tutorials
1 parent f0d87e8 commit 2047400

38 files changed

+70
-32
lines changed

content/tutorials/text/sound/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ Simply put, we define sound as a vibration traveling through a medium (typically
4040

4141
<FixedImage center width={650} height={170}>
4242

43-
![](./56-1.svg)
43+
![a plot of pressure over time showing dots that spread out with less pressure and are tight with more pressure](./56-1.svg)
4444

4545
</FixedImage>
4646

4747
This time-domain representation of sound provides an accurate portrayal of how sound works in the real world, and, as we shall see shortly, it is the most common representation of sound used in work with digitized audio. When we attempt a technical description of a sound wave, we can easily derive a few metrics to help us better understand what's going on. In the first instance, by looking at the amount of displacement caused by the sound pressure wave, we can measure the amplitude of the sound. This can be measured on a scientific scale in _pascals_ of pressure, but it is more typically quantified along a logarithmic scale of _decibels_. If the sound pressure wave repeats in a regular or _periodic_ pattern, we can look at the wavelength of a single iteration of that pattern and from there derive the frequency of that wave. For example, if a sound traveling in a medium at 343 meters per second (the speed of sound in air at room temperature) contains a wave that repeats every half-meter, that sound has a frequency of 686 hertz, or cycles per second. The figure below shows a plot of a cello note sounding at 440 Hz; as a result, the periodic pattern of the waveform (demarcated with vertical lines) repeats every 2.27 ms:
4848

4949
<FixedImage center width={650} height={180}>
5050

51-
![](./56-2.svg)
51+
![a plot of a cello note sounding at 440 Hz where the repeating pattern is visible](./56-2.svg)
5252

5353
</FixedImage>
5454

@@ -58,7 +58,7 @@ When a sound reaches our ears, an important sensory translation happens that is
5858

5959
<FixedImage center width={650} height={210}>
6060

61-
![](./56-3.svg)
61+
![Frequency domain plot of a sustained 220hz note bowed on a cello](./56-3.svg)
6262

6363
</FixedImage>
6464

@@ -74,7 +74,7 @@ Sound typically enters the computer from the outside world (and vice versa) acco
7474

7575
<FixedImage center width={650} height={150}>
7676

77-
![](./56-4.svg)
77+
![diagram showing air pressure going into a microphone, being converted by a ADC, stored on memory, sent to a DAC and played on a speaker when it becomes analog again](./56-4.svg)
7878

7979
</FixedImage>
8080

Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.

content/tutorials/text/strings-and-drawing-text/index.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Let's look at two more useful Processing functions related to displaying text:
188188

189189
<FixedImage side width={302} height={168}>
190190

191-
![textAlign](./textalign.jpg)
191+
![resulting sketch showing position of text using different align,ments and a vertical line in the middle](./textalign.png)
192192

193193
</FixedImage>
194194

@@ -258,7 +258,7 @@ Now comes more difficult part. It was easy to test when a circle reached the lef
258258

259259
<FixedImage center width={645} height={570}>
260260

261-
![textWidth](./textwidth.jpg)
261+
![visual diagram showing how if you know the text width you can move it off the edge of the screen](./textwidth.svg)
262262

263263
</FixedImage>
264264

@@ -398,7 +398,7 @@ The proper spacing can be achieved using the [textWidth()](http://processing.org
398398

399399
<FixedImage side width={302} height={131}>
400400

401-
![Character by character](./charbychar.jpg)
401+
![resulting sketch with each letter in the sentence being a different size](./charbychar.png)
402402

403403
</FixedImage>
404404

@@ -509,7 +509,7 @@ The character by character method also allows us to display text along a curve.
509509

510510
<FixedImage side width={200} height={200}>
511511

512-
![Boxes along a curve](./boxes.jpg)
512+
![Boxes along a curve](./boxes.png)
513513

514514
</FixedImage>
515515

@@ -570,7 +570,7 @@ What we need to do is replace each box with a character from a String that fits
570570

571571
<FixedImage side width={200} height={200}>
572572

573-
![Characters along a curve](./textcurve.jpg)
573+
![Characters along a curve](./textcurve.png)
574574

575575
</FixedImage>
576576

Binary file not shown.
Loading
Binary file not shown.

0 commit comments

Comments
 (0)