Csound Csound-dev Csound-tekno Search About

[Cs-dev] perhaps a known new parser issue?

Date2011-10-23 13:26
Frommenno
Subject[Cs-dev] perhaps a known new parser issue?
Hi,

i can run the following example with the old parser, but not with the new
one. (Kubuntu 64bit doubles, 21 oct)
Perhaps i posted this before, sorry if i did.

Menno



; Select audio/midi flags here according to platform
-odac   ;;;realtime audio out
;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o limit.wav -W  ;;; for file output any platform



sr = 44100 
ksmps = 32 
0dbfs  = 1 
nchnls = 2

instr    1 ; Limit / Mirror / Wrap

igain    = p4				;gain
ilevl1   = p5				; + level
ilevl2   = p6				; - level
imode    = p7				;1 = limit, 2 = mirror, 3 = wrap

ain   soundin  "fox.wav"
ain   = ain*igain

if    imode = 1 goto limit
if    imode = 2 goto mirror

asig  wrap  ain, ilevl2, ilevl1
goto  outsignal

limit:
asig  limit  ain, ilevl2, ilevl1
goto  outsignal

mirror:
asig  mirror  ain, ilevl2, ilevl1
outsignal:

outs  asig*.5, asig*.5			;mind your speakers
  
endin




;           Gain  +Levl -Levl Mode
i1  0  3    4.00  .25  -1.00   1	;limit
i1  4  3    4.00  .25  -1.00   2	;mirror
i1  8  3    4.00  .25  -1.00   3	;wrap
e




--
View this message in context: http://csound.1045644.n5.nabble.com/perhaps-a-known-new-parser-issue-tp4929389p4929389.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-10-26 12:51
Fromjohn ffitch
SubjectRe: [Cs-dev] perhaps a known new parser issue?
>>>>> "menno" == menno   writes:

 menno> Hi,
 menno> i can run the following example with the old parser, but not with the new
 menno> one. (Kubuntu 64bit doubles, 21 oct)
 menno> Perhaps i posted this before, sorry if i did.

 menno> Menno

No I did not know about that one, but it is an area that causes me
troubles.  Your example uses opcode names for labels and the system
it attempting to deal with the polymorphic nature of "limit" -- when
it is just a label in a goto statement.

I will see what I can do

==John ffitch

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-10-26 13:01
Fromjohn ffitch
SubjectRe: [Cs-dev] perhaps a known new parser issue?
That was easier than I thought; now fixed in git
==John ffitch

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net