Bug 199541 - audio/csound6: syntax errors in orchestra
Summary: audio/csound6: syntax errors in orchestra
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-19 13:25 UTC by Luc Hondareyte
Modified: 2018-12-13 17:30 UTC (History)
1 user (show)

See Also:
freebsd: maintainer-feedback-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luc Hondareyte 2015-04-19 13:25:15 UTC
This simple CSD file failed with csound 6.04 (FB9.3):
<CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>
sr=44100
ksmps = 32
nchnls = 2
0dbfs  = 1
instr 1
iflg = p4
asig oscils .7, 220, 0, iflg
     outs asig, asig
endin
</CsInstruments>
<CsScore>
i 1 0 2 0
i 1 3 2 2
e
</CsScore>
</CsoundSynthesizer>

Complete error message is:
0dBFS level = 32768.0
Csound version 6.04 (double samples) Apr 19 2015
libsndfile-1.0.25
UnifiedCSD:  b.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
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.
WARNING: 2 syntax errors in orchestra.  compilation invalid

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.007s, CPU: 0.008s

It failed to read file correctly: sr, kr and ksmps are incorrectly sassigned.

This sample file works with csound5 (FB9.3) and 6.04 (MacOS X)
Comment 1 Anonymous 2015-04-22 06:12:52 UTC
Looking at this I see some changes in orchestra please have a look at:
http://www.csounds.com/manual/html/PrefaceWhatsNew.html

And see if you can change to suite if you still have problems I will test further.
Comment 2 Luc Hondareyte 2015-04-22 10:40:42 UTC
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)
Comment 3 Luc Hondareyte 2015-04-22 10:56:49 UTC
Just for information, the same dummy file on MacOS X (the two versions are not exactly the same, but the bug was present with csound-6.02 on FB9.3.). I think the compile stat section is interesting :


Ibiscus:~ luc$ csound -v c6.csd
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 6.03.1 (double samples) May 12 2014
libsndfile-1.0.21
UnifiedCSD:  c6.csd
Environment variable 'SADIR' has been set to '/Users/luc'
Environment variable 'SSDIR' has been set to '/Users/luc'
Environment variable 'INCDIR' has been set to '/Users/luc'
Environment variable 'MFDIR' has been set to '/Users/luc'
STARTING FILE
Creating options
Creating orchestra
Creating score
signalflowgraph: csoundModuleInit(0x102031c00)
rtaudio: PortAudio module enabled ... 
using callback interface
rtmidi: PortMIDI module enabled
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 161 (line 741):
   $1 = token SRATE_TOKEN ()
/Users/victor/src/csound6/installer/macosx/2014-05-12-210623/csound6/Engine/csound_orc_semantics.c(1748) line = 5

-> $$ = nterm rident ()
Stack now 0
Entering state 29
Reading a token: Next token is token '=' ()
Shifting token '=' ()
Entering state 94
Reading a token: Next token is token INTEGER_TOKEN ()
Shifting token INTEGER_TOKEN ()
Entering state 47
Reducing stack by rule 171 (line 769):
   $1 = token INTEGER_TOKEN ()
/Users/victor/src/csound6/installer/macosx/2014-05-12-210623/csound6/Engine/csound_orc_semantics.c(1748) line = 5

-> $$ = nterm constant ()
Stack now 0 29 94
Entering state 62
Reducing stack by rule 139 (line 688):
   $1 = nterm constant ()
-> $$ = nterm ifac ()
Stack now 0 29 94
Entering state 59
Reducing stack by rule 137 (line 684):
   $1 = nterm ifac ()
-> $$ = nterm iterm ()
Stack now 0 29 94
Entering state 58
Reducing stack by rule 128 (line 673):
   $1 = nterm iterm ()
-> $$ = nterm iexp ()
Stack now 0 29 94
Entering state 57
Reading a token: Next token is token NEWLINE ()
Reducing stack by rule 119 (line 656):
   $1 = nterm iexp ()
-> $$ = nterm expr ()
Stack now 0 29 94
Entering state 173
Next token is token NEWLINE ()
Shifting token NEWLINE ()
Entering state 246
Reducing stack by rule 29 (line 291):
   $1 = nterm rident ()
   $2 = token '=' ()
   $3 = nterm expr ()
   $4 = token NEWLINE ()
/Users/victor/src/csound6/installer/macosx/2014-05-12-210623/csound6/Engine/csound_orc_semantics.c(1748) line = 6

-> $$ = nterm topstatement ()
Stack now 0
Entering state 23
Reducing stack by rule 5 (line 183):
   $1 = nterm topstatement ()
-> $$ = nterm rootstatement ()
Stack now 0
Entering state 20
Reading a token: Next token is token KSMPS_TOKEN ()
Shifting token KSMPS_TOKEN ()
Entering state 13
Reducing stack by rule 163 (line 745):
   $1 = token KSMPS_TOKEN ()
/Users/victor/src/csound6/installer/macosx/2014-05-12-210623/csound6/Engine/csound_orc_semantics.c(1748) line = 6

-> $$ = nterm rident ()
Stack now 0 20
Entering state 29
Reading a token: Next token is token '=' ()
Shifting token '=' ()
Entering state 94
Reading a token: Next token is token INTEGER_TOKEN ()
Shifting token INTEGER_TOKEN ()
Entering state 47
Reducing stack by rule 171 (line 769):
   $1 = token INTEGER_TOKEN ()
/Users/victor/src/csound6/installer/macosx/2014-05-12-210623/csound6/Engine/csound_orc_semantics.c(1748) line = 6

-> $$ = nterm constant ()
Stack now 0 20 29 94
Entering state 62
Reducing stack by rule 139 (line 688):
   $1 = nterm constant ()
-> $$ = nterm ifac ()
Stack now 0 20 29 94
Entering state 59
Reducing stack by rule 137 (line 684):
   $1 = nterm ifac ()
-> $$ = nterm iterm ()
Stack now 0 20 29 94
Entering state 58
Reducing stack by rule 128 (line 673):
   $1 = nterm iterm ()
-> $$ = nterm iexp ()
Stack now 0 20 29 94
Entering state 57
Reading a token: Next token is token NEWLINE ()
Reducing stack by rule 119 (line 656):
   $1 = nterm iexp ()
-> $$ = nterm expr ()
Stack now 0 20 29 94
Entering state 173
Next token is token NEWLINE ()
Shifting token NEWLINE ()
Entering state 246
Reducing stack by rule 29 (line 291):
   $1 = nterm rident ()
   $2 = token '=' ()
   $3 = nterm expr ()
   $4 = token NEWLINE ()
/Users/victor/src/csound6/installer/macosx/2014-05-12-210623/csound6/Engine/csound_orc_semantics.c(1748) line = 7

-> $$ = nterm topstatement ()
Stack now 0 20
Entering state 73
Reducing stack by rule 2 (line 171):
   $1 = nterm rootstatement ()
   $2 = nterm topstatement ()
-> $$ = nterm rootstatement ()
Stack now 0
Entering state 20
Reading a token: Next token is token NCHNLS_TOKEN ()
Shifting token NCHNLS_TOKEN ()
Entering state 14
Reducing stack by rule 164 (line 747):
   $1 = token NCHNLS_TOKEN ()
/Users/victor/src/csound6/installer/macosx/2014-05-12-210623/csound6/Engine/csound_orc_semantics.c(1748) line = 7

-> $$ = nterm rident ()
Stack now 0 20
Entering state 29
Reading a token: Next token is token '=' ()
Shifting token '=' ()
Entering state 94
Reading a token: Next token is token INTEGER_TOKEN ()
Shifting token INTEGER_TOKEN ()
Entering state 47
Reducing stack by rule 171 (line 769):
   $1 = token INTEGER_TOKEN ()
/Users/victor/src/csound6/installer/macosx/2014-05-12-210623/csound6/Engine/csound_orc_semantics.c(1748) line = 7

-> $$ = nterm constant ()
Stack now 0 20 29 94
Entering state 62
Reducing stack by rule 139 (line 688):
   $1 = nterm constant ()
-> $$ = nterm ifac ()
Stack now 0 20 29 94
Entering state 59
Reducing stack by rule 137 (line 684):
   $1 = nterm ifac ()
-> $$ = nterm iterm ()
Stack now 0 20 29 94
Entering state 58
Reducing stack by rule 128 (line 673):
   $1 = nterm iterm ()
-> $$ = nterm iexp ()
Stack now 0 20 29 94
Entering state 57
Reading a token: Next token is token NEWLINE ()
Reducing stack by rule 119 (line 656):
   $1 = nterm iexp ()
-> $$ = nterm expr ()
Stack now 0 20 29 94
Entering state 173
Next token is token NEWLINE ()
Shifting token NEWLINE ()
Entering state 246
Reducing stack by rule 29 (line 291):
   $1 = nterm rident ()
   $2 = token '=' ()
   $3 = nterm expr ()
   $4 = token NEWLINE ()
/Users/victor/src/csound6/installer/macosx/2014-05-12-210623/csound6/Engine/csound_orc_semantics.c(1748) line = 8

-> $$ = nterm topstatement ()
Stack now 0 20
Entering state 73
Reducing stack by rule 2 (line 171):
   $1 = nterm rootstatement ()
   $2 = nterm topstatement ()
-> $$ = nterm rootstatement ()
Stack now 0
Entering state 20
Reading a token: Next token is token ZERODBFS_TOKEN ()
Shifting token ZERODBFS_TOKEN ()
Entering state 16
Reducing stack by rule 166 (line 751):
   $1 = token ZERODBFS_TOKEN ()
/Users/victor/src/csound6/installer/macosx/2014-05-12-210623/csound6/Engine/csound_orc_semantics.c(1748) line = 8

-> $$ = nterm rident ()
Stack now 0 20
Entering state 29
Reading a token: Next token is token '=' ()
Shifting token '=' ()
Entering state 94
Reading a token: Next token is token INTEGER_TOKEN ()
Shifting token INTEGER_TOKEN ()
Entering state 47
Reducing stack by rule 171 (line 769):
   $1 = token INTEGER_TOKEN ()
/Users/victor/src/csound6/installer/macosx/2014-05-12-210623/csound6/Engine/csound_orc_semantics.c(1748) line = 8

-> $$ = nterm constant ()
Stack now 0 20 29 94
Entering state 62
Reducing stack by rule 139 (line 688):
   $1 = nterm constant ()
-> $$ = nterm ifac ()
Stack now 0 20 29 94
Entering state 59
Reducing stack by rule 137 (line 684):
   $1 = nterm ifac ()
-> $$ = nterm iterm ()
Stack now 0 20 29 94
Entering state 58
Reducing stack by rule 128 (line 673):
   $1 = nterm iterm ()
-> $$ = nterm iexp ()
Stack now 0 20 29 94
Entering state 57
Reading a token: Next token is token NEWLINE ()
Reducing stack by rule 119 (line 656):
   $1 = nterm iexp ()
-> $$ = nterm expr ()
Stack now 0 20 29 94
Entering state 173
Next token is token NEWLINE ()
Shifting token NEWLINE ()
Entering state 246
Reducing stack by rule 29 (line 291):
   $1 = nterm rident ()
   $2 = token '=' ()
   $3 = nterm expr ()
   $4 = token NEWLINE ()
/Users/victor/src/csound6/installer/macosx/2014-05-12-210623/csound6/Engine/csound_orc_semantics.c(1748) line = 9

-> $$ = nterm topstatement ()
Stack now 0 20
Entering state 73
Reducing stack by rule 2 (line 171):
   $1 = nterm rootstatement ()
   $2 = nterm topstatement ()
-> $$ = nterm rootstatement ()
Stack now 0
Entering state 20
Reading a token: Next token is token NEWLINE ()
Shifting token NEWLINE ()
Entering state 1
Reducing stack by rule 46 (line 461):
   $1 = token NEWLINE ()
-> $$ = nterm statement ()
Stack now 0 20
Entering state 24
Reducing stack by rule 30 (line 299):
   $1 = nterm statement ()
-> $$ = nterm topstatement ()
Stack now 0 20
Entering state 73
Reducing stack by rule 2 (line 171):
   $1 = nterm rootstatement ()
   $2 = nterm topstatement ()
-> $$ = nterm rootstatement ()
Stack now 0
Entering state 20
Reading a token: Now at end of input.
Reducing stack by rule 1 (line 162):
   $1 = nterm rootstatement ()
-> $$ = nterm orcfile ()
Stack now 0
Entering state 19
Now at end of input.
Shifting token $end ()
Entering state 70
Stack now 0 19 70
Cleanup: popping token $end ()
Cleanup: popping nterm orcfile ()
Parsing successful!
/Users/victor/src/csound6/installer/macosx/2014-05-12-210623/csound6/Engine/csound_orc_semantics.c(1748) line = 0

esr = 44100.0, ekr =  1378.1, ksmps = 32, nchnls = 2 0dbfs = 1.0
Compile State:
String Pool:
    0) instr
    1) ""
    2) endin
    3) 0
Constants Pool:
    0) 0.000000
    1) 44100.000000
    2) 32.000000
    3) 2.000000
    4) 1.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 0x10a65aad0 0x0
Variables
Elapsed time at end of orchestra compile: real: 1.945s, CPU: 0.007s
sorting score ...
	... done
Elapsed time at end of score sort: real: 2.103s, CPU: 0.007s
--Csound version 6.03.1 (double samples) May 12 2014
Creating search path cache for 'SNAPDIR':
Creating search path cache for 'SFDIR;SSDIR;INCDIR':
    1: "/Users/luc/"
Creating search path cache for 'SFDIR':
Creating search path cache for 'SADIR':
    1: "/Users/luc/"
Creating search path cache for 'SFDIR;SSDIR':
    1: "/Users/luc/"
graphics suppressed, ascii substituted
0dBFS level = 1.0
instance(): tp->act_instance = 0x10a6594a0 
instr 0 allocated at 0x10a6594a0
	lclbas 0x10a659610, opds 0x10a659610
orch now loaded
audio buffered in 1024 sample-frame blocks
writing 4096-byte blks of shorts to test.aif (AIFF)
SECTION 1:
Score finished in csoundPerform().
removed instance of instr 0
inactive allocs returned to freespace
end of score.		   overall amps:  0.00000  0.00000
	   overall samples out of range:        0        0
0 errors in performance
Elapsed time at end of performance: real: 2.583s, CPU: 0.008s
2048 4096 sample blks of shorts written to test.aif (AIFF)
signalflowgraph: csoundModuleDestroy(0x102031c00)
Comment 4 John Marino freebsd_committer freebsd_triage 2016-08-18 14:35:56 UTC
hondareyte,
can you summarize this PR?

With the understanding that there is no maintainer for the port:
A) Is it functional at all?
B) What exactly is broken?
C) Should it be removed from ports to avoid wasting users' time?

The first post provides very little guidance to somebody not familiar with csound.
Comment 5 Luc Hondareyte 2018-12-13 17:30:02 UTC
Hello,
csound6 (6.13) on FreeBSD 12-0 is now fully functionnal. Thanks a lot.
Luc