Csound Csound-dev Csound-tekno Search About

[Csnd] problem with ftgen

Date2010-04-10 08:39
FromStefan Thomas
Subject[Csnd] problem with ftgen
Dear community,
I wanted to try something I've read in the Csound-Journal about tuning your midi-keyboard
I've only changed the scale that I want to use.
But when I run the collowing code I get:
*** glibc detected *** csound: malloc(): memory corruption: 0x087ccbc0 ***
I can't find my mistake.
Here is the code:
<CsoundSynthesizer>
<CsOptions>
-odac -Ma -b128 -B512 --midi-key=4 --midi-velocity-amp=5 -m0
</CsOptions>
<CsInstruments>


giScale     ftgen         1, 0, -73.75, -40.75,  15.25, -14.5, -45.25, -12.25, 71.5, 14.25, 30.75,  \
                        -16.25, -13.25, -10, 7, -17

        massign     0, 101

instr 101
ikey        =        p4
ivel        =        p5
indx        =        ikey % 12
icent        tab_i        indx, 1
ifreqeq    =        cpsmidinn(ikey)
ifreq        =        ifreqeq * cent(icent)
anote        oscils        ivel, ifreq, 0
kenv        linsegr    0, .1, 1, p3-0.1, 1, .1, 0
        out        anote * kenv
endin
</CsInstruments>
<CsScore>
f 0 3600
e
</CsScore>
</CsoundSynthesizer>






Date2010-04-10 08:51
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: problem with ftgen
Version?
Platform?


> Dear community,
> I wanted to try something I've read in the Csound-Journal about tuning
> your
> midi-keyboard
> I've only changed the scale that I want to use.
> But when I run the collowing code I get:
> *** glibc detected *** csound: malloc(): memory corruption: 0x087ccbc0 ***
> I can't find my mistake.
> Here is the code:
> 
> 
> -odac -Ma -b128 -B512 --midi-key=4 --midi-velocity-amp=5 -m0
> 
> 
>
>
> giScale     ftgen         1, 0, -73.75, -40.75,  15.25, -14.5, -45.25,
> -12.25, 71.5, 14.25, 30.75,  \
>                         -16.25, -13.25, -10, 7, -17
>
>         massign     0, 101
>
> instr 101
> ikey        =        p4
> ivel        =        p5
> indx        =        ikey % 12
> icent        tab_i        indx, 1
> ifreqeq    =        cpsmidinn(ikey)
> ifreq        =        ifreqeq * cent(icent)
> anote        oscils        ivel, ifreq, 0
> kenv        linsegr    0, .1, 1, p3-0.1, 1, .1, 0
>         out        anote * kenv
> endin
> 
> 
> f 0 3600
> e
> 
> 
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>




Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-04-10 09:13
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: problem with ftgen
The arguments to ftgen are wrong.  You omitted teh size and generator, sop
it io susing -73.75 as the length and -40.75 as the generator

The error message is not helpful; will look at improving that
==John ff

> Dear community,
> I wanted to try something I've read in the Csound-Journal about tuning
> your
> midi-keyboard
> I've only changed the scale that I want to use.
> But when I run the collowing code I get:
> *** glibc detected *** csound: malloc(): memory corruption: 0x087ccbc0 ***
> I can't find my mistake.
> Here is the code:
> 
> 
> -odac -Ma -b128 -B512 --midi-key=4 --midi-velocity-amp=5 -m0
> 
> 
>
>
> giScale     ftgen         1, 0, -73.75, -40.75,  15.25, -14.5, -45.25,
> -12.25, 71.5, 14.25, 30.75,  \
>                         -16.25, -13.25, -10, 7, -17
>
>         massign     0, 101
>
> instr 101
> ikey        =        p4
> ivel        =        p5
> indx        =        ikey % 12
> icent        tab_i        indx, 1
> ifreqeq    =        cpsmidinn(ikey)
> ifreq        =        ifreqeq * cent(icent)
> anote        oscils        ivel, ifreq, 0
> kenv        linsegr    0, .1, 1, p3-0.1, 1, .1, 0
>         out        anote * kenv
> endin
> 
> 
> f 0 3600
> e
> 
> 
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>




Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"