Csound Csound-dev Csound-tekno Search About

[Csnd] problem with file inclusion

Date2018-12-28 13:33
FromStefan Thomas
Subject[Csnd] problem with file inclusion
Dear community,
I've got some problems with a csd-file. When I run it, I get
STARTING FILE
Creating options
Creating orchestra
closing tag
Creating score
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.003s
sorting score ...
using path .
munmap_chunk(): invalid pointer

csound command: Aborted
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: 0.253s, CPU: 0.003s
The file runs correctly, when I copy the content of the file "partiturtest.inc" in the csd-file. I use  version 6.12 beta of csound. What can I do to avoid the error message?
Here is the csd-file:
<CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>
; ==============================================
<CsInstruments>

sr    =    44100
;ksmps     =     100
nchnls    =    2
0dbfs    =    1
gisine         ftgen 0,0,2^13,10,1
gibuzz         ftgen 0,0,2^13,10,1,0.5,0.33,0.25,0.2,0.17,0.14,0.125
gisoft         ftgen 0,0,2^13,10,1,0.25,0.11,0.06,0.04,0.03,0.02,0.02
gizufall     ftgen 0,0,2^13,10, 0.64,0.29,0.34,0.5,0.11,0.36,0.1,0.3
instr 1   
    idur = p3
    ifrq = p4
    iamp = p5
    iein = 0.02
    iaus = idur-iein
    kenv expseg 0.0001,iein,1,iaus,0.0001
    abuzz poscil iamp,ifrq,gibuzz
    aout = abuzz*kenv
    ipan = 0.1
    aoutL,aoutR pan2 aout,ipan
    outs aoutL,aoutR
    ;outs ; nicht vergessen output
endin
instr 2   
    idur = p3
    ifrq = p4
    iamp = p5
    iein = 0.02
    iaus = idur-iein
    kenv expseg 0.0001,iein,1,iaus,0.0001
    asoft poscil iamp,ifrq,gisoft
    aout = asoft*kenv
    ipan = 0.3
    aoutL,aoutR pan2 aout,ipan
    outs aoutL,aoutR
    ;outs ; nicht vergessen output
endin
instr 3   
    idur = p3
    ifrq = p4
    iamp = p5
    iein = 0.02
    iaus = idur-iein
    kenv expseg 0.0001,iein,1,iaus,0.0001
    asound poscil iamp,ifrq,gizufall
    aout = asound*kenv
    ipan = 0.7
    aoutL,aoutR pan2 aout, ipan
    outs aoutL,aoutR
    ;outs ; nicht vergessen output
endin
instr 4
    idur     = p3
    ifrq    = p4
    iamp    = p5
    iein     = 0.02
    iaus    = idur-iein
    kenv    expseg 0.00001,iein,1,iaus,0.0001
    imaxd = 1
    ileak = 0.995
    ipw = 0.5
    atriangle vco iamp, ifrq, 3, ipw,gisine,imaxd,ileak
    aout = kenv*atriangle
    outs aout,aout
endin


</CsInstruments>
; ==============================================
<CsScore>
#define  a       #220.31#
#define  h       #247.3#
#define  c1       #262.0#
#define  d1       #294.09#
#define  e1       #330.1#
#define  f1       #349.73#
#define  g1       #392.56#

#include "partiturtest.inc"

</CsScore>
</CsoundSynthesizer>
and this is the content of "partiturtest.inc"
i1    0                0.5        $d1        0.2
i1    0.5                0.5        $e1       
i1    1.0                0.5        $f1       
i1    1.5                0.5        $g1       

i2    0                0.5        $c1        0.2
i2    0.5                0.5        $h       
i2    1.0                0.5        $a       
i2    1.5                0.5        $c1       
Thanks for Your support!
Stefan



Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-12-28 15:41
FromJohn ff
SubjectRe: [Csnd] problem with file inclusion
The line 
munmap_chunk(): invalid pointer
comes from the operating system.  Which one?

⁣Sent from TypeApp ​

On Dec 28, 2018, 13:34, at 13:34, Stefan Thomas  wrote:
>Dear community,
>I've got some problems with a csd-file. When I run it, I get
>
>> STARTING FILE
>> Creating options
>> Creating orchestra
>> closing tag
>> Creating score
>> rtaudio: ALSA module enabled
>> rtmidi: ALSA Raw MIDI module enabled
>> Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.003s
>> sorting score ...
>> using path .
>> munmap_chunk(): invalid pointer
>>
>> csound command: Aborted
>> 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: 0.253s, CPU: 0.003s
>>
>The file runs correctly, when I copy the content of the file
>"partiturtest.inc" in the csd-file. I use  version 6.12 beta of csound.
>What can I do to avoid the error message?
>Here is the csd-file:
>
>
>-odac
>
>; ==============================================
>
>
>sr    =    44100
>;ksmps     =     100
>nchnls    =    2
>0dbfs    =    1
>gisine         ftgen 0,0,2^13,10,1
>gibuzz         ftgen 0,0,2^13,10,1,0.5,0.33,0.25,0.2,0.17,0.14,0.125
>gisoft         ftgen 0,0,2^13,10,1,0.25,0.11,0.06,0.04,0.03,0.02,0.02
>gizufall     ftgen 0,0,2^13,10, 0.64,0.29,0.34,0.5,0.11,0.36,0.1,0.3
>instr 1
>    idur = p3
>    ifrq = p4
>    iamp = p5
>    iein = 0.02
>    iaus = idur-iein
>    kenv expseg 0.0001,iein,1,iaus,0.0001
>    abuzz poscil iamp,ifrq,gibuzz
>    aout = abuzz*kenv
>    ipan = 0.1
>    aoutL,aoutR pan2 aout,ipan
>    outs aoutL,aoutR
>    ;outs ; nicht vergessen output
>endin
>instr 2
>    idur = p3
>    ifrq = p4
>    iamp = p5
>    iein = 0.02
>    iaus = idur-iein
>    kenv expseg 0.0001,iein,1,iaus,0.0001
>    asoft poscil iamp,ifrq,gisoft
>    aout = asoft*kenv
>    ipan = 0.3
>    aoutL,aoutR pan2 aout,ipan
>    outs aoutL,aoutR
>    ;outs ; nicht vergessen output
>endin
>instr 3
>    idur = p3
>    ifrq = p4
>    iamp = p5
>    iein = 0.02
>    iaus = idur-iein
>    kenv expseg 0.0001,iein,1,iaus,0.0001
>    asound poscil iamp,ifrq,gizufall
>    aout = asound*kenv
>    ipan = 0.7
>    aoutL,aoutR pan2 aout, ipan
>    outs aoutL,aoutR
>    ;outs ; nicht vergessen output
>endin
>instr 4
>    idur     = p3
>    ifrq    = p4
>    iamp    = p5
>    iein     = 0.02
>    iaus    = idur-iein
>    kenv    expseg 0.00001,iein,1,iaus,0.0001
>    imaxd = 1
>    ileak = 0.995
>    ipw = 0.5
>    atriangle vco iamp, ifrq, 3, ipw,gisine,imaxd,ileak
>    aout = kenv*atriangle
>    outs aout,aout
>endin
>
>
>
>; ==============================================
>
>#define  a       #220.31#
>#define  h       #247.3#
>#define  c1       #262.0#
>#define  d1       #294.09#
>#define  e1       #330.1#
>#define  f1       #349.73#
>#define  g1       #392.56#
>
>#include "partiturtest.inc"
>
>
>
>and this is the content of "partiturtest.inc"
>i1    0                0.5        $d1        0.2
>i1    0.5                0.5        $e1
>i1    1.0                0.5        $f1
>i1    1.5                0.5        $g1
>
>i2    0                0.5        $c1        0.2
>i2    0.5                0.5        $h
>i2    1.0                0.5        $a
>i2    1.5                0.5        $c1
>Thanks for Your support!
>Stefan
>
>Csound mailing list
>Csound@listserv.heanet.ie
>https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>Send bugs reports to
>        https://github.com/csound/csound/issues
>Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-12-28 17:18
Fromjpff
SubjectRe: [Csnd] problem with file inclusion
I tried this on my  Linux system and it worked perfectly.  So what 
platform?

On Fri, 28 Dec 2018, Stefan Thomas wrote:

> Dear community,
> I've got some problems with a csd-file. When I run it, I get
>       STARTING FILE
>       Creating options
>       Creating orchestra
>       closing tag
>       Creating score
>       rtaudio: ALSA module enabled
>       rtmidi: ALSA Raw MIDI module enabled
>       Elapsed time at end of orchestra compile: real: 0.003s, CPU:
>       0.003s
>       sorting score ...
>       using path .
>       munmap_chunk(): invalid pointer
>
>       csound command: Aborted
>       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: 0.253s, CPU: 0.003s
> 
> The file runs correctly, when I copy the content of the file
> "partiturtest.inc" in the csd-file. I use  version 6.12 beta of csound. What
> can I do to avoid the error message?
> Here is the csd-file:
> 
> 
> -odac
> 
> ; ==============================================
> 
> 
> sr    =    44100
> ;ksmps     =     100
> nchnls    =    2
> 0dbfs    =    1
> gisine         ftgen 0,0,2^13,10,1
> gibuzz         ftgen 0,0,2^13,10,1,0.5,0.33,0.25,0.2,0.17,0.14,0.125
> gisoft         ftgen 0,0,2^13,10,1,0.25,0.11,0.06,0.04,0.03,0.02,0.02
> gizufall     ftgen 0,0,2^13,10, 0.64,0.29,0.34,0.5,0.11,0.36,0.1,0.3
> instr 1   
>     idur = p3
>     ifrq = p4
>     iamp = p5
>     iein = 0.02
>     iaus = idur-iein
>     kenv expseg 0.0001,iein,1,iaus,0.0001
>     abuzz poscil iamp,ifrq,gibuzz
>     aout = abuzz*kenv
>     ipan = 0.1
>     aoutL,aoutR pan2 aout,ipan
>     outs aoutL,aoutR
>     ;outs ; nicht vergessen output
> endin
> instr 2   
>     idur = p3
>     ifrq = p4
>     iamp = p5
>     iein = 0.02
>     iaus = idur-iein
>     kenv expseg 0.0001,iein,1,iaus,0.0001
>     asoft poscil iamp,ifrq,gisoft
>     aout = asoft*kenv
>     ipan = 0.3
>     aoutL,aoutR pan2 aout,ipan
>     outs aoutL,aoutR
>     ;outs ; nicht vergessen output
> endin
> instr 3   
>     idur = p3
>     ifrq = p4
>     iamp = p5
>     iein = 0.02
>     iaus = idur-iein
>     kenv expseg 0.0001,iein,1,iaus,0.0001
>     asound poscil iamp,ifrq,gizufall
>     aout = asound*kenv
>     ipan = 0.7
>     aoutL,aoutR pan2 aout, ipan
>     outs aoutL,aoutR
>     ;outs ; nicht vergessen output
> endin
> instr 4
>     idur     = p3
>     ifrq    = p4
>     iamp    = p5
>     iein     = 0.02
>     iaus    = idur-iein
>     kenv    expseg 0.00001,iein,1,iaus,0.0001
>     imaxd = 1
>     ileak = 0.995
>     ipw = 0.5
>     atriangle vco iamp, ifrq, 3, ipw,gisine,imaxd,ileak
>     aout = kenv*atriangle
>     outs aout,aout
> endin
> 
> 
> 
> ; ==============================================
> 
> #define  a       #220.31#
> #define  h       #247.3#
> #define  c1       #262.0#
> #define  d1       #294.09#
> #define  e1       #330.1#
> #define  f1       #349.73#
> #define  g1       #392.56#
> 
> #include "partiturtest.inc"
> 
> 
> 
> and this is the content of "partiturtest.inc"
> i1    0                0.5        $d1        0.2
> i1    0.5                0.5        $e1       
> i1    1.0                0.5        $f1       
> i1    1.5                0.5        $g1       
> 
> i2    0                0.5        $c1        0.2
> i2    0.5                0.5        $h       
> i2    1.0                0.5        $a       
> i2    1.5                0.5        $c1       
> Thanks for Your support!
> Stefan
> 
> 
> 
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here