Difference between revisions of "220a-fall-2009/usefulCODE"
From CCRMA Wiki
(Created page with '== Chuck Code == * [http://ccrma.stanford.edu/~mpberger/spare/Wiki_Files/chant.ck chant.ck] by Perry Cook, Look specifically at the last function called ramp_stuff(); :)') |
(→Chuck Code) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Chuck Code == | == Chuck Code == | ||
− | * [http://ccrma.stanford.edu/~mpberger/spare/Wiki_Files/ | + | * [http://ccrma.stanford.edu/~mpberger/spare/Wiki_Files/Chant.ck Chant.ck] by Perry Cook, Look specifically at the last function called ramp_stuff(); :) |
+ | |||
+ | * [http://ccrma.stanford.edu/~mpberger/spare/Wiki_Files/hw4-changed_mb.ck hw4-changed_mb.ck] the code that resulted from my office hours October 25 regarding homework #4. | ||
+ | |||
+ | * [http://ccrma.stanford.edu/~mpberger/spare/ck/ MORE CODE] (pitch tracking, envelope following, osc) ~ Some of the things we discussed at my office hours Nov. 15. | ||
+ | |||
+ | * [http://smelt.cs.princeton.edu/ S.M.E.L.T.]!!!!! code for user interface with chuck (VERY USEFUL!) code is halfway down the page. | ||
+ | |||
+ | * [http://audicle.cs.princeton.edu/mini/mac/doc/maui_api.html MAUI] MiniAudicle User Interfaces | ||
+ | |||
+ | |||
+ | FILEIO: | ||
+ | //TEXT FILE | ||
+ | FileIO TextFile; | ||
+ | |||
+ | 17 => int foo; | ||
+ | |||
+ | // open for write | ||
+ | TextFile.open ("Results.txt", FileIO.APPEND); | ||
+ | |||
+ | //TEST! | ||
+ | if (!TextFile.good()) | ||
+ | { | ||
+ | <<< "--- Can't open Results.txt for writing...", "" >>>; | ||
+ | me.exit(); | ||
+ | }//test | ||
+ | // write some stuff | ||
+ | TextFile.write( "Here is some stuff:" + foo + "." + "\n" ); // \n does a carriage return | ||
+ | |||
+ | |||
+ | -- | ||
+ | * [http://cm-wiki.stanford.edu/wiki/220a-fall-2009 Back to 220a wiki Page] |
Latest revision as of 11:48, 17 November 2009
Chuck Code
- Chant.ck by Perry Cook, Look specifically at the last function called ramp_stuff(); :)
- hw4-changed_mb.ck the code that resulted from my office hours October 25 regarding homework #4.
- MORE CODE (pitch tracking, envelope following, osc) ~ Some of the things we discussed at my office hours Nov. 15.
- S.M.E.L.T.!!!!! code for user interface with chuck (VERY USEFUL!) code is halfway down the page.
- MAUI MiniAudicle User Interfaces
FILEIO:
//TEXT FILE FileIO TextFile; 17 => int foo; // open for write TextFile.open ("Results.txt", FileIO.APPEND); //TEST! if (!TextFile.good()) { <<< "--- Can't open Results.txt for writing...", "" >>>; me.exit(); }//test // write some stuff TextFile.write( "Here is some stuff:" + foo + "." + "\n" ); // \n does a carriage return
--