Csound Csound-dev Csound-tekno Search About

[Cs-dev] csound5 api problems

Date2006-04-07 08:52
Frommatt ingalls
Subject[Cs-dev] csound5 api problems
here is my current list of problems trying to get MacCsound working  
with csound5:

any help would me much appreciated!

+ i can get MIDI input to work through the API, but MIDI out does not  
work.
	i register the callbacks with csoundSetExternalMidiOutOpenCallback
	but it is never called!

+ sound designer II files cannot be opened by utils
[ well sndinfo opens it, but reports file type as "unknown" ]

+ filepeak opcode produces:
"filepeak is not implemented"
   ??? this is a pretty important opcode for me -- i use this all the  
time to normalize files.
   		
+ pvanal: -g doesn't throw error, but no graphics are produced
+ lpanal: unrecognised flag -g

+ temp files are not being deleted


THINGS THAT MIGHT BE MY CODE I NEED TO CHECK FIRST
	BEFORE REALLY COMPLAINING
+ real-time audio buffer problem when it IS a power for two (??)
	[ non-power of 2 buffer sizes work fine! ]

+ real-time input does not work

+ probably need a way to set the work directory through the API
	i am seeing files created in the top directory of my hard drive
	and other files not found.. [ details later ]


Thanks,
matt


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-04-07 09:16
FromErik de Castro Lopo
SubjectRe: [Cs-dev] csound5 api problems
matt ingalls wrote:

> + sound designer II files cannot be opened by utils
> [ well sndinfo opens it, but reports file type as "unknown" ]

sndinfo? Do you meant sndfile-info?

Can you post the console output for the command:

    sndfile-info 

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"Incompetence, like misery, seeks company." -- Erik Naggum


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-04-07 09:31
FromVictor Lazzarini
SubjectRe: [Cs-dev] csound5 api problems
At 08:52 07/04/2006, you wrote:

>here is my current list of problems trying to get MacCsound working
>with csound5:
>
>any help would me much appreciated!
>
>+ i can get MIDI input to work through the API, but MIDI out does not
>work.
>         i register the callbacks with csoundSetExternalMidiOutOpenCallback
>         but it is never called!
I have never actually tested MIDI out on OSX. I have to look at it.


>THINGS THAT MIGHT BE MY CODE I NEED TO CHECK FIRST
>         BEFORE REALLY COMPLAINING
>+ real-time audio buffer problem when it IS a power for two (??)
>         [ non-power of 2 buffer sizes work fine! ]
No such problem with portaudio or coreaudio module

>+ real-time input does not work
as above, works OK here.

>+ probably need a way to set the work directory through the API
>         i am seeing files created in the top directory of my hard drive
>         and other files not found.. [ details later ]

I think this is something your application has to solve. The
Csound 5 API GUI tries to solve this with a 'working directory'
edit box. Using the env, vars SFDIR etc also can be a solution.


>Thanks,
>matt
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>that extends applications into web and mobile media. Attend the live webcast
>and join the prime developer group breaking into this new coding territory!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>_______________________________________________
>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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-04-07 09:55
FromIstvan Varga
SubjectRe: [Cs-dev] csound5 api problems
AttachmentsNone  

Date2006-04-07 16:14
Frommatt ingalls
SubjectRe: [Cs-dev] csound5 api problems

On Apr 7, 2006, at 10:55 AM, Istvan Varga wrote:

On Friday 07 April 2006 09:52, matt ingalls wrote:

+ i can get MIDI input to work through the API, but MIDI out does not  
work.
i register the callbacks with csoundSetExternalMidiOutOpenCallback
but it is never called!

Perhaps you forgot to add -Q0 -+rtmidi=null to the command line options ?
Replace the '0' with any device name and it will be passed to the open
callback.

oh i didn't know about -Q .. that was the problem, thanks.

+ sound designer II files cannot be opened by utils
[ well sndinfo opens it, but reports file type as "unknown" ]

Does it actually print other information about the file (sample rate,
length, etc.) ? If yes, then the SD2 format is possibly just not

yes:

/Users/matt/Music/palette.snd:
srate 44100, stereo, 16 bit unknown, 501.883 seconds
(22133060 sample frames)

but only for sndinfo -- the rest of the utilities output like this:

PortMIDI real time MIDI plugin for Csound
CoreAudio real-time audio module for Csound
by Victor Lazzarini
JACK real-time audio module for Csound by Istvan Varga
PortAudio real-time audio module for Csound
0dBFS level = 32768.0
Csound version 5.01.0 (float samples) Mar 13 2006
libsndfile-1.0.13
util pvanal:
soundin cannot open /Users/matt/Music/palette.snd
pvanal error: error while opening /Users/matt/Music/palette.snd



+ filepeak opcode produces:
"filepeak is not implemented"
   ??? this is a pretty important opcode for me -- i use this all the  
time to normalize files.

The filepeak opcode was disabled while moving to use libsndfile. It will
be restored,

if you could get this restored soon, it would really help!  

although it may not behave exactly the same way: the old
version did not return a peak value if the header did not include such
information, while libsndfile would scan the entire file then which may
take a long time. 

ideally a flag could be given with the opcode that would turn
scanning on/off.



+ pvanal: -g doesn't throw error, but no graphics are produced
+ lpanal: unrecognised flag -g

Utilities currently do not support graphs; may be implemented later.

well they did in csound4!   if anything, please change the error warning
to something more useful.  since i supported animated graphics for
pvanal and lpanal in the past, i'm sure some of my users will complain..


+ temp files are not being deleted

No idea about whay that happens. The files should be deleted when
csoundReset() is called, and it does work for me.

OK my fault. i was only calling csoundCleanup() - not csoundReset().



THINGS THAT MIGHT BE MY CODE I NEED TO CHECK FIRST
BEFORE REALLY COMPLAINING
+ real-time audio buffer problem when it IS a power for two (??)
[ non-power of 2 buffer sizes work fine! ]

+ real-time input does not work

Do you mean these problems occur with the rtaudio modules that come
with the canonical release (if so, more reports from other Mac users
could be useful) ?
Or do you have problems implementing real time audio using the API,
overriding the default code ?

i think these are problems using my existing 
csound4 callbacks with csound5 -- like i said, it is probably my code.
but i posted it thinking it might ring a bell with someone why only 
power-of-2 buffer sizes did not work.




+ probably need a way to set the work directory through the API
i am seeing files created in the top directory of my hard drive
and other files not found.. [ details later ]

Is chdir() not sufficient for this purpose ?

don't know - i need to do some more investigation first..


thanks for the assistance!
matt

Date2006-04-07 16:16
Frommatt ingalls
SubjectRe: [Cs-dev] csound5 api problems
no i mean the sndinfo utility.
what is sndfile-info?

On Apr 7, 2006, at 10:16 AM, Erik de Castro Lopo wrote:

> matt ingalls wrote:
>
>> + sound designer II files cannot be opened by utils
>> [ well sndinfo opens it, but reports file type as "unknown" ]
>
> sndinfo? Do you meant sndfile-info?
>
> Can you post the console output for the command:
>
>     sndfile-info 
>
> Erik
> --  
> +-----------------------------------------------------------+
>   Erik de Castro Lopo
> +-----------------------------------------------------------+
> "Incompetence, like misery, seeks company." -- Erik Naggum
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting  
> language
> that extends applications into web and mobile media. Attend the  
> live webcast
> and join the prime developer group breaking into this new coding  
> territory!
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-04-07 17:34
FromAnthony Kozar
SubjectRe: [Cs-dev] csound5 api problems
matt ingalls wrote on 4/7/06 11:14 AM:

>>> + sound designer II files cannot be opened by utils
>>> [ well sndinfo opens it, but reports file type as "unknown" ]
>> 
>> Does it actually print other information about the file (sample rate,
>> length, etc.) ? If yes, then the SD2 format is possibly just not
> 
> yes:
> 
> /Users/matt/Music/palette.snd:
> srate 44100, stereo, 16 bit unknown, 501.883 seconds
> (22133060 sample frames)
> 
> but only for sndinfo -- the rest of the utilities output like this:
> 
> PortMIDI real time MIDI plugin for Csound
> CoreAudio real-time audio module for Csound
> by Victor Lazzarini
> JACK real-time audio module for Csound by Istvan Varga
> PortAudio real-time audio module for Csound
> 0dBFS level = 32768.0
> Csound version 5.01.0 (float samples) Mar 13 2006
> libsndfile-1.0.13
> util pvanal:
> soundin cannot open /Users/matt/Music/palette.snd
> pvanal error: error while opening /Users/matt/Music/palette.snd

It seems like sndinfo is reading the file correctly then?  I would note that
libsndfile reads and writes SD2 files in a very strange way (using some kind
of weird OS X command-line trick to access the resource fork).  This _is_
supposed to work on OS X, but utterly fails on OS 9.

I notice that you are still using ".snd" though for the extension.  This is
not really correct anymore, I guess.  ".snd" implies a NeXT SND file.  Try
changing the extension of your file to ".sd2" and see if that helps.

>>> + probably need a way to set the work directory through the API
>>> i am seeing files created in the top directory of my hard drive
>>> and other files not found.. [ details later ]
>> 
>> Is chdir() not sufficient for this purpose ?
> 
> don't know - i need to do some more investigation first..

On OS 9, I am using the --env commandline flag which is new in Csound 5.
For example:

--env:SSDIR=Projects:Temporary
--env:SADIR=Projects:Temporary
--env:SFDIR=Projects:Temporary

Of course on OS X, you would use / as a path separator.  There are other
environment variables that could be set as well, like INCDIR and CSOUNDRC.

You may also want to use chdir() to change the current directory to that of
the score file or something.

Anthony Kozar
anthonykozar AT sbcglobal DOT net



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-04-07 23:36
FromErik de Castro Lopo
SubjectRe: [Cs-dev] csound5 api problems
matt ingalls wrote:

> no i mean the sndinfo utility.
> what is sndfile-info?

sndfile-info is a program that gets built and installed when you
install lihbsndfile. Its useful for initial diagnostics on files
that libsndfile won't open.

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"Every time you get a windows programmer asking you to write some
ass-backward workaround, think of it as a crack junkie asking you
to help stuff his pipe because his hands are too shaky."
-- Conrad Parker


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-04-08 11:13
FromIstvan Varga
SubjectRe: [Cs-dev] csound5 api problems
AttachmentsNone  

Date2006-04-08 17:24
Frommatt ingalls
SubjectRe: [Cs-dev] csound5 api problems
On Apr 8, 2006, at 12:13 PM, Istvan Varga wrote:

> On Friday 07 April 2006 17:14, matt ingalls wrote:
>
>>> The filepeak opcode was disabled while moving to use libsndfile. It
>>> will
>>> be restored,
>>
>> if you could get this restored soon, it would really help!
>
> It is now restored, but see below for limitations.

great - thanks!

>
>> ideally a flag could be given with the opcode that would turn
>> scanning on/off.
>
> Unfortunately, I do not see how this could be done with libsndfile.
> Even worse, reading the source code it looks like  
> SFC_CALC_NORM_SIGNAL_MAX
> and related commands in libsndfile always scan the whole file  
> regardless
> of whether a peak chunk is present - if there is one, it is ignored  
> and
> the file is scanned anyway.

well, better than nothing.
csound is creating peak chunks still, right?
there is not a way to just get the raw data of a given chunk?
that would seem weird that libsndfile would let you write chunks but  
not read them.

have you looked into the problem with sd2 files with util anals?

and what do you think the possibility/timetable for getting graphics  
back in utils?

thanks,
matt


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-04-08 18:40
FromIstvan Varga
SubjectRe: [Cs-dev] csound5 api problems
AttachmentsNone  

Date2006-04-09 00:22
FromErik de Castro Lopo
SubjectRe: [Cs-dev] csound5 api problems
Istvan Varga wrote:

> Even worse, reading the source code it looks like SFC_CALC_NORM_SIGNAL_MAX
> and related commands in libsndfile always scan the whole file regardless
> of whether a peak chunk is present - if there is one, it is ignored and
> the file is scanned anyway.

Would it help if, for each SFC_CALC_* command there was also an SFC_GET_*
command which simply returned the peack chunk info if it was present and
scanned the file if it wasn't present?

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"Men never do evil so completely and cheerfully as when they do it
from religious conviction."  -- Blaise Pascal, mathematician, 1670


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-04-09 08:27
Frommatt ingalls
SubjectRe: [Cs-dev] csound5 api problems
On Apr 8, 2006, at 7:40 PM, Istvan Varga wrote:

> On Saturday 08 April 2006 18:24, matt ingalls wrote:
>
>> well, better than nothing.
>> csound is creating peak chunks still, right?
>
> Yes, as far as I know. I just did not find a way to read the peak  
> chunks
> using the libsndfile API.

does libsndfile automatically create peak chunks or do you need to  
create
a peak chunk manually through the libsndfile API?  it the latter,  
there must
be a way to read the chunk, right?

>
>> have you looked into the problem with sd2 files with util anals?
>
> I may have a look at this, but I do not have a Mac, so it is not sure
> that I can reproduce any problems exactly. The SD2 format is stored as
> two separate files on non-Mac platforms.

i have a feeling it is just the anal utils thinking sd2 is not a  
supported type
and are throwing an error when they shouldn't.  like i said, sndinfo  
works.

btw, the 2 files are: 1 for header info, 1 for raw sample data.


>
>> and what do you think the possibility/timetable for getting graphics
>> back in utils?
>
> It might be possible in 5.02 (OT: any ideas about the planned release
> date ? How about one month from now ?) if no major problems are
> encountered.

cool. thanks, istvan.

-m


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-04-09 09:33
FromErik de Castro Lopo
SubjectRe: [Cs-dev] csound5 api problems
matt ingalls wrote:

> does libsndfile automatically create peak chunks

Yes.

> i have a feeling it is just the anal utils thinking sd2 is not a  
> supported type
> and are throwing an error when they shouldn't.  like i said, sndinfo  
> works.

Have you tried the sndfile-info program?

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"I'd crawl over an acre of 'Visual This++' and 'Integrated 
Development That' to get to gcc, Emacs, and gdb.  Thank you."
-- Vance Petree


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-04-09 09:42
FromIstvan Varga
SubjectRe: [Cs-dev] csound5 api problems
AttachmentsNone  

Date2006-04-09 09:46
FromIstvan Varga
SubjectRe: [Cs-dev] csound5 api problems
AttachmentsNone  

Date2006-04-09 10:15
FromIstvan Varga
SubjectRe: [Cs-dev] csound5 api problems
AttachmentsNone  

Date2006-04-09 13:00
FromRichard Dobson
SubjectRe: [Cs-dev] csound5 api problems
Istvan Varga wrote:
..
> Note that this apparently only works for WAV and AIFF files and floating
> point samples (quoting from libsndfile sources):
> 
..
>             /* Only files containg the following data types
>                support the PEAK chunk. */
>             if (format != SF_FORMAT_FLOAT &&
>                 format != SF_FORMAT_DOUBLE)
>                 return SF_FALSE ;
>         } ;


As a contributor to the definition of the PEAK chunk I can affirm that 
it is useable for any sample type, not just floats. Of course for 
integer formats the peak can never be greater than 0dbfs, but it remains 
useful as a record of lower amplitudes as well. For example, in a 
B-Format file, one can fairly easily tell if the W signal has the 
expected 3dB scaling, or not, and whether the Z channel (if present), is 
zero. So I would suggest that the code above is unnecessary, and 
unnecessarily restrictive.

Richard Dobson








-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-04-09 13:05
FromRichard Dobson
SubjectRe: [Cs-dev] csound5 api problems
Erik de Castro Lopo wrote:
> Istvan Varga wrote:
> 
>> Even worse, reading the source code it looks like SFC_CALC_NORM_SIGNAL_MAX
>> and related commands in libsndfile always scan the whole file regardless
>> of whether a peak chunk is present - if there is one, it is ignored and
>> the file is scanned anyway.
> 
> Would it help if, for each SFC_CALC_* command there was also an SFC_GET_*
> command which simply returned the peack chunk info if it was present and
> scanned the file if it wasn't present?
> 
> Erik

I would say keep these functions separate. I suspect we still need to 
recognise the possibility of files streamed over a network, so that 
scanning the whole file is a major inconvenience. If SFC_GET~ fails, the 
application can decide whether to ask for a full scan, or not. If the 
functions are coalesced, the programmer does not have that choice.

The other point about the PEAK chunk is that it has a date stamp. If the 
file has been subjected to destructive (in-place) editing, the PEAK data 
may be out of date, and thus even if PEAK data is present, there may 
still be a legitimate reason for rescanning, so that a function that 
forces rescanning is useful.

Richard Dobson





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-04-09 16:54
FromIstvan Varga
SubjectRe: [Cs-dev] csound5 api problems
AttachmentsNone  

Date2006-04-09 17:07
FromIstvan Varga
SubjectRe: [Cs-dev] csound5 api problems
AttachmentsNone  

Date2006-04-10 11:08
FromErik de Castro Lopo
SubjectRe: [Cs-dev] csound5 api problems
Richard Dobson wrote:

> I would say keep these functions separate. I suspect we still need to 
> recognise the possibility of files streamed over a network, so that 
> scanning the whole file is a major inconvenience. If SFC_GET~ fails, the 
> application can decide whether to ask for a full scan, or not. If the 
> functions are coalesced, the programmer does not have that choice.

Yep,good point. I'll leave the SFC_CALC_* functions as they are and add
SFC_GET_* functions whieh will return the PEAK chunk data if it exists
and return a failure code if it doesn't.

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
Saying Python is easier than C++ is like saying that turning a 
light  switch on or off is easier than operating a nuclear reactor.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-05-02 19:35
FromIstvan Varga
SubjectRe: [Cs-dev] csound5 api problems
AttachmentsNone  

Date2006-05-02 23:57
FromMatt Ingalls
SubjectRe: [Cs-dev] csound5 api problems
great!

On May 2, 2006, at 11:35 AM, Istvan Varga wrote:

> On Saturday 08 April 2006 18:24, matt ingalls wrote:
>
>> On Apr 8, 2006, at 12:13 PM, Istvan Varga wrote:
>>
>>> Unfortunately, I do not see how this could be done with libsndfile.
>>> Even worse, reading the source code it looks like  
>>> SFC_CALC_NORM_SIGNAL_MAX
>>> and related commands in libsndfile always scan the whole file  
>>> regardless
>>> of whether a peak chunk is present - if there is one, it is ignored
>>> and the file is scanned anyway.
>>
>> well, better than nothing.
>
> This has improved now with the availability of libsndfile-1.0.16:
> the peak chunk is used if it is available, otherwise a warning is
> printed and the file is scanned.
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

Matt;
________________________
           matt  ingalls
http://sonomatics.com



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-05-05 21:10
FromIstvan Varga
SubjectRe: [Cs-dev] csound5 api problems
AttachmentsNone  

Date2006-05-05 22:24
FromIstvan Varga
SubjectRe: [Cs-dev] csound5 api problems
AttachmentsNone  

Date2006-05-05 22:59
FromMatt Ingalls
SubjectRe: [Cs-dev] csound5 api problems
On May 5, 2006, at 1:10 PM, Istvan Varga wrote:

> The writing of PEAK chunks still seems to be limited to floating
> point sample formats, though, and of course to have support for

so, it's libsndfile that only supports floating pt?


> reading peak information, the eventual 5.02 releases should be
> built with libsndfile 1.0.16 or newer.
>
> On Wednesday 03 May 2006 00:57, Matt Ingalls wrote:
>
>> great!
>>
>> On May 2, 2006, at 11:35 AM, Istvan Varga wrote:
>>
>>> On Saturday 08 April 2006 18:24, matt ingalls wrote:
>>>
>>>> On Apr 8, 2006, at 12:13 PM, Istvan Varga wrote:
>>>>
>>>>> Unfortunately, I do not see how this could be done with  
>>>>> libsndfile.
>>>>> Even worse, reading the source code it looks like
>>>>> SFC_CALC_NORM_SIGNAL_MAX
>>>>> and related commands in libsndfile always scan the whole file
>>>>> regardless
>>>>> of whether a peak chunk is present - if there is one, it is  
>>>>> ignored
>>>>> and the file is scanned anyway.
>>>>
>>>> well, better than nothing.
>>>
>>> This has improved now with the availability of libsndfile-1.0.16:
>>> the peak chunk is used if it is available, otherwise a warning is
>>> printed and the file is scanned.
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

Matt;
________________________
           matt  ingalls
http://sonomatics.com



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-05-06 01:55
FromAnthony Kozar
SubjectRe: [Cs-dev] csound5 api problems
Yes, I believe that this is correct.  When we adopted libsndfile for Csound
5, it was missing support for loop points, peak chunks, and dithering.
Dithering is the only one of those that has not been addressed in any way
(AFAIK).

Anthony Kozar
anthonykozar AT sbcglobal DOT net


Istvan Varga wrote on 5/5/06 5:24 PM:

> Another, although unrelated, but perhaps interesting issue is that
> enabling the use of dithering did not have any actual effect the last
> time I checked.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net