https://ccrma.stanford.edu/mediawiki/api.php?action=feedcontributions&user=Eberdahl&feedformat=atomCCRMA Wiki - User contributions [en]2024-03-28T17:21:16ZUser contributionsMediaWiki 1.24.1https://ccrma.stanford.edu/mediawiki/index.php?title=Introduction_to_Electronics&diff=23904Introduction to Electronics2022-07-25T18:13:36Z<p>Eberdahl: </p>
<hr />
<div>Created by: Carr Wilkerson, Edgar Berdahl, Wendy Ju, Michael Gurevich, and others<br />
<br />
==Electrical Circuit==<br />
An interconnection of electrical elements that contains a closed loop is an '''[http://en.wikipedia.org/wiki/Electrical_network electrical circuit]'''. The closed loop allows electrons to flow through the electrical elements. We now explain how to analyze simple electrical circuits in terms of voltage, current, and resistance.<br />
<br />
==Current, Voltage, Resistance==<br />
<br />
'''[http://en.wikipedia.org/wiki/Electric_current Current]''' describes the quantity of electrons passing through a point in a circuit at a given instant in time.<br />
Current is measured in '''[http://en.wikipedia.org/wiki/Ampere Amperes]''' ('''Amps''', '''A''').<br />
<br />
'''[http://en.wikipedia.org/wiki/Voltage Voltage]''' describes the potential difference in electrical charge between two points in an electrical circuit. '''Voltage''' (also known as '''electric potential''') is measured in '''[http://en.wikipedia.org/wiki/Volt Volts]''' ('''V''').<br />
<br />
'''[http://en.wikipedia.org/wiki/Electrical_resistance Resistance]''' (a special case of '''[http://en.wikipedia.org/wiki/Electrical_impedance Impedance]''') describes the capacity of a circuit element to resist or impede the flow of electrons in the circuit. '''Resistance''' in measured in '''[http://en.wikipedia.org/wiki/Ohm_%28unit%29 Ohms]'''.<br />
<br />
A common analogy may be used to relate these three quantities to water flow in pipes in place of electrons in wires. Imagine you have two water tanks connected from the bottoms by a pipe (such as the drain of a double sink). If one tank is full of water and the other one nearly empty we know intuitively that the water in the full tank will flow through the pipe into the nearly empty tank.<br />
<br />
<center><br />
[[Image:slide1.jpg]]<br />
</center><br />
<br />
<br />
Current '''I<sub>0</sub>''' is analogous to the quantity of water flowing through a pipe at a given moment in time.<br />
<br />
==Ohm's Law==<br />
<br />
'''V = IR''' Ohm's Law states that '''Voltage''' = '''Current''' x '''Resistance''' or '''V = IR'''. The equation can be rearranged to find any one of the three quantities given the other two.<br />
<br />
Consider the following circuit:<br />
<br />
<center><br />
[[Image:Ohms_law_1.png]]<br />
</center><br />
<br />
The voltage in the circuit is given (10V from the battery) and the resistance is also given as the 100 ohm resistor is the only resistive element in the circuit. So we can compute the current in the circuit as: I = V/R = 10V / 100 Ohms = 0.1 Amps or 100 milli-Amps.<br />
<br />
<br />
==Button LED Example==<br />
<br />
The following circuit diagram shows the most basic [http://en.wikipedia.org/wiki/LED LED (Light Emitting Diode)] circuit:<br />
<br />
<center><br />
[[Image:led.png]]<br />
</center><br />
<br />
For a red LED, Vled is often about 1.7V. Diodes are from the family of semiconductors. Unlike a resistors, diodes always have a fixed voltage drop in a circuit. A diode passes current in only one direction, a very useful property for protecting circuits from incorrect current flow. The arrow in the diode symbol points in the direction that current flows, so normally you would place a diode in your circuit with the arrow pointing to a ground. Kirchoff's Current Law implies that the current flowing throught the resistor is the same as the current flowing through the LED. Therefore, once we know the current passing through the resistor in this circuit, we also know the current passing through the LED. The brightness of an LED is proportional to the amount of current passing through it. How would you make the LED shine brighter? less brightly?<br />
<br />
Now consider the following circuit which adds a button: <br />
<br />
<center><br />
[[Image:button_led.png]]<br />
</center><br />
<br />
The button simply interrupts or re-connects the flow of current through the circuit lighting or extinguishing the LED in the process.<br />
<br />
==Calculating Power (P = VI)==<br />
<br />
Calculating the power dissipated by a circuit element is simple. Often much of this power is converted into heat, so by thinking about the power dissipated by circuit elements, you can make sure that they don't burn up or catch on fire!<br />
<br />
Power (in Watts) = Voltage (in Volts) x Current (in Amps) P = V I Combining with Ohm's law we get two other useful forms: P = V*V / R and P = I*I*R Power is a measurement of the amount of work that can be done with the circuit, such as turning a motor or lighting a light bulb. Consider a 100Watt light bulb in your home. We know the voltage applied to the bulb is normally 110V or 220V so we can calculate the current consumed as follows: I = P/V = 100W / 110V = 0.91 Amps or I = P/V = 100W / 220V = 0.45 Amps So you can see why using a 60W light buld is more economical. Your electric company normally charges you for your usage in Killo-Watt Hours (kWh). One kWh is the amount of energy necessary to do 1000 Watts of energy for one hour - in other words to keep 10 100W light bulbs shining for one hour.<br />
<br />
==Kirchhoff's Voltage Law==<br />
<br />
In order to be able to analyze more complicated circuits, we need to introduce two more circuit concepts. The first is known as [http://en.wikipedia.org/wiki/Kirchhoff's_circuit_laws Kirchhoff's Voltage Law]. It is usually stated as, "The sum of the voltages around any closed circuit must be zero." An important consequence is that ''the voltage across each branch in a circuit is the same.'' This explains why the voltages across the battery and across the resistor in the above circuit are the same.<br />
<br />
Here are important consequences of Kirchhoff's Voltage Law. See if you can derive them: <br />
# '''Voltages sum in series.'''<br />
# '''Electrical components placed in series all share the same current.'''<br />
<br />
==Kirchhoff's Current Law==<br />
<br />
Electrical components are connected together by ''nodes'' in the total [http://en.wikipedia.org/wiki/Electrical_network network] of elements. [http://en.wikipedia.org/wiki/Kirchhoff's_circuit_laws Kirchhoff's Current Law] states that the sum of the currents entering a node must equal the sum of the currents leaving a node. This law is a consequence of the conservation of charge (electrons) in electrical networks.<br />
<br />
<br />
Here are some important consequences of Kirchhoff's Current Law. See if you can derive them.:<br />
# '''Currents sum in parallel.'''<br />
# '''The ends of electrical components connected by a wire all share the same voltage.'''<br />
<br />
==Series Circuits==<br />
<br />
Consider this slightly more complicated circuit: <br />
<br />
<center><br />
[[Image:series_1.png]]<br />
</center><br />
<br />
When two resistors are connected in series, their combined resistance is equivalent to the sum of their individual resistances. <br />
<br />
<center><br />
[[Image:series_2.png]]<br />
</center><br />
<br />
We can use Ohm's law to calculate the voltage drop around each of the individual resistors after calculating the voltage drop accross the total resistance.<br />
<br />
We can further rationalize the series circuit by going back to our analogy:<br />
<center><br />
[[Image:Slide2.jpg]]<br />
</center><br />
<br />
==Parallel Circuits==<br />
<br />
<center><br />
[[Image:parallel_1.png]]<br />
</center><br />
<br />
When two resistors are placed in parallel in a circuit, their combined resistance is equal to the product of the individual resistances divided by their sum. (Smaller total voltage for parallel in contrast to larger for series).<br />
<br />
<center><br />
[[Image:parallel_2.png]]<br />
</center><br />
<br />
One again we use ohm's law to calculate the voltage across the resistors (same for both) and the current through each resistor.<br />
<br />
<br />
Here we use the water analogy again:<br />
<center><br />
[[Image:Slide3.jpg]]<br />
</center><br />
<br />
==Voltage Divider==<br />
<br />
<center><br />
[[Image:Slide4.jpg]]<br />
</center><br />
<br />
<br />
==Pull-up and Pull-down resistors==<br />
<br />
Often we would like to set a "default voltage" for a circuit. This is done using pull-up and pull down resistors.<br />
<br />
Here is an example of a pull-down resistor in a circuit. When the switch is closed, Vout=Vin, but if the switch is open, Vout=Ground.<br />
<br />
<center><br />
[[Image:Pull-down_circuit.gif]]<br />
</center><br />
Here is an example of a pull-up resistor in a circuit. When the switch is not on any lead, Vout is high.<br />
<center><br />
[[Image:Pull-up_circuit.gif]]<br />
</center><br />
<br />
In general, the R values for pull-up and pull-down resistors should be very large, much larger than those in the rest of the circuit, so that the effect of the pull-up or pull-down resistor on the Vout voltage is small if there is any else "down the line" of the circuit.<br />
<br />
<center><br />
[[PID 2007]]<br />
</center><br />
<br />
[[Category:PID]][[Category:PID_2007]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Introduction_to_Electronics&diff=23903Introduction to Electronics2022-07-25T17:59:38Z<p>Eberdahl: /* Calculating Power (P = VI) */</p>
<hr />
<div>Created by: Edgar Berdahl, Wendy Ju, Michael Gurevich, and others<br />
<br />
==Electrical Circuit==<br />
An interconnection of electrical elements that contains a closed loop is an '''[http://en.wikipedia.org/wiki/Electrical_network electrical circuit]'''. The closed loop allows electrons to flow through the electrical elements. We now explain how to analyze simple electrical circuits in terms of voltage, current, and resistance.<br />
<br />
==Current, Voltage, Resistance==<br />
<br />
'''[http://en.wikipedia.org/wiki/Electric_current Current]''' describes the quantity of electrons passing through a point in a circuit at a given instant in time.<br />
Current is measured in '''[http://en.wikipedia.org/wiki/Ampere Amperes]''' ('''Amps''', '''A''').<br />
<br />
'''[http://en.wikipedia.org/wiki/Voltage Voltage]''' describes the potential difference in electrical charge between two points in an electrical circuit. '''Voltage''' (also known as '''electric potential''') is measured in '''[http://en.wikipedia.org/wiki/Volt Volts]''' ('''V''').<br />
<br />
'''[http://en.wikipedia.org/wiki/Electrical_resistance Resistance]''' (a special case of '''[http://en.wikipedia.org/wiki/Electrical_impedance Impedance]''') describes the capacity of a circuit element to resist or impede the flow of electrons in the circuit. '''Resistance''' in measured in '''[http://en.wikipedia.org/wiki/Ohm_%28unit%29 Ohms]'''.<br />
<br />
A common analogy may be used to relate these three quantities to water flow in pipes in place of electrons in wires. Imagine you have two water tanks connected from the bottoms by a pipe (such as the drain of a double sink). If one tank is full of water and the other one nearly empty we know intuitively that the water in the full tank will flow through the pipe into the nearly empty tank.<br />
<br />
<center><br />
[[Image:slide1.jpg]]<br />
</center><br />
<br />
<br />
Current '''I<sub>0</sub>''' is analogous to the quantity of water flowing through a pipe at a given moment in time.<br />
<br />
==Ohm's Law==<br />
<br />
'''V = IR''' Ohm's Law states that '''Voltage''' = '''Current''' x '''Resistance''' or '''V = IR'''. The equation can be rearranged to find any one of the three quantities given the other two.<br />
<br />
Consider the following circuit:<br />
<br />
<center><br />
[[Image:Ohms_law_1.png]]<br />
</center><br />
<br />
The voltage in the circuit is given (10V from the battery) and the resistance is also given as the 100 ohm resistor is the only resistive element in the circuit. So we can compute the current in the circuit as: I = V/R = 10V / 100 Ohms = 0.1 Amps or 100 milli-Amps.<br />
<br />
<br />
==Button LED Example==<br />
<br />
The following circuit diagram shows the most basic [http://en.wikipedia.org/wiki/LED LED (Light Emitting Diode)] circuit:<br />
<br />
<center><br />
[[Image:led.png]]<br />
</center><br />
<br />
For a red LED, Vled is often about 1.7V. Diodes are from the family of semiconductors. Unlike a resistors, diodes always have a fixed voltage drop in a circuit. A diode passes current in only one direction, a very useful property for protecting circuits from incorrect current flow. The arrow in the diode symbol points in the direction that current flows, so normally you would place a diode in your circuit with the arrow pointing to a ground. Kirchoff's Current Law implies that the current flowing throught the resistor is the same as the current flowing through the LED. Therefore, once we know the current passing through the resistor in this circuit, we also know the current passing through the LED. The brightness of an LED is proportional to the amount of current passing through it. How would you make the LED shine brighter? less brightly?<br />
<br />
Now consider the following circuit which adds a button: <br />
<br />
<center><br />
[[Image:button_led.png]]<br />
</center><br />
<br />
The button simply interrupts or re-connects the flow of current through the circuit lighting or extinguishing the LED in the process.<br />
<br />
==Calculating Power (P = VI)==<br />
<br />
Calculating the power dissipated by a circuit element is simple. Often much of this power is converted into heat, so by thinking about the power dissipated by circuit elements, you can make sure that they don't burn up or catch on fire!<br />
<br />
Power (in Watts) = Voltage (in Volts) x Current (in Amps) P = V I Combining with Ohm's law we get two other useful forms: P = V*V / R and P = I*I*R Power is a measurement of the amount of work that can be done with the circuit, such as turning a motor or lighting a light bulb. Consider a 100Watt light bulb in your home. We know the voltage applied to the bulb is normally 110V or 220V so we can calculate the current consumed as follows: I = P/V = 100W / 110V = 0.91 Amps or I = P/V = 100W / 220V = 0.45 Amps So you can see why using a 60W light buld is more economical. Your electric company normally charges you for your usage in Killo-Watt Hours (kWh). One kWh is the amount of energy necessary to do 1000 Watts of energy for one hour - in other words to keep 10 100W light bulbs shining for one hour.<br />
<br />
==Kirchhoff's Voltage Law==<br />
<br />
In order to be able to analyze more complicated circuits, we need to introduce two more circuit concepts. The first is known as [http://en.wikipedia.org/wiki/Kirchhoff's_circuit_laws Kirchhoff's Voltage Law]. It is usually stated as, "The sum of the voltages around any closed circuit must be zero." An important consequence is that ''the voltage across each branch in a circuit is the same.'' This explains why the voltages across the battery and across the resistor in the above circuit are the same.<br />
<br />
Here are important consequences of Kirchhoff's Voltage Law. See if you can derive them: <br />
# '''Voltages sum in series.'''<br />
# '''Electrical components placed in series all share the same current.'''<br />
<br />
==Kirchhoff's Current Law==<br />
<br />
Electrical components are connected together by ''nodes'' in the total [http://en.wikipedia.org/wiki/Electrical_network network] of elements. [http://en.wikipedia.org/wiki/Kirchhoff's_circuit_laws Kirchhoff's Current Law] states that the sum of the currents entering a node must equal the sum of the currents leaving a node. This law is a consequence of the conservation of charge (electrons) in electrical networks.<br />
<br />
<br />
Here are some important consequences of Kirchhoff's Current Law. See if you can derive them.:<br />
# '''Currents sum in parallel.'''<br />
# '''The ends of electrical components connected by a wire all share the same voltage.'''<br />
<br />
==Series Circuits==<br />
<br />
Consider this slightly more complicated circuit: <br />
<br />
<center><br />
[[Image:series_1.png]]<br />
</center><br />
<br />
When two resistors are connected in series, their combined resistance is equivalent to the sum of their individual resistances. <br />
<br />
<center><br />
[[Image:series_2.png]]<br />
</center><br />
<br />
We can use Ohm's law to calculate the voltage drop around each of the individual resistors after calculating the voltage drop accross the total resistance.<br />
<br />
We can further rationalize the series circuit by going back to our analogy:<br />
<center><br />
[[Image:Slide2.jpg]]<br />
</center><br />
<br />
==Parallel Circuits==<br />
<br />
<center><br />
[[Image:parallel_1.png]]<br />
</center><br />
<br />
When two resistors are placed in parallel in a circuit, their combined resistance is equal to the product of the individual resistances divided by their sum. (Smaller total voltage for parallel in contrast to larger for series).<br />
<br />
<center><br />
[[Image:parallel_2.png]]<br />
</center><br />
<br />
One again we use ohm's law to calculate the voltage across the resistors (same for both) and the current through each resistor.<br />
<br />
<br />
Here we use the water analogy again:<br />
<center><br />
[[Image:Slide3.jpg]]<br />
</center><br />
<br />
==Voltage Divider==<br />
<br />
<center><br />
[[Image:Slide4.jpg]]<br />
</center><br />
<br />
<br />
==Pull-up and Pull-down resistors==<br />
<br />
Often we would like to set a "default voltage" for a circuit. This is done using pull-up and pull down resistors.<br />
<br />
Here is an example of a pull-down resistor in a circuit. When the switch is closed, Vout=Vin, but if the switch is open, Vout=Ground.<br />
<br />
<center><br />
[[Image:Pull-down_circuit.gif]]<br />
</center><br />
Here is an example of a pull-up resistor in a circuit. When the switch is not on any lead, Vout is high.<br />
<center><br />
[[Image:Pull-up_circuit.gif]]<br />
</center><br />
<br />
In general, the R values for pull-up and pull-down resistors should be very large, much larger than those in the rest of the circuit, so that the effect of the pull-up or pull-down resistor on the Vout voltage is small if there is any else "down the line" of the circuit.<br />
<br />
<center><br />
[[PID 2007]]<br />
</center><br />
<br />
[[Category:PID]][[Category:PID_2007]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Lab_2_2022&diff=236527745 Lab 2 20222022-02-15T01:58:17Z<p>Eberdahl: Created page with " == Intro == Follow the same directions as in [https://ccrma.stanford.edu/wiki/7745_Lab_1_2022 Lab 1] in order to get connected to your kit. == Lab 2 == * Connect the USB..."</p>
<hr />
<div><br />
<br />
<br />
== Intro ==<br />
Follow the same directions as in [https://ccrma.stanford.edu/wiki/7745_Lab_1_2022 Lab 1] in order to get connected to your kit.<br />
<br />
<br />
<br />
== Lab 2 ==<br />
* Connect the USB audio dongle to your USB hub<br />
<br />
* Plug the piezo contact microphone to the microphone input on the audio dongle<br />
<br />
* (Make sure that you have ''pd'' started and that you already ran ''stop-default'' to kill any previously running audio processes.)<br />
<br />
* Go through the patches located in ''~/pd/labs-2022-Music-7745/2.audiofx-lab'' and find something that inspires you.<br />
<br />
* Prototype something together and show Dr. Berdahl and your classmates.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Lab_1_2022&diff=236517745 Lab 1 20222022-02-15T01:39:21Z<p>Eberdahl: /* The Satellite CCRMA Setup (Before Adding Arduino) */</p>
<hr />
<div><font size=5>Lab 1: Making Music with Pd in Satellite CCRMA</font><br><br />
<br />
'''The main point of this lab is just for you to learn how to connect to your kit and to complete the exercises in the patch default-patch.pd and submit it.''' However, the descriptions are somewhat long to try to make it easy for you to get started and in case you want to learn more about pd or check out other resources.<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], and a computer to program it.<br />
<br />
<br />
<br />
== The Satellite CCRMA Setup (Before Adding Arduino) ==<br />
'''This is the earlier version of the Satellite CCRMA kits''':<br />
- Raspberry Pi Model B (with 512MB of RAM)<br />
- One memory card (it may already be inserted into your Raspberry Pi)<br />
- One Ethernet cable for communication with your laptop<br />
- One USB micro cable<br />
- One power supply for the USB micro cable<br />
<br />
If you are missing something, please go get it before assembling your kit. Make sure you plug the SD memory card is seated all of the way in its slot.<br />
<br />
== Powering Up For The First Time ==<br />
Plug the Ethernet port of the Raspberry Pi into your laptop. Then use the USB micro cable to power up the Raspberry Pi. (If you have a USB power supply, you could use it to power the Raspberry Pi, or if not you can try using your laptop's USB connector to power the Raspberry Pi.) You should see some lights turn on, flickering every now and then. This means that the Raspberry Pi is booting up.<br />
<br />
<br />
<br />
<br />
== Connect To Satellite CCRMA ==<br />
In order to see what your Satellite CCRMA kit is doing and program it, you need to log in to it. To do so, follow [https://ccrma.stanford.edu/wiki/CCRMA_Satellite_How_To_Connect these instructions].<br />
<br />
After you login, you will see the prompt ''ccrma@satellite:~$'' This means that you are logged into a computer named "satellite" as the user "ccrma", and you are currently in the directory ~, which is the shortcut for your home directory.<br />
<br />
<br />
<br />
<br />
== Avoid Powering Down the Board Without Halting it First! ==<br />
Would you take the battery out of your laptop and unplug its power adaptor without shutting down? ''Nope!'' The same goes for Satellite CCRMA, at least when you can avoid it, because it is a small computer running linux.<br />
<br />
Now we will test the halt procedure. Run the halt command as superuser by typing ''sudo halt'' at the Satellite CCRMA prompt. Then you will again have to type in the password ''temppwd'' in order to have the privilege to run this command. Wait until about 15 seconds after you see the message "Connection to 192.168.105.106 closed by remote host," and then disconnect the power from the Raspberry Pi via the micro USB connector.<br />
<br />
<br />
<br />
<br />
== Getting Comfortable With Satellite CCRMA ==<br />
* Turn on Satellite CCRMA again using the same procedure as before. After about 30 seconds, the board should be booted up again, so you can log in again by running the command <br />
<br />
''ssh -XY ccrma@192.168.105.106''<br />
<br />
* Run the command ''pwd'' to find out the current directory. You will find that you are in the ''ccrma'' subdirectory of the directory ''/home''.<br />
<br />
* Type the ''ls'' command to see what is in the current directory. The blue items are subdirectories of the current directory. You can change directories using the ''cd'' command. For instance, to change into the ''pd'' subdirectory, you should run the command<br />
<br />
''cd pd''<br />
<br />
* Now again type ''pwd'' to make sure that you understand where you are! Run the ''ls'' command to see what files are in here.<br />
<br />
== Starting Audio And Pd ==<br />
<br />
* A default pd patch starts running automatically when your kit finishes booting up. To stop the default pd patch from running, execute the command<br />
<br />
''stop-default''<br />
<br />
'''Remember that each time you boot up your kit and want to edit your patch, you should stop the default patch from running by using the command ''stop-default'' '''<br />
<br />
* Start pd now with the following command (the "space" & just means that the pd process shouldn't take over the terminal -- that way you can keep using the terminal independently of whatever pd is doing)<br />
<br />
''pd &''<br />
<br />
This time the graphical user interface (GUI) for pd should also start.<br />
<br />
* To start audio, click on the ''Compute audio'' checkbox.<br />
<br />
* Now to test audio, go to the media pull-down menu and choose ''Test Audio and MIDI.'' If you still do not hear any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
* Once you have audio working, close the window test audio and MIDI.<br />
<br />
* Choose ''Open'' from the ''File'' menu and select the patch ''default-patch.pd'' within your ''~/on-startup'' directory. <br />
<br />
* Be mindful that as you edit this patch, you are changing what your kit will do when it boots up.<br />
<br />
* For lab 1, you should collect some of your own WAV files, move them into the ''~/on-startup'' directory (see ''Appendix B'' below for how to do this) and then edit the patch so that it is playing the new wave files. '''Keep in mind that pd can only open WAV files.''' If your audio files are in another format, you will first need to convert them to WAV files and then transfer them to your kit.<br />
<br />
* Demonstrate to Dr. Berdahl that you have gotten it working<br />
<br />
<br />
<br />
== Help With Learning Pd ==<br />
* Look at the pd lecture patches stored in ''~/pd/lectures'' (For example, see the patch ''4_algorithmic_music.pd''. Make sure that audio is on and increase the volume from zero in the patch.)<br />
<br />
* Right-click or option-click on any object to get a contextual menu including "help," which opens that object's help patch. (If you are using a Mac and don't have a right mouse button, then go to the ''X11'' pull-down menu, select ''Preferences'', and make sure that ''Emulate three button mouse'' is checked in the ''Input'' pane. Now, you should be able to right-click by clicking while holding down the Command key.)<br />
<br />
* Right-click on a blank portion of a Pd patch. Now when you select "help" you get a list of Pd's built-in objects, arranged by category.<br />
<br />
* In the upper right hand corner of each Pd window is a "help" menu. This accesses the Pd tutorials as well as some online reference documentation.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Appendix A: Troubleshooting ==<br />
Tips:<br />
* If you are having problems with audio, make sure that ''compute audio'' is set to on.<br />
* If the audio is stuttering, then your processor might not be powerful enough to run all of the patches that are open. Remember, Satellite CCRMA is not as powerful as a laptop. Therefore, be careful about building complicated patches. You can monitor how much CPU you are using by running the ''top'' command in the terminal.<br />
* Type <tt>dmesg</tt> to see if there are any relevant messages that look like error messages.<br />
<br />
<br />
<br />
<br />
<br />
== Appendix B: Transferring Files To and From Your Kit ==<br />
* Download [http://cyberduck.ch/ CyberDuck] to your laptop to make it easy to transfer files back and forth from your kit.<br />
* Start CyberDuck on your laptop, and then create the following new bookmark:<br />
<br />
[[Image:Bookmark.png]]<br />
<br />
* Once you have finished entering the text, close the bookmark window.<br />
* Then you can use CyberDuck to connect to your Satellite CCRMA kit by double clicking on the ''SFTP to Satellite CCRMA'' bookmark.<br />
* After you enter the password ''temppwd'', CyberDuck will connect and open window to open up showing the files in the /home/ccrma home directory on your kit.<br />
* You can drag and drop files from here to move them back and forth.<br />
* If you move WAV files to your kit, please remember that the default sampling rate for pd is 22kHz, so you may want to resample them first. For example, [http://audacity.sourceforge.net/ Audacity] can be used to resample the audio files.<br />
<br />
<br />
<br />
<br />
<br />
== Halt Your Board Properly When Finished! ==<br />
* '''Remember to shut down your board using'''<br />
''sudo halt''<br />
<br />
'''when you are done before powering it off!'''<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== More Pd resources ==<br />
* Here are some lists of pd objects that you can use to discover new object names: [http://protman.com/content/list-puredata-objects-and-extended-objects http://protman.com/content/list-puredata-objects-and-extended-objects] [http://www.umatic.nl/workshop/objects.txt http://www.umatic.nl/workshop/objects.txt]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Most instructions by Edgar Berdahl, and lab patches for musical interaction description by Matt Wright and possibly others. <br />
<br />
<center>[[PID 2013]]</center><br />
[[Category:PID_2013]][[Category:PID]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Lab_1_2022&diff=236507745 Lab 1 20222022-02-15T01:38:32Z<p>Eberdahl: </p>
<hr />
<div><font size=5>Lab 1: Making Music with Pd in Satellite CCRMA</font><br><br />
<br />
'''The main point of this lab is just for you to learn how to connect to your kit and to complete the exercises in the patch default-patch.pd and submit it.''' However, the descriptions are somewhat long to try to make it easy for you to get started and in case you want to learn more about pd or check out other resources.<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], and a computer to program it.<br />
<br />
<br />
<br />
== The Satellite CCRMA Setup (Before Adding Arduino) ==<br />
Included in your kit so far you should have<br />
- Raspberry Pi Model B (with 512MB of RAM)<br />
- One memory card (it may already be inserted into your Raspberry Pi)<br />
- One Ethernet cable for communication with your laptop<br />
- One USB micro cable<br />
- One power supply for the USB micro cable<br />
<br />
If you are missing something, please go get it before assembling your kit. Make sure you plug the SD memory card is seated all of the way in its slot.<br />
<br />
<br />
<br />
<br />
<br />
== Powering Up For The First Time ==<br />
Plug the Ethernet port of the Raspberry Pi into your laptop. Then use the USB micro cable to power up the Raspberry Pi. (If you have a USB power supply, you could use it to power the Raspberry Pi, or if not you can try using your laptop's USB connector to power the Raspberry Pi.) You should see some lights turn on, flickering every now and then. This means that the Raspberry Pi is booting up.<br />
<br />
<br />
<br />
<br />
== Connect To Satellite CCRMA ==<br />
In order to see what your Satellite CCRMA kit is doing and program it, you need to log in to it. To do so, follow [https://ccrma.stanford.edu/wiki/CCRMA_Satellite_How_To_Connect these instructions].<br />
<br />
After you login, you will see the prompt ''ccrma@satellite:~$'' This means that you are logged into a computer named "satellite" as the user "ccrma", and you are currently in the directory ~, which is the shortcut for your home directory.<br />
<br />
<br />
<br />
<br />
== Avoid Powering Down the Board Without Halting it First! ==<br />
Would you take the battery out of your laptop and unplug its power adaptor without shutting down? ''Nope!'' The same goes for Satellite CCRMA, at least when you can avoid it, because it is a small computer running linux.<br />
<br />
Now we will test the halt procedure. Run the halt command as superuser by typing ''sudo halt'' at the Satellite CCRMA prompt. Then you will again have to type in the password ''temppwd'' in order to have the privilege to run this command. Wait until about 15 seconds after you see the message "Connection to 192.168.105.106 closed by remote host," and then disconnect the power from the Raspberry Pi via the micro USB connector.<br />
<br />
<br />
<br />
<br />
== Getting Comfortable With Satellite CCRMA ==<br />
* Turn on Satellite CCRMA again using the same procedure as before. After about 30 seconds, the board should be booted up again, so you can log in again by running the command <br />
<br />
''ssh -XY ccrma@192.168.105.106''<br />
<br />
* Run the command ''pwd'' to find out the current directory. You will find that you are in the ''ccrma'' subdirectory of the directory ''/home''.<br />
<br />
* Type the ''ls'' command to see what is in the current directory. The blue items are subdirectories of the current directory. You can change directories using the ''cd'' command. For instance, to change into the ''pd'' subdirectory, you should run the command<br />
<br />
''cd pd''<br />
<br />
* Now again type ''pwd'' to make sure that you understand where you are! Run the ''ls'' command to see what files are in here.<br />
<br />
== Starting Audio And Pd ==<br />
<br />
* A default pd patch starts running automatically when your kit finishes booting up. To stop the default pd patch from running, execute the command<br />
<br />
''stop-default''<br />
<br />
'''Remember that each time you boot up your kit and want to edit your patch, you should stop the default patch from running by using the command ''stop-default'' '''<br />
<br />
* Start pd now with the following command (the "space" & just means that the pd process shouldn't take over the terminal -- that way you can keep using the terminal independently of whatever pd is doing)<br />
<br />
''pd &''<br />
<br />
This time the graphical user interface (GUI) for pd should also start.<br />
<br />
* To start audio, click on the ''Compute audio'' checkbox.<br />
<br />
* Now to test audio, go to the media pull-down menu and choose ''Test Audio and MIDI.'' If you still do not hear any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
* Once you have audio working, close the window test audio and MIDI.<br />
<br />
* Choose ''Open'' from the ''File'' menu and select the patch ''default-patch.pd'' within your ''~/on-startup'' directory. <br />
<br />
* Be mindful that as you edit this patch, you are changing what your kit will do when it boots up.<br />
<br />
* For lab 1, you should collect some of your own WAV files, move them into the ''~/on-startup'' directory (see ''Appendix B'' below for how to do this) and then edit the patch so that it is playing the new wave files. '''Keep in mind that pd can only open WAV files.''' If your audio files are in another format, you will first need to convert them to WAV files and then transfer them to your kit.<br />
<br />
* Demonstrate to Dr. Berdahl that you have gotten it working<br />
<br />
<br />
<br />
== Help With Learning Pd ==<br />
* Look at the pd lecture patches stored in ''~/pd/lectures'' (For example, see the patch ''4_algorithmic_music.pd''. Make sure that audio is on and increase the volume from zero in the patch.)<br />
<br />
* Right-click or option-click on any object to get a contextual menu including "help," which opens that object's help patch. (If you are using a Mac and don't have a right mouse button, then go to the ''X11'' pull-down menu, select ''Preferences'', and make sure that ''Emulate three button mouse'' is checked in the ''Input'' pane. Now, you should be able to right-click by clicking while holding down the Command key.)<br />
<br />
* Right-click on a blank portion of a Pd patch. Now when you select "help" you get a list of Pd's built-in objects, arranged by category.<br />
<br />
* In the upper right hand corner of each Pd window is a "help" menu. This accesses the Pd tutorials as well as some online reference documentation.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Appendix A: Troubleshooting ==<br />
Tips:<br />
* If you are having problems with audio, make sure that ''compute audio'' is set to on.<br />
* If the audio is stuttering, then your processor might not be powerful enough to run all of the patches that are open. Remember, Satellite CCRMA is not as powerful as a laptop. Therefore, be careful about building complicated patches. You can monitor how much CPU you are using by running the ''top'' command in the terminal.<br />
* Type <tt>dmesg</tt> to see if there are any relevant messages that look like error messages.<br />
<br />
<br />
<br />
<br />
<br />
== Appendix B: Transferring Files To and From Your Kit ==<br />
* Download [http://cyberduck.ch/ CyberDuck] to your laptop to make it easy to transfer files back and forth from your kit.<br />
* Start CyberDuck on your laptop, and then create the following new bookmark:<br />
<br />
[[Image:Bookmark.png]]<br />
<br />
* Once you have finished entering the text, close the bookmark window.<br />
* Then you can use CyberDuck to connect to your Satellite CCRMA kit by double clicking on the ''SFTP to Satellite CCRMA'' bookmark.<br />
* After you enter the password ''temppwd'', CyberDuck will connect and open window to open up showing the files in the /home/ccrma home directory on your kit.<br />
* You can drag and drop files from here to move them back and forth.<br />
* If you move WAV files to your kit, please remember that the default sampling rate for pd is 22kHz, so you may want to resample them first. For example, [http://audacity.sourceforge.net/ Audacity] can be used to resample the audio files.<br />
<br />
<br />
<br />
<br />
<br />
== Halt Your Board Properly When Finished! ==<br />
* '''Remember to shut down your board using'''<br />
''sudo halt''<br />
<br />
'''when you are done before powering it off!'''<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== More Pd resources ==<br />
* Here are some lists of pd objects that you can use to discover new object names: [http://protman.com/content/list-puredata-objects-and-extended-objects http://protman.com/content/list-puredata-objects-and-extended-objects] [http://www.umatic.nl/workshop/objects.txt http://www.umatic.nl/workshop/objects.txt]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Most instructions by Edgar Berdahl, and lab patches for musical interaction description by Matt Wright and possibly others. <br />
<br />
<center>[[PID 2013]]</center><br />
[[Category:PID_2013]][[Category:PID]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Lab_1_2022&diff=236497745 Lab 1 20222022-02-15T01:38:14Z<p>Eberdahl: </p>
<hr />
<div><font size=5>Lab 1: Making Music with Pd in Satellite CCRMA</font><br><br />
<br />
'''The main point of this lab is just for you to learn how to connect to your kit and to complete the exercises in the patch lab1.pd and submit it.''' However, the descriptions are somewhat long to try to make it easy for you to get started and in case you want to learn more about pd or check out other resources.<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], and a computer to program it.<br />
<br />
<br />
<br />
== The Satellite CCRMA Setup (Before Adding Arduino) ==<br />
Included in your kit so far you should have<br />
- Raspberry Pi Model B (with 512MB of RAM)<br />
- One memory card (it may already be inserted into your Raspberry Pi)<br />
- One Ethernet cable for communication with your laptop<br />
- One USB micro cable<br />
- One power supply for the USB micro cable<br />
<br />
If you are missing something, please go get it before assembling your kit. Make sure you plug the SD memory card is seated all of the way in its slot.<br />
<br />
<br />
<br />
<br />
<br />
== Powering Up For The First Time ==<br />
Plug the Ethernet port of the Raspberry Pi into your laptop. Then use the USB micro cable to power up the Raspberry Pi. (If you have a USB power supply, you could use it to power the Raspberry Pi, or if not you can try using your laptop's USB connector to power the Raspberry Pi.) You should see some lights turn on, flickering every now and then. This means that the Raspberry Pi is booting up.<br />
<br />
<br />
<br />
<br />
== Connect To Satellite CCRMA ==<br />
In order to see what your Satellite CCRMA kit is doing and program it, you need to log in to it. To do so, follow [https://ccrma.stanford.edu/wiki/CCRMA_Satellite_How_To_Connect these instructions].<br />
<br />
After you login, you will see the prompt ''ccrma@satellite:~$'' This means that you are logged into a computer named "satellite" as the user "ccrma", and you are currently in the directory ~, which is the shortcut for your home directory.<br />
<br />
<br />
<br />
<br />
== Avoid Powering Down the Board Without Halting it First! ==<br />
Would you take the battery out of your laptop and unplug its power adaptor without shutting down? ''Nope!'' The same goes for Satellite CCRMA, at least when you can avoid it, because it is a small computer running linux.<br />
<br />
Now we will test the halt procedure. Run the halt command as superuser by typing ''sudo halt'' at the Satellite CCRMA prompt. Then you will again have to type in the password ''temppwd'' in order to have the privilege to run this command. Wait until about 15 seconds after you see the message "Connection to 192.168.105.106 closed by remote host," and then disconnect the power from the Raspberry Pi via the micro USB connector.<br />
<br />
<br />
<br />
<br />
== Getting Comfortable With Satellite CCRMA ==<br />
* Turn on Satellite CCRMA again using the same procedure as before. After about 30 seconds, the board should be booted up again, so you can log in again by running the command <br />
<br />
''ssh -XY ccrma@192.168.105.106''<br />
<br />
* Run the command ''pwd'' to find out the current directory. You will find that you are in the ''ccrma'' subdirectory of the directory ''/home''.<br />
<br />
* Type the ''ls'' command to see what is in the current directory. The blue items are subdirectories of the current directory. You can change directories using the ''cd'' command. For instance, to change into the ''pd'' subdirectory, you should run the command<br />
<br />
''cd pd''<br />
<br />
* Now again type ''pwd'' to make sure that you understand where you are! Run the ''ls'' command to see what files are in here.<br />
<br />
== Starting Audio And Pd ==<br />
<br />
* A default pd patch starts running automatically when your kit finishes booting up. To stop the default pd patch from running, execute the command<br />
<br />
''stop-default''<br />
<br />
'''Remember that each time you boot up your kit and want to edit your patch, you should stop the default patch from running by using the command ''stop-default'' '''<br />
<br />
* Start pd now with the following command (the "space" & just means that the pd process shouldn't take over the terminal -- that way you can keep using the terminal independently of whatever pd is doing)<br />
<br />
''pd &''<br />
<br />
This time the graphical user interface (GUI) for pd should also start.<br />
<br />
* To start audio, click on the ''Compute audio'' checkbox.<br />
<br />
* Now to test audio, go to the media pull-down menu and choose ''Test Audio and MIDI.'' If you still do not hear any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
* Once you have audio working, close the window test audio and MIDI.<br />
<br />
* Choose ''Open'' from the ''File'' menu and select the patch ''default-patch.pd'' within your ''~/on-startup'' directory. <br />
<br />
* Be mindful that as you edit this patch, you are changing what your kit will do when it boots up.<br />
<br />
* For lab 1, you should collect some of your own WAV files, move them into the ''~/on-startup'' directory (see ''Appendix B'' below for how to do this) and then edit the patch so that it is playing the new wave files. '''Keep in mind that pd can only open WAV files.''' If your audio files are in another format, you will first need to convert them to WAV files and then transfer them to your kit.<br />
<br />
* Demonstrate to Dr. Berdahl that you have gotten it working<br />
<br />
<br />
<br />
== Help With Learning Pd ==<br />
* Look at the pd lecture patches stored in ''~/pd/lectures'' (For example, see the patch ''4_algorithmic_music.pd''. Make sure that audio is on and increase the volume from zero in the patch.)<br />
<br />
* Right-click or option-click on any object to get a contextual menu including "help," which opens that object's help patch. (If you are using a Mac and don't have a right mouse button, then go to the ''X11'' pull-down menu, select ''Preferences'', and make sure that ''Emulate three button mouse'' is checked in the ''Input'' pane. Now, you should be able to right-click by clicking while holding down the Command key.)<br />
<br />
* Right-click on a blank portion of a Pd patch. Now when you select "help" you get a list of Pd's built-in objects, arranged by category.<br />
<br />
* In the upper right hand corner of each Pd window is a "help" menu. This accesses the Pd tutorials as well as some online reference documentation.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Appendix A: Troubleshooting ==<br />
Tips:<br />
* If you are having problems with audio, make sure that ''compute audio'' is set to on.<br />
* If the audio is stuttering, then your processor might not be powerful enough to run all of the patches that are open. Remember, Satellite CCRMA is not as powerful as a laptop. Therefore, be careful about building complicated patches. You can monitor how much CPU you are using by running the ''top'' command in the terminal.<br />
* Type <tt>dmesg</tt> to see if there are any relevant messages that look like error messages.<br />
<br />
<br />
<br />
<br />
<br />
== Appendix B: Transferring Files To and From Your Kit ==<br />
* Download [http://cyberduck.ch/ CyberDuck] to your laptop to make it easy to transfer files back and forth from your kit.<br />
* Start CyberDuck on your laptop, and then create the following new bookmark:<br />
<br />
[[Image:Bookmark.png]]<br />
<br />
* Once you have finished entering the text, close the bookmark window.<br />
* Then you can use CyberDuck to connect to your Satellite CCRMA kit by double clicking on the ''SFTP to Satellite CCRMA'' bookmark.<br />
* After you enter the password ''temppwd'', CyberDuck will connect and open window to open up showing the files in the /home/ccrma home directory on your kit.<br />
* You can drag and drop files from here to move them back and forth.<br />
* If you move WAV files to your kit, please remember that the default sampling rate for pd is 22kHz, so you may want to resample them first. For example, [http://audacity.sourceforge.net/ Audacity] can be used to resample the audio files.<br />
<br />
<br />
<br />
<br />
<br />
== Halt Your Board Properly When Finished! ==<br />
* '''Remember to shut down your board using'''<br />
''sudo halt''<br />
<br />
'''when you are done before powering it off!'''<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== More Pd resources ==<br />
* Here are some lists of pd objects that you can use to discover new object names: [http://protman.com/content/list-puredata-objects-and-extended-objects http://protman.com/content/list-puredata-objects-and-extended-objects] [http://www.umatic.nl/workshop/objects.txt http://www.umatic.nl/workshop/objects.txt]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Most instructions by Edgar Berdahl, and lab patches for musical interaction description by Matt Wright and possibly others. <br />
<br />
<center>[[PID 2013]]</center><br />
[[Category:PID_2013]][[Category:PID]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Lab_1_2022&diff=236487745 Lab 1 20222022-02-15T01:35:39Z<p>Eberdahl: </p>
<hr />
<div><font size=5>Lab 1: Making Music with Pd in Satellite CCRMA</font><br><br />
<br />
'''The main point of this lab is just for you to learn how to connect to your kit and to complete the exercises in the patch lab1.pd and submit it.''' However, the descriptions are somewhat long to try to make it easy for you to get started and in case you want to learn more about pd or check out other resources.<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], and a computer to program it.<br />
<br />
<br />
<br />
== The Satellite CCRMA Setup (Before Adding Arduino) ==<br />
Included in your kit so far you should have<br />
- Raspberry Pi Model B (with 512MB of RAM)<br />
- One memory card (it may already be inserted into your Raspberry Pi)<br />
- One Ethernet cable for communication with your laptop<br />
- One USB micro cable<br />
- One power supply for the USB micro cable<br />
<br />
If you are missing something, please go get it before assembling your kit. Make sure you plug the SD memory card is seated all of the way in its slot.<br />
<br />
<br />
<br />
<br />
<br />
== Powering Up For The First Time ==<br />
Plug the Ethernet port of the Raspberry Pi into your laptop. Then use the USB micro cable to power up the Raspberry Pi. (If you have a USB power supply, you could use it to power the Raspberry Pi, or if not you can try using your laptop's USB connector to power the Raspberry Pi.) You should see some lights turn on, flickering every now and then. This means that the Raspberry Pi is booting up.<br />
<br />
<br />
<br />
<br />
== Connect To Satellite CCRMA ==<br />
In order to see what your Satellite CCRMA kit is doing and program it, you need to log in to it. To do so, follow [https://ccrma.stanford.edu/wiki/CCRMA_Satellite_How_To_Connect these instructions].<br />
<br />
After you login, you will see the prompt ''ccrma@satellite:~$'' This means that you are logged into a computer named "satellite" as the user "ccrma", and you are currently in the directory ~, which is the shortcut for your home directory.<br />
<br />
<br />
<br />
<br />
== Avoid Powering Down the Board Without Halting it First! ==<br />
Would you take the battery out of your laptop and unplug its power adaptor without shutting down? ''Nope!'' The same goes for Satellite CCRMA, at least when you can avoid it, because it is a small computer running linux.<br />
<br />
Now we will test the halt procedure. Run the halt command as superuser by typing ''sudo halt'' at the Satellite CCRMA prompt. Then you will again have to type in the password ''temppwd'' in order to have the privilege to run this command. Wait until about 15 seconds after you see the message "Connection to 192.168.105.106 closed by remote host," and then disconnect the power from the Raspberry Pi via the micro USB connector.<br />
<br />
<br />
<br />
<br />
== Getting Comfortable With Satellite CCRMA ==<br />
* Turn on Satellite CCRMA again using the same procedure as before. After about 30 seconds, the board should be booted up again, so you can log in again by running the command <br />
<br />
''ssh -XY ccrma@192.168.105.106''<br />
<br />
* Run the command ''pwd'' to find out the current directory. You will find that you are in the ''ccrma'' subdirectory of the directory ''/home''.<br />
<br />
* Type the ''ls'' command to see what is in the current directory. The blue items are subdirectories of the current directory. You can change directories using the ''cd'' command. For instance, to change into the ''pd'' subdirectory, you should run the command<br />
<br />
''cd pd''<br />
<br />
* Now again type ''pwd'' to make sure that you understand where you are! Run the ''ls'' command to see what files are in here.<br />
<br />
== Starting Audio And Pd ==<br />
<br />
* A default pd patch starts running automatically when your kit finishes booting up. To stop the default pd patch from running, execute the command<br />
<br />
''stop-default''<br />
<br />
'''Remember that each time you boot up your kit and want to edit your patch, you should stop the default patch from running by using the command ''stop-default'' '''<br />
<br />
* Start pd now with the following command (the "space" & just means that the pd process shouldn't take over the terminal -- that way you can keep using the terminal independently of whatever pd is doing)<br />
<br />
''pd &''<br />
<br />
This time the graphical user interface (GUI) for pd should also start.<br />
<br />
* To start audio, click on the ''Compute audio'' checkbox.<br />
<br />
* Now to test audio, go to the media pull-down menu and choose ''Test Audio and MIDI.'' If you still do not hear any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
* Once you have audio working, close the window test audio and MIDI.<br />
<br />
* Choose ''Open'' from the ''File'' menu and select the patch ''default-patch.pd'' within your ''~/on-startup'' directory. <br />
<br />
* Be mindful that as you edit this patch, you are changing what your kit will do when it boots up.<br />
<br />
* For lab 1, you should collect some of your own WAV files, move them into the ''~/on-startup'' directory (see [Appendix B] for how to do this) and then edit the patch so that it is playing the new wave files.<br />
<br />
* Demonstrate to Dr. Berdahl that you have gotten it working<br />
<br />
''~/pd/lectures''<br />
<br />
== Help With Learning Pd ==<br />
* Try out the example patches in ''~/pd/7745/lab1/separate-examples''<br />
<br />
* Look at the tutorial patches in ''~/pd/7745/lab1/pd_lecture_part_1''<br />
<br />
* The patch ''~/pd/examples/just-play-WAV-files/play-WAV-file.pd'' shows the easiest way to play a WAV file. Try it out! <br />
<br />
* Look at the pd lecture patches stored in ''~/pd/pd-lecture'' (For example, see the patch ''4_algorithmic_music.pd''. Make sure that audio is on and increase the volume from zero in the patch.)<br />
<br />
* Right-click or option-click on any object to get a contextual menu including "help," which opens that object's help patch. (If you are using a Mac and don't have a right mouse button, then go to the ''X11'' pull-down menu, select ''Preferences'', and make sure that ''Emulate three button mouse'' is checked in the ''Input'' pane. Now, you should be able to right-click by clicking while holding down the Command key.)<br />
<br />
* Right-click on a blank portion of a Pd patch. Now when you select "help" you get a list of Pd's built-in objects, arranged by category.<br />
<br />
* In the upper right hand corner of each Pd window is a "help" menu. This accesses the Pd tutorials as well as some online reference documentation.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Appendix A: Troubleshooting ==<br />
Tips:<br />
* If you are having problems with audio, make sure that ''compute audio'' is set to on.<br />
* If the audio is stuttering, then your processor might not be powerful enough to run all of the patches that are open. Remember, Satellite CCRMA is not as powerful as a laptop. Therefore, be careful about building complicated patches. You can monitor how much CPU you are using by running the ''top'' command in the terminal.<br />
* Type <tt>dmesg</tt> to see if there are any relevant messages that look like error messages.<br />
<br />
<br />
<br />
<br />
<br />
== Appendix B: Transferring Files To and From Your Kit ==<br />
* Download [http://cyberduck.ch/ CyberDuck] to your laptop to make it easy to transfer files back and forth from your kit.<br />
* Start CyberDuck on your laptop, and then create the following new bookmark:<br />
<br />
[[Image:Bookmark.png]]<br />
<br />
* Once you have finished entering the text, close the bookmark window.<br />
* Then you can use CyberDuck to connect to your Satellite CCRMA kit by double clicking on the ''SFTP to Satellite CCRMA'' bookmark.<br />
* After you enter the password ''temppwd'', CyberDuck will connect and open window to open up showing the files in the /home/ccrma home directory on your kit.<br />
* You can drag and drop files from here to move them back and forth.<br />
* If you move WAV files to your kit, please remember that the default sampling rate for pd is 22kHz, so you may want to resample them first. For example, [http://audacity.sourceforge.net/ Audacity] can be used to resample the audio files.<br />
<br />
<br />
<br />
<br />
<br />
== Halt Your Board Properly When Finished! ==<br />
* '''Remember to shut down your board using'''<br />
''sudo halt''<br />
<br />
'''when you are done before powering it off!'''<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== More Pd resources ==<br />
* Here are some lists of pd objects that you can use to discover new object names: [http://protman.com/content/list-puredata-objects-and-extended-objects http://protman.com/content/list-puredata-objects-and-extended-objects] [http://www.umatic.nl/workshop/objects.txt http://www.umatic.nl/workshop/objects.txt]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Most instructions by Edgar Berdahl, and lab patches for musical interaction description by Matt Wright and possibly others. <br />
<br />
<center>[[PID 2013]]</center><br />
[[Category:PID_2013]][[Category:PID]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Lab_1_2022&diff=236477745 Lab 1 20222022-02-15T01:35:14Z<p>Eberdahl: </p>
<hr />
<div><font size=5>Lab 1: Making Music with Pd in Satellite CCRMA</font><br><br />
<br />
'''The main point of this lab is just for you to learn how to connect to your kit and to complete the exercises in the patch lab1.pd and submit it.''' However, the descriptions are somewhat long to try to make it easy for you to get started and in case you want to learn more about pd or check out other resources.<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], and a computer to program it.<br />
<br />
<br />
<br />
== The Satellite CCRMA Setup (Before Adding Arduino) ==<br />
Included in your kit so far you should have<br />
- Raspberry Pi Model B (with 512MB of RAM)<br />
- One memory card (it may already be inserted into your Raspberry Pi)<br />
- One Ethernet cable for communication with your laptop<br />
- One USB micro cable<br />
- One power supply for the USB micro cable<br />
<br />
If you are missing something, please go get it before assembling your kit. Make sure you plug the SD memory card is seated all of the way in its slot.<br />
<br />
<br />
<br />
<br />
<br />
== Powering Up For The First Time ==<br />
Plug the Ethernet port of the Raspberry Pi into your laptop. Then use the USB micro cable to power up the Raspberry Pi. (If you have a USB power supply, you could use it to power the Raspberry Pi, or if not you can try using your laptop's USB connector to power the Raspberry Pi.) You should see some lights turn on, flickering every now and then. This means that the Raspberry Pi is booting up.<br />
<br />
<br />
<br />
<br />
== Connect To Satellite CCRMA ==<br />
In order to see what your Satellite CCRMA kit is doing and program it, you need to log in to it. To do so, follow [https://ccrma.stanford.edu/wiki/CCRMA_Satellite_How_To_Connect these instructions].<br />
<br />
After you login, you will see the prompt ''ccrma@satellite:~$'' This means that you are logged into a computer named "satellite" as the user "ccrma", and you are currently in the directory ~, which is the shortcut for your home directory.<br />
<br />
<br />
<br />
<br />
== Avoid Powering Down the Board Without Halting it First! ==<br />
Would you take the battery out of your laptop and unplug its power adaptor without shutting down? ''Nope!'' The same goes for Satellite CCRMA, at least when you can avoid it, because it is a small computer running linux.<br />
<br />
Now we will test the halt procedure. Run the halt command as superuser by typing ''sudo halt'' at the Satellite CCRMA prompt. Then you will again have to type in the password ''temppwd'' in order to have the privilege to run this command. Wait until about 15 seconds after you see the message "Connection to 192.168.105.106 closed by remote host," and then disconnect the power from the Raspberry Pi via the micro USB connector.<br />
<br />
<br />
<br />
<br />
== Getting Comfortable With Satellite CCRMA ==<br />
* Turn on Satellite CCRMA again using the same procedure as before. After about 30 seconds, the board should be booted up again, so you can log in again by running the command <br />
<br />
''ssh -XY ccrma@192.168.105.106''<br />
<br />
* Run the command ''pwd'' to find out the current directory. You will find that you are in the ''ccrma'' subdirectory of the directory ''/home''.<br />
<br />
* Type the ''ls'' command to see what is in the current directory. The blue items are subdirectories of the current directory. You can change directories using the ''cd'' command. For instance, to change into the ''pd'' subdirectory, you should run the command<br />
<br />
''cd pd''<br />
<br />
* Now again type ''pwd'' to make sure that you understand where you are! Run the ''ls'' command to see what files are in here.<br />
<br />
== Starting Audio And Pd ==<br />
<br />
* A default pd patch starts running automatically when your kit finishes booting up. To stop the default pd patch from running, execute the command<br />
<br />
''stop-default''<br />
<br />
'''Remember that each time you boot up your kit and want to edit your patch, you should stop the default patch from running by using the command ''stop-default'' '''<br />
<br />
* Start pd now with the following command (the "space" & just means that the pd process shouldn't take over the terminal -- that way you can keep using the terminal independently of whatever pd is doing)<br />
<br />
''pd &''<br />
<br />
This time the graphical user interface (GUI) for pd should also start.<br />
<br />
* To start audio, click on the ''Compute audio'' checkbox.<br />
<br />
* Now to test audio, go to the media pull-down menu and choose ''Test Audio and MIDI.'' If you still do not hear any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
* Once you have audio working, close the window test audio and MIDI.<br />
<br />
* Choose ''Open'' from the ''File'' menu and select the patch ''default-patch.pd'' within your ''~/on-startup'' directory. <br />
<br />
* Be mindful that as you edit this patch, you are changing what your kit will do when it boots up.<br />
<br />
* For lab 1, you should collect some of your own WAV files, move them into the ''~/on-startup'' directory (see 'Appendix B' for how to do this) and then edit the patch so that it is playing the new wave files.<br />
<br />
* Demonstrate to Dr. Berdahl that you have gotten it working<br />
<br />
''~/pd/lectures''<br />
<br />
== Help With Learning Pd ==<br />
* Try out the example patches in ''~/pd/7745/lab1/separate-examples''<br />
<br />
* Look at the tutorial patches in ''~/pd/7745/lab1/pd_lecture_part_1''<br />
<br />
* The patch ''~/pd/examples/just-play-WAV-files/play-WAV-file.pd'' shows the easiest way to play a WAV file. Try it out! <br />
<br />
* Look at the pd lecture patches stored in ''~/pd/pd-lecture'' (For example, see the patch ''4_algorithmic_music.pd''. Make sure that audio is on and increase the volume from zero in the patch.)<br />
<br />
* Right-click or option-click on any object to get a contextual menu including "help," which opens that object's help patch. (If you are using a Mac and don't have a right mouse button, then go to the ''X11'' pull-down menu, select ''Preferences'', and make sure that ''Emulate three button mouse'' is checked in the ''Input'' pane. Now, you should be able to right-click by clicking while holding down the Command key.)<br />
<br />
* Right-click on a blank portion of a Pd patch. Now when you select "help" you get a list of Pd's built-in objects, arranged by category.<br />
<br />
* In the upper right hand corner of each Pd window is a "help" menu. This accesses the Pd tutorials as well as some online reference documentation.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Appendix A: Troubleshooting ==<br />
Tips:<br />
* If you are having problems with audio, make sure that ''compute audio'' is set to on.<br />
* If the audio is stuttering, then your processor might not be powerful enough to run all of the patches that are open. Remember, Satellite CCRMA is not as powerful as a laptop. Therefore, be careful about building complicated patches. You can monitor how much CPU you are using by running the ''top'' command in the terminal.<br />
* Type <tt>dmesg</tt> to see if there are any relevant messages that look like error messages.<br />
<br />
<br />
<br />
<br />
<br />
== Appendix B: Transferring Files To and From Your Kit ==<br />
* Download [http://cyberduck.ch/ CyberDuck] to your laptop to make it easy to transfer files back and forth from your kit.<br />
* Start CyberDuck on your laptop, and then create the following new bookmark:<br />
<br />
[[Image:Bookmark.png]]<br />
<br />
* Once you have finished entering the text, close the bookmark window.<br />
* Then you can use CyberDuck to connect to your Satellite CCRMA kit by double clicking on the ''SFTP to Satellite CCRMA'' bookmark.<br />
* After you enter the password ''temppwd'', CyberDuck will connect and open window to open up showing the files in the /home/ccrma home directory on your kit.<br />
* You can drag and drop files from here to move them back and forth.<br />
* If you move WAV files to your kit, please remember that the default sampling rate for pd is 22kHz, so you may want to resample them first. For example, [http://audacity.sourceforge.net/ Audacity] can be used to resample the audio files.<br />
<br />
<br />
<br />
<br />
<br />
== Halt Your Board Properly When Finished! ==<br />
* '''Remember to shut down your board using'''<br />
''sudo halt''<br />
<br />
'''when you are done before powering it off!'''<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== More Pd resources ==<br />
* Here are some lists of pd objects that you can use to discover new object names: [http://protman.com/content/list-puredata-objects-and-extended-objects http://protman.com/content/list-puredata-objects-and-extended-objects] [http://www.umatic.nl/workshop/objects.txt http://www.umatic.nl/workshop/objects.txt]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Most instructions by Edgar Berdahl, and lab patches for musical interaction description by Matt Wright and possibly others. <br />
<br />
<center>[[PID 2013]]</center><br />
[[Category:PID_2013]][[Category:PID]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Lab_1_2022&diff=236467745 Lab 1 20222022-02-15T01:32:40Z<p>Eberdahl: /* Getting Comfortable With Satellite CCRMA */</p>
<hr />
<div><font size=5>Lab 1: Making Music with Pd in Satellite CCRMA</font><br><br />
<br />
'''The main point of this lab is just for you to learn how to connect to your kit and to complete the exercises in the patch lab1.pd and submit it.''' However, the descriptions are somewhat long to try to make it easy for you to get started and in case you want to learn more about pd or check out other resources.<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], and a computer to program it.<br />
<br />
<br />
<br />
== The Satellite CCRMA Setup (Before Adding Arduino) ==<br />
Included in your kit so far you should have<br />
- Raspberry Pi Model B (with 512MB of RAM)<br />
- One memory card (it may already be inserted into your Raspberry Pi)<br />
- One Ethernet cable for communication with your laptop<br />
- One USB micro cable<br />
- One power supply for the USB micro cable<br />
<br />
If you are missing something, please go get it before assembling your kit. Make sure you plug the SD memory card is seated all of the way in its slot.<br />
<br />
<br />
<br />
<br />
<br />
== Powering Up For The First Time ==<br />
Plug the Ethernet port of the Raspberry Pi into your laptop. Then use the USB micro cable to power up the Raspberry Pi. (If you have a USB power supply, you could use it to power the Raspberry Pi, or if not you can try using your laptop's USB connector to power the Raspberry Pi.) You should see some lights turn on, flickering every now and then. This means that the Raspberry Pi is booting up.<br />
<br />
<br />
<br />
<br />
== Connect To Satellite CCRMA ==<br />
In order to see what your Satellite CCRMA kit is doing and program it, you need to log in to it. To do so, follow [https://ccrma.stanford.edu/wiki/CCRMA_Satellite_How_To_Connect these instructions].<br />
<br />
After you login, you will see the prompt ''ccrma@satellite:~$'' This means that you are logged into a computer named "satellite" as the user "ccrma", and you are currently in the directory ~, which is the shortcut for your home directory.<br />
<br />
<br />
<br />
<br />
== Avoid Powering Down the Board Without Halting it First! ==<br />
Would you take the battery out of your laptop and unplug its power adaptor without shutting down? ''Nope!'' The same goes for Satellite CCRMA, at least when you can avoid it, because it is a small computer running linux.<br />
<br />
Now we will test the halt procedure. Run the halt command as superuser by typing ''sudo halt'' at the Satellite CCRMA prompt. Then you will again have to type in the password ''temppwd'' in order to have the privilege to run this command. Wait until about 15 seconds after you see the message "Connection to 192.168.105.106 closed by remote host," and then disconnect the power from the Raspberry Pi via the micro USB connector.<br />
<br />
<br />
<br />
<br />
== Getting Comfortable With Satellite CCRMA ==<br />
* Turn on Satellite CCRMA again using the same procedure as before. After about 30 seconds, the board should be booted up again, so you can log in again by running the command <br />
<br />
''ssh -XY ccrma@192.168.105.106''<br />
<br />
* Run the command ''pwd'' to find out the current directory. You will find that you are in the ''ccrma'' subdirectory of the directory ''/home''.<br />
<br />
* Type the ''ls'' command to see what is in the current directory. The blue items are subdirectories of the current directory. You can change directories using the ''cd'' command. For instance, to change into the ''pd'' subdirectory, you should run the command<br />
<br />
''cd pd''<br />
<br />
* Now again type ''pwd'' to make sure that you understand where you are! Run the ''ls'' command to see what files are in here.<br />
<br />
== Starting Audio And Pd ==<br />
<br />
* A default pd patch starts running automatically when your kit finishes booting up. To stop the default pd patch from running, execute the command<br />
<br />
''stop-default''<br />
<br />
'''Remember that each time you boot up your kit and want to edit your patch, you should stop the default patch from running by using the command ''stop-default'' '''<br />
<br />
* Start pd now with the following command (the "space" & just means that the pd process shouldn't take over the terminal -- that way you can keep using the terminal independently of whatever pd is doing)<br />
<br />
''pd &''<br />
<br />
This time the graphical user interface (GUI) for pd should also start.<br />
<br />
* To start audio, click on the ''Compute audio'' checkbox.<br />
<br />
* Now to test audio, go to the media pull-down menu and choose ''Test Audio and MIDI.'' If you still do not hear any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
* Once you have audio working, close the window test audio and MIDI.<br />
<br />
* Choose ''Open'' from the ''File'' menu and select the patch ''default-patch.pd'' within your ''~/on-startup'' directory. <br />
<br />
* Be mindful that as you edit this patch, you are changing what your kit will do when it boots up.<br />
<br />
* For lab 1, you should collect some of your own WAV files, move them into the ''~/on-startup'' directory and then edit the patch so that it is playing the new wave files.<br />
<br />
* Demonstrate to Dr. Berdahl that you have gotten it working<br />
<br />
''~/pd/lectures''<br />
<br />
== Help With Learning Pd ==<br />
* Try out the example patches in ''~/pd/7745/lab1/separate-examples''<br />
<br />
* Look at the tutorial patches in ''~/pd/7745/lab1/pd_lecture_part_1''<br />
<br />
* The patch ''~/pd/examples/just-play-WAV-files/play-WAV-file.pd'' shows the easiest way to play a WAV file. Try it out! <br />
<br />
* Look at the pd lecture patches stored in ''~/pd/pd-lecture'' (For example, see the patch ''4_algorithmic_music.pd''. Make sure that audio is on and increase the volume from zero in the patch.)<br />
<br />
* Right-click or option-click on any object to get a contextual menu including "help," which opens that object's help patch. (If you are using a Mac and don't have a right mouse button, then go to the ''X11'' pull-down menu, select ''Preferences'', and make sure that ''Emulate three button mouse'' is checked in the ''Input'' pane. Now, you should be able to right-click by clicking while holding down the Command key.)<br />
<br />
* Right-click on a blank portion of a Pd patch. Now when you select "help" you get a list of Pd's built-in objects, arranged by category.<br />
<br />
* In the upper right hand corner of each Pd window is a "help" menu. This accesses the Pd tutorials as well as some online reference documentation.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== More Sound Synthesizer Patches ==<br />
* Try out some of the patches from Andy Farnell's book ''Designing Sound.'' These patches are installed in ''~/pd/DesigningSoundBookExamples'' Most of the patches in there work with this version of pd, but a few patches don't! (As you try out the patches, keep in mind also that many of the patches are ''subpatches.'' That means that they are lower level patches that are used to serve some specific purpose within a higher level patch. Therefore, you may have to search around some to find the higher level patches that are easier to use to make sound.)<br />
<br />
<br />
<br />
<br />
<br />
== The Community ==<br />
<br />
There is a large, dedicated, and very generous community of Pd users on the Internet. Do some web searching (e.g., with a search engine, or else starting from some more specific resources) and look for interesting externals and/or patches. '''Optional:''' Download, install, and play with at least one. Can you incorporate it into what you programmed in the previous part?<br />
<br />
For more help in finding resources, don't forget to look on the [[PID Links]] page.<br />
<br />
<br />
<br />
<br />
== Appendix A: Troubleshooting ==<br />
Tips:<br />
* If you are having problems with audio, make sure that ''compute audio'' is set to on.<br />
* If the audio is stuttering, then your processor might not be powerful enough to run all of the patches that are open. Remember, Satellite CCRMA is not as powerful as a laptop. Therefore, be careful about building complicated patches. You can monitor how much CPU you are using by running the ''top'' command in the terminal.<br />
* Type <tt>dmesg</tt> to see if there are any relevant messages that look like error messages.<br />
<br />
Solutions:<br />
* If you are running out of space on the SD card, you can free up some space by deleting items in <tt>/usr/src</tt>. For instance, all of the files needed for building Pure Data Extended are rather large.<br />
<br />
<br />
<br />
<br />
<br />
== Appendix B: Transferring Files To and From Your Kit ==<br />
* Download [http://cyberduck.ch/ CyberDuck] to your laptop to make it easy to transfer files back and forth from your kit.<br />
* Start CyberDuck on your laptop, and then create the following new bookmark:<br />
<br />
[[Image:Bookmark.png]]<br />
<br />
* Once you have finished entering the text, close the bookmark window.<br />
* Then you can use CyberDuck to connect to your Satellite CCRMA kit by double clicking on the ''SFTP to Satellite CCRMA'' bookmark.<br />
* After you enter the password ''temppwd'', CyberDuck will connect and open window to open up showing the files in the /home/ccrma home directory on your kit.<br />
* You can drag and drop files from here to move them back and forth.<br />
* If you move WAV files to your kit, please remember that the default sampling rate for pd is 22kHz, so you may want to resample them first. For example, [http://audacity.sourceforge.net/ Audacity] can be used to resample the audio files.<br />
<br />
<br />
<br />
<br />
<br />
== Halt Your Board Properly When Finished! ==<br />
* '''Remember to shut down your board using'''<br />
''sudo halt''<br />
<br />
'''when you are done before powering it off!'''<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== More Pd resources ==<br />
* Here are some lists of pd objects that you can use to discover new object names: [http://protman.com/content/list-puredata-objects-and-extended-objects http://protman.com/content/list-puredata-objects-and-extended-objects] [http://www.umatic.nl/workshop/objects.txt http://www.umatic.nl/workshop/objects.txt]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Most instructions by Edgar Berdahl, and lab patches for musical interaction description by Matt Wright and possibly others. <br />
<br />
<center>[[PID 2013]]</center><br />
[[Category:PID_2013]][[Category:PID]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Lab_1_2022&diff=236457745 Lab 1 20222022-02-15T00:59:02Z<p>Eberdahl: Created page with "<font size=5>Lab 1: Making Music with Pd in Satellite CCRMA</font><br> '''The main point of this lab is just for you to learn how to connect to your kit and to complete the e..."</p>
<hr />
<div><font size=5>Lab 1: Making Music with Pd in Satellite CCRMA</font><br><br />
<br />
'''The main point of this lab is just for you to learn how to connect to your kit and to complete the exercises in the patch lab1.pd and submit it.''' However, the descriptions are somewhat long to try to make it easy for you to get started and in case you want to learn more about pd or check out other resources.<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], and a computer to program it.<br />
<br />
<br />
<br />
== The Satellite CCRMA Setup (Before Adding Arduino) ==<br />
Included in your kit so far you should have<br />
- Raspberry Pi Model B (with 512MB of RAM)<br />
- One memory card (it may already be inserted into your Raspberry Pi)<br />
- One Ethernet cable for communication with your laptop<br />
- One USB micro cable<br />
- One power supply for the USB micro cable<br />
<br />
If you are missing something, please go get it before assembling your kit. Make sure you plug the SD memory card is seated all of the way in its slot.<br />
<br />
<br />
<br />
<br />
<br />
== Powering Up For The First Time ==<br />
Plug the Ethernet port of the Raspberry Pi into your laptop. Then use the USB micro cable to power up the Raspberry Pi. (If you have a USB power supply, you could use it to power the Raspberry Pi, or if not you can try using your laptop's USB connector to power the Raspberry Pi.) You should see some lights turn on, flickering every now and then. This means that the Raspberry Pi is booting up.<br />
<br />
<br />
<br />
<br />
== Connect To Satellite CCRMA ==<br />
In order to see what your Satellite CCRMA kit is doing and program it, you need to log in to it. To do so, follow [https://ccrma.stanford.edu/wiki/CCRMA_Satellite_How_To_Connect these instructions].<br />
<br />
After you login, you will see the prompt ''ccrma@satellite:~$'' This means that you are logged into a computer named "satellite" as the user "ccrma", and you are currently in the directory ~, which is the shortcut for your home directory.<br />
<br />
<br />
<br />
<br />
== Avoid Powering Down the Board Without Halting it First! ==<br />
Would you take the battery out of your laptop and unplug its power adaptor without shutting down? ''Nope!'' The same goes for Satellite CCRMA, at least when you can avoid it, because it is a small computer running linux.<br />
<br />
Now we will test the halt procedure. Run the halt command as superuser by typing ''sudo halt'' at the Satellite CCRMA prompt. Then you will again have to type in the password ''temppwd'' in order to have the privilege to run this command. Wait until about 15 seconds after you see the message "Connection to 192.168.105.106 closed by remote host," and then disconnect the power from the Raspberry Pi via the micro USB connector.<br />
<br />
<br />
<br />
<br />
== Getting Comfortable With Satellite CCRMA ==<br />
* Turn on Satellite CCRMA again using the same procedure as before by plugging the micro USB connector into the Raspberry Pi. After about 30 seconds, the board should be booted up again, so you can log in again by running the command <br />
<br />
''ssh -XY ccrma@192.168.105.106''<br />
<br />
* Run the command ''pwd'' to find out the current directory. You will find that you are in the ''ccrma'' subdirectory of the directory ''/home''.<br />
<br />
* Type the ''ls'' command to see what is in the current directory. The blue items are subdirectories of the current directory. You can change directories using the ''cd'' command. For instance, to change into the ''pd'' subdirectory, you should run the command<br />
<br />
''cd pd''<br />
<br />
* Now again type ''pwd'' to make sure that you understand where you are! Run the ''ls'' command to see what files are in here.<br />
<br />
<br />
<br />
<br />
<br />
== Starting Audio And Pd ==<br />
<br />
* A default pd patch starts running automatically when your kit finishes booting up. To stop the default pd patch from running, execute the command<br />
<br />
''stop-default''<br />
<br />
'''Remember that each time you boot up your kit and want to edit your patch, you should stop the default patch from running by using the command ''stop-default'' '''<br />
<br />
* Start pd now with the following command (the "space" & just means that the pd process shouldn't take over the terminal -- that way you can keep using the terminal independently of whatever pd is doing)<br />
<br />
''pd &''<br />
<br />
This time the graphical user interface (GUI) for pd should also start.<br />
<br />
* To start audio, click on the ''Compute audio'' checkbox.<br />
<br />
* Now to test audio, go to the media pull-down menu and choose ''Test Audio and MIDI.'' If you still do not hear any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
* Once you have audio working, close the window test audio and MIDI.<br />
<br />
* Choose ''Open'' from the ''File'' menu and select the patch ''default-patch.pd'' within your ''~/on-startup'' directory. <br />
<br />
* Be mindful that as you edit this patch, you are changing what your kit will do when it boots up.<br />
<br />
* For lab 1, you should collect some of your own WAV files, move them into the ''~/on-startup'' directory and then edit the patch so that it is playing the new wave files.<br />
<br />
* Demonstrate to Dr. Berdahl that you have gotten it working<br />
<br />
''~/pd/lectures''<br />
<br />
== Help With Learning Pd ==<br />
* Try out the example patches in ''~/pd/7745/lab1/separate-examples''<br />
<br />
* Look at the tutorial patches in ''~/pd/7745/lab1/pd_lecture_part_1''<br />
<br />
* The patch ''~/pd/examples/just-play-WAV-files/play-WAV-file.pd'' shows the easiest way to play a WAV file. Try it out! <br />
<br />
* Look at the pd lecture patches stored in ''~/pd/pd-lecture'' (For example, see the patch ''4_algorithmic_music.pd''. Make sure that audio is on and increase the volume from zero in the patch.)<br />
<br />
* Right-click or option-click on any object to get a contextual menu including "help," which opens that object's help patch. (If you are using a Mac and don't have a right mouse button, then go to the ''X11'' pull-down menu, select ''Preferences'', and make sure that ''Emulate three button mouse'' is checked in the ''Input'' pane. Now, you should be able to right-click by clicking while holding down the Command key.)<br />
<br />
* Right-click on a blank portion of a Pd patch. Now when you select "help" you get a list of Pd's built-in objects, arranged by category.<br />
<br />
* In the upper right hand corner of each Pd window is a "help" menu. This accesses the Pd tutorials as well as some online reference documentation.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== More Sound Synthesizer Patches ==<br />
* Try out some of the patches from Andy Farnell's book ''Designing Sound.'' These patches are installed in ''~/pd/DesigningSoundBookExamples'' Most of the patches in there work with this version of pd, but a few patches don't! (As you try out the patches, keep in mind also that many of the patches are ''subpatches.'' That means that they are lower level patches that are used to serve some specific purpose within a higher level patch. Therefore, you may have to search around some to find the higher level patches that are easier to use to make sound.)<br />
<br />
<br />
<br />
<br />
<br />
== The Community ==<br />
<br />
There is a large, dedicated, and very generous community of Pd users on the Internet. Do some web searching (e.g., with a search engine, or else starting from some more specific resources) and look for interesting externals and/or patches. '''Optional:''' Download, install, and play with at least one. Can you incorporate it into what you programmed in the previous part?<br />
<br />
For more help in finding resources, don't forget to look on the [[PID Links]] page.<br />
<br />
<br />
<br />
<br />
== Appendix A: Troubleshooting ==<br />
Tips:<br />
* If you are having problems with audio, make sure that ''compute audio'' is set to on.<br />
* If the audio is stuttering, then your processor might not be powerful enough to run all of the patches that are open. Remember, Satellite CCRMA is not as powerful as a laptop. Therefore, be careful about building complicated patches. You can monitor how much CPU you are using by running the ''top'' command in the terminal.<br />
* Type <tt>dmesg</tt> to see if there are any relevant messages that look like error messages.<br />
<br />
Solutions:<br />
* If you are running out of space on the SD card, you can free up some space by deleting items in <tt>/usr/src</tt>. For instance, all of the files needed for building Pure Data Extended are rather large.<br />
<br />
<br />
<br />
<br />
<br />
== Appendix B: Transferring Files To and From Your Kit ==<br />
* Download [http://cyberduck.ch/ CyberDuck] to your laptop to make it easy to transfer files back and forth from your kit.<br />
* Start CyberDuck on your laptop, and then create the following new bookmark:<br />
<br />
[[Image:Bookmark.png]]<br />
<br />
* Once you have finished entering the text, close the bookmark window.<br />
* Then you can use CyberDuck to connect to your Satellite CCRMA kit by double clicking on the ''SFTP to Satellite CCRMA'' bookmark.<br />
* After you enter the password ''temppwd'', CyberDuck will connect and open window to open up showing the files in the /home/ccrma home directory on your kit.<br />
* You can drag and drop files from here to move them back and forth.<br />
* If you move WAV files to your kit, please remember that the default sampling rate for pd is 22kHz, so you may want to resample them first. For example, [http://audacity.sourceforge.net/ Audacity] can be used to resample the audio files.<br />
<br />
<br />
<br />
<br />
<br />
== Halt Your Board Properly When Finished! ==<br />
* '''Remember to shut down your board using'''<br />
''sudo halt''<br />
<br />
'''when you are done before powering it off!'''<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== More Pd resources ==<br />
* Here are some lists of pd objects that you can use to discover new object names: [http://protman.com/content/list-puredata-objects-and-extended-objects http://protman.com/content/list-puredata-objects-and-extended-objects] [http://www.umatic.nl/workshop/objects.txt http://www.umatic.nl/workshop/objects.txt]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Most instructions by Edgar Berdahl, and lab patches for musical interaction description by Matt Wright and possibly others. <br />
<br />
<center>[[PID 2013]]</center><br />
[[Category:PID_2013]][[Category:PID]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=CCRMA_Satellite_How_To_Connect&diff=23644CCRMA Satellite How To Connect2022-02-13T05:08:25Z<p>Eberdahl: </p>
<hr />
<div>== How To Connect ==<br />
<br />
On this page, we explain how to connect to Satellite CCRMA over the Ethernet cable.<br />
<br />
== Mac OS X ==<br />
<br />
Go to ''System Preferences'', select ''Network'', and choose the ''Ethernet'' module. Write down your current settings in case you think that you might need them in the future. (For example, if you use Ethernet to connect to the Internet in your dormitory, you probably want to save these settings for when you go home.) Now change your Ethernet settings to the following:<br />
<br />
Configure: Manually<br />
<br />
IP Address: 192.168.105.105<br />
<br />
Subnet Mask: 255.255.255.0<br />
<br />
The remaining items such as ''Router, DNS Server,'' and ''Search Domains'' can be left blank for now, and click the ''Apply'' button in the bottom right to apply the settings.<br />
<br />
If your laptop is currently connected to the Internet using some method other than Ethernet: It can be convenient to enable the Beagleboard to get onto the Internet. Go back to ''System Preferences'' and choose ''Sharing''. Edit the settings so that your Internet connection is shared with the Ethernet port. In order to do this, you may have to disable ''Internet Sharing'' temporarily. Finally, click the ''Internet Sharing'' checkbox to enable this option.<br />
<br />
You will use the X11 program to login to Satellite CCRMA over the Ethernet connection. Check if this program is already installed. In most recent version of OS X, X11 is installed by default in either the ''Applications'' folder or the ''Utilities'' folder, but in older versions it was necessary to install it from the Developer Tools CD. No matter what, if you cannot find the X11 program on your Mac, download it from [http://xquartz.macosforge.org/trac/wiki/X112.5.3 here].<br />
<br />
Now open up a window in X11. Your Satellite CCRMA kit should choose the IP address 192.168.105.106. To check that it is visible type the command ''ping 192.168.105.106'', and see how fast the network response is. Once you are satisfied, hit Control-C to quit ''ping''. Then, to finally login to Satellite CCRMA, type <br />
<br />
"ssh -X ccrma@192.168.105.106"<br />
<br />
The password should be ''temppwd''.<br />
<br />
== Windows 10 ==<br />
See the following link for logging in from Windows 10:<br />
[https://ccrma.stanford.edu/wiki/Satellite_CCRMA_Windows_10 https://ccrma.stanford.edu/wiki/Satellite_CCRMA_Windows_10]<br />
<br />
<br />
<br />
== Windows 7 ==<br />
The first step is to get X Windows, which is included in the current Cygwin/X distribution. Cygwin/X installer can be downloaded from [http://www.cygwin.com/]. Installing the complete Cygwin/X may take a while, so either consider doing it in advance, or try to install a minimum set of features including X Windows. X Windows will be used to login to Satellite CCRMA through the Ethernet connection.<br />
<br />
Go to ''Control Panel\Network and Internet\Network Connections'', right-click on ''Local Area Network'' and go to ''Properties''. Select ''Internet Protocol Version 4'', and click on ''Properties''. There, manually configure:<br />
<br />
IP Address: 192.168.105.105<br />
<br />
Subnet Mask: 255.255.255.0<br />
<br />
Leave the remaining items as they are.<br />
<br />
Ideally, your laptop should be connected to the Internet through a different connection other than Ethernet. Since it will be good to have your Satellite CCRMA to have access to the Internet, the idea is to share your current Internet connection, which will probably be a wireless network connection. To do so, go again to ''Control Panel\Network and Internet\Network Connections'', right-click on ''Wireless Network Connection'' and click ''Properties''. Switch to the ''Sharing'' tab, and check the box saying ''Allow other network users to connect through this computer's Internet connection''. Then, in ''Home networking connection'' select ''Local Area Connection''. <br />
<br />
Now start X Windows and open the ''xterm'' window. Your Satellite CCRMA kit should choose the IP address 192.168.105.106. To check that it is visible type the command ''ping 192.168.105.106'', and see how fast the network response is. Once you are satisfied, hit Control-C to quit ''ping''. Then, to finally login to Satellite CCRMA, type<br />
<br />
"ssh -X ccrma@192.168.105.106"<br />
<br />
The password should be ''temppwd''.<br />
<br />
== Linux ==<br />
<br />
Instructions for Ubuntu 10.04 Netbook Remix:<br />
<br />
Run ifconfig in a terminal and look for your wired ethernet device. It will probably be called "eth0". Copy down the value next to HWaddr.<br />
<br />
Go to "System" -> "Network Connections".<br />
<br />
Under the "Wired" tab of the dialog that opens click "Add".<br />
<br />
Set the "Connection name" to something logical, like CCRMA Satellite. Paste the value you copied from HWAddress in the "MAC address" box.<br />
<br />
Click the "IPv4 Settings" tab. Change "Method" to "Manual". Next to "Addresses" click "Add". In the "Address" column type "192.168.105.105". In the "Netmask" column type "255.255.255.0". Click "Apply".<br />
<br />
In the notification area on your desktop panel, click the NetworkManager Applet icon. Select the connection you just created. You now should be able to ssh into the board by typing "ssh -X ccrma@192.168.105.106" in a terminal.<br />
<br />
For internet connection sharing, this link might help (I haven't tried it yet): https://help.ubuntu.com/community/Internet/ConnectionSharing<br />
<br />
<center>[[250a 2009]]</center><br />
[[Category:Satellite CCRMA]][[Category:PID]][[Category:NMC 2011]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=CCRMA_Satellite_How_To_Connect&diff=23643CCRMA Satellite How To Connect2022-02-13T05:06:56Z<p>Eberdahl: </p>
<hr />
<div>== How To Connect ==<br />
<br />
On this page, we explain how to connect to Satellite CCRMA over the Ethernet cable.<br />
<br />
== Mac OS X ==<br />
<br />
Go to ''System Preferences'', select ''Network'', and choose the ''Ethernet'' module. Write down your current settings in case you think that you might need them in the future. (For example, if you use Ethernet to connect to the Internet in your dormitory, you probably want to save these settings for when you go home.) Now change your Ethernet settings to the following:<br />
<br />
Configure: Manually<br />
<br />
IP Address: 192.168.105.105<br />
<br />
Subnet Mask: 255.255.255.0<br />
<br />
The remaining items such as ''Router, DNS Server,'' and ''Search Domains'' can be left blank for now, and click the ''Apply'' button in the bottom right to apply the settings.<br />
<br />
If your laptop is currently connected to the Internet using some method other than Ethernet: It can be convenient to enable the Beagleboard to get onto the Internet. Go back to ''System Preferences'' and choose ''Sharing''. Edit the settings so that your Internet connection is shared with the Ethernet port. In order to do this, you may have to disable ''Internet Sharing'' temporarily. Finally, click the ''Internet Sharing'' checkbox to enable this option.<br />
<br />
You will use the X11 program to login to Satellite CCRMA over the Ethernet connection. Check if this program is already installed. In most recent version of OS X, X11 is installed by default in either the ''Applications'' folder or the ''Utilities'' folder, but in older versions it was necessary to install it from the Developer Tools CD. No matter what, if you cannot find the X11 program on your Mac, download it from [http://xquartz.macosforge.org/trac/wiki/X112.5.3 here].<br />
<br />
Now open up a window in X11. Your Satellite CCRMA kit should choose the IP address 192.168.105.106. To check that it is visible type the command ''ping 192.168.105.106'', and see how fast the network response is. Once you are satisfied, hit Control-C to quit ''ping''. Then, to finally login to Satellite CCRMA, type <br />
<br />
"ssh -X ccrma@192.168.105.106"<br />
<br />
The password should be ''temppwd''.<br />
<br />
== Windows 10 ==<br />
The first step is to get X Windows, which is included in the current Cygwin/X distribution. Cygwin/X installer can be downloaded from [http://www.cygwin.com/]. Installing the complete Cygwin/X may take a while, so either consider doing it in advance, or try to install a minimum set of features including X Windows. X Windows will be used to login to Satellite CCRMA through the Ethernet connection.<br />
<br />
Test:<br />
[https://ccrma.stanford.edu/wiki/CCRMA_Satellite_How_To_Connect https://ccrma.stanford.edu/wiki/CCRMA_Satellite_How_To_Connect]<br />
<br />
<br />
<br />
== Windows 7 ==<br />
The first step is to get X Windows, which is included in the current Cygwin/X distribution. Cygwin/X installer can be downloaded from [http://www.cygwin.com/]. Installing the complete Cygwin/X may take a while, so either consider doing it in advance, or try to install a minimum set of features including X Windows. X Windows will be used to login to Satellite CCRMA through the Ethernet connection.<br />
<br />
Go to ''Control Panel\Network and Internet\Network Connections'', right-click on ''Local Area Network'' and go to ''Properties''. Select ''Internet Protocol Version 4'', and click on ''Properties''. There, manually configure:<br />
<br />
IP Address: 192.168.105.105<br />
<br />
Subnet Mask: 255.255.255.0<br />
<br />
Leave the remaining items as they are.<br />
<br />
Ideally, your laptop should be connected to the Internet through a different connection other than Ethernet. Since it will be good to have your Satellite CCRMA to have access to the Internet, the idea is to share your current Internet connection, which will probably be a wireless network connection. To do so, go again to ''Control Panel\Network and Internet\Network Connections'', right-click on ''Wireless Network Connection'' and click ''Properties''. Switch to the ''Sharing'' tab, and check the box saying ''Allow other network users to connect through this computer's Internet connection''. Then, in ''Home networking connection'' select ''Local Area Connection''. <br />
<br />
Now start X Windows and open the ''xterm'' window. Your Satellite CCRMA kit should choose the IP address 192.168.105.106. To check that it is visible type the command ''ping 192.168.105.106'', and see how fast the network response is. Once you are satisfied, hit Control-C to quit ''ping''. Then, to finally login to Satellite CCRMA, type<br />
<br />
"ssh -X ccrma@192.168.105.106"<br />
<br />
The password should be ''temppwd''.<br />
<br />
== Linux ==<br />
<br />
Instructions for Ubuntu 10.04 Netbook Remix:<br />
<br />
Run ifconfig in a terminal and look for your wired ethernet device. It will probably be called "eth0". Copy down the value next to HWaddr.<br />
<br />
Go to "System" -> "Network Connections".<br />
<br />
Under the "Wired" tab of the dialog that opens click "Add".<br />
<br />
Set the "Connection name" to something logical, like CCRMA Satellite. Paste the value you copied from HWAddress in the "MAC address" box.<br />
<br />
Click the "IPv4 Settings" tab. Change "Method" to "Manual". Next to "Addresses" click "Add". In the "Address" column type "192.168.105.105". In the "Netmask" column type "255.255.255.0". Click "Apply".<br />
<br />
In the notification area on your desktop panel, click the NetworkManager Applet icon. Select the connection you just created. You now should be able to ssh into the board by typing "ssh -X ccrma@192.168.105.106" in a terminal.<br />
<br />
For internet connection sharing, this link might help (I haven't tried it yet): https://help.ubuntu.com/community/Internet/ConnectionSharing<br />
<br />
<center>[[250a 2009]]</center><br />
[[Category:Satellite CCRMA]][[Category:PID]][[Category:NMC 2011]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23642Satellite CCRMA Windows 102022-02-13T05:00:25Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
* Go to the ''Control Panel'' app<br />
* Click on ''Network and Internet''<br />
* Click on ''Connect to a Network''<br />
* Then click on ''Network & Internet Settings''<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on ''Change Adapter Options''<br />
* Then double-click on the Ethernet device <br />
* Next, click on ''Properties''. You should see something like the following:<br />
<br />
[[Image:Properties.png]]<br />
<br />
* Find the Internet Protocol Version 4 (TCP/IPv4), enable it if necessary, and double-click on it.<br />
[[Image:IPv4.png]]<br />
<br />
* Close out of all those windows.<br />
<br />
* Download PuTTY from [https://www.putty.org/ https://www.putty.org/]<br />
You probably want the 64-bit x86 option.<br />
* Install PuTTY<br />
<br />
* Download VcXsrv from https://sourceforge.net/projects/vcxsrv/ and install it as well.<br />
* Start XLaunch, which will be in the VcXsrv folder in the Windows start menu.<br />
* Choose the first option as shown below<br />
<br />
[[Image:DisplaySettings.png]]<br />
<br />
* Press ''Next''<br />
* Then for the new dialog, choose ''Start no client'' and press ''Next''.<br />
* As shown in the following dialog, make sure that ''Disable access control'' is checked:<br />
<br />
[[Image:DisableAccessControl.png]]<br />
<br />
* Then click ''Next'' and then ''Finish''.<br />
<br />
* Start the PuTTY app.<br />
* Open up ''Connection | SSH | X11''<br />
* ''Enable X11 forwarding'' as shown below:<br />
<br />
[[Image:X11Forwarding.png]]<br />
<br />
* Then go back up to Session and enter the host name ''ccrma@192.168.105.106'' as follows:<br />
<br />
[[Image:BasicOptions.png]]<br />
<br />
* Type in a name for the saved session something like e.g. ''RPiX11'' and ''Save'' it for next time. <br />
* Click on ''Open''.<br />
* Use the password ''temppwd''<br />
* After you login in, stop the default audio program from running by typing<br />
''stop-default''<br />
* Then start pd with the following command and have at it!<br />
''pd &''<br />
<br />
<br />
<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=File:BasicOptions.png&diff=23641File:BasicOptions.png2022-02-13T04:57:16Z<p>Eberdahl: </p>
<hr />
<div></div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=File:X11Forwarding.png&diff=23640File:X11Forwarding.png2022-02-13T04:56:25Z<p>Eberdahl: </p>
<hr />
<div></div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23639Satellite CCRMA Windows 102022-02-13T04:56:09Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
<br />
<br />
* Go to the ''Control Panel'' app<br />
* Click on ''Network and Internet''<br />
* Click on ''Connect to a Network''<br />
* Then click on ''Network & Internet Settings''<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on ''Change Adapter Options''<br />
* Then double-click on the Ethernet device <br />
* Next, click on ''Properties''. You should see something like the following:<br />
<br />
[[Image:Properties.png]]<br />
<br />
* Find the Internet Protocol Version 4 (TCP/IPv4), enable it if necessary, and double-click on it.<br />
[[Image:IPv4.png]]<br />
<br />
* Close out of all those windows.<br />
<br />
* Download PuTTY from [https://www.putty.org/ https://www.putty.org/]<br />
You probably want the 64-bit x86 option.<br />
* Install PuTTY<br />
<br />
* Download VcXsrv from https://sourceforge.net/projects/vcxsrv/ and install it as well.<br />
* Start XLaunch, which will be in the VcXsrv folder in the Windows start menu.<br />
* Choose the first option as shown below<br />
<br />
<br />
<br />
[[Image:DisplaySettings.png]]<br />
<br />
<br />
* Press ''Next''<br />
* Then for the new dialog, choose ''Start no client'' and press ''Next''.<br />
* As shown in the following dialog, make sure that ''Disable access control'' is checked:<br />
<br />
[[Image:DisableAccessControl.png]]<br />
<br />
* Then click ''Next'' and then ''Finish''.<br />
<br />
* Start the PuTTY app.<br />
* Open up ''Connection | SSH | X11''<br />
* ''Enable X11 forwarding'' as shown below:<br />
<br />
<br />
[[Image:X11Forwarding.png]]<br />
<br />
<br />
* Then go back up to Session and enter the host name ''ccrma@192.168.105.106'' as follows:<br />
<br />
[[Image:BasicOptions.png]]<br />
<br />
<br />
* Type in a name for the saved session something like e.g. RPiX11 and Save it for next time. <br />
* Click on Open.<br />
* Use the password temppwd<br />
* After you login in, stop the default audio program from running by typing<br />
stop-default<br />
* Then start pd with the following command and have at it!<br />
pd &<br />
<br />
<br />
<br />
<br />
<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23638Satellite CCRMA Windows 102022-02-13T04:54:54Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
<br />
<br />
* Go to the ''Control Panel'' app<br />
* Click on ''Network and Internet''<br />
* Click on ''Connect to a Network''<br />
* Then click on ''Network & Internet Settings''<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on ''Change Adapter Options''<br />
* Then double-click on the Ethernet device <br />
* Next, click on ''Properties''. You should see something like the following:<br />
<br />
[[Image:Properties.png]]<br />
<br />
* Find the Internet Protocol Version 4 (TCP/IPv4), enable it if necessary, and double-click on it.<br />
[[Image:IPv4.png]]<br />
<br />
* Close out of all those windows.<br />
<br />
* Download PuTTY from [https://www.putty.org/ https://www.putty.org/]<br />
You probably want the 64-bit x86 option.<br />
* Install PuTTY<br />
<br />
* Download VcXsrv from https://sourceforge.net/projects/vcxsrv/ and install it as well.<br />
* Start XLaunch, which will be in the VcXsrv folder in the Windows start menu.<br />
* Choose the first option as shown below<br />
<br />
<br />
<br />
[[Image:DisplaySettings.png]]<br />
<br />
<br />
* Press ''Next''<br />
* Then for the new dialog, choose ''Start no client'' and press ''Next''.<br />
* As shown in the following dialog, make sure that ''Disable access control'' is checked:<br />
<br />
[[Image:DisableAccessControl.png]]<br />
<br />
* Then click ''Next'' and then ''Finish''.<br />
<br />
* Start the PuTTY app.<br />
* Open up ''Connection | SSH | X11''<br />
* ''Enable X11 forwarding'' as shown below:<br />
<br />
<br />
[[Image:X11Forwarding.png]]<br />
<br />
<br />
* Then go back up to Session and enter the host name ''ccrma@192.168.105.106'' as follows:<br />
<br />
[[Image:X11Forwarding.png]]<br />
<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23637Satellite CCRMA Windows 102022-02-13T04:49:38Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
<br />
<br />
* Go to the ''Control Panel'' app<br />
* Click on ''Network and Internet''<br />
* Click on ''Connect to a Network''<br />
* Then click on ''Network & Internet Settings''<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on ''Change Adapter Options''<br />
* Then double-click on the Ethernet device <br />
* Next, click on ''Properties''. You should see something like the following:<br />
<br />
[[Image:Properties.png]]<br />
<br />
* Find the Internet Protocol Version 4 (TCP/IPv4), enable it if necessary, and double-click on it.<br />
[[Image:IPv4.png]]<br />
<br />
* Close out of all those windows.<br />
<br />
* Download PuTTY from [https://www.putty.org/ https://www.putty.org/]<br />
You probably want the 64-bit x86 option.<br />
* Install PuTTY<br />
<br />
* Download VcXsrv from https://sourceforge.net/projects/vcxsrv/ and install it as well.<br />
* Start XLaunch, which will be in the VcXsrv folder in the Windows start menu.<br />
* Choose the first option as shown below<br />
<br />
<br />
<br />
[[Image:DisplaySettings.png]]<br />
<br />
<br />
* Press ''Next''<br />
* Then for the new dialog, choose ''Start no client'' and press ''Next''.<br />
* As shown in the next dialog, make sure that ''Disable Access Control'' is checked:<br />
<br />
[[Image:DisableAccessControl.png]]<br />
<br />
<br />
* Then click ''Next'' and then ''Finish''.<br />
<br />
<br />
<br />
<br />
<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=File:DisableAccessControl.png&diff=23636File:DisableAccessControl.png2022-02-13T04:47:11Z<p>Eberdahl: </p>
<hr />
<div></div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23635Satellite CCRMA Windows 102022-02-13T04:46:51Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
<br />
<br />
* Go to the ''Control Panel'' app<br />
* Click on ''Network and Internet''<br />
* Click on ''Connect to a Network''<br />
* Then click on ''Network & Internet Settings''<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on ''Change Adapter Options''<br />
* Then double-click on the Ethernet device <br />
* Next, click on ''Properties''. You should see something like the following:<br />
<br />
[[Image:Properties.png]]<br />
<br />
* Find the Internet Protocol Version 4 (TCP/IPv4), enable it if necessary, and double-click on it.<br />
[[Image:IPv4.png]]<br />
<br />
* Close out of all those windows.<br />
<br />
* Download PuTTY from [https://www.putty.org/ https://www.putty.org/]<br />
You probably want the 64-bit x86 option.<br />
* Install PuTTY<br />
<br />
* Download VcXsrv from https://sourceforge.net/projects/vcxsrv/ and install it as well.<br />
* Start XLaunch, which will be in the VcXsrv folder in the Windows start menu.<br />
* Choose the first option as shown below<br />
<br />
<br />
<br />
[[Image:DisplaySettings.png]]<br />
<br />
<br />
* Press ''Next''<br />
* Then for the new dialog, choose ''Start no client'' and press ''Next''.<br />
<br />
<br />
<br />
[[Image:DisableAccessControl.png]]<br />
<br />
<br />
<br />
<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23634Satellite CCRMA Windows 102022-02-13T04:42:33Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
<br />
<br />
* Go to the ''Control Panel'' app<br />
* Click on ''Network and Internet''<br />
* Click on ''Connect to a Network''<br />
* Then click on ''Network & Internet Settings''<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on ''Change Adapter Options''<br />
* Then double-click on the Ethernet device <br />
* Next, click on ''Properties''. You should see something like the following:<br />
<br />
[[Image:Properties.png]]<br />
<br />
* Find the Internet Protocol Version 4 (TCP/IPv4), enable it if necessary, and double-click on it.<br />
[[Image:IPv4.png]]<br />
<br />
* Close out of all those windows.<br />
<br />
* Download PuTTY from [https://www.putty.org/ https://www.putty.org/]<br />
You probably want the 64-bit x86 option.<br />
* Install PuTTY<br />
<br />
* Download VcXsrv from https://sourceforge.net/projects/vcxsrv/ and install it as well.<br />
* Start XLaunch, which will be in the VcXsrv folder in the Windows start menu.<br />
* Choose the first option as shown below<br />
<br />
<br />
<br />
[[Image:DisplaySettings.png]]<br />
<br />
<br />
* Press ''Next''<br />
* Then for the new dialog, choose ''Start no client'' and press ''Next''.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23633Satellite CCRMA Windows 102022-02-13T04:39:40Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
<br />
<br />
* Go to the ''Control Panel'' app<br />
* Click on ''Network and Internet''<br />
* Click on ''Connect to a Network''<br />
* Then click on ''Network & Internet Settings''<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on ''Change Adapter Options''<br />
* Then double-click on the Ethernet device <br />
* Next, click on ''Properties''. You should see something like the following:<br />
<br />
[[Image:Properties.png]]<br />
<br />
* Find the Internet Protocol Version 4 (TCP/IPv4), enable it if necessary, and double-click on it.<br />
[[Image:IPv4.png]]<br />
<br />
* Close out of all those windows.<br />
<br />
* Download PuTTY from [https://www.putty.org/ https://www.putty.org/]<br />
You probably want the 64-bit x86 option.<br />
* Install PuTTY<br />
<br />
* Download VcXsrv from https://sourceforge.net/projects/vcxsrv/ and install it as well.<br />
* Start XLaunch, which will be in the VcXsrv folder in the Windows start menu.<br />
* Choose the first option as shown below<br />
<br />
<br />
<br />
[[Image:DisplaySettings.png]]<br />
<br />
<br />
<br />
<br />
<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=File:DisplaySettings.png&diff=23632File:DisplaySettings.png2022-02-13T04:39:09Z<p>Eberdahl: Eberdahl uploaded a new version of File:DisplaySettings.png</p>
<hr />
<div></div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=File:DisplaySettings.png&diff=23631File:DisplaySettings.png2022-02-13T04:38:30Z<p>Eberdahl: </p>
<hr />
<div></div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=File:DisplaySettiings.png&diff=23630File:DisplaySettiings.png2022-02-13T04:37:33Z<p>Eberdahl: </p>
<hr />
<div></div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23629Satellite CCRMA Windows 102022-02-13T04:37:17Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
<br />
<br />
* Go to the ''Control Panel'' app<br />
* Click on ''Network and Internet''<br />
* Click on ''Connect to a Network''<br />
* Then click on ''Network & Internet Settings''<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on ''Change Adapter Options''<br />
* Then double-click on the Ethernet device <br />
* Next, click on ''Properties''. You should see something like the following:<br />
<br />
[[Image:Properties.png]]<br />
<br />
* Find the Internet Protocol Version 4 (TCP/IPv4), enable it if necessary, and double-click on it.<br />
[[Image:IPv4.png]]<br />
<br />
* Close out of all those windows.<br />
<br />
* Download PuTTY from [https://www.putty.org/ https://www.putty.org/]<br />
You probably want the 64-bit x86 option.<br />
* Install PuTTY<br />
<br />
* Download VcXsrv from https://sourceforge.net/projects/vcxsrv/ and install it as well.<br />
* Start XLaunch, which will be in the VcXsrv folder in the Windows start menu.<br />
* Choose the first option as shown below<br />
<br />
<br />
<br />
[[Image:DisplaySettiings.png]]<br />
<br />
<br />
<br />
<br />
<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23628Satellite CCRMA Windows 102022-02-13T04:34:38Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
<br />
<br />
* Go to the ''Control Panel'' app<br />
* Click on ''Network and Internet''<br />
* Click on ''Connect to a Network''<br />
* Then click on ''Network & Internet Settings''<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on ''Change Adapter Options''<br />
* Then double-click on the Ethernet device <br />
* Next, click on ''Properties''. You should see something like the following:<br />
<br />
[[Image:Properties.png]]<br />
<br />
* Find the Internet Protocol Version 4 (TCP/IPv4), enable it if necessary, and double-click on it.<br />
[[Image:IPv4.png]]<br />
<br />
* Close out of all those windows.<br />
<br />
* Download PuTTY from [https://www.putty.org/ https://www.putty.org/]<br />
You probably want the 64-bit x86 option.<br />
* Install PuTTY<br />
<br />
* Download VcXsrv from https://sourceforge.net/projects/vcxsrv/ and install it as well.<br />
* Start XLaunch, which will be in the VcXsrv folder in the Windows start menu.<br />
* Choose the first option as shown below<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23627Satellite CCRMA Windows 102022-02-13T04:34:09Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
<br />
<br />
* Go to the ''Control Panel'' app<br />
* Click on ''Network and Internet''<br />
* Click on ''Connect to a Network''<br />
* Then click on ''Network & Internet Settings''<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on ''Change Adapter Options''<br />
* Then double-click on the Ethernet device <br />
* Next, click on ''Properties''. You should see something like the following:<br />
<br />
[[Image:Properties.png]]<br />
<br />
* Find the Internet Protocol Version 4 (TCP/IPv4), enable it if necessary, and double-click on it.<br />
[[Image:IPv4.png]]<br />
<br />
* Close out of all those windows.<br />
<br />
* Download PuTTY from [https://www.putty.org/]<br />
You probably want the 64-bit x86 option.<br />
* Install PuTTY<br />
<br />
* Download VcXsrv from https://sourceforge.net/projects/vcxsrv/ and install it as well.<br />
* Start XLaunch, which will be in the VcXsrv folder in the Windows start menu.<br />
* Choose the first option as shown below<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=File:IPv4.png&diff=23626File:IPv4.png2022-02-13T04:29:11Z<p>Eberdahl: </p>
<hr />
<div></div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23625Satellite CCRMA Windows 102022-02-13T04:28:53Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
<br />
<br />
* Go to the ''Control Panel'' app<br />
* Click on ''Network and Internet''<br />
* Click on ''Connect to a Network''<br />
* Then click on ''Network & Internet Settings''<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on ''Change Adapter Options''<br />
* Then double-click on the Ethernet device <br />
* Next, click on ''Properties''. You should see something like the following:<br />
<br />
[[Image:Properties.png]]<br />
<br />
* Find the Internet Protocol Version 4 (TCP/IPv4), enable it if necessary, and double-click on it.<br />
[[Image:IPv4.png]]<br />
<br />
<br />
<br />
<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23624Satellite CCRMA Windows 102022-02-13T04:26:39Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
<br />
<br />
* Go to the ''Control Panel'' app<br />
* Click on ''Network and Internet''<br />
* Click on ''Connect to a Network''<br />
* Then click on ''Network & Internet Settings''<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on ''Change Adapter Options''<br />
* Then double-click on the Ethernet device <br />
* Next, click on ''Properties''. You should see something like the following:<br />
<br />
[[Image:Properties.png]]<br />
<br />
<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=File:Properties.png&diff=23623File:Properties.png2022-02-13T04:26:06Z<p>Eberdahl: Eberdahl uploaded a new version of File:Properties.png</p>
<hr />
<div></div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=File:Properties.png&diff=23622File:Properties.png2022-02-13T04:22:15Z<p>Eberdahl: </p>
<hr />
<div></div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23621Satellite CCRMA Windows 102022-02-13T04:21:59Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
<br />
<br />
* Go to the ''Control Panel'' app<br />
* Click on ''Network and Internet''<br />
* Click on ''Connect to a Network''<br />
* Then click on ''Network & Internet Settings''<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on ''Change Adapter Options''<br />
* Then double-click on the Ethernet device <br />
* Next, click on ''Properties''. You should see something like the following:<br />
<br />
<Br>[[Image:Properties.png]]<br />
<br />
<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23620Satellite CCRMA Windows 102022-02-13T04:18:47Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
<br />
<br />
* Go to the ''Control Panel'' app<br />
* Click on ''Network and Internet''<br />
* Click on ''Connect to a Network''<br />
* Then click on ''Network & Internet Settings''<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on ''Change Adapter Options''<br />
* Then double-click on the Ethernet device <br />
* Next, click on ''Properties''. You should see something like the following:<br />
<br />
<br />
<br />
<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23619Satellite CCRMA Windows 102022-02-13T04:16:44Z<p>Eberdahl: </p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 10 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
<br />
<br />
* Go to the Control Panel app<br />
* Click on Network and Internet<br />
* Click on Connect to a Network<br />
* Then click on Network & Internet Settings<br />
* Find your Ethernet interface listed on the left and click on it<br />
* Click on Change Adapter Options<br />
* Plug Satellite CCRMA into your Ethernet interface and power up the Raspberry Pi<br />
* Then double-click on the Ethernet device <br />
* Next, click on Properties. You should see something like the following:<br />
<br />
<br />
<br />
<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=Satellite_CCRMA_Windows_10&diff=23618Satellite CCRMA Windows 102022-02-13T04:12:24Z<p>Eberdahl: Created page with "== Connect == This page explains how to connect to Satellite CCRMA from a Windows 10 machine. == Windows 7 == * First power up Satellite CCRMA, use an ethernet cable to conn..."</p>
<hr />
<div>== Connect ==<br />
This page explains how to connect to Satellite CCRMA from a Windows 10 machine.<br />
<br />
<br />
== Windows 7 ==<br />
* First power up Satellite CCRMA, use an ethernet cable to connect Satellite CCRMA to your Windows machine, and make sure that the light on the ethernet interface on the windows machine turns on. (If the light does not turn on, then you will not be able to find the ethernet interface in the control panel to change its settings.)<br />
<br />
* Go to ''Control Panel\Network and Internet\Network Connections'' (or ''Control Panel\Network and Internet\Network and Sharing Center''), right-click on ''Local Area Network'' (or ''Local Area Connection'') and go to ''Properties''. Select ''Internet Protocol Version 4 (TCP/IPv4)'', and click on ''Properties''. There, manually configure:<br>IP Address: 192.168.105.105<Br>Subnet Mask: 255.255.255.0<Br>Standard gateway: 192.168.105.1<Br>Leave the remaining items as they are. The following image is from Windows 7 installed in German and might help you navigate through these settings:<br />
[[Image:windows1.png]]<br />
<br />
* '''Start the Xming program from the Start Menu--it is in a folder called Xming.''' If you don't already have it, then download [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download XMING], install it, and start it. <br />
<br />
* If you haven't already, then download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]. It will stay in your Downloads folder unless you put it somewhere else, such as the Desktop.<br />
** Go to the ''Connection | SSH | X11'' panel and check "Enable X11 forwarding" <Br>[[Image:PuttyX11.png]]<br />
** Go to the ''Connection | SSH | Tunnels'' panel and check "Local ports accept connections from other hosts"<Br>[[Image:PuttyTunnels.png]]<br />
** Go to the ''Session'' panel and enter ccrma@192.168.105.106 into the "Host name" field to specify that you want to log in to 192.168.105.106 (the IP address of Satellite CCRMA) using the user name ''ccrma''.<Br>[[Image:PuttySession.png]]<br />
** '''Select "Default Settings" and then click the "Save" button so that all these settings are saved by default.'''<br />
** Finally click on the "Open" button to open the connection.<br />
** The password is ''temppwd'' <br />
** Since a default pd patch started on boot, you can stop it by typing ''stop-default''<br />
** Then run the command<Br>''pd &''<Br>to make sure that pd can successfully forward its Window to your laptop.<br />
<br />
<br />
== Windows Troubleshooting ==<br />
* If when you run ''pd &'', pd is unable to forward a window to your laptop, then you should first run ''pkill pd'' to quit pd. Then, make sure that you followed all of the steps above. If that still doesn't work, then try running the following command remotely on Satellite CCRMA before running ''pd &'':<Br>''export DISPLAY=192.168.105.105:0''<br />
* If you are still having difficulty, please ask the teaching staff for help.<br />
* Maybe also try looking at this [http://techiecook.wordpress.com/2011/06/16/how-to-export-xwindows-display-using-putty/ link].<br />
* If this is the second time you are trying connecting to your kit, make sure that you are running Xming.<br />
<br />
<br />
== Experts Only: Alternate Approach ==<br />
* If you are an expert and you prefer to use cygwin instead '''(which can take hours to install!)''', then follow these instructions:<br />
** X Windows is included in the current Cygwin/X distribution. (Cygwin/X installer can be downloaded from [http://www.cygwin.com/].) Choose '''only the required packages''' from Cygwin are '''openssh''' and '''xinit'''.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=CCRMA_Satellite_How_To_Connect&diff=23617CCRMA Satellite How To Connect2022-02-13T04:08:34Z<p>Eberdahl: </p>
<hr />
<div>== How To Connect ==<br />
<br />
On this page, we explain how to connect to Satellite CCRMA over the Ethernet cable.<br />
<br />
== Mac OS X ==<br />
<br />
Go to ''System Preferences'', select ''Network'', and choose the ''Ethernet'' module. Write down your current settings in case you think that you might need them in the future. (For example, if you use Ethernet to connect to the Internet in your dormitory, you probably want to save these settings for when you go home.) Now change your Ethernet settings to the following:<br />
<br />
Configure: Manually<br />
<br />
IP Address: 192.168.105.105<br />
<br />
Subnet Mask: 255.255.255.0<br />
<br />
The remaining items such as ''Router, DNS Server,'' and ''Search Domains'' can be left blank for now, and click the ''Apply'' button in the bottom right to apply the settings.<br />
<br />
If your laptop is currently connected to the Internet using some method other than Ethernet: It can be convenient to enable the Beagleboard to get onto the Internet. Go back to ''System Preferences'' and choose ''Sharing''. Edit the settings so that your Internet connection is shared with the Ethernet port. In order to do this, you may have to disable ''Internet Sharing'' temporarily. Finally, click the ''Internet Sharing'' checkbox to enable this option.<br />
<br />
You will use the X11 program to login to Satellite CCRMA over the Ethernet connection. Check if this program is already installed. In most recent version of OS X, X11 is installed by default in either the ''Applications'' folder or the ''Utilities'' folder, but in older versions it was necessary to install it from the Developer Tools CD. No matter what, if you cannot find the X11 program on your Mac, download it from [http://xquartz.macosforge.org/trac/wiki/X112.5.3 here].<br />
<br />
Now open up a window in X11. Your Satellite CCRMA kit should choose the IP address 192.168.105.106. To check that it is visible type the command ''ping 192.168.105.106'', and see how fast the network response is. Once you are satisfied, hit Control-C to quit ''ping''. Then, to finally login to Satellite CCRMA, type <br />
<br />
"ssh -X ccrma@192.168.105.106"<br />
<br />
The password should be ''temppwd''.<br />
<br />
== Windows 7 ==<br />
The first step is to get X Windows, which is included in the current Cygwin/X distribution. Cygwin/X installer can be downloaded from [http://www.cygwin.com/]. Installing the complete Cygwin/X may take a while, so either consider doing it in advance, or try to install a minimum set of features including X Windows. X Windows will be used to login to Satellite CCRMA through the Ethernet connection.<br />
<br />
Go to ''Control Panel\Network and Internet\Network Connections'', right-click on ''Local Area Network'' and go to ''Properties''. Select ''Internet Protocol Version 4'', and click on ''Properties''. There, manually configure:<br />
<br />
IP Address: 192.168.105.105<br />
<br />
Subnet Mask: 255.255.255.0<br />
<br />
Leave the remaining items as they are.<br />
<br />
Ideally, your laptop should be connected to the Internet through a different connection other than Ethernet. Since it will be good to have your Satellite CCRMA to have access to the Internet, the idea is to share your current Internet connection, which will probably be a wireless network connection. To do so, go again to ''Control Panel\Network and Internet\Network Connections'', right-click on ''Wireless Network Connection'' and click ''Properties''. Switch to the ''Sharing'' tab, and check the box saying ''Allow other network users to connect through this computer's Internet connection''. Then, in ''Home networking connection'' select ''Local Area Connection''. <br />
<br />
Now start X Windows and open the ''xterm'' window. Your Satellite CCRMA kit should choose the IP address 192.168.105.106. To check that it is visible type the command ''ping 192.168.105.106'', and see how fast the network response is. Once you are satisfied, hit Control-C to quit ''ping''. Then, to finally login to Satellite CCRMA, type<br />
<br />
"ssh -X ccrma@192.168.105.106"<br />
<br />
The password should be ''temppwd''.<br />
<br />
== Linux ==<br />
<br />
Instructions for Ubuntu 10.04 Netbook Remix:<br />
<br />
Run ifconfig in a terminal and look for your wired ethernet device. It will probably be called "eth0". Copy down the value next to HWaddr.<br />
<br />
Go to "System" -> "Network Connections".<br />
<br />
Under the "Wired" tab of the dialog that opens click "Add".<br />
<br />
Set the "Connection name" to something logical, like CCRMA Satellite. Paste the value you copied from HWAddress in the "MAC address" box.<br />
<br />
Click the "IPv4 Settings" tab. Change "Method" to "Manual". Next to "Addresses" click "Add". In the "Address" column type "192.168.105.105". In the "Netmask" column type "255.255.255.0". Click "Apply".<br />
<br />
In the notification area on your desktop panel, click the NetworkManager Applet icon. Select the connection you just created. You now should be able to ssh into the board by typing "ssh -X ccrma@192.168.105.106" in a terminal.<br />
<br />
For internet connection sharing, this link might help (I haven't tried it yet): https://help.ubuntu.com/community/Internet/ConnectionSharing<br />
<br />
<center>[[250a 2009]]</center><br />
[[Category:Satellite CCRMA]][[Category:PID]][[Category:NMC 2011]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_HW_3&diff=236107745 HW 32022-02-09T22:57:09Z<p>Eberdahl: </p>
<hr />
<div><font size=5>Evaluate A Device With The Interaction Design Framework</font><br />
<br />
<br />
<center>[[Image:Id_medium.png]]</center><br />
<br />
Pick a device that you either like or dislike, and analyze it in terms of the [http://www.billverplank.com/IxDSketchBook.pdf Interaction Design Framework] (<--- the link to Verplank's IDF is at the bottom of the page). Your analysis should consist of an 8-square diagram, with a concise drawing in each square that represents that element of the design. Use a piece of posterboard or multiple pieces of paper to make it big.<br />
<br />
* Come up with some ideas on how you could improve the design. Describe what would happen if you redesigned the device by fundamentally changing one square. What would happen if the controls were handles instead of buttons? What if there was a new metaphor?<br />
<br />
* Create a second Framework drawing for your your new design.<br />
<br />
<center>[[NMC 2013]]</center><br />
<br />
[[Category:NMC_2013]][[Category:PID]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_HW_4&diff=236097745 HW 42022-02-09T22:56:31Z<p>Eberdahl: </p>
<hr />
<div><font size=5>Sketch Out A Plan for Your Project For Someone Else</font><br />
<br />
<br />
<center>[[Image:Id_medium.png]]</center><br />
<br />
* Make a plan for your project for someone else<br />
<br />
* Discuss this plan with your mentor and get some further input<br />
<br />
* Make a sketch of your plan to present in class<br />
<br />
* If appropriate, for example if you are making an instrument for your project, make your sketch in this format: Analyze the project using the [http://www.billverplank.com/IxDSketchBook.pdf Interaction Design Framework] (<--- the link to Verplank's IDF is at the bottom of the page). In this case, your sketch should consist of an 8-square diagram, with a concise drawing in each square that represents that element of the design. Use a piece of posterboard or multiple pieces of paper to make it big.<br />
<br />
<center>[[NMC 2013]]</center><br />
<br />
[[Category:NMC_2013]][[Category:PID]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Breadboarding_lab_2020&diff=222907745 Breadboarding lab 20202020-02-11T14:22:21Z<p>Eberdahl: </p>
<hr />
<div><font size=5>Breadboarding lab</font><br><br />
Designed by Edgar Berdahl<br />
<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], a laptop computer with Ethernet adaptor to program it, and some headphones with a mini 1/8" (2.54mm) stereo jack.<br />
<br />
<br />
In this lab, the images will show the Beagle Board xM instead of the Raspberry Pi, but actually all of the wiring is essentially the same. '''Today, we won't be "building a sandwich" with the Raspberry Pi and Arduino; however, we may do that at a future time if you're trying to make your kit smaller!'''<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Power Connections ==<br />
* In order to run circuits on the breadboard, you need to get power to it. The Arduino gets 5V from the USB connection, so in this section you will make the 5V accessible to the breadboard.<br />
* Make sure that your Arduino is mounted at the very end of the breadboard with the higher-numbered rows, as shown in the following picture. In that case, the GND and 5V pins will end up in the 19th row. (Otherwise if your Arduino isn't mounted this way, you simply won't be able to rely on the row numbers, but you can still figure out how to wire things up!)<br />
* Recall first that that holes in the solderless bread board are wired together as shown:<br />
<br />
[[Image:Breadboard.png]]<br />
<br />
* Using short jumpers, connect the GND row to the blue "GND" bus on the breadboard, and connect the 5V row to the red "power" bus on the breadboard.<br />
* Connect the "GND" and "power" busses from both sides of the breadboard together as shown.<br />
<br />
[[Image:circuit0-big.jpg]]<br />
<br />
<br />
<br />
Viewed from further away, your breadboard should now look like the following:<br />
<br />
[[Image:circuit0.jpg]]<br />
<br />
<br />
<br />
<br />
<br />
== First Circuit: Potentiometer ==<br />
<br />
* Use the same procedure as before to power up Satellite CCRMA and login as the user ''ccrma'' with the password ''temppwd''.<br />
<br />
* Don't forget to stop the default patch from running by executing the command<br />
<br />
'''stop-default'''<br />
<br />
* Start pd using the following command<br />
<br />
'''pd &'''<br />
<br />
* Open the pd patch<br />
<br />
~/pd/labs-2016-Music-7745/5.breadboarding-sensors/test-Arduino-only.pd<br />
<br />
* Now you will build the following voltage divider circuit, to connect one potentiometer to analog input A0.<br />
<br />
[[Image:pot-A0.jpg]]<br />
<br />
For some help on placing the wires, please see the following picture. In order to ensure the correct orientation, ensure that the text on the potentiometer is facing '''away''' from the Arduino (see also oblique picture in next section).<br />
[[Image:circuit2.jpg]]<br />
<br />
<br />
<br />
<br />
== Add A Second Potentiometer ==<br />
<br />
Now connect a second potentiometer to analog input A3 using the same voltage divider circuit.<br />
<br />
[[Image:SBcircuit3-direct.jpg]]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
=== Other Voltage Dividers ===<br />
The circuit you just used for the potentiometer was a [http://en.wikipedia.org/wiki/Voltage_divider voltage divider] circuit in which the potentiometer serves as two resistors. Other resistive sensors only have two wires, so to build a voltage divider with them, you need to combine them with a second, fixed resistor. Examples in your kit are the force sensitive resistor (FSR) and the bend or flex sensor. The idea is that you put two resistors in series between power and ground: one that changes resistance (your sensor), and one of a known, fixed resistance. At the point in between the two resistors, you can measure how much the voltage has dropped through the first resistor. This value changes as the ratio of resistances between variable and fixed resistors change. <br />
<br />
See the page on [https://ccrma.stanford.edu/wiki/Sensors Sensors] for more info!<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Troubleshooting ==<br />
* '''Only one pd patch can access the Arduino at a time. If you have two patches open that are trying to access it, then the sensor values delivered in pd won't make any sense.'''<br />
<br />
* '''For power users only:''' Whenever you upload new firmware to the Arduino, the serial port needs to be free. This means that you can't have any pd patches open that are communicating with the Arduino while uploading new firmware.<br />
<br />
<br />
<br />
<br />
== Conclusions ==<br />
Read more about [https://ccrma.stanford.edu/wiki/Sensors other sensors] in the lecture notes.<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Evaluation ==<br />
<br />
* Think about the result<br />
** do the controls allow the entire space of parameters to be explored?<br />
** is it easy to choose any desired set of parameters?<br />
** does the effect sound good?<br />
** does it have dynamics?<br />
** would you want to use it live?<br />
*** If not, what is missing still?<br />
<br />
<br />
<br />
<br />
<br />
== More Reading About Arduino ==<br />
'''This OPTIONAL section is for power users only.'''<br />
<br />
* See which devices are attached to Linux by running the command following command. They will appear the be files. Wow, there are so many! <br />
<br />
''ls /dev''<br />
<br />
* To list only the serial interface devices type<br />
<br />
''ls /dev/tty*''<br />
<br />
* Now unplug the Arduino from the Raspberry Pi using the USB cable. The lights on the Arduino board should turn off.<br />
<br />
* Now run<br />
<br />
''ls /dev/tty*''<br />
<br />
again, and you should now see that the device ''/dev/ttyUSB0'' is gone, which represented the Arduino Nano when it was plugged in.<br />
<br />
Troubleshooting: If you didn't see ''/dev/ttyUSB0'' when the Arduino was plugged in, then try rebooting using ''sudo reboot'' to see if that fixes this problem. (If you reboot, this will take about 45 seconds, and you will have to login again using ''ssh''. If that doesn't work, come talk to us. If you are a Linux pro, you can try to debug the problem yourself by typing ''dmesg'' and looking at the result.)<br />
<br />
* By the way, here is how we installed the Arduino firmware on the Arduino before the start of this lab (and the previous one). Plug the Arduino back into the Raspberry Pi and start the Arduino software in the terminal by typing <br />
<br />
''arduino &''<br />
<br />
* Open ''StandardFirmata'' from the Arduino software pull-down menus File|Examples|Firmata. Look at the program. This is what will control the Arduino.<br />
<br />
* Select ''Arduino Nano w/ ATMega328'' under Tools->Board and ''/dev/ttyUSB0'' under Tools->Serial Port. Then hit the Play button to verify and compile the program. <br />
<br />
* Upload the Firmata firmware to your Arduino Nano using upload button, the second square button from the left (the one with the sideways arrow).<br />
<br />
* Close the Arduino program by closing all of the Arduino windows. (This is important because it frees up the USB serial port so that Pd can talk to the Arduino board later.)<br />
<br />
<br />
<br />
<br />
<br />
<center>[[7745]]</center><br />
[[Category:7745]][[Category:PID]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Breadboarding_lab_2020&diff=222607745 Breadboarding lab 20202020-02-06T16:50:24Z<p>Eberdahl: </p>
<hr />
<div><font size=5>Breadboarding lab</font><br><br />
Designed by Edgar Berdahl<br />
<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], a laptop computer with Ethernet adaptor to program it, and some headphones with a mini 1/8" (2.54mm) stereo jack.<br />
<br />
<br />
In this lab, the images will show the Beagle Board xM instead of the Raspberry Pi, but actually all of the wiring is essentially the same. '''Today, we won't be "building a sandwich" with the Raspberry Pi and Arduino; however, we may do that at a future time if you're trying to make your kit smaller!'''<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Power Connections ==<br />
* In order to run circuits on the breadboard, you need to get power to it. The Arduino gets 5V from the USB connection, so in this section you will make the 5V accessible to the breadboard.<br />
* Make sure that your Arduino is mounted at the very end of the breadboard with the higher-numbered rows, as shown in the following picture. In that case, the GND and 5V pins will end up in the 19th row. (Otherwise if your Arduino isn't mounted this way, you simply won't be able to rely on the row numbers, but you can still figure out how to wire things up!)<br />
* Recall first that that holes in the solderless bread board are wired together as shown:<br />
<br />
[[Image:Breadboard.png]]<br />
<br />
* Using short jumpers, connect the GND row to the blue "GND" bus on the breadboard, and connect the 5V row to the red "power" bus on the breadboard.<br />
* Connect the "GND" and "power" busses from both sides of the breadboard together as shown.<br />
<br />
[[Image:circuit0-big.jpg]]<br />
<br />
<br />
<br />
Viewed from further away, your breadboard should now look like the following:<br />
<br />
[[Image:circuit0.jpg]]<br />
<br />
<br />
<br />
<br />
<br />
== First Circuit: Potentiometer ==<br />
<br />
* Use the same procedure as before to power up Satellite CCRMA and login as the user ''ccrma'' with the password ''temppwd''.<br />
<br />
* Don't forget to stop the default patch from running by executing the command<br />
<br />
'''stop-default'''<br />
<br />
* Start pd using the following command<br />
<br />
'''pd &'''<br />
<br />
* Open the pd patch<br />
<br />
~/pd/labs-2016-Music-7745/5.breadboarding-sensors/test-Arduino-only.pd<br />
<br />
* Now you will build the following voltage divider circuit, to connect one potentiometer to analog input A0.<br />
<br />
[[Image:pot-A0.jpg]]<br />
<br />
For some help on placing the wires, please see the following picture. In order to ensure the correct orientation, ensure that the text on the potentiometer is facing '''away''' from the Arduino (see also oblique picture in next section).<br />
[[Image:circuit2.jpg]]<br />
<br />
<br />
<br />
<br />
== Add A Second Potentiometer ==<br />
<br />
Now connect a second potentiometer to analog input A3 using the same voltage divider circuit.<br />
<br />
[[Image:SBcircuit3-direct.jpg]]<br />
<br />
<br />
<br />
Again, ensure that the text on the potentiometer is facing *away* from the Arduino (see the red boxes in the following figure):<br />
<br />
[[Image:SBcircuit3.jpg]]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
=== Other Voltage Dividers ===<br />
The circuit you just used for the potentiometer was a [http://en.wikipedia.org/wiki/Voltage_divider voltage divider] circuit in which the potentiometer serves as two resistors. Other resistive sensors only have two wires, so to build a voltage divider with them, you need to combine them with a second, fixed resistor. Examples in your kit are the force sensitive resistor (FSR) and the bend or flex sensor. The idea is that you put two resistors in series between power and ground: one that changes resistance (your sensor), and one of a known, fixed resistance. At the point in between the two resistors, you can measure how much the voltage has dropped through the first resistor. This value changes as the ratio of resistances between variable and fixed resistors change. <br />
<br />
See the page on [https://ccrma.stanford.edu/wiki/Sensors Sensors] for more info!<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Troubleshooting ==<br />
* '''Only one pd patch can access the Arduino at a time. If you have two patches open that are trying to access it, then the sensor values delivered in pd won't make any sense.'''<br />
<br />
* '''For power users only:''' Whenever you upload new firmware to the Arduino, the serial port needs to be free. This means that you can't have any pd patches open that are communicating with the Arduino while uploading new firmware.<br />
<br />
<br />
<br />
<br />
== Conclusions ==<br />
Read more about [https://ccrma.stanford.edu/wiki/Sensors other sensors] in the lecture notes.<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Evaluation ==<br />
<br />
* Think about the result<br />
** do the controls allow the entire space of parameters to be explored?<br />
** is it easy to choose any desired set of parameters?<br />
** does the effect sound good?<br />
** does it have dynamics?<br />
** would you want to use it live?<br />
*** If not, what is missing still?<br />
<br />
<br />
<br />
<br />
<br />
== More Reading About Arduino ==<br />
'''This OPTIONAL section is for power users only.'''<br />
<br />
* See which devices are attached to Linux by running the command following command. They will appear the be files. Wow, there are so many! <br />
<br />
''ls /dev''<br />
<br />
* To list only the serial interface devices type<br />
<br />
''ls /dev/tty*''<br />
<br />
* Now unplug the Arduino from the Raspberry Pi using the USB cable. The lights on the Arduino board should turn off.<br />
<br />
* Now run<br />
<br />
''ls /dev/tty*''<br />
<br />
again, and you should now see that the device ''/dev/ttyUSB0'' is gone, which represented the Arduino Nano when it was plugged in.<br />
<br />
Troubleshooting: If you didn't see ''/dev/ttyUSB0'' when the Arduino was plugged in, then try rebooting using ''sudo reboot'' to see if that fixes this problem. (If you reboot, this will take about 45 seconds, and you will have to login again using ''ssh''. If that doesn't work, come talk to us. If you are a Linux pro, you can try to debug the problem yourself by typing ''dmesg'' and looking at the result.)<br />
<br />
* By the way, here is how we installed the Arduino firmware on the Arduino before the start of this lab (and the previous one). Plug the Arduino back into the Raspberry Pi and start the Arduino software in the terminal by typing <br />
<br />
''arduino &''<br />
<br />
* Open ''StandardFirmata'' from the Arduino software pull-down menus File|Examples|Firmata. Look at the program. This is what will control the Arduino.<br />
<br />
* Select ''Arduino Nano w/ ATMega328'' under Tools->Board and ''/dev/ttyUSB0'' under Tools->Serial Port. Then hit the Play button to verify and compile the program. <br />
<br />
* Upload the Firmata firmware to your Arduino Nano using upload button, the second square button from the left (the one with the sideways arrow).<br />
<br />
* Close the Arduino program by closing all of the Arduino windows. (This is important because it frees up the USB serial port so that Pd can talk to the Arduino board later.)<br />
<br />
<br />
<br />
<br />
<br />
<center>[[7745]]</center><br />
[[Category:7745]][[Category:PID]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Breadboarding_lab_2020&diff=222597745 Breadboarding lab 20202020-02-06T16:44:30Z<p>Eberdahl: </p>
<hr />
<div><font size=5>Breadboarding lab</font><br><br />
Designed by Edgar Berdahl<br />
<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], a laptop computer with Ethernet adaptor to program it, and some headphones with a mini 1/8" (2.54mm) stereo jack.<br />
<br />
<br />
In this lab, the images will show the Beagle Board xM instead of the Raspberry Pi, but actually all of the wiring is essentially the same. '''Today, we won't be "building a sandwich" with the Raspberry Pi and Arduino; however, we may do that at a future time if you're trying to make your kit smaller!'''<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Power Connections ==<br />
* In order to run circuits on the breadboard, you need to get power to it. The Arduino gets 5V from the USB connection, so in this section you will make the 5V accessible to the breadboard.<br />
* Make sure that your Arduino is mounted at the very end of the breadboard with the higher-numbered rows, as shown in the following picture. In that case, the GND and 5V pins will end up in the 19th row. (Otherwise if your Arduino isn't mounted this way, you simply won't be able to rely on the row numbers, but you can still figure out how to wire things up!)<br />
* Recall first that that holes in the solderless bread board are wired together as shown:<br />
<br />
[[Image:Breadboard.png]]<br />
<br />
* Using short jumpers, connect the GND row to the blue "GND" bus on the breadboard, and connect the 5V row to the red "power" bus on the breadboard.<br />
* Connect the "GND" and "power" busses from both sides of the breadboard together as shown.<br />
<br />
[[Image:circuit0-big.jpg]]<br />
<br />
<br />
<br />
Viewed from further away, your breadboard should now look like the following:<br />
<br />
[[Image:circuit0.jpg]]<br />
<br />
<br />
<br />
<br />
<br />
== First Circuit: Potentiometer ==<br />
<br />
* Use the same procedure as before to power up Satellite CCRMA and login as the user ''ccrma'' with the password ''temppwd''.<br />
<br />
* Don't forget to stop the default patch from running by executing the command<br />
<br />
'''stop-default'''<br />
<br />
* Start pd using the following command<br />
<br />
'''pd &'''<br />
<br />
* Open the pd patch<br />
<br />
~/pd/labs-2016-Music-7745/5.breadboarding-sensors/test-Arduino-only.pd<br />
<br />
* Now you will build the following voltage divider circuit, to connect one potentiometer to analog input A0.<br />
<br />
[[Image:pot-A0.jpg]]<br />
<br />
For some help on placing the wires, please see the following picture. In order to ensure the correct orientation, ensure that the text on the potentiometer is facing '''away''' from the Arduino (see also oblique picture in next section).<br />
[[Image:circuit2.jpg]]<br />
<br />
<br />
<br />
<br />
== Add A Second Potentiometer ==<br />
<br />
Now connect a second potentiometer to analog input A3 using the same voltage divider circuit.<br />
<br />
[[Image:SBcircuit3-direct.jpg]]<br />
<br />
<br />
<br />
Again, ensure that the text on the potentiometer is facing *away* from the Arduino (see the red boxes in the following figure):<br />
<br />
[[Image:SBcircuit3.jpg]]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
=== Other Voltage Dividers ===<br />
The circuit you just used for the potentiometer was a [http://en.wikipedia.org/wiki/Voltage_divider voltage divider] circuit in which the potentiometer serves as two resistors. Other resistive sensors only have two wires, so to build a voltage divider with them, you need to combine them with a second, fixed resistor. Examples in your kit are the force sensitive resistor (FSR) and the bend or flex sensor. The idea is that you put two resistors in series between power and ground: one that changes resistance (your sensor), and one of a known, fixed resistance. At the point in between the two resistors, you can measure how much the voltage has dropped through the first resistor. This value changes as the ratio of resistances between variable and fixed resistors change. More formally:<br />
<br />
[[Image:res_divider.png]]<br />
<br />
* potentiometer:<br />
<br />
[[Image:Pot.png]]<br />
<br />
* force-sensitive resistor (FSR):<br />
<br />
[[Image:FSR.png]]<br />
<br />
Try both circuits. Test the resistance range of your sensor. If you want 2.5 volts to be the middle, make the comparison resistor (33k in the diagram) the "average" value of the FSR's resistance. Test this with a multimeter.<br />
<br />
* Bend Sensor<br />
[[Image:Bend_sensor.png]]<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Troubleshooting ==<br />
* '''Only one pd patch can access the Arduino at a time. If you have two patches open that are trying to access it, then the sensor values delivered in pd won't make any sense.'''<br />
<br />
* '''For power users only:''' Whenever you upload new firmware to the Arduino, the serial port needs to be free. This means that you can't have any pd patches open that are communicating with the Arduino while uploading new firmware.<br />
<br />
<br />
<br />
<br />
== Conclusions ==<br />
Read more about [https://ccrma.stanford.edu/wiki/Sensors other sensors] in the lecture notes.<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Evaluation ==<br />
<br />
* Think about the result<br />
** do the controls allow the entire space of parameters to be explored?<br />
** is it easy to choose any desired set of parameters?<br />
** does the effect sound good?<br />
** does it have dynamics?<br />
** would you want to use it live?<br />
*** If not, what is missing still?<br />
<br />
<br />
<br />
<br />
<br />
== More Reading About Arduino ==<br />
'''This OPTIONAL section is for power users only.'''<br />
<br />
* See which devices are attached to Linux by running the command following command. They will appear the be files. Wow, there are so many! <br />
<br />
''ls /dev''<br />
<br />
* To list only the serial interface devices type<br />
<br />
''ls /dev/tty*''<br />
<br />
* Now unplug the Arduino from the Raspberry Pi using the USB cable. The lights on the Arduino board should turn off.<br />
<br />
* Now run<br />
<br />
''ls /dev/tty*''<br />
<br />
again, and you should now see that the device ''/dev/ttyUSB0'' is gone, which represented the Arduino Nano when it was plugged in.<br />
<br />
Troubleshooting: If you didn't see ''/dev/ttyUSB0'' when the Arduino was plugged in, then try rebooting using ''sudo reboot'' to see if that fixes this problem. (If you reboot, this will take about 45 seconds, and you will have to login again using ''ssh''. If that doesn't work, come talk to us. If you are a Linux pro, you can try to debug the problem yourself by typing ''dmesg'' and looking at the result.)<br />
<br />
* By the way, here is how we installed the Arduino firmware on the Arduino before the start of this lab (and the previous one). Plug the Arduino back into the Raspberry Pi and start the Arduino software in the terminal by typing <br />
<br />
''arduino &''<br />
<br />
* Open ''StandardFirmata'' from the Arduino software pull-down menus File|Examples|Firmata. Look at the program. This is what will control the Arduino.<br />
<br />
* Select ''Arduino Nano w/ ATMega328'' under Tools->Board and ''/dev/ttyUSB0'' under Tools->Serial Port. Then hit the Play button to verify and compile the program. <br />
<br />
* Upload the Firmata firmware to your Arduino Nano using upload button, the second square button from the left (the one with the sideways arrow).<br />
<br />
* Close the Arduino program by closing all of the Arduino windows. (This is important because it frees up the USB serial port so that Pd can talk to the Arduino board later.)<br />
<br />
<br />
<br />
<br />
== Note On Authorship ==<br />
Some small amount of the text and images here was taken from prior laboratory exercises for the course [https://ccrma.stanford.edu/courses/250a/ Music 250A]. We regret that we do not know who contributed these elements, but these people are likely to include Wendy Ju, Bill Verplank, Michael Gurevich, and possibly more.<br />
<br />
<br />
<center>[[7745]]</center><br />
[[Category:7745]][[Category:PID]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Breadboarding_lab_2020&diff=222587745 Breadboarding lab 20202020-02-06T16:44:09Z<p>Eberdahl: Created page with "<font size=5>Breadboarding lab: Controlling Physical Models using Breadboarded Sensors</font><br> Designed by Edgar Berdahl For this lab you need your [http://ccrma.stanford..."</p>
<hr />
<div><font size=5>Breadboarding lab: Controlling Physical Models using Breadboarded Sensors</font><br><br />
Designed by Edgar Berdahl<br />
<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], a laptop computer with Ethernet adaptor to program it, and some headphones with a mini 1/8" (2.54mm) stereo jack.<br />
<br />
<br />
In this lab, the images will show the Beagle Board xM instead of the Raspberry Pi, but actually all of the wiring is essentially the same. '''Today, we won't be "building a sandwich" with the Raspberry Pi and Arduino; however, we may do that at a future time if you're trying to make your kit smaller!'''<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Power Connections ==<br />
* In order to run circuits on the breadboard, you need to get power to it. The Arduino gets 5V from the USB connection, so in this section you will make the 5V accessible to the breadboard.<br />
* Make sure that your Arduino is mounted at the very end of the breadboard with the higher-numbered rows, as shown in the following picture. In that case, the GND and 5V pins will end up in the 19th row. (Otherwise if your Arduino isn't mounted this way, you simply won't be able to rely on the row numbers, but you can still figure out how to wire things up!)<br />
* Recall first that that holes in the solderless bread board are wired together as shown:<br />
<br />
[[Image:Breadboard.png]]<br />
<br />
* Using short jumpers, connect the GND row to the blue "GND" bus on the breadboard, and connect the 5V row to the red "power" bus on the breadboard.<br />
* Connect the "GND" and "power" busses from both sides of the breadboard together as shown.<br />
<br />
[[Image:circuit0-big.jpg]]<br />
<br />
<br />
<br />
Viewed from further away, your breadboard should now look like the following:<br />
<br />
[[Image:circuit0.jpg]]<br />
<br />
<br />
<br />
<br />
<br />
== First Circuit: Potentiometer ==<br />
<br />
* Use the same procedure as before to power up Satellite CCRMA and login as the user ''ccrma'' with the password ''temppwd''.<br />
<br />
* Don't forget to stop the default patch from running by executing the command<br />
<br />
'''stop-default'''<br />
<br />
* Start pd using the following command<br />
<br />
'''pd &'''<br />
<br />
* Open the pd patch<br />
<br />
~/pd/labs-2016-Music-7745/5.breadboarding-sensors/test-Arduino-only.pd<br />
<br />
* Now you will build the following voltage divider circuit, to connect one potentiometer to analog input A0.<br />
<br />
[[Image:pot-A0.jpg]]<br />
<br />
For some help on placing the wires, please see the following picture. In order to ensure the correct orientation, ensure that the text on the potentiometer is facing '''away''' from the Arduino (see also oblique picture in next section).<br />
[[Image:circuit2.jpg]]<br />
<br />
<br />
<br />
<br />
== Add A Second Potentiometer ==<br />
<br />
Now connect a second potentiometer to analog input A3 using the same voltage divider circuit.<br />
<br />
[[Image:SBcircuit3-direct.jpg]]<br />
<br />
<br />
<br />
Again, ensure that the text on the potentiometer is facing *away* from the Arduino (see the red boxes in the following figure):<br />
<br />
[[Image:SBcircuit3.jpg]]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
=== Other Voltage Dividers ===<br />
The circuit you just used for the potentiometer was a [http://en.wikipedia.org/wiki/Voltage_divider voltage divider] circuit in which the potentiometer serves as two resistors. Other resistive sensors only have two wires, so to build a voltage divider with them, you need to combine them with a second, fixed resistor. Examples in your kit are the force sensitive resistor (FSR) and the bend or flex sensor. The idea is that you put two resistors in series between power and ground: one that changes resistance (your sensor), and one of a known, fixed resistance. At the point in between the two resistors, you can measure how much the voltage has dropped through the first resistor. This value changes as the ratio of resistances between variable and fixed resistors change. More formally:<br />
<br />
[[Image:res_divider.png]]<br />
<br />
* potentiometer:<br />
<br />
[[Image:Pot.png]]<br />
<br />
* force-sensitive resistor (FSR):<br />
<br />
[[Image:FSR.png]]<br />
<br />
Try both circuits. Test the resistance range of your sensor. If you want 2.5 volts to be the middle, make the comparison resistor (33k in the diagram) the "average" value of the FSR's resistance. Test this with a multimeter.<br />
<br />
* Bend Sensor<br />
[[Image:Bend_sensor.png]]<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Troubleshooting ==<br />
* '''Only one pd patch can access the Arduino at a time. If you have two patches open that are trying to access it, then the sensor values delivered in pd won't make any sense.'''<br />
<br />
* '''For power users only:''' Whenever you upload new firmware to the Arduino, the serial port needs to be free. This means that you can't have any pd patches open that are communicating with the Arduino while uploading new firmware.<br />
<br />
<br />
<br />
<br />
== Conclusions ==<br />
Read more about [https://ccrma.stanford.edu/wiki/Sensors other sensors] in the lecture notes.<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Evaluation ==<br />
<br />
* Think about the result<br />
** do the controls allow the entire space of parameters to be explored?<br />
** is it easy to choose any desired set of parameters?<br />
** does the effect sound good?<br />
** does it have dynamics?<br />
** would you want to use it live?<br />
*** If not, what is missing still?<br />
<br />
<br />
<br />
<br />
<br />
== More Reading About Arduino ==<br />
'''This OPTIONAL section is for power users only.'''<br />
<br />
* See which devices are attached to Linux by running the command following command. They will appear the be files. Wow, there are so many! <br />
<br />
''ls /dev''<br />
<br />
* To list only the serial interface devices type<br />
<br />
''ls /dev/tty*''<br />
<br />
* Now unplug the Arduino from the Raspberry Pi using the USB cable. The lights on the Arduino board should turn off.<br />
<br />
* Now run<br />
<br />
''ls /dev/tty*''<br />
<br />
again, and you should now see that the device ''/dev/ttyUSB0'' is gone, which represented the Arduino Nano when it was plugged in.<br />
<br />
Troubleshooting: If you didn't see ''/dev/ttyUSB0'' when the Arduino was plugged in, then try rebooting using ''sudo reboot'' to see if that fixes this problem. (If you reboot, this will take about 45 seconds, and you will have to login again using ''ssh''. If that doesn't work, come talk to us. If you are a Linux pro, you can try to debug the problem yourself by typing ''dmesg'' and looking at the result.)<br />
<br />
* By the way, here is how we installed the Arduino firmware on the Arduino before the start of this lab (and the previous one). Plug the Arduino back into the Raspberry Pi and start the Arduino software in the terminal by typing <br />
<br />
''arduino &''<br />
<br />
* Open ''StandardFirmata'' from the Arduino software pull-down menus File|Examples|Firmata. Look at the program. This is what will control the Arduino.<br />
<br />
* Select ''Arduino Nano w/ ATMega328'' under Tools->Board and ''/dev/ttyUSB0'' under Tools->Serial Port. Then hit the Play button to verify and compile the program. <br />
<br />
* Upload the Firmata firmware to your Arduino Nano using upload button, the second square button from the left (the one with the sideways arrow).<br />
<br />
* Close the Arduino program by closing all of the Arduino windows. (This is important because it frees up the USB serial port so that Pd can talk to the Arduino board later.)<br />
<br />
<br />
<br />
<br />
== Note On Authorship ==<br />
Some small amount of the text and images here was taken from prior laboratory exercises for the course [https://ccrma.stanford.edu/courses/250a/ Music 250A]. We regret that we do not know who contributed these elements, but these people are likely to include Wendy Ju, Bill Verplank, Michael Gurevich, and possibly more.<br />
<br />
<br />
<center>[[7745]]</center><br />
[[Category:7745]][[Category:PID]]</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Audio_FX&diff=222277745 Audio FX2020-01-21T15:36:48Z<p>Eberdahl: /* Starting Audio And Pd */</p>
<hr />
<div><font size=5>Audio Effects in Pd</font><br><br />
<br />
Most instructions by Edgar Berdahl, and lab patches for musical interaction description by Matt Wright and possibly others<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], a computer to program it, and some headphones with a mini 1/8" stereo jack.<br />
<br />
<br />
<br />
<br />
<br />
<br />
== The Satellite CCRMA Setup (Before Adding Arduino) ==<br />
Included in your kit so far you should have<br />
- Raspberry Pi Model B (with 512MB of RAM)<br />
- One memory card (it may already be inserted into your Raspberry Pi)<br />
- One Ethernet cable for communication with your laptop<br />
- One USB micro cable<br />
- One USB audio interface with 1/4" connectors<br />
<br />
If you are missing something, please go get it before assembling your kit. Make sure the SD memory card is seated all of the way in its slot.<br />
<br />
<br />
<br />
<br />
<br />
== Powering Up For The First Time ==<br />
* Plug the Ethernet port of the Raspberry Pi into your laptop. <br />
<br />
* Plug the USB audio device into the Raspberry Pi. ('''The USB audio device won't work if you plug it in after it has booted up.''')<br />
<br />
* Then use the USB micro cable to power up the Raspberry Pi. (If you have a USB power supply, you could use it to power the Raspberry Pi, or if not you can try using your laptop's USB connector to power the Rasberry Pi.) You should see some lights turn on, flickering every now and then. This means that the Raspberry Pi is booting up.<br />
<br />
<br />
<br />
<br />
== Connect To Satellite CCRMA ==<br />
In order to see what your Satellite CCRMA kit is doing and program it, you need to log in to it. To do so, follow [https://ccrma.stanford.edu/wiki/CCRMA_Satellite_How_To_Connect_RevC these instructions].<br />
<br />
After you login, you will see the prompt ''ccrma@satellite:~$'' This means that you are logged into a computer named "satellite" as the user "ccrma", and you are currently in the directory ~, which is the shortcut for your home directory.<br />
<br />
<br />
<br />
<br />
== Avoid Powering Down the Board Without Halting it First! ==<br />
Would you take the battery out of your laptop and unplug its power adaptor without shutting down? ''I don't think so!'' The same goes for Satellite CCRMA, at least when you can avoid it, because it is a small computer running linux.<br />
<br />
Now we will test the halt procedure. Run the halt command as superuser by typing ''sudo halt'' at the Satellite CCRMA prompt. Then you will again have to type in the password ''temppwd'' in order to have the privilege to run this command. Wait until about 15 seconds after you see the message "Connection to 192.168.105.106 closed by remote host," and then disconnect the power from the Raspberry Pi via the micro USB connector.<br />
<br />
<br />
<br />
<br />
== Getting Comfortable With Satellite CCRMA ==<br />
* Turn on Satellite CCRMA again using the same procedure as before by plugging the micro USB connector into the Raspberry Pi. After about 30 seconds, the board should be booted up again, so you can log in again by running the command <br />
<br />
''ssh -XY ccrma@192.168.105.106''<br />
<br />
* Run the command ''pwd'' to find out the current directory. You will find that you are in the ''ccrma'' subdirectory of the directory ''/home''.<br />
<br />
* Type the ''ls'' command to see what is in the current directory. The blue items are subdirectories of the current directory. You can change directories using the ''cd'' command. For instance, to change into the ''pd'' subdirectory, you should run the command<br />
<br />
''cd pd''<br />
<br />
* Now again type ''pwd'' to make sure that you understand where you are! Run the ''ls'' command to see what files are in here.<br />
<br />
<br />
<br />
<br />
<br />
== Starting Audio And Pd ==<br />
<br />
* In order to be able to hear audio, you will need to plug a pair of ear buds, headphones, or loudspeakers into the audio output jack (this jack is marked with an image of a pair of "headphones").<br />
<br />
* Start pd now with the following command<br />
<br />
''pd &''<br />
<br />
This time the graphical user interface (GUI) for pd should also start.<br />
<br />
* To start audio, click on the ''DSP'' checkbox in the main window.<br />
<br />
* Now to test audio, go to the media pull-down menu and choose ''Test Audio and MIDI...'' If you still do not here any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
* Once you have audio working, close the window test audio and MIDI window.<br />
<br />
* Next, to enable the audio input from the USB audio adapter, go to and make it look like this:<br />
<br />
<center>[[Image:MicInput.png]]</center><br />
<br />
* Choose ''Open'' from the ''File'' menu and select the patch ''03.adjustable.volume.pd'' within the ''~/pd/labs-2018-Music-7745/2.audiofx-lab'' subdirectory. Then go back to the patch, make sure that you have a microphone connected to the input of your sound interface (e.g. a piezo from the previous lab), and observe that the volume control works.<br />
<br />
* Go through the other patches in this directory, becoming more familiar with how those other effects work.<br />
<br />
* Open the patch ''30.exercise.pd.'' Design your own effects chain (for example by copying and pasting the other effects into this patch or creating your own new effects) to process the sound from the microphone to create a sound for the loudspeaker.<br />
<br />
* Record a 30-second ditty of your new digital musical instrument. Submit a ZIP file of the ditty as well as a picture (if your instrument looks different than in the previous week).<br />
<br />
Troubleshooting: If you still do not here any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
== List Of Objects ==<br />
* Here is a list of all of the pd vanilla objects: http://blog.joehahn.ws/list-puredata-objects-and-extended-objects<br />
<br />
* You can search that list by using your browser's ''search'' function. (Some of the pd extended objects are installed but not all of them.)<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== The Community ==<br />
<br />
There is a large, dedicated, and very generous community of Pd users on the Internet. Do some web searching (e.g., with a search engine, or else starting from some more specific resources) and look for interesting externals and/or patches. '''Optional:''' Download, install, and play with at least one. Can you incorporate it into what you programmed in the previous part?<br />
<br />
For more help in finding resources, don't forget to look on the [[PID Links]] page.<br />
<br />
<br />
<br />
<br />
<br />
== Appendix: Troubleshooting ==<br />
Tips:<br />
* If you are having problems with audio, make sure that ''compute audio'' is set to on.<br />
* If the audio is stuttering, then your processor might not be powerful enough to run all of the patches that are open. Remember, Satellite CCRMA is not as powerful as a laptop. Therefore, be careful about building complicated patches. You can monitor how much CPU you are using by running the ''top'' command in the terminal.<br />
* Type <tt>dmesg</tt> to see if there are any relevant messages that look like error messages.<br />
<br />
Solutions:<br />
* If you are running out of space on the SD card, you can free up some space by deleting some packages. Run<br />
<br />
<tt>wajig large</tt><br />
<br />
to see which packages are the largest.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=File:MicInput.png&diff=22226File:MicInput.png2020-01-21T15:35:47Z<p>Eberdahl: Eberdahl uploaded a new version of File:MicInput.png</p>
<hr />
<div></div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=File:MicInput.png&diff=22225File:MicInput.png2020-01-21T15:32:41Z<p>Eberdahl: </p>
<hr />
<div></div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Audio_FX&diff=222247745 Audio FX2020-01-21T15:32:29Z<p>Eberdahl: /* Starting Audio And Pd */</p>
<hr />
<div><font size=5>Audio Effects in Pd</font><br><br />
<br />
Most instructions by Edgar Berdahl, and lab patches for musical interaction description by Matt Wright and possibly others<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], a computer to program it, and some headphones with a mini 1/8" stereo jack.<br />
<br />
<br />
<br />
<br />
<br />
<br />
== The Satellite CCRMA Setup (Before Adding Arduino) ==<br />
Included in your kit so far you should have<br />
- Raspberry Pi Model B (with 512MB of RAM)<br />
- One memory card (it may already be inserted into your Raspberry Pi)<br />
- One Ethernet cable for communication with your laptop<br />
- One USB micro cable<br />
- One USB audio interface with 1/4" connectors<br />
<br />
If you are missing something, please go get it before assembling your kit. Make sure the SD memory card is seated all of the way in its slot.<br />
<br />
<br />
<br />
<br />
<br />
== Powering Up For The First Time ==<br />
* Plug the Ethernet port of the Raspberry Pi into your laptop. <br />
<br />
* Plug the USB audio device into the Raspberry Pi. ('''The USB audio device won't work if you plug it in after it has booted up.''')<br />
<br />
* Then use the USB micro cable to power up the Raspberry Pi. (If you have a USB power supply, you could use it to power the Raspberry Pi, or if not you can try using your laptop's USB connector to power the Rasberry Pi.) You should see some lights turn on, flickering every now and then. This means that the Raspberry Pi is booting up.<br />
<br />
<br />
<br />
<br />
== Connect To Satellite CCRMA ==<br />
In order to see what your Satellite CCRMA kit is doing and program it, you need to log in to it. To do so, follow [https://ccrma.stanford.edu/wiki/CCRMA_Satellite_How_To_Connect_RevC these instructions].<br />
<br />
After you login, you will see the prompt ''ccrma@satellite:~$'' This means that you are logged into a computer named "satellite" as the user "ccrma", and you are currently in the directory ~, which is the shortcut for your home directory.<br />
<br />
<br />
<br />
<br />
== Avoid Powering Down the Board Without Halting it First! ==<br />
Would you take the battery out of your laptop and unplug its power adaptor without shutting down? ''I don't think so!'' The same goes for Satellite CCRMA, at least when you can avoid it, because it is a small computer running linux.<br />
<br />
Now we will test the halt procedure. Run the halt command as superuser by typing ''sudo halt'' at the Satellite CCRMA prompt. Then you will again have to type in the password ''temppwd'' in order to have the privilege to run this command. Wait until about 15 seconds after you see the message "Connection to 192.168.105.106 closed by remote host," and then disconnect the power from the Raspberry Pi via the micro USB connector.<br />
<br />
<br />
<br />
<br />
== Getting Comfortable With Satellite CCRMA ==<br />
* Turn on Satellite CCRMA again using the same procedure as before by plugging the micro USB connector into the Raspberry Pi. After about 30 seconds, the board should be booted up again, so you can log in again by running the command <br />
<br />
''ssh -XY ccrma@192.168.105.106''<br />
<br />
* Run the command ''pwd'' to find out the current directory. You will find that you are in the ''ccrma'' subdirectory of the directory ''/home''.<br />
<br />
* Type the ''ls'' command to see what is in the current directory. The blue items are subdirectories of the current directory. You can change directories using the ''cd'' command. For instance, to change into the ''pd'' subdirectory, you should run the command<br />
<br />
''cd pd''<br />
<br />
* Now again type ''pwd'' to make sure that you understand where you are! Run the ''ls'' command to see what files are in here.<br />
<br />
<br />
<br />
<br />
<br />
== Starting Audio And Pd ==<br />
<br />
* In order to be able to hear audio, you will need to plug a pair of ear buds, headphones, or loudspeakers into the audio output jack (this jack is marked with an image of a pair of "headphones").<br />
<br />
* Start pd now with the following command<br />
<br />
''pd &''<br />
<br />
This time the graphical user interface (GUI) for pd should also start.<br />
<br />
* To start audio, click on the ''DSP'' checkbox in the main window.<br />
<br />
* Now to test audio, go to the media pull-down menu and choose ''Test Audio and MIDI...'' If you still do not here any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
* Once you have audio working, close the window test audio and MIDI window.<br />
<br />
* Next, to enable the audio input from the USB audio adapter, go to and make it look like this:<br />
<br />
[[Image:MicInput.png]]<br />
<br />
* Choose ''Open'' from the ''File'' menu and select the patch ''03.adjustable.volume.pd'' within the ''~/pd/labs-2018-Music-7745/2.audiofx-lab'' subdirectory. Then go back to the patch, make sure that you have a microphone connected to the input of your sound interface (e.g. a piezo from the previous lab), and observe that the volume control works.<br />
<br />
* Go through the other patches in this directory, becoming more familiar with how those other effects work.<br />
<br />
* Open the patch ''30.exercise.pd.'' Design your own effects chain (for example by copying and pasting the other effects into this patch or creating your own new effects) to process the sound from the microphone to create a sound for the loudspeaker.<br />
<br />
* Record a 30-second ditty of your new digital musical instrument. Submit a ZIP file of the ditty as well as a picture (if your instrument looks different than in the previous week).<br />
<br />
Troubleshooting: If you still do not here any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
== List Of Objects ==<br />
* Here is a list of all of the pd vanilla objects: http://blog.joehahn.ws/list-puredata-objects-and-extended-objects<br />
<br />
* You can search that list by using your browser's ''search'' function. (Some of the pd extended objects are installed but not all of them.)<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== The Community ==<br />
<br />
There is a large, dedicated, and very generous community of Pd users on the Internet. Do some web searching (e.g., with a search engine, or else starting from some more specific resources) and look for interesting externals and/or patches. '''Optional:''' Download, install, and play with at least one. Can you incorporate it into what you programmed in the previous part?<br />
<br />
For more help in finding resources, don't forget to look on the [[PID Links]] page.<br />
<br />
<br />
<br />
<br />
<br />
== Appendix: Troubleshooting ==<br />
Tips:<br />
* If you are having problems with audio, make sure that ''compute audio'' is set to on.<br />
* If the audio is stuttering, then your processor might not be powerful enough to run all of the patches that are open. Remember, Satellite CCRMA is not as powerful as a laptop. Therefore, be careful about building complicated patches. You can monitor how much CPU you are using by running the ''top'' command in the terminal.<br />
* Type <tt>dmesg</tt> to see if there are any relevant messages that look like error messages.<br />
<br />
Solutions:<br />
* If you are running out of space on the SD card, you can free up some space by deleting some packages. Run<br />
<br />
<tt>wajig large</tt><br />
<br />
to see which packages are the largest.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Audio_FX&diff=222237745 Audio FX2020-01-21T15:31:30Z<p>Eberdahl: /* Starting Audio And Pd */</p>
<hr />
<div><font size=5>Audio Effects in Pd</font><br><br />
<br />
Most instructions by Edgar Berdahl, and lab patches for musical interaction description by Matt Wright and possibly others<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], a computer to program it, and some headphones with a mini 1/8" stereo jack.<br />
<br />
<br />
<br />
<br />
<br />
<br />
== The Satellite CCRMA Setup (Before Adding Arduino) ==<br />
Included in your kit so far you should have<br />
- Raspberry Pi Model B (with 512MB of RAM)<br />
- One memory card (it may already be inserted into your Raspberry Pi)<br />
- One Ethernet cable for communication with your laptop<br />
- One USB micro cable<br />
- One USB audio interface with 1/4" connectors<br />
<br />
If you are missing something, please go get it before assembling your kit. Make sure the SD memory card is seated all of the way in its slot.<br />
<br />
<br />
<br />
<br />
<br />
== Powering Up For The First Time ==<br />
* Plug the Ethernet port of the Raspberry Pi into your laptop. <br />
<br />
* Plug the USB audio device into the Raspberry Pi. ('''The USB audio device won't work if you plug it in after it has booted up.''')<br />
<br />
* Then use the USB micro cable to power up the Raspberry Pi. (If you have a USB power supply, you could use it to power the Raspberry Pi, or if not you can try using your laptop's USB connector to power the Rasberry Pi.) You should see some lights turn on, flickering every now and then. This means that the Raspberry Pi is booting up.<br />
<br />
<br />
<br />
<br />
== Connect To Satellite CCRMA ==<br />
In order to see what your Satellite CCRMA kit is doing and program it, you need to log in to it. To do so, follow [https://ccrma.stanford.edu/wiki/CCRMA_Satellite_How_To_Connect_RevC these instructions].<br />
<br />
After you login, you will see the prompt ''ccrma@satellite:~$'' This means that you are logged into a computer named "satellite" as the user "ccrma", and you are currently in the directory ~, which is the shortcut for your home directory.<br />
<br />
<br />
<br />
<br />
== Avoid Powering Down the Board Without Halting it First! ==<br />
Would you take the battery out of your laptop and unplug its power adaptor without shutting down? ''I don't think so!'' The same goes for Satellite CCRMA, at least when you can avoid it, because it is a small computer running linux.<br />
<br />
Now we will test the halt procedure. Run the halt command as superuser by typing ''sudo halt'' at the Satellite CCRMA prompt. Then you will again have to type in the password ''temppwd'' in order to have the privilege to run this command. Wait until about 15 seconds after you see the message "Connection to 192.168.105.106 closed by remote host," and then disconnect the power from the Raspberry Pi via the micro USB connector.<br />
<br />
<br />
<br />
<br />
== Getting Comfortable With Satellite CCRMA ==<br />
* Turn on Satellite CCRMA again using the same procedure as before by plugging the micro USB connector into the Raspberry Pi. After about 30 seconds, the board should be booted up again, so you can log in again by running the command <br />
<br />
''ssh -XY ccrma@192.168.105.106''<br />
<br />
* Run the command ''pwd'' to find out the current directory. You will find that you are in the ''ccrma'' subdirectory of the directory ''/home''.<br />
<br />
* Type the ''ls'' command to see what is in the current directory. The blue items are subdirectories of the current directory. You can change directories using the ''cd'' command. For instance, to change into the ''pd'' subdirectory, you should run the command<br />
<br />
''cd pd''<br />
<br />
* Now again type ''pwd'' to make sure that you understand where you are! Run the ''ls'' command to see what files are in here.<br />
<br />
<br />
<br />
<br />
<br />
== Starting Audio And Pd ==<br />
<br />
* In order to be able to hear audio, you will need to plug a pair of ear buds, headphones, or loudspeakers into the audio output jack (this jack is marked with an image of a pair of "headphones").<br />
<br />
* Start pd now with the following command<br />
<br />
''pd &''<br />
<br />
This time the graphical user interface (GUI) for pd should also start.<br />
<br />
* To start audio, click on the ''DSP'' checkbox in the main window.<br />
<br />
* Now to test audio, go to the media pull-down menu and choose ''Test Audio and MIDI...'' If you still do not here any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
* Once you have audio working, close the window test audio and MIDI window.<br />
<br />
* Next, to enable the audio input from the USB audio adapter, go to and make it look like this:<br />
<br />
[[Image:MicInput.jpg]]<br />
<br />
* Choose ''Open'' from the ''File'' menu and select the patch ''03.adjustable.volume.pd'' within the ''~/pd/labs-2018-Music-7745/2.audiofx-lab'' subdirectory. Then go back to the patch, make sure that you have a microphone connected to the input of your sound interface (e.g. a piezo from the previous lab), and observe that the volume control works.<br />
<br />
* Go through the other patches in this directory, becoming more familiar with how those other effects work.<br />
<br />
* Open the patch ''30.exercise.pd.'' Design your own effects chain (for example by copying and pasting the other effects into this patch or creating your own new effects) to process the sound from the microphone to create a sound for the loudspeaker.<br />
<br />
* Record a 30-second ditty of your new digital musical instrument. Submit a ZIP file of the ditty as well as a picture (if your instrument looks different than in the previous week).<br />
<br />
Troubleshooting: If you still do not here any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
== List Of Objects ==<br />
* Here is a list of all of the pd vanilla objects: http://blog.joehahn.ws/list-puredata-objects-and-extended-objects<br />
<br />
* You can search that list by using your browser's ''search'' function. (Some of the pd extended objects are installed but not all of them.)<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== The Community ==<br />
<br />
There is a large, dedicated, and very generous community of Pd users on the Internet. Do some web searching (e.g., with a search engine, or else starting from some more specific resources) and look for interesting externals and/or patches. '''Optional:''' Download, install, and play with at least one. Can you incorporate it into what you programmed in the previous part?<br />
<br />
For more help in finding resources, don't forget to look on the [[PID Links]] page.<br />
<br />
<br />
<br />
<br />
<br />
== Appendix: Troubleshooting ==<br />
Tips:<br />
* If you are having problems with audio, make sure that ''compute audio'' is set to on.<br />
* If the audio is stuttering, then your processor might not be powerful enough to run all of the patches that are open. Remember, Satellite CCRMA is not as powerful as a laptop. Therefore, be careful about building complicated patches. You can monitor how much CPU you are using by running the ''top'' command in the terminal.<br />
* Type <tt>dmesg</tt> to see if there are any relevant messages that look like error messages.<br />
<br />
Solutions:<br />
* If you are running out of space on the SD card, you can free up some space by deleting some packages. Run<br />
<br />
<tt>wajig large</tt><br />
<br />
to see which packages are the largest.</div>Eberdahlhttps://ccrma.stanford.edu/mediawiki/index.php?title=7745_Audio_FX&diff=205577745 Audio FX2018-01-30T15:54:47Z<p>Eberdahl: </p>
<hr />
<div><font size=5>Audio Effects in Pd</font><br><br />
<br />
Most instructions by Edgar Berdahl, and lab patches for musical interaction description by Matt Wright and possibly others<br />
<br />
For this lab you need your [http://ccrma.stanford.edu/~eberdahl/Satellite Satellite CCRMA kit], a computer to program it, and some headphones with a mini 1/8" stereo jack.<br />
<br />
<br />
<br />
<br />
<br />
<br />
== The Satellite CCRMA Setup (Before Adding Arduino) ==<br />
Included in your kit so far you should have<br />
- Raspberry Pi Model B (with 512MB of RAM)<br />
- One memory card (it may already be inserted into your Raspberry Pi)<br />
- One Ethernet cable for communication with your laptop<br />
- One USB micro cable<br />
- One USB audio interface with 1/4" connectors<br />
<br />
If you are missing something, please go get it before assembling your kit. Make sure the SD memory card is seated all of the way in its slot.<br />
<br />
<br />
<br />
<br />
<br />
== Powering Up For The First Time ==<br />
* Plug the Ethernet port of the Raspberry Pi into your laptop. <br />
<br />
* Plug the USB audio device into the Raspberry Pi. ('''The USB audio device won't work if you plug it in after it has booted up.''')<br />
<br />
* Then use the USB micro cable to power up the Raspberry Pi. (If you have a USB power supply, you could use it to power the Raspberry Pi, or if not you can try using your laptop's USB connector to power the Rasberry Pi.) You should see some lights turn on, flickering every now and then. This means that the Raspberry Pi is booting up.<br />
<br />
<br />
<br />
<br />
== Connect To Satellite CCRMA ==<br />
In order to see what your Satellite CCRMA kit is doing and program it, you need to log in to it. To do so, follow [https://ccrma.stanford.edu/wiki/CCRMA_Satellite_How_To_Connect_RevC these instructions].<br />
<br />
After you login, you will see the prompt ''ccrma@satellite:~$'' This means that you are logged into a computer named "satellite" as the user "ccrma", and you are currently in the directory ~, which is the shortcut for your home directory.<br />
<br />
<br />
<br />
<br />
== Avoid Powering Down the Board Without Halting it First! ==<br />
Would you take the battery out of your laptop and unplug its power adaptor without shutting down? ''I don't think so!'' The same goes for Satellite CCRMA, at least when you can avoid it, because it is a small computer running linux.<br />
<br />
Now we will test the halt procedure. Run the halt command as superuser by typing ''sudo halt'' at the Satellite CCRMA prompt. Then you will again have to type in the password ''temppwd'' in order to have the privilege to run this command. Wait until about 15 seconds after you see the message "Connection to 192.168.105.106 closed by remote host," and then disconnect the power from the Raspberry Pi via the micro USB connector.<br />
<br />
<br />
<br />
<br />
== Getting Comfortable With Satellite CCRMA ==<br />
* Turn on Satellite CCRMA again using the same procedure as before by plugging the micro USB connector into the Raspberry Pi. After about 30 seconds, the board should be booted up again, so you can log in again by running the command <br />
<br />
''ssh -XY ccrma@192.168.105.106''<br />
<br />
* Run the command ''pwd'' to find out the current directory. You will find that you are in the ''ccrma'' subdirectory of the directory ''/home''.<br />
<br />
* Type the ''ls'' command to see what is in the current directory. The blue items are subdirectories of the current directory. You can change directories using the ''cd'' command. For instance, to change into the ''pd'' subdirectory, you should run the command<br />
<br />
''cd pd''<br />
<br />
* Now again type ''pwd'' to make sure that you understand where you are! Run the ''ls'' command to see what files are in here.<br />
<br />
<br />
<br />
<br />
<br />
== Starting Audio And Pd ==<br />
<br />
* In order to be able to hear audio, you will need to plug a pair of ear buds, headphones, or loudspeakers into the audio output jack (this jack is marked with an image of a pair of "headphones").<br />
<br />
* Start pd now with the following command<br />
<br />
''pd &''<br />
<br />
This time the graphical user interface (GUI) for pd should also start.<br />
<br />
* To start audio, click on the ''DSP'' checkbox in the main window.<br />
<br />
* Now to test audio, go to the media pull-down menu and choose ''Test Audio and MIDI...'' If you still do not here any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
* Once you have audio working, close the window test audio and MIDI window.<br />
<br />
* Choose ''Open'' from the ''File'' menu and select the patch ''03.adjustable.volume.pd'' within the ''~/pd/labs-2018-Music-7745/2.audiofx-lab'' subdirectory. Then go back to the patch, make sure that you have a microphone connected to the input of your sound interface (e.g. a piezo from the previous lab), and observe that the volume control works.<br />
<br />
* Go through the other patches in this directory, becoming more familiar with how those other effects work.<br />
<br />
* Open the patch ''30.exercise.pd.'' Design your own effects chain (for example by copying and pasting the other effects into this patch or creating your own new effects) to process the sound from the microphone to create a sound for the loudspeaker.<br />
<br />
* Record a 30-second ditty of your new digital musical instrument. Submit a ZIP file of the ditty as well as a picture (if your instrument looks different than in the previous week).<br />
<br />
Troubleshooting: If you still do not here any sound, then probably you missed one of the steps so far. If you look at the messages in the main ''pd'' window, you might find a clue.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== List Of Objects ==<br />
* Here is a list of all of the pd vanilla objects: http://blog.joehahn.ws/list-puredata-objects-and-extended-objects<br />
<br />
* You can search that list by using your browser's ''search'' function. (Some of the pd extended objects are installed but not all of them.)<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== The Community ==<br />
<br />
There is a large, dedicated, and very generous community of Pd users on the Internet. Do some web searching (e.g., with a search engine, or else starting from some more specific resources) and look for interesting externals and/or patches. '''Optional:''' Download, install, and play with at least one. Can you incorporate it into what you programmed in the previous part?<br />
<br />
For more help in finding resources, don't forget to look on the [[PID Links]] page.<br />
<br />
<br />
<br />
<br />
<br />
== Appendix: Troubleshooting ==<br />
Tips:<br />
* If you are having problems with audio, make sure that ''compute audio'' is set to on.<br />
* If the audio is stuttering, then your processor might not be powerful enough to run all of the patches that are open. Remember, Satellite CCRMA is not as powerful as a laptop. Therefore, be careful about building complicated patches. You can monitor how much CPU you are using by running the ''top'' command in the terminal.<br />
* Type <tt>dmesg</tt> to see if there are any relevant messages that look like error messages.<br />
<br />
Solutions:<br />
* If you are running out of space on the SD card, you can free up some space by deleting some packages. Run<br />
<br />
<tt>wajig large</tt><br />
<br />
to see which packages are the largest.</div>Eberdahl