Csound Csound-dev Csound-tekno Search About

Newbie read FAQ and tutorial, but still needs answers to a few questions..

Date1997-12-03 16:03
FromVisionary
SubjectNewbie read FAQ and tutorial, but still needs answers to a few questions..
I have a Pentium-200 running windows'95, with a SB Awe64. I downloaded
the file:

		ftp://ftp.maths.bath.ac.uk/pub/dream/platforms/pc/Csound 3.47beta.zip

	and read the tutorial. I read the FAQ too. What I read seemed straight
forward, but it still 
left some unanswered questions. I made the files "intro.orc" and
"intro.sco". I copied from the 
tutorial, so for "intro.orc" I have:

          	sr = 20000               ; audio sampling rate is 20 kHz
          	kr = 500                 ; control rate is 500 Hz
          	ksmps = 40               ; number of samples in a control
period (sr/kr)
          	nchnls = 1               ; number of channels of audio output 
          	instr     1
     	kctrl     line 0, p3, 10000             ; amplitude envelope
     	asig oscil     kctrl, cpspch(p5), 1     ; audio oscillator
          	out  asig                ; send signal to channel 1
          	endin 



	and for "intro.sco" I have:

     		;    a sine wave function
     		f1   0  256   10    1
     		;    five notes at once
     		i1   0    3    0    8.01
     		i1   0    .    .    8.03
     		i1   0    .    .    8.06
     		i1   0    .    .    8.08
     		i1   0    .    .    8.10
     		e


	With these files in the same directory as my csound exe's, I do a:

		csound intro.orc intro.sco


	and for output I get:

		SFDIR undefined. using current directory

	
	Then it prompts me to view the graph, and then displays that ok. Then
it says 
something like:

		0 errors in performance
		49 2048-byte soundblks of shorts written to test.


	I check, and there is indeed a new file named "Test", but without an
extension. 
The next instructions in the tutorial say to do this to hear the output:

		play test


	That gives me:

		Bad command or file name


	To verify, I see there is no "play.exe" or anything of the sort in any
of my 
directories.

	The command:

		csound  -o  devaudio  intro.orc  intro.sco

	writes it to a file "devaudio" instead of directly to my soundcard. I
read that 
my Csound module has to include user access to the audio output device.
Anyone know how 
this works on a PC with a sound card?


	Here are my questions:

	1) Is there an install procedure for the PC, assuming I want to run it
from
	   the command prompt in my DOS window? Do I have to set path,
environment 
	   variables, etc?

	2) Why can't I do the "play Test" command? Am I missing a file, or is
that 
	   command only valid on Unix?

	3) How do I set up my user access to my soundcard so that "devaudio"
will work?

	4) How do I convert/save my music I generate to a WAV file?

	5) Why does running csound.exe at the command prompt make my monitor
screen 
	   go about 50% dimmer until I reboot my machine?


	CSound looks really awesome and powerful from what I have read so far.
I am 
willing to go through the effort of learning it, as I'm sure it will be
worthwhile. 
If anyone can help me by answering some or all of these questions, it
will be greatly 
appreciated.

								Graham