Csound Csound-dev Csound-tekno Search About

Re: WaveIn in DirectCsound

Date1999-02-09 09:31
FromSergey Batov
SubjectRe: WaveIn in DirectCsound
Hi,

now I'm using the following orc+sco

;wavein.orc
sr=44100
kr=4410
ksmps=10

instr 1
asig in
k_in rms	asig
print k_in
out asig
endin

;wavein.sco
i1 0 200

and the command line for DirectCsound:
csound.exe  -+q -+e -+p12 -b500 -i  --log.txt  wavein.orc wavein.sco

I can hear sound from microphone but only one meaning of k_in (=0.000) was
printed.
(It's understood.)
If to add "midi in" flag -+K to this command line I can get
renewed meanings of k_in but only pressing keys on midi keaboard.
It's understood too.

Now it seems the entailment of my idea is near.
I'd like to control k_in (to print, at least) every 't' seconds or,
say, with kr rate.

I tried to use 'goto' but did not obtain necessary result.
Can anybody help, please?

Best regards,

Date1999-02-10 11:24
Fromjpff@maths.bath.ac.uk
SubjectRe: WaveIn in DirectCsound
print is an i-rate opcode so what else do you expect?  If you want
repeated printings you need to use printk