Jump to content

220a-fall-2007: Difference between revisions

From CCRMA Wiki
Kolar (talk | contribs)
No edit summary
Ge (talk | contribs)
No edit summary
 
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= FAQ =
* [http://ccrma.stanford.edu/courses/220a/ course homepage]
* [[220a-fall-2007/FAQ|Frequently Asked Questions]]
* [[220a-fall-2007/studentmusic|student music presentations]]
* [[220a-fall-2007/psychoacoustics|psychoacoustics]]
* [[220a-fall-2007/finalprojects|FINAL PROJECTS WIKI]]


* ''' What is "terminal" and how do I use it?'''


Terminal is a way to type commands to the Linux operating system, to navigate between directories ("folders"), copy files, run programs, and do many other useful things.
== labs + assignments on wiki ==
* [[220a-fall2007/chuck-lab1|chuck-lab #1]]
* [[220a-fall2007/hw2|hw #2]]
* [[220a-fall2007/hw4|hw #4]]
* [[220a-fall2007/hw5|hw #5]]
* [[220a-fall2007/hw6|hw #6]]
* [[220a-fall2007/fpmeetings|final project meeting signup]]


To open a terminal, right-click the mouse anywhere on the screen and select "New Terminal".


A terminal will open, and a command line prompt will appear that identifies the computer (cmn#), your login name and the '''working directory''', which is the location in the directory structure from which you are navigating. After the prompt, you can type commands.
== useful ChucK resources ==
* [http://chuck.cs.princeton.edu/doc/language/ language specification]: documents the language
* [http://chuck.cs.princeton.edu/doc/program/ programmer's guide]: documentation for ChucK class libraries
** [http://chuck.cs.princeton.edu/doc/program/stdlib.html standard library reference]: ready-to-use functionality (like random, mtof, math functions)
** [http://chuck.cs.princeton.edu/doc/program/ugen.html unit generator reference]: references of sound synthesis modules in ChucK


For example, you can navigate around the file system by using the "change directory" command:
* [http://www.harmony-central.com/MIDI/Doc/table2.html MIDI note numbers]
'''cd pd-lab'''
will navigate into your pd-lab directory.


If you want to see your current location in the directory structure, type:
'''pwd'''
which stands for "print working directory".


If you want to see what files and folders are in the working directory, type the "list" command:
[[Category: Courses]]
'''ls'''
 
 
 
* ''' How do I copy files from the course directory into my project directory?'''
 
In a terminal, you can use Linux commands (based on Unix commands, tutorial:[http://www.ee.surrey.ac.uk/Teaching/Unix/]) to copy files.
 
The copy command, '''cp''', allows you to make a copy of one file to whatever location you specify.
 
For example, if you have a project directory called "pd-lab" and you want to copy the "straightWire" Pd patch from the course examples directory, after the command prompt you would type exactly (including spaces):
 
cp /usr/ccrma/web/html/courses/220a-fall-2007/pd/straightWire.pd .
 
The period at the end indicates the location where the file will be copied is the '''working directory'''.

Latest revision as of 05:31, 5 January 2008


labs + assignments on wiki


useful ChucK resources