Csound Csound-dev Csound-tekno Search About

[Cs-dev] Csound5 CVS changes

Date2005-02-19 16:08
FromIstvan Varga
Subject[Cs-dev] Csound5 CVS changes
Here is what you can test today:

   * if Csound is built with 64 bit floats, opcode libraries are
     searched in OPCODEDIR64 (if OPCODEDIR64 is not defined,
     or MYFLT is float, OPCODEDIR is used instead).
   * changes to command line parsing. Options are now read in
     this order (the last one has the highest precedence):
       1. .csoundrc in HOME directory or defined in CSOUNDRC
       2. .csoundrc in current directory
       3.  in CSD file
       4. command line options
   * removed some annoying warning and error messages related
     to sound file format options (e.g. output file cannot be
     both WAVE and AIFF etc.). The option specified last will
     simply override earlier options.
   * --opcode-lib options specified in multiple places (.csoundrc,
     command line, etc.) are concatenated, and all libraries are
     loaded. Redundant library files are only loaded once (this
     may not work on all platforms, see below).
   * -Q MIDI output under Linux now takes a string argument
     (such as /dev/snd/midiC1D0) instead of a device number.
   * cleaned up listing of short options in argdecode.c (replaced
     multiple redundant lists with a single one)
   * attempts at fixing return from -z/-z1 and utilities (the
     latter are not very consistent regarding return values, so
     more fixes are needed in this area)

Of course, it is not unlikely that bugs were introduced, particularly
in parsing command line options. Also, the changes in the library
loading code assume the following behavior of csoundOpenLibrary()
and csoundCloseLibrary(): if the same library is opened multiple times,
the same handle will be returned, and the number of CloseLibrary calls
must match the number of OpenLibrary calls in order to actually unload
the library from memory. This is true of unix-like systems but I am not
sure about Windows and Mac platforms.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-19 16:16
FromIstvan Varga
SubjectRe: [Cs-dev] Csound5 CVS changes
Forgot to mention this one:

   * on systems other than WIN32 and mills_macintosh, all messages
     are printed to stderr instead of stdout, for -o stdout to work
     correctly.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-19 17:18
FromOeyvind Brandtsegg
Subject[Cs-dev] GEN 01 and stereo files
This is for csound 5,
tested on winXP.

There's still a problem loading stereo files with GEN 01.
Mono files work fine.

Gen 01 loads a stereo file, but prints to the console that it's reading channel 1 only.
The resulting sound is somwhat like if the sound files had been ring modulated with a square wave.

example csd, and console print below



-odac2 -b10 -B10


	sr = 44100  
	kr = 4410
	ksmps = 10
	nchnls = 2	
;*********************************************************************
; sample playback instr
;*********************************************************************
	instr	1
a1, a2	loscil	10000, 1, 1, 1
outs	a1, a2
	endin
;*********************************************************************


f1   0  0    1  "C:/sinestereo.wav"  0  0  0
i1 0 7
e




C:\Csound\csound5test>csound loscil_sinestereo.csd
Using default language
0dBFS level = 32767.0
Csound version 5.00 beta (double samples) Jan 20 2005
libsndfile-1.0.11
UnifiedCSD:  loscil_sinestereo.csd
STARTING FILE
Creating options
Creating orchestra
Creating C:\DOCUME~1\oyvinbra\LOKALE~1\Temp\cs467.orc (77C4FD00)
Creating score
orchname:  C:\DOCUME~1\oyvinbra\LOKALE~1\Temp\cs467.orc
scorename: C:\DOCUME~1\oyvinbra\LOKALE~1\Temp\cs468.sco
**** allocgen tanh to 011311D0
**** allocated 44
orch compiler:
20 lines read
        instr   1
sorting score ...
        ... done
Csound version 5.00 beta (double samples) Jan 20 2005
0dBFS level = 32767.0
orch now loaded
audio buffered in 10 sample-frame blocks
Found 3 PortAudio devices:
Device  0: ASIO DirectX Full Duplex Driver
           Maximum channels in:       2
           Maximum channels out:      3
           Default sample rate:       0.000
Device  1: ASIO Hammerfall DSP
           Maximum channels in:      18
           Maximum channels out:     18
           Default sample rate:   44100.000
Device  2: ASIO Multimedia Driver
           Maximum channels in:       2
           Maximum channels out:      2
           Default sample rate:   44100.000
Suggested PortAudio output latency = 0.000227 seconds.
paBlockingWriteOpen: nchnls 2 sr 44100.000000 buffer frames 10 device 2
paBlockingWriteOpen returned 0.
Opened PortAudio output device 2.
writing 160-byte blks of shorts to dac2
 (unknown)
SECTION 1:
ftable 1:
deferred alloc
audio sr = 44100, stereo, reading channel 1
opening WAV infile C:/sinestereo.wav
**** defer length 2646000
Allocating 21168328 bytes
B  0.000 ..  1.000 T  1.000 TT  1.000 M:      0.0      0.0
new alloc for instr 1:
WARNING: locscil: sustain defers to non-looping source
B  1.000 ..  8.000 T  8.000 TT  8.000 M:   9996.8  10000.0
Score finished in csoundPerformKsmps()
inactive allocs returned to freespace
end of score.              overall amps:   9996.8  10000.0
           overall samples out of range:        0        0
0 errors in performance
Csound tidy up: Interrupt

C:\Csound\csound5test>

Date2005-02-19 19:42
FromIain Duncan
SubjectRe: [Cs-dev] Csound5 CVS changes

>   * -Q MIDI output under Linux now takes a string argument
>     (such as /dev/snd/midiC1D0) instead of a device number.

Would it not be possible for it to do both?

iain


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-19 20:45
FromIstvan Varga
SubjectRe: [Cs-dev] Csound5 CVS changes
Iain Duncan wrote:

> >   * -Q MIDI output under Linux now takes a string argument
> >     (such as /dev/snd/midiC1D0) instead of a device number.
> 
> 
> Would it not be possible for it to do both?

I do not think it would be trivial; the current code simply writes
to the selected file in non-blocking mode (this may allow for
output to a pipe/fifo or stdout), and files do not have index numbers.
It might be possible to restore the original version that used
the OSS /dev/sequencer, and query the device names, but I am not
very familiar with the OSS sequencer interface. Finally, the
ALSA API could be used, but that is not quite as simple as just
writing to device files.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-21 13:20
FromOeyvind Brandtsegg
Subject[Cs-dev] init error with zir and ziw
Attachmentsinit_zirziw.csd  
there's a bug that appears when using the zak space reading and writing at init rate.

using ziw in an instrument even prevents the rest of the instrument's code to run.

I do not know if this is a bug in ziw/zir or if it is a more general initialization bug.

a simple csd showing the bug is attached

best
Oeyvind

Date2005-02-21 17:53
FromOeyvind Brandtsegg
Subject[Cs-dev] python and midi
AttachmentsPythCsMidi.py  
hello,

I'm using python to pipe line events to Csound,
at the same time, I'd like to use midi to control csound.
I've set it up so that Csound is loaded as a module inside Python,
and the csound command line (inside the python script) opens a hardware midi input.
This way, I was hoping, midi does not pass through python, but goes directly from hardware midi input to csound.

This works, but python will not quit.
I have to kill the python process in the task manager.
Using WinXP.
I've attached a py file used for testing.

If this is a "legal" way of setting it up,
it would be very nice if it could exit gracefully.

best
Oeyvind

Date2005-02-24 17:09
FromIstvan Varga
SubjectRe: [Cs-dev] GEN 01 and stereo files
Oeyvind Brandtsegg wrote:

> There's still a problem loading stereo files with GEN 01.
> Mono files work fine.
> 
> Gen 01 loads a stereo file, but prints to the console that it's reading channel 1 only.
> The resulting sound is somwhat like if the sound files had been ring modulated with a square wave.

I have committed changes that may fix this problem.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net