DANM 220: Week 6, Thursday, 2/12/08NetLogo to Csound NotesFrom Pablo Viotti4. Place the three files below in home directory and type the following from terminal window. % /Applications/NetLogo\ 3.1.2/NetLogo\ 3.1.2.app/Contents/MacOS/NetLogo | ( csound -L stdin t.orc t.sco -o devaudio ) You may have to modify the .profile to access command-line csound, which is in /usr/local/bin else, use the following command: % /Applications/NetLogo\ 3.1.2/NetLogo\ 3.1.2.app/Contents/MacOS/NetLogo | (/usr/local/bin/csound -L stdin t.orc t.sco -o devaudio) In the example above, t.orc and t.sco are the necessary csound files (orchestra and score). 5. Both Csound and Netlogo should launch 5a. When NetLogo opes, use File>Open to open the NetLogo Model below 5b. You should now be able to run the model to produce sound output! There is a diagnostic button that plays A440 for a second on the netlogo screen. Here are the three files: Revised by Ralph, 14 February 2008 |