| judging the working example given in the thread pointed out by Steven, i
think you are right, Joachim, in that "'pop Sbar, ifoo' should be replaced
by 'Sbar, ifoo pop'.". I will change the manual accordingly. The manual
pages of pop and push, that include the same remark are already correct.
and thanks Steven, for pointing me to this thread - and the example!
There is a small issue with the example because i can run it only with the
old parser enabled:
; Select audio/midi flags here according to platform
-odac --old-parser ;;;realtime audio out
;-iadc ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o stack.wav -W ;;; for file output any platform
sr = 44100
ksmps = 32
0dbfs = 1
nchnls = 2
stack 100000
instr 1
a1 oscils 0.7, 220, 0
k1 line 0, p3, 1
push "blah", 123.45, a1, k1
push rnd(k(1))
k_rnd pop
S01, i01, a01, k01 pop
printf_i "S01 = '%s', i01 = %g\n", 1, S01, i01
ktrig metro 5.0
printf "k01 = %.3f, k_rnd = %.3f\n", ktrig, k01, k_rnd
outs a01, a01
endin
i 1 0 5
e
this is the output of Csound when the new parser is enabled:
time resolution is 1000.000 ns
PortAudio real-time audio module for Csound
virtual_keyboard real time MIDI plugin for Csound
PortMIDI real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 5.13 beta (double samples) Jun 16 2011
libsndfile-1.0.21
UnifiedCSD: /media/ManualUSB/improved examples/niks/stack.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname: /tmp/csound-BrzlLI.orc
scorename: /tmp/csound-s4n4B7.sco
Loading command-line libraries:
/usr/local/lib/libloris.so
graph init
rtmidi: PortMIDI module enabled
RAWWAVE_PATH: /usr/local/share/csound/rawwaves/
rtaudio: JACK module enabled
********************
* USING NEW PARSER *
********************
END OF INPUT
Parsing successful!
SETTING 0DBFS: 1.000000
Elapsed time at end of orchestra compile: real: 0.005s, CPU: 0.000s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.005s, CPU: 0.000s
Csound version 5.13 beta (double samples) Jun 16 2011
sample rate overrides: esr = 48000.0000, ekr = 1500.0000, ksmps = 32
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
reading 1024-byte blks of shorts from adc (RAW)
Jack: JackClient::SetupDriverSync driver sem in flush mode
Jack: JackPosixSemaphore::Connect jack_sem.1000_default_csound5
Jack: Already connected name = csound5
Jack: Clock source : system clock via clock_gettime
Jack: JackLibClient::Open name = csound5 refnum = 7
Jack: JackClient::PortRegister ref = 7 name = csound5:input1 type = 32 bit
float mono audio port_index = 37
Jack: JackClient::PortRegister ref = 7 name = csound5:input2 type = 32 bit
float mono audio port_index = 38
Jack: JackClient::PortRegister ref = 7 name = csound5:output1 type = 32 bit
float mono audio port_index = 39
Jack: JackClient::PortRegister ref = 7 name = csound5:output2 type = 32 bit
float mono audio port_index = 40
Jack: JackClient::Activate
Jack: JackClient::StartThread : period = 2666 computation = 0 constraint =
2666
Jack: Create non RT thread
Jack: ThreadHandler: start
Jack: JackClient::kBufferSizeCallback buffer_size = 128
Jack: JackClient::kActivateClient name = csound5 ref = 7
writing 1024-byte blks of shorts to dac
SECTION 1:
new alloc for instr 1:
INIT ERROR in instr 1: pop: argument number or type mismatch
S01 i01 a01 k01 pop
Early return from csoundPerform().
greetings,
Menno
--
View this message in context: http://csound.1045644.n5.nabble.com/stack-tp4564431p4570834.html
Sent from the Csound - Dev mailing list archive at Nabble.com.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |