Csound Csound-dev Csound-tekno Search About

[Cs-dev] perhaps but i am not sure a new parser issue?

Date2011-07-07 21:01
Frommenno
Subject[Cs-dev] perhaps but i am not sure a new parser issue?
Hi, i was trying out the examples from the article Phrase Loops: A Beginners
guide, from Jim Aikin and got the following error:

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/scorelinesimpleJornal.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname:  /tmp/csound-VMKxzg.orc
scorename: /tmp/csound-FsaTHc.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 *
********************
Line 18: Unknown character: '{'(7b)
Line 18: Unknown character: '{'(7b)
error: syntax error, unexpected T_INTGR, expecting S_COM or T_OPCODE (token
"0") line 19: i11 0 1 0.25 9.00
Parsing failed due to invalid input!
Null type in tree -- aborting

It works with --old-parser in the commandline. Here is the csd i used:







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

giSine ftgen 0, 0, 4096, 10, 1

; a phrase player:
instr 1
ktrig init 1
scoreline {{
i11 0 1 0.25 9.00
i11 1 1 0.25 9.00
i11 2 1 0.25 9.04
i11 3 1 0.25 9.04
i11 4 1 0.25 9.07
i11 5 1 0.25 9.07
i11 6 2 0.25 9.04
}}, ktrig
ktrig = 0
endin

; a sine wave with a plucked envelope:
instr 11
idur = p3
iamp = p4
ifrq cps2pch p5, 12
kamp linsegr iamp, idur, 0.1, 0.5, 0
asig oscili kamp, ifrq, giSine
outs asig, asig
endin




i1 0 1
i1 8 1
i1 16 1
i1 24 1




greetings
Menno


--
View this message in context: http://csound.1045644.n5.nabble.com/perhaps-but-i-am-not-sure-a-new-parser-issue-tp4562272p4562272.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

Date2011-07-08 12:34
Fromjohn ffitch
SubjectRe: [Cs-dev] perhaps but i am not sure a new parser issue?
I doubt that the new parser recognises {{ as a token as I for one have
never heard about it and did not know that it existed.  What is the grammar?
==John ffitch

------------------------------------------------------------------------------
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

Date2011-07-08 13:09
FromVictor Lazzarini
SubjectRe: [Cs-dev] perhaps but i am not sure a new parser issue?
{{

}}

enclose multi-line strings.

Victor
On 8 Jul 2011, at 12:34, john ffitch wrote:

> I doubt that the new parser recognises {{ as a token as I for one have
> never heard about it and did not know that it existed.  What is the  
> grammar?
> ==John ffitch
>
> ------------------------------------------------------------------------------
> 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
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
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

Date2011-07-08 15:13
FromMichael Gogins
SubjectRe: [Cs-dev] perhaps but i am not sure a new parser issue?
AttachmentsNone  None  
This one is important for opcodes defined in other languages, e.g. the existing Python opcodes and the upcoming Lua opcodes.

Regards,
Mike

On Fri, Jul 8, 2011 at 8:09 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
{{

}}

enclose multi-line strings.

Victor
On 8 Jul 2011, at 12:34, john ffitch wrote:

> I doubt that the new parser recognises {{ as a token as I for one have
> never heard about it and did not know that it existed.  What is the
> grammar?
> ==John ffitch
>
> ------------------------------------------------------------------------------
> 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
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/csound-devel



--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com