Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Apr 2015 10:40:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 199541] audio/csound6: syntax errors in orchestra
Message-ID:  <bug-199541-13-HDXNhn80aG@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-199541-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-199541-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199541

--- Comment #2 from hondareyte.luc@laposte.net ---
Yes there are big changes in the API, but this simple dummy file is valid for
both csound5 and csound6:
<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 32
nchnls = 2
0dbfs  = 1
</CsInstruments>
<CsScore>
e
</CsScore>
</CsoundSynthesizer>

When compiling with verbose option, it seems that sr, ksmps and 0dbfs are
correctly detected but compilation failed with 2 warnings (about sr and ksmps
values) and one fatal error (0dbfs must be positive):

$ csound -v c6.csd
0dBFS level = 32768.0
Csound version 6.04 (double samples) Apr 19 2015
libsndfile-1.0.25
UnifiedCSD:  c6.csd
Environment variable 'SADIR' has been set to '/usr/home/luc/'
Environment variable 'SSDIR' has been set to '/usr/home/luc/'
Environment variable 'INCDIR' has been set to '/usr/home/luc/'
Environment variable 'MFDIR' has been set to '/usr/home/luc/'
STARTING FILE
Creating options
Creating orchestra
Creating score
signalflowgraph: csoundModuleInit(0x802819000)
Calling preprocess on >>sr = 44100
ksmps = 32
nchnls = 2
0dbfs  = 1

#exit
<<

yielding >>#source 1
#line 5
sr = 44100
ksmps = 32
nchnls = 2
0dbfs  = 1

<<

Starting parse
Entering state 0
Reading a token: Next token is token SRATE_TOKEN ()
Shifting token SRATE_TOKEN ()
Entering state 11
Reducing stack by rule 162 (line 762):
   $1 = token SRATE_TOKEN ()
/usr/ports/audio/csound6/work/Csound6.04/Engine/csound_orc_semantics.c(1785)
line = 5

-> $$ = nterm rident ()
Stack now 0
Entering state 30
Reading a token: Next token is token '=' ()
Shifting token '=' ()
Entering state 96
Reading a token: Next token is token INTEGER_TOKEN ()
Shifting token INTEGER_TOKEN ()
Entering state 48
Reducing stack by rule 172 (line 790):
   $1 = token INTEGER_TOKEN ()
/usr/ports/audio/csound6/work/Csound6.04/Engine/csound_orc_semantics.c(1785)
line = 5

-> $$ = nterm constant ()
Stack now 0 30 96
Entering state 63
Reducing stack by rule 140 (line 709):
   $1 = nterm constant ()
-> $$ = nterm ifac ()
Stack now 0 30 96
Entering state 60
Reducing stack by rule 138 (line 705):
   $1 = nterm ifac ()
-> $$ = nterm iterm ()
Stack now 0 30 96
Entering state 59
Reducing stack by rule 129 (line 694):
   $1 = nterm iterm ()
-> $$ = nterm iexp ()
Stack now 0 30 96
Entering state 58
Reading a token: Next token is token NEWLINE ()
Reducing stack by rule 120 (line 677):
   $1 = nterm iexp ()
-> $$ = nterm expr ()
Stack now 0 30 96
Entering state 176
Next token is token NEWLINE ()
Shifting token NEWLINE ()
Entering state 250
Reducing stack by rule 29 (line 306):
   $1 = nterm rident ()
   $2 = token '=' ()
   $3 = nterm expr ()
   $4 = token NEWLINE ()
/usr/ports/audio/csound6/work/Csound6.04/Engine/csound_orc_semantics.c(1785)
line = 6

-> $$ = nterm topstatement ()
Stack now 0
Entering state 24
Reducing stack by rule 5 (line 196):
   $1 = nterm topstatement ()
-> $$ = nterm rootstatement ()
Stack now 0
Entering state 21
Reading a token: Next token is token KSMPS_TOKEN ()
Shifting token KSMPS_TOKEN ()
Entering state 13
Reducing stack by rule 164 (line 766):
   $1 = token KSMPS_TOKEN ()
/usr/ports/audio/csound6/work/Csound6.04/Engine/csound_orc_semantics.c(1785)
line = 6

-> $$ = nterm rident ()
Stack now 0 21
Entering state 30
Reading a token: Next token is token '=' ()
Shifting token '=' ()
Entering state 96
Reading a token: Next token is token INTEGER_TOKEN ()
Shifting token INTEGER_TOKEN ()
Entering state 48
Reducing stack by rule 172 (line 790):
   $1 = token INTEGER_TOKEN ()
/usr/ports/audio/csound6/work/Csound6.04/Engine/csound_orc_semantics.c(1785)
line = 6

-> $$ = nterm constant ()
Stack now 0 21 30 96
Entering state 63
Reducing stack by rule 140 (line 709):
   $1 = nterm constant ()
-> $$ = nterm ifac ()
Stack now 0 21 30 96
Entering state 60
Reducing stack by rule 138 (line 705):
   $1 = nterm ifac ()
-> $$ = nterm iterm ()
Stack now 0 21 30 96
Entering state 59
Reducing stack by rule 129 (line 694):
   $1 = nterm iterm ()
-> $$ = nterm iexp ()
Stack now 0 21 30 96
Entering state 58
Reading a token: Next token is token NEWLINE ()
Reducing stack by rule 120 (line 677):
   $1 = nterm iexp ()
-> $$ = nterm expr ()
Stack now 0 21 30 96
Entering state 176
Next token is token NEWLINE ()
Shifting token NEWLINE ()
Entering state 250
Reducing stack by rule 29 (line 306):
   $1 = nterm rident ()
   $2 = token '=' ()
   $3 = nterm expr ()
   $4 = token NEWLINE ()
/usr/ports/audio/csound6/work/Csound6.04/Engine/csound_orc_semantics.c(1785)
line = 7

-> $$ = nterm topstatement ()
Stack now 0 21
Entering state 75
Reducing stack by rule 2 (line 184):
   $1 = nterm rootstatement ()
   $2 = nterm topstatement ()
-> $$ = nterm rootstatement ()
Stack now 0
Entering state 21
Reading a token: Next token is token NCHNLS_TOKEN ()
Shifting token NCHNLS_TOKEN ()
Entering state 14
Reducing stack by rule 165 (line 768):
   $1 = token NCHNLS_TOKEN ()
/usr/ports/audio/csound6/work/Csound6.04/Engine/csound_orc_semantics.c(1785)
line = 7

-> $$ = nterm rident ()
Stack now 0 21
Entering state 30
Reading a token: Next token is token '=' ()
Shifting token '=' ()
Entering state 96
Reading a token: Next token is token INTEGER_TOKEN ()
Shifting token INTEGER_TOKEN ()
Entering state 48
Reducing stack by rule 172 (line 790):
   $1 = token INTEGER_TOKEN ()
/usr/ports/audio/csound6/work/Csound6.04/Engine/csound_orc_semantics.c(1785)
line = 7

-> $$ = nterm constant ()
Stack now 0 21 30 96
Entering state 63
Reducing stack by rule 140 (line 709):
   $1 = nterm constant ()
-> $$ = nterm ifac ()
Stack now 0 21 30 96
Entering state 60
Reducing stack by rule 138 (line 705):
   $1 = nterm ifac ()
-> $$ = nterm iterm ()
Stack now 0 21 30 96
Entering state 59
Reducing stack by rule 129 (line 694):
   $1 = nterm iterm ()
-> $$ = nterm iexp ()
Stack now 0 21 30 96
Entering state 58
Reading a token: Next token is token NEWLINE ()
Reducing stack by rule 120 (line 677):
   $1 = nterm iexp ()
-> $$ = nterm expr ()
Stack now 0 21 30 96
Entering state 176
Next token is token NEWLINE ()
Shifting token NEWLINE ()
Entering state 250
Reducing stack by rule 29 (line 306):
   $1 = nterm rident ()
   $2 = token '=' ()
   $3 = nterm expr ()
   $4 = token NEWLINE ()
/usr/ports/audio/csound6/work/Csound6.04/Engine/csound_orc_semantics.c(1785)
line = 8

-> $$ = nterm topstatement ()
Stack now 0 21
Entering state 75
Reducing stack by rule 2 (line 184):
   $1 = nterm rootstatement ()
   $2 = nterm topstatement ()
-> $$ = nterm rootstatement ()
Stack now 0
Entering state 21
Reading a token: Next token is token ZERODBFS_TOKEN ()
Shifting token ZERODBFS_TOKEN ()
Entering state 16
Reducing stack by rule 167 (line 772):
   $1 = token ZERODBFS_TOKEN ()
/usr/ports/audio/csound6/work/Csound6.04/Engine/csound_orc_semantics.c(1785)
line = 8

-> $$ = nterm rident ()
Stack now 0 21
Entering state 30
Reading a token: Next token is token '=' ()
Shifting token '=' ()
Entering state 96
Reading a token: Next token is token INTEGER_TOKEN ()
Shifting token INTEGER_TOKEN ()
Entering state 48
Reducing stack by rule 172 (line 790):
   $1 = token INTEGER_TOKEN ()
/usr/ports/audio/csound6/work/Csound6.04/Engine/csound_orc_semantics.c(1785)
line = 8

-> $$ = nterm constant ()
Stack now 0 21 30 96
Entering state 63
Reducing stack by rule 140 (line 709):
   $1 = nterm constant ()
-> $$ = nterm ifac ()
Stack now 0 21 30 96
Entering state 60
Reducing stack by rule 138 (line 705):
   $1 = nterm ifac ()
-> $$ = nterm iterm ()
Stack now 0 21 30 96
Entering state 59
Reducing stack by rule 129 (line 694):
   $1 = nterm iterm ()
-> $$ = nterm iexp ()
Stack now 0 21 30 96
Entering state 58
Reading a token: Next token is token NEWLINE ()
Reducing stack by rule 120 (line 677):
   $1 = nterm iexp ()
-> $$ = nterm expr ()
Stack now 0 21 30 96
Entering state 176
Next token is token NEWLINE ()
Shifting token NEWLINE ()
Entering state 250
Reducing stack by rule 29 (line 306):
   $1 = nterm rident ()
   $2 = token '=' ()
   $3 = nterm expr ()
   $4 = token NEWLINE ()
/usr/ports/audio/csound6/work/Csound6.04/Engine/csound_orc_semantics.c(1785)
line = 9

-> $$ = nterm topstatement ()
Stack now 0 21
Entering state 75
Reducing stack by rule 2 (line 184):
   $1 = nterm rootstatement ()
   $2 = nterm topstatement ()
-> $$ = nterm rootstatement ()
Stack now 0
Entering state 21
Reading a token: Next token is token NEWLINE ()
Shifting token NEWLINE ()
Entering state 1
Reducing stack by rule 47 (line 482):
   $1 = token NEWLINE ()
-> $$ = nterm statement ()
Stack now 0 21
Entering state 25
Reducing stack by rule 30 (line 314):
   $1 = nterm statement ()
-> $$ = nterm topstatement ()
Stack now 0 21
Entering state 75
Reducing stack by rule 2 (line 184):
   $1 = nterm rootstatement ()
   $2 = nterm topstatement ()
-> $$ = nterm rootstatement ()
Stack now 0
Entering state 21
Reading a token: Now at end of input.
Reducing stack by rule 1 (line 175):
   $1 = nterm rootstatement ()
-> $$ = nterm orcfile ()
Stack now 0
Entering state 20
Now at end of input.
Shifting token $end ()
Entering state 72
Stack now 0 20 72
Cleanup: popping token $end ()
Cleanup: popping nterm orcfile ()
Parsing successful!
/usr/ports/audio/csound6/work/Csound6.04/Engine/csound_orc_semantics.c(1785)
line = 0

error:  sr = 0, kr = 0, ksmps = 1
error: invalid sample rateerror:  sr = 0, kr = 0, ksmps = 1
error: invalid control rateWARNING: bad value for 0dbfs: must be positive.
Setting default value.
esr =     0.0, ekr =     0.0, ksmps = 1, nchnls = 1 0dbfs = 32768.0
WARNING: 2 syntax errors in orchestra.  compilation invalid

Compile State:
String Pool:
    0) instr
    1) ""
    2) endin
    3) 0
Constants Pool:
    0) 0.000000
Global Variables:
  0) sr:r
  1) kr:r
  2) ksmps:r
  3) nchnls:r
  4) nchnls_i:r
  5) 0dbfs:r
  6) $sr:r
  7) $kr:r
  8) $ksmps:r
Instrument 0 0x802a90110 0x0
Variables
cannot compile orchestra
end of score.           overall amps:      0.0
       overall samples out of range:        0
1 errors in performance
Elapsed time at end of performance: real: 0.010s, CPU: 0.023s
signalflowgraph: csoundModuleDestroy(0x802819000)

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-199541-13-HDXNhn80aG>