... | @@ -4,14 +4,14 @@ Open first_patch.pd |
... | @@ -4,14 +4,14 @@ Open first_patch.pd |
|
|
|
|
|
You should see three objects:
|
|
You should see three objects:
|
|
* one with a very long name
|
|
* one with a very long name
|
|
* one called **pd boop **
|
|
* one called **pd boop**
|
|
* and one called **pd speaker**
|
|
* and one called **pd speaker**
|
|
|
|
|
|
**pd speaker** is the most important object here. It has one inlet. Anything that you send to that inlet will come out of your speaker.
|
|
**pd speaker** is the most important object here. It has one inlet. Anything that you send to that inlet will come out of your speaker.
|
|
|
|
|
|
**pd boop** does just what it sounds likes it does, boops! It needs to know which note you want it to play, and where to send it.
|
|
**pd boop** does just what it sounds likes it does, boops! It needs to know which note you want it to play, and where to send it.
|
|
You tell boop which note to play by sending a message into its inlet.
|
|
You tell **pd boop** which note to play by sending a **message** into its inlet.
|
|
You tell boop where to send its boop by connecting its outlet to the destination.
|
|
You tell **pd boop** where to send its boop by connecting its outlet to the destination.
|
|
|
|
|
|
We want to be able to hear our boops. So let's connect the boop to the speaker.
|
|
We want to be able to hear our boops. So let's connect the boop to the speaker.
|
|
======
|
|
======
|
... | @@ -27,7 +27,7 @@ Then click and drag to the inlet (the bold line on the top of the **pd speaker** |
... | @@ -27,7 +27,7 @@ Then click and drag to the inlet (the bold line on the top of the **pd speaker** |
|
|
|
|
|
Now we need to make a message box
|
|
Now we need to make a message box
|
|
======
|
|
======
|
|
Make a **message box** by pressing **control-2** on the keyboard. Or by going to the "put" menu and choosing "message."
|
|
We need to make a **message box** so we can tell **pd boop** which note we want to hear. Make a **message box** by pressing **control-2** on the keyboard. Or by going to the "put" menu and choosing "message."
|
|
|
|
|
|
You will notice that it is connected to your mouse.
|
|
You will notice that it is connected to your mouse.
|
|
|
|
|
... | @@ -37,19 +37,19 @@ It should still be blue and have a blinking cursor in it. (If it isn't click on |
... | @@ -37,19 +37,19 @@ It should still be blue and have a blinking cursor in it. (If it isn't click on |
|
|
|
|
|
Now we need to tell the **pd boop** object which note we want it to play. We do this using numbers.
|
|
Now we need to tell the **pd boop** object which note we want it to play. We do this using numbers.
|
|
|
|
|
|
Type 72 into the **message box** and click anywhere in the white space outside of the box.
|
|
Type "72" into the **message box** and click anywhere in the white space outside of the box.
|
|
|
|
|
|
Now we need to connect the **message box** to the **pd boop** object so that they can talk to each other.
|
|
Now we need to connect the **message box** to the **pd boop** object so that they can talk to each other.
|
|
|
|
|
|
Just like before move your mouse over the outlet of the **message box**. When your mouse turns into an arrow click and drag to the inlet of **pd boop**.
|
|
Just like before move your mouse over the outlet of the **message box**. When your mouse turns into an **arrow** click and drag to the inlet of **pd boop**.
|
|
When your mouse turns into and arrow again, release it to connect the two objects.
|
|
When your mouse turns into and **arrow** again, release it to connect the two objects.
|
|
|
|
|
|
We're almost ready to make some boops!
|
|
We're almost ready to make some boops!
|
|
|
|
======
|
|
|
|
The last thing we need is a way to tell the **pd boop** when to make it boop. Right now it doesn't know when to make a note or which note to make. As soon as it knows which note to play, it will make a sound.
|
|
|
|
|
|
The last thing we need is a way to tell the **pd boop** when to make it boop. Right now it doesn't know when to make a note or which note to make. As soon as it knows which note to play, it will make a sound.
|
|
We will use the **message** to tell **pd boop** which note we want to hear. The **message box** won't send it until we tell it to though.
|
|
|
|
It's listening for a **bang**. As soon as it hears one it will send its message, in this case "72", to **pd boop** and we should hear a sound.
|
|
We will use the message to tell **pd boop** which note we want to hear. The **message box** won't send it until we tell it to though.
|
|
|
|
It's listening for a bang. As soon as it hears one it will send its message, in this case 72, to boop and we should hear a sound.
|
|
|
|
|
|
|
|
Let's make a bang object. You can either press **control-shift-B** on the keyboard or use the "put" menu and choose "Bang."
|
|
Let's make a bang object. You can either press **control-shift-B** on the keyboard or use the "put" menu and choose "Bang."
|
|
|
|
|
... | | ... | |