Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] New feature

Date2007-09-02 13:35
FromVictor Lazzarini
SubjectRe: [Cs-dev] New feature
I have added an optional parameter to diskin
(after the last one) which sets the buffersize
(default is 4096 frames). In CVS now.

Victor

> I suspect the diskin performance change might have
> more to do with this:
>
> from diskin.c
>
> /*               ugen developed by matt ingalls, ...
>
>    */
> /*               replaced with new implementation based on
>
>    */
> /*               diskin2 by Istvan Varga
>
>    */
> /*
>
>    */
> /*      diskin  -       a new soundin that shifts pitch
>
>    */
> /*              based on the old soundin code
>
>    */
> /*              Adjusted to include sndfile library
>
>    */
>
>
> Huh?
>
> Victor
>
> >
> >
> > also a separate thread for disk i/o for soundin/diskin
> > would be great.
> >
> > ever since the move to sndfilelib the real-time
> > performance has not been good.  ( in csound4 i was able
> > to make a diskin instrument and play live via MIDI with
> > no clicks -- i can't do that in csound5!!! )
> >
> >
> > -m
> >
> > On Sep 2, 2007, at 4:40 AM, Greg Thompson wrote:
> >
> > > Just a suggestion:
> > >
> > > Add an option in GEN01 for loading audio files in a
> > > separate low- priority thread so they do not interrupt
> > performance. >
> > > greg
> > >
> > >
> >
> > >
> ----------------------------------------------------------
> > > ------------  --- This SF.net email is sponsored by:
> > > Splunk Inc. Still grepping through log files to find
> > > problems? Stop. Now Search log events and
> > > configuration files using AJAX and a   browser.
> > > Download your FREE copy of Splunk now >>
> > > http://get.splunk.com/
> > > _______________________________________________
> > > Csound-devel mailing list
> > > Csound-devel@lists.sourceforge.net
> >
> >
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> > >
> > matt ingalls
> > development@gvox.com
> >
> >
> >
> >
> >
> >
> >
> ----------------------------------------------------------
> > --------------- This SF.net email is sponsored by:
> Splunk Inc. Still grepping through log files to find
> > problems? Stop. Now Search log events and configuration
> > files using AJAX and a browser. Download your FREE copy
> > of Splunk now >>  http://get.splunk.com/
> >
> >
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> >
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
>
> ----------------------------------------------------------
> --------------- This SF.net email is sponsored by: Splunk
> Inc. Still grepping through log files to find problems?
> Stop. Now Search log events and configuration files using
> AJAX and a browser. Download your FREE copy of Splunk now
> >>  http://get.splunk.com/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-09-02 21:47
Frommatt ingalls
SubjectRe: [Cs-dev] New feature
AttachmentsNone  None  

how new is the buffersize param?
i seem to remember playing around with some size setting 6 mo or
so and it did not fix the breakups -- just the frequency (larger buffersize
just meant less breakups)   too lazy to look at the code, but 
my guess is that sndlibfile is doing something like (in pseudocode)

char buffer[buffersize];
 while (buffersize--)
read(buffer++, sizeof(char));

 on OSX some i/o calls are not buffered internally,
so that kind of thing can be really much slower than:

read(buffer, sizeof(buffer));

when other OSes have no noticeable difference. 
(a couple of years ago i made some changes in the pvoc-ex code to
 fix this problem on OSX)

soundin has the same problem btw 
(as far as my crappy memory goes)

-m


On Sep 2, 2007, at 2:35 PM, Victor Lazzarini wrote:

I have added an optional parameter to diskin
(after the last one) which sets the buffersize
(default is 4096 frames). In CVS now.

Victor

I suspect the diskin performance change might have
more to do with this:

from diskin.c

/*               ugen developed by matt ingalls, ...

   */
/*               replaced with new implementation based on

   */
/*               diskin2 by Istvan Varga

   */
/*

   */
/*      diskin  -       a new soundin that shifts pitch

   */
/*              based on the old soundin code

   */
/*              Adjusted to include sndfile library

   */


Huh?

Victor



also a separate thread for disk i/o for soundin/diskin
would be great.

ever since the move to sndfilelib the real-time
performance has not been good.  ( in csound4 i was able
to make a diskin instrument and play live via MIDI with
no clicks -- i can't do that in csound5!!! )


-m

On Sep 2, 2007, at 4:40 AM, Greg Thompson wrote:

Just a suggestion:

Add an option in GEN01 for loading audio files in a
separate low- priority thread so they do not interrupt
performance. >
greg




----------------------------------------------------------
------------  --- This SF.net email is sponsored by:
Splunk Inc. Still grepping through log files to find
problems? Stop. Now Search log events and
configuration files using AJAX and a   browser.
Download your FREE copy of Splunk now >>
_______________________________________________
Csound-devel mailing list



matt ingalls







----------------------------------------------------------
--------------- This SF.net email is sponsored by:
Splunk Inc. Still grepping through log files to find
problems? Stop. Now Search log events and configuration
files using AJAX and a browser. Download your FREE copy
of Splunk now >>  http://get.splunk.com/


_______________________________________________
Csound-devel mailing list



----------------------------------------------------------
--------------- This SF.net email is sponsored by: Splunk
Inc. Still grepping through log files to find problems?
Stop. Now Search log events and configuration files using
AJAX and a browser. Download your FREE copy of Splunk now
_______________________________________________
Csound-devel mailing list

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Csound-devel mailing list


matt ingalls




Date2007-09-04 09:16
FromVictor Lazzarini
SubjectRe: [Cs-dev] New feature
It's just the number of frames in the diskin read buffer,
defaults to 4096 (the original), but can be anything
between 128 and ... forgot the top value. It's now the
last parameter, will update the manual.

Victor

At 21:47 02/09/2007, you wrote:

>how new is the buffersize param?
>i seem to remember playing around with some size setting 6 mo or
>so and it did not fix the breakups -- just the frequency (larger buffersize
>just meant less breakups)   too lazy to look at the code, but
>my guess is that sndlibfile is doing something like (in pseudocode)
>
>char buffer[buffersize];
>  while (buffersize--)
>read(buffer++, sizeof(char));
>
>  on OSX some i/o calls are not buffered internally,
>so that kind of thing can be really much slower than:
>
>read(buffer, sizeof(buffer));
>
>when other OSes have no noticeable difference.
>(a couple of years ago i made some changes in the pvoc-ex code to
>  fix this problem on OSX)
>
>soundin has the same problem btw
>(as far as my crappy memory goes)
>
>-m
>
>
>On Sep 2, 2007, at 2:35 PM, Victor Lazzarini wrote:
>
>>I have added an optional parameter to diskin
>>(after the last one) which sets the buffersize
>>(default is 4096 frames). In CVS now.
>>
>>Victor
>>
>>>I suspect the diskin performance change might have
>>>more to do with this:
>>>
>>>from diskin.c
>>>
>>>/* SPAN class="Apple-converted-space">              ugen developed by 
>>>matt ingalls, ...
>>>
>>>    */
>>>/*               replaced with new implementation based on
>>>
>>>    */
>>>/*               diskin2 by Istvan Varga
>>>
>>>    */
>>>/*
>>>
>>>    */
>>>/*      diskin  -       a new soundin that shifts pitch
>>>
>>>    */
>>>/*              based on the old soundin code
>>>
>>>    */
>>>/*              Adjusted to include sndfile library
>>>
>>>    */
>>>
>>>
>>>Huh?
>>>
>>>Victor
>>>
>>>>
>>>>
>>>>also a separate thread for disk i/o for soundin/diskin
>>>>would be great.
>>>>
>>>>ever since the move to sndfilelib the real-time
>>>>performance has not been good.  ( in csound4 i was able
>>>>to make a diskin instrument and play live via MIDI with
>>>>no clicks -- i can't do that in csound5!!! )
>>>>
>>>>
>>>>-m
>>>>
>>>>On Sep 2, 2007, at 4:40 AM, Greg Thompson wrote:
>>>>
>>>>>Just a suggestion:
>>>>>
>>>>>Add an option in GEN01 for loading audio files in a
>>>>>separate low- prio ity thread so they do not interrupt
>>>>performance. >
>>>>>greg
>>>>>
>>>>
>>>----------------------------------------------------------
>>>>>------------  --- This SF.net email is sponsored by:
>>>>>Splunk Inc. Still grepping through log files to find
>>>>>problems? Stop. Now Search log events and
>>>>>configuration files using AJAX and a   browser.
>>>>>Download your FREE copy of Splunk now >>
>>>>>http://get.splunk.com/
>>>>>_______________________________________________
>>>>>Csound-devel mailing list
>>>>>Csound-devel@lists.sourceforge.net
>>>>
>>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>matt ingalls
>>>>>development@gvox.com
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>----------------------------------------------------------
>>>>>--------------- This SF.net email is sponsored by:
>>>>Splunk Inc. Still grepping through log files to find
>>>>>problems? Stop. Now Search log events and configuration
>>>>>files using AJAX and a browser. Download your FREE copy
>>>>>of Splunk now >>  http://get.splunk.com/
>>>>>
>>>>>
>>>>>_______________________________________________
>>>>>Csound-devel mailing list
>>>>>Csound-devel@lists.sourceforge.net
>>>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>----------------------------------------------------------
>>>>--------------- This SF.net email is sponsored by: Splunk
>>>>Inc. Still grepping through log files to find problems?
>>>>Stop. Now Search log events and configuration files using
>>>>AJAX and a browser. Download your FREE copy of Splunk now
>>>>>>  http://get.splunk.com/
>>>>_______________________________________________
>>>>Csound-devel mailing list
>>>>Csound-devel@lists.sourceforge.net
>>>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>-------------------------------------------------------------------------
>>>>This SF.net email is sponsored by: Splunk Inc.
>>>>Still grepping through log files to find problems?  Stop.
>>>>Now Search log events and configuration files using AJAX and a browser.
>>>>Download your FREE copy of Splunk now >>  http://get.splunk.com/
>>>>_______________________________________________
>>>>Csound-devel mailing list
>>>>Csound-devel@lists.sourceforge.net
>>>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>matt ingalls
>>>development@gvox.com
>>>
>>>
>>>
>>>-------------------------------------------------------------------------
>>>This SF.net email is sponsored by: Splunk Inc.
>>>Still grepping through log files to find problems?  Stop.
>>>Now Search log events and configuration files using AJAX and a browser.
>>>Download your FREE copy of Splunk now >>  http://get.splunk.com/
>>>_______________________________________________
>>>Csound-devel mailing list
>>>Csound-devel@lists.sourceforge.net
>>>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net