Csound Csound-dev Csound-tekno Search About

[Cs-dev] and again a hit for the new parser!

Date2010-11-16 14:06
Frommenno
Subject[Cs-dev] and again a hit for the new parser!
Hello John,

Maybe another hit that is not yet on your list?
I tried out the db example from the manual with this result:

********************
* USING NEW PARSER *
********************
csound_orcerror: syntax error, unexpected T_OPCODE
Parsing failed due to invalid input!
Csound tidy up: Segmentation fault


With --old-parser in the commandline it works.
Here is the csd:



; Select audio/midi flags here according to platform
; Audio out   Audio in
-odac           -iadc    ;;;RT audio I/O
; For Non-realtime ouput leave only the line below:
; -o db.wav -W ;;; for file output any platform



; Initialize the global variables.
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1

; Instrument #1.
instr 1
  ; Calculate the amplitude of 40 decibels.
  idecibels = 40
  iamp = db(idecibels)

  print iamp
endin





; Play Instrument #1 for one second.
i 1 0 1
e





greetings
menno

-- 
View this message in context: http://csound.1045644.n5.nabble.com/and-again-a-hit-for-the-new-parser-tp3267355p3267355.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net