Csound Csound-dev Csound-tekno Search About

[Csnd] gen27 problems

Date2014-07-29 19:25
FromBen Hackbarth
Subject[Csnd] gen27 problems
hello all,

i'm experiencing some problems with gen 27 with lots of values detailed by the following csd:

http://pastebin.com/EaNzQyBc

each table's data should be x=y, but this stops working properly with a table length of 2048 (with 4096 arguments given to gen27).  is there a limit to the number of numerical values one can supply to gen27?  does anyone have alternative method to importing large sets of breakpoint information into csound?

thanks as always,
 – ben


              _
             .
            -
          _'
         .
       _-
      .
     -
   _'
  .
_-______________
                              _
                           _.-
                        _.-
                     _.-
                  _.-
               _.-
            _.-
         _.-
      _.-
   _.-
_.-_____________________________
                                                              _
                                                        __.--'
                                                  __.--'
                                            _..--'
                                      _..-''
                               __..-''
                         __.--'
                   __.--'
             _..--'
       _..-''
__..-''_________________________________________________________
                                                               _
                                                         __.--'
                                                   _..--'
                                             _..-''
                                      __.--''
                                __.--'
                          _..-''
                   __..-''
             __.--'
       _..--'
__..-''_________________________________________________________
                                                          _..-''
                                                   __.--''
                                             __.--'
                                       _..-''
                                __.--''
                          _..--'
                    _..-''
             __.--''
       _..--'
__..-''_________________________________________________________
                                                                  __..--'
                                                           __.--''
                                                   __..--''
                                            __..--'
                                     __..-''
                              _..--''
                      __..--''
               __..--'
        __.--''
__..--''__________________________________________________________________
WARNING: using extended arguments

ftable 7:	1024 points, scalemax 1.000
                                                                     __..--''
                                                              __.--''
                                                      __..--''
                                              __..--''
                                       __..-''
                               __..--''
                       __..--''
                __..--'
        __..--''
__..--''_____________________________________________________________________--
WARNING: using extended arguments

ftable 8:	2048 points, scalemax 1.000
                                       ''-..__
                                              ''--.._
                                                     ''--..__
                                                             '--..__
                                                                    ''--.__
                                 __..--                                    ''''
                         __..--''
                 __..--''
         __..--''
___..--''______________________________________________________________________
WARNING: using extended arguments

ftable 9:	4096 points, scalemax 1.000
                    -_
                      -.
                        '.
                          '-_
                             -_
                               '.                                  ___...---'''
                                 '._                   ___...---'''
                                    -_     ___...---'''
            ___...--                  --'''
___...---'''___________________________________________________________________
WARNING: using extended arguments

ftable 10:	8192 points, scalemax 14391.000
          -
           -
            '
             '
              '
               '                                                  ____...----'''
                '                                   ____...----'''
                 '                    ____...----'''
                  '_    ____...----'''
____...---__________-'''________________________________________________________

Date2014-07-29 19:29
FromHlöðver Sigurðsson
SubjectRe: [Csnd] gen27 problems
You allocate 4096 memory indices but fill the table with 10.000+ values, exceeding 4timesfold the maximum capacity of indices?


2014-07-29 18:25 GMT+00:00 Ben Hackbarth <hackbarth@gmail.com>:
hello all,

i'm experiencing some problems with gen 27 with lots of values detailed by the following csd:

http://pastebin.com/EaNzQyBc

each table's data should be x=y, but this stops working properly with a table length of 2048 (with 4096 arguments given to gen27).  is there a limit to the number of numerical values one can supply to gen27?  does anyone have alternative method to importing large sets of breakpoint information into csound?

thanks as always,
 – ben


              _
             .
            -
          _'
         .
       _-
      .
     -
   _'
  .
_-______________
                              _
                           _.-
                        _.-
                     _.-
                  _.-
               _.-
            _.-
         _.-
      _.-
   _.-
_.-_____________________________
                                                              _
                                                        __.--'
                                                  __.--'
                                            _..--'
                                      _..-''
                               __..-''
                         __.--'
                   __.--'
             _..--'
       _..-''
__..-''_________________________________________________________
                                                               _
                                                         __.--'
                                                   _..--'
                                             _..-''
                                      __.--''
                                __.--'
                          _..-''
                   __..-''
             __.--'
       _..--'
__..-''_________________________________________________________
                                                          _..-''
                                                   __.--''
                                             __.--'
                                       _..-''
                                __.--''
                          _..--'
                    _..-''
             __.--''
       _..--'
__..-''_________________________________________________________
                                                                  __..--'
                                                           __.--''
                                                   __..--''
                                            __..--'
                                     __..-''
                              _..--''
                      __..--''
               __..--'
        __.--''
__..--''__________________________________________________________________
WARNING: using extended arguments

ftable 7:       1024 points, scalemax 1.000
                                                                     __..--''
                                                              __.--''
                                                      __..--''
                                              __..--''
                                       __..-''
                               __..--''
                       __..--''
                __..--'
        __..--''
__..--''_____________________________________________________________________--
WARNING: using extended arguments

ftable 8:       2048 points, scalemax 1.000
                                       ''-..__
                                              ''--.._
                                                     ''--..__
                                                             '--..__
                                                                    ''--.__
                                 __..--                                    ''''
                         __..--''
                 __..--''
         __..--''
___..--''______________________________________________________________________
WARNING: using extended arguments

ftable 9:       4096 points, scalemax 1.000
                    -_
                      -.
                        '.
                          '-_
                             -_
                               '.                                  ___...---'''
                                 '._                   ___...---'''
                                    -_     ___...---'''
            ___...--                  --'''
___...---'''___________________________________________________________________
WARNING: using extended arguments

ftable 10:      8192 points, scalemax 14391.000
          -
           -
            '
             '
              '
               '                                                  ____...----'''
                '                                   ____...----'''
                 '                    ____...----'''
                  '_    ____...----'''
____...---__________-'''________________________________________________________

Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2014-07-29 19:30
FromHlöðver Sigurðsson
SubjectRe: [Csnd] gen27 problems
Maybe you didn't notice, many values duplicate.


2014-07-29 18:29 GMT+00:00 Hlöðver Sigurðsson <hlolli@gmail.com>:
You allocate 4096 memory indices but fill the table with 10.000+ values, exceeding 4timesfold the maximum capacity of indices?


2014-07-29 18:25 GMT+00:00 Ben Hackbarth <hackbarth@gmail.com>:

hello all,

i'm experiencing some problems with gen 27 with lots of values detailed by the following csd:

http://pastebin.com/EaNzQyBc

each table's data should be x=y, but this stops working properly with a table length of 2048 (with 4096 arguments given to gen27).  is there a limit to the number of numerical values one can supply to gen27?  does anyone have alternative method to importing large sets of breakpoint information into csound?

thanks as always,
 – ben


              _
             .
            -
          _'
         .
       _-
      .
     -
   _'
  .
_-______________
                              _
                           _.-
                        _.-
                     _.-
                  _.-
               _.-
            _.-
         _.-
      _.-
   _.-
_.-_____________________________
                                                              _
                                                        __.--'
                                                  __.--'
                                            _..--'
                                      _..-''
                               __..-''
                         __.--'
                   __.--'
             _..--'
       _..-''
__..-''_________________________________________________________
                                                               _
                                                         __.--'
                                                   _..--'
                                             _..-''
                                      __.--''
                                __.--'
                          _..-''
                   __..-''
             __.--'
       _..--'
__..-''_________________________________________________________
                                                          _..-''
                                                   __.--''
                                             __.--'
                                       _..-''
                                __.--''
                          _..--'
                    _..-''
             __.--''
       _..--'
__..-''_________________________________________________________
                                                                  __..--'
                                                           __.--''
                                                   __..--''
                                            __..--'
                                     __..-''
                              _..--''
                      __..--''
               __..--'
        __.--''
__..--''__________________________________________________________________
WARNING: using extended arguments

ftable 7:       1024 points, scalemax 1.000
                                                                     __..--''
                                                              __.--''
                                                      __..--''
                                              __..--''
                                       __..-''
                               __..--''
                       __..--''
                __..--'
        __..--''
__..--''_____________________________________________________________________--
WARNING: using extended arguments

ftable 8:       2048 points, scalemax 1.000
                                       ''-..__
                                              ''--.._
                                                     ''--..__
                                                             '--..__
                                                                    ''--.__
                                 __..--                                    ''''
                         __..--''
                 __..--''
         __..--''
___..--''______________________________________________________________________
WARNING: using extended arguments

ftable 9:       4096 points, scalemax 1.000
                    -_
                      -.
                        '.
                          '-_
                             -_
                               '.                                  ___...---'''
                                 '._                   ___...---'''
                                    -_     ___...---'''
            ___...--                  --'''
___...---'''___________________________________________________________________
WARNING: using extended arguments

ftable 10:      8192 points, scalemax 14391.000
          -
           -
            '
             '
              '
               '                                                  ____...----'''
                '                                   ____...----'''
                 '                    ____...----'''
                  '_    ____...----'''
____...---__________-'''________________________________________________________

Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"






Date2014-07-29 19:43
FromBen Hackbarth
SubjectRe: [Csnd] gen27 problems
You allocate 4096 memory indices but fill the table with 10.000+ values, exceeding 4timesfold the maximum capacity of indices?

the 4096-point table has 8192 arguments, which should be ok since gen27's arguments are breakpoints requiring a x-y pair.

Maybe you didn't notice, many values duplicate.

x=y just for testing purposes.

 – ben

On Jul 29, 2014, at 7:29 PM, Hlöðver Sigurðsson wrote:



2014-07-29 18:25 GMT+00:00 Ben Hackbarth <hackbarth@gmail.com>:
hello all,

i'm experiencing some problems with gen 27 with lots of values detailed by the following csd:

http://pastebin.com/EaNzQyBc

each table's data should be x=y, but this stops working properly with a table length of 2048 (with 4096 arguments given to gen27).  is there a limit to the number of numerical values one can supply to gen27?  does anyone have alternative method to importing large sets of breakpoint information into csound?

thanks as always,
 – ben


              _
             .
            -
          _'
         .
       _-
      .
     -
   _'
  .
_-______________
                              _
                           _.-
                        _.-
                     _.-
                  _.-
               _.-
            _.-
         _.-
      _.-
   _.-
_.-_____________________________
                                                              _
                                                        __.--'
                                                  __.--'
                                            _..--'
                                      _..-''
                               __..-''
                         __.--'
                   __.--'
             _..--'
       _..-''
__..-''_________________________________________________________
                                                               _
                                                         __.--'
                                                   _..--'
                                             _..-''
                                      __.--''
                                __.--'
                          _..-''
                   __..-''
             __.--'
       _..--'
__..-''_________________________________________________________
                                                          _..-''
                                                   __.--''
                                             __.--'
                                       _..-''
                                __.--''
                          _..--'
                    _..-''
             __.--''
       _..--'
__..-''_________________________________________________________
                                                                  __..--'
                                                           __.--''
                                                   __..--''
                                            __..--'
                                     __..-''
                              _..--''
                      __..--''
               __..--'
        __.--''
__..--''__________________________________________________________________
WARNING: using extended arguments

ftable 7:       1024 points, scalemax 1.000
                                                                     __..--''
                                                              __.--''
                                                      __..--''
                                              __..--''
                                       __..-''
                               __..--''
                       __..--''
                __..--'
        __..--''
__..--''_____________________________________________________________________--
WARNING: using extended arguments

ftable 8:       2048 points, scalemax 1.000
                                       ''-..__
                                              ''--.._
                                                     ''--..__
                                                             '--..__
                                                                    ''--.__
                                 __..--                                    ''''
                         __..--''
                 __..--''
         __..--''
___..--''______________________________________________________________________
WARNING: using extended arguments

ftable 9:       4096 points, scalemax 1.000
                    -_
                      -.
                        '.
                          '-_
                             -_
                               '.                                  ___...---'''
                                 '._                   ___...---'''
                                    -_     ___...---'''
            ___...--                  --'''
___...---'''___________________________________________________________________
WARNING: using extended arguments

ftable 10:      8192 points, scalemax 14391.000
          -
           -
            '
             '
              '
               '                                                  ____...----'''
                '                                   ____...----'''
                 '                    ____...----'''
                  '_    ____...----'''
____...---__________-'''________________________________________________________

Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"






Date2014-07-29 19:48
FromVictor Lazzarini
SubjectRe: [Csnd] gen27 problems
Can you open a ticket on github so we can investigate it? 2048 does sound very low for a limit.
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 29 Jul 2014, at 19:43, Ben Hackbarth  wrote:

>> You allocate 4096 memory indices but fill the table with 10.000+ values, exceeding 4timesfold the maximum capacity of indices?
> 
> the 4096-point table has 8192 arguments, which should be ok since gen27's arguments are breakpoints requiring a x-y pair.
> 
>> Maybe you didn't notice, many values duplicate.
> 
> x=y just for testing purposes.
> 
>  – ben
> 
> On Jul 29, 2014, at 7:29 PM, Hlöðver Sigurðsson wrote:
> 
>> 
>> 
>> 2014-07-29 18:25 GMT+00:00 Ben Hackbarth :
>> hello all,
>> 
>> i'm experiencing some problems with gen 27 with lots of values detailed by the following csd:
>> 
>> http://pastebin.com/EaNzQyBc
>> 
>> each table's data should be x=y, but this stops working properly with a table length of 2048 (with 4096 arguments given to gen27).  is there a limit to the number of numerical values one can supply to gen27?  does anyone have alternative method to importing large sets of breakpoint information into csound?
>> 
>> thanks as always,
>>  – ben
>> 
>> 
>>               _
>>              .
>>             -
>>           _'
>>          .
>>        _-
>>       .
>>      -
>>    _'
>>   .
>> _-______________
>>                               _
>>                            _.-
>>                         _.-
>>                      _.-
>>                   _.-
>>                _.-
>>             _.-
>>          _.-
>>       _.-
>>    _.-
>> _.-_____________________________
>>                                                               _
>>                                                         __.--'
>>                                                   __.--'
>>                                             _..--'
>>                                       _..-''
>>                                __..-''
>>                          __.--'
>>                    __.--'
>>              _..--'
>>        _..-''
>> __..-''_________________________________________________________
>>                                                                _
>>                                                          __.--'
>>                                                    _..--'
>>                                              _..-''
>>                                       __.--''
>>                                 __.--'
>>                           _..-''
>>                    __..-''
>>              __.--'
>>        _..--'
>> __..-''_________________________________________________________
>>                                                           _..-''
>>                                                    __.--''
>>                                              __.--'
>>                                        _..-''
>>                                 __.--''
>>                           _..--'
>>                     _..-''
>>              __.--''
>>        _..--'
>> __..-''_________________________________________________________
>>                                                                   __..--'
>>                                                            __.--''
>>                                                    __..--''
>>                                             __..--'
>>                                      __..-''
>>                               _..--''
>>                       __..--''
>>                __..--'
>>         __.--''
>> __..--''__________________________________________________________________
>> WARNING: using extended arguments
>> 
>> ftable 7:       1024 points, scalemax 1.000
>>                                                                      __..--''
>>                                                               __.--''
>>                                                       __..--''
>>                                               __..--''
>>                                        __..-''
>>                                __..--''
>>                        __..--''
>>                 __..--'
>>         __..--''
>> __..--''_____________________________________________________________________--
>> WARNING: using extended arguments
>> 
>> ftable 8:       2048 points, scalemax 1.000
>>                                        ''-..__
>>                                               ''--.._
>>                                                      ''--..__
>>                                                              '--..__
>>                                                                     ''--.__
>>                                  __..--                                    ''''
>>                          __..--''
>>                  __..--''
>>          __..--''
>> ___..--''______________________________________________________________________
>> WARNING: using extended arguments
>> 
>> ftable 9:       4096 points, scalemax 1.000
>>                     -_
>>                       -.
>>                         '.
>>                           '-_
>>                              -_
>>                                '.                                  ___...---'''
>>                                  '._                   ___...---'''
>>                                     -_     ___...---'''
>>             ___...--                  --'''
>> ___...---'''___________________________________________________________________
>> WARNING: using extended arguments
>> 
>> ftable 10:      8192 points, scalemax 14391.000
>>           -
>>            -
>>             '
>>              '
>>               '
>>                '                                                  ____...----'''
>>                 '                                   ____...----'''
>>                  '                    ____...----'''
>>                   '_    ____...----'''
>> ____...---__________-'''________________________________________________________
>> 
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>> 
>> 
>> 
>> 
> 



Date2014-07-29 19:53
FromBen Hackbarth
SubjectRe: [Csnd] gen27 problems
done, cheers victor.
 – ben

On Jul 29, 2014, at 7:48 PM, Victor Lazzarini wrote:

Can you open a ticket on github so we can investigate it? 2048 does sound very low for a limit.
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 29 Jul 2014, at 19:43, Ben Hackbarth <hackbarth@gmail.com> wrote:

You allocate 4096 memory indices but fill the table with 10.000+ values, exceeding 4timesfold the maximum capacity of indices?

the 4096-point table has 8192 arguments, which should be ok since gen27's arguments are breakpoints requiring a x-y pair.

Maybe you didn't notice, many values duplicate.

x=y just for testing purposes.

– ben

On Jul 29, 2014, at 7:29 PM, Hlöðver Sigurðsson wrote:



2014-07-29 18:25 GMT+00:00 Ben Hackbarth <hackbarth@gmail.com>:
hello all,

i'm experiencing some problems with gen 27 with lots of values detailed by the following csd:

http://pastebin.com/EaNzQyBc

each table's data should be x=y, but this stops working properly with a table length of 2048 (with 4096 arguments given to gen27).  is there a limit to the number of numerical values one can supply to gen27?  does anyone have alternative method to importing large sets of breakpoint information into csound?

thanks as always,
– ben


             _
            .
           -
         _'
        .
      _-
     .
    -
  _'
 .
_-______________
                             _
                          _.-
                       _.-
                    _.-
                 _.-
              _.-
           _.-
        _.-
     _.-
  _.-
_.-_____________________________
                                                             _
                                                       __.--'
                                                 __.--'
                                           _..--'
                                     _..-''
                              __..-''
                        __.--'
                  __.--'
            _..--'
      _..-''
__..-''_________________________________________________________
                                                              _
                                                        __.--'
                                                  _..--'
                                            _..-''
                                     __.--''
                               __.--'
                         _..-''
                  __..-''
            __.--'
      _..--'
__..-''_________________________________________________________
                                                         _..-''
                                                  __.--''
                                            __.--'
                                      _..-''
                               __.--''
                         _..--'
                   _..-''
            __.--''
      _..--'
__..-''_________________________________________________________
                                                                 __..--'
                                                          __.--''
                                                  __..--''
                                           __..--'
                                    __..-''
                             _..--''
                     __..--''
              __..--'
       __.--''
__..--''__________________________________________________________________
WARNING: using extended arguments

ftable 7:       1024 points, scalemax 1.000
                                                                    __..--''
                                                             __.--''
                                                     __..--''
                                             __..--''
                                      __..-''
                              __..--''
                      __..--''
               __..--'
       __..--''
__..--''_____________________________________________________________________--
WARNING: using extended arguments

ftable 8:       2048 points, scalemax 1.000
                                      ''-..__
                                             ''--.._
                                                    ''--..__
                                                            '--..__
                                                                   ''--.__
                                __..--                                    ''''
                        __..--''
                __..--''
        __..--''
___..--''______________________________________________________________________
WARNING: using extended arguments

ftable 9:       4096 points, scalemax 1.000
                   -_
                     -.
                       '.
                         '-_
                            -_
                              '.                                  ___...---'''
                                '._                   ___...---'''
                                   -_     ___...---'''
           ___...--                  --'''
___...---'''___________________________________________________________________
WARNING: using extended arguments

ftable 10:      8192 points, scalemax 14391.000
         -
          -
           '
            '
             '
              '                                                  ____...----'''
               '                                   ____...----'''
                '                    ____...----'''
                 '_    ____...----'''
____...---__________-'''________________________________________________________

Send bugs reports to
       https://github.com/csound/csound/issues
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
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2014-07-29 19:58
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: gen27
AttachmentsNone  

Date2014-07-29 20:48
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] Re: gen27
AttachmentsNone  

Date2014-07-30 11:41
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] Re: gen27
AttachmentsNone  

Date2014-07-30 15:21
FromBen Hackbarth
SubjectRe: [Csnd] gen27
thanks John.  I can confirm that my test csd now works (i'm compiling git develop on OSX).  however, there are still some oddities that I can't seem to explain.

the following table is well formed (that is to say that the x coordinates are always incrementing), yet csound complains otherwise and the data fails to load properly.  

sorry if it is a mistake on my part!

http://pastebin.com/Fgjy8HM2

ftable 99: x coordinates must all be in increasing order:
f 99     0.00  4096.00   -27.00    0.00 ...

cheers,
 – ben

On Jul 30, 2014, at 11:41 AM, jpff@cs.bath.ac.uk wrote:

> Fixed in git
> 
> There were two largely unrelated issues;
> 
> 1: Use of arguments in excess of 1998 caused two values to be lost totally, re 1998th and the last.  This is generically true for score events
> 
> 2: Naive coding in gen27 was erroneous in a number of ways
> 
> I would like to thank Ben Hackbarth for drawing this to my attention.  Please if anyone has oddities with large numbers of arguments let us know; the code has not been vigourously tested since it was written five years ago.
> 
> ==John ff
> 
> 
> 
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
> 



Date2014-07-30 16:07
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re:
AttachmentsNone  

Date2014-08-01 12:35
FromBen Hackbarth
SubjectRe: [Csnd]
Just a followup to say the John has fixed this and now long score lines (exceeding the PMAX of 1998 arguments) for both ftables and instrument calls work.  I've tested ftables up to 11000 arguments with the latest in git.

thanks john!
 – ben

On Jul 30, 2014, at 4:07 PM, jpff@cs.bath.ac.uk wrote:

Oh bother!  It seems to have skipped the value between 2315 and 2316 which is very like what was wrong earlier (ie I thought I had fixed that)

Back to debugging
==JPff
PS I also get message
nsegs=1447 x1,y1 = 2315.000000,2316.000000 x2,y2 = 0.041492,2317.000000

which shows where it happens

Quoting Ben Hackbarth <hackbarth@gmail.com>:

thanks John.  I can confirm that my test csd now works (i'm compiling git develop on OSX).  however, there are still some oddities that I can't seem to explain.

the following table is well formed (that is to say that the x coordinates are always incrementing), yet csound complains otherwise and the data fails to load properly.

sorry if it is a mistake on my part!

http://pastebin.com/Fgjy8HM2

ftable 99: x coordinates must all be in increasing order:
f 99     0.00  4096.00   -27.00    0.00 ...

cheers,
? ben





Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"