Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Realtime render to both DAC and disk?

Date2008-04-02 09:12
Fromvictor
Subject[Csnd] Re: Realtime render to both DAC and disk?
use fout instead of soundout.

Victor
----- Original Message ----- 
From: "micromoog" 
To: 
Sent: Wednesday, April 02, 2008 4:51 AM
Subject: [Csnd] Realtime render to both DAC and disk?


> Is it possible to render to both DAC and to disk at the same time (for 
> capturing realtime MIDI performances)?  The csound executable seems to 
> only accept the first -o parameter.
>
> The soundouts opcode seems to be a step in the right direction, but with 
> three issues:
> 1) According to the documentation, it's raw format only (no WAV or AIFF)
> 2) I'd prefer this to be a configuration parameter rather than something 
> in my code
> 3) It doesn't appear to work, anyway -- whenever I've tried it I always 
> end up with only a very small output file (~50Kb).
>
> This is on Linux/ALSA.  I do have a workaround:
>
> 1) Record the MIDI data into a sequencer program as it's being played 
> with -odac
> 2) Play that MIDI file back into csound with -o[filename] (and using -iadc 
> to get the timing to work right)
>
>
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2008-04-02 09:37
From"Oeyvind Brandtsegg"
Subject[Csnd] Re: Re: Realtime render to both DAC and disk?
AttachmentsNone  

Date2008-04-02 15:13
From"Andres Cabrera"
Subject[Csnd] Re: Re: Re: Realtime render to both DAC and disk?
AttachmentsNone  

Date2008-04-03 12:28
From"Oeyvind Brandtsegg"
Subject[Csnd] Re: Re: Re: Re: Realtime render to both DAC and disk?
AttachmentsNone  

Date2008-04-03 13:35
From"Dr. Richard Boulanger"
Subject[Csnd] Re: Re: Re: Re: Realtime render to both DAC and disk?
hummmm.... can you add some of these examples to the manual - and a  
monitor example.

showing how to do this is very important and useful - and not exactly  
intuitive or clear - yet.

wishing you all the best.

-dB

On Apr 2, 2008, at 10:13 AM, Andres Cabrera wrote:

> you can also use monitor to record the exact audio output, without
> having to worry about sending everything to the channels.
>
> http://www.csounds.com/manual/html/monitor.html
>
> Cheers,
> Andrès
>
> On Wed, Apr 2, 2008 at 3:37 AM, Oeyvind Brandtsegg  
>  wrote:
>> If it's any help,
>> here's my standard fout instrument,
>> use chn channels to send audio to the "recorder"
>>
>> Oeyvind
>>
>> ;***************************************************
>> ; recording to file
>> ;***************************************************
>>        instr 100
>>
>> ; audio input
>>        a1              chnget  "MasterAudioLeft"
>>        a2              chnget  "MasterAudioRight"
>>
>> ; write to file
>>        iFormat = 14 ; 16bit wav
>>        fout    "demofile.wav", iFormat, a1, a2
>>
>> ; clear chn channels used for mixing
>>        chnclear        "MasterAudioLeft"
>>        chnclear        "MasterAudioRight"
>>
>>        endin
>> ;***************************************************
>>
>>
>> 2008/4/2, victor :
>>
>>> use fout instead of soundout.
>>>
>>> Victor
>>> ----- Original Message ----- From: "micromoog" 
>>> To: 
>>> Sent: Wednesday, April 02, 2008 4:51 AM
>>> Subject: [Csnd] Realtime render to both DAC and disk?
>>>
>>>
>>>
>>>> Is it possible to render to both DAC and to disk at the same  
>>>> time (for
>>> capturing realtime MIDI performances)?  The csound executable  
>>> seems to only
>>> accept the first -o parameter.
>>>>
>>>> The soundouts opcode seems to be a step in the right direction,  
>>>> but with
>>> three issues:
>>>> 1) According to the documentation, it's raw format only (no WAV  
>>>> or AIFF)
>>>> 2) I'd prefer this to be a configuration parameter rather than  
>>>> something
>>> in my code
>>>> 3) It doesn't appear to work, anyway -- whenever I've tried it I  
>>>> always
>>> end up with only a very small output file (~50Kb).
>>>>
>>>> This is on Linux/ALSA.  I do have a workaround:
>>>>
>>>> 1) Record the MIDI data into a sequencer program as it's being  
>>>> played with
>>> -odac
>>>> 2) Play that MIDI file back into csound with -o[filename] (and  
>>>> using -iadc
>>> to get the timing to work right)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to this list.
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe
>>> csound"
>>>>
>>>
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe
>>> csound"
>>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"



Date2008-04-03 17:03
FromPanos Katergiathis
Subject[Csnd] Benchmarking Csound Performance
Hello all

Since i am trying to migrate from Windows to Linux, i have tried several 
hardware combinations in order to build a good and stable system - also, 
one that will be able to handle my csound attempts.

I don't have enough csound compositions of my own, so every time i set 
up a system like that,i download Steven Yi's csd files (from his site) 
and test my csound installations by running them and hearing the results.

Why? Because some of them seem to be more demanding in terms of 
processing power (for realtime rendering to dac), so i am thinking that 
if "distant stars" renders fine, then the system is adequate for my 
current needs.

This afternoon, i thought that some sort of official benchmarking should 
exist, so that one could perform a series of tests and determine the 
adequacy of any given system. This may not be very important to Windows 
users (with all the asio stuff), but in the world of Linux, where low 
latency audio (or firewire audio, for that matter) is a bit elusive, one 
needs a system for evaluating such things.

Any thoughts?

Panos

Date2008-04-03 17:59
FromVictor Lazzarini
Subject[Csnd] Re: Benchmarking Csound Performance
Panos,

I think the stock kernel these days is quite good, but you can get the patched
RT kernels off planetccrma, which are nice and reliable. I use my own
kernel builds, but you might not want to do that ;)...

So my suggestion is to start off with the planetccrma distribution, which
is fedora based (I think). I am very happy with fedora, never gave me trouble
(been using it since, I don't know, red hat linux 4?). Other people find
it not as easy as Ubuntu, but I don't like the fact that Ubuntu makes you
download everything you need after you installed (it only comes with
the bare minimum).

Victor

At 17:03 03/04/2008, you wrote:
>Hello all
>
>Since i am trying to migrate from Windows to Linux, i have tried several 
>hardware combinations in order to build a good and stable system - also, 
>one that will be able to handle my csound attempts.
>
>I don't have enough csound compositions of my own, so every time i set up 
>a system like that,i download Steven Yi's csd files (from his site) and 
>test my csound installations by running them and hearing the results.
>
>Why? Because some of them seem to be more demanding in terms of processing 
>power (for realtime rendering to dac), so i am thinking that if "distant 
>stars" renders fine, then the system is adequate for my current needs.
>
>This afternoon, i thought that some sort of official benchmarking should 
>exist, so that one could perform a series of tests and determine the 
>adequacy of any given system. This may not be very important to Windows 
>users (with all the asio stuff), but in the world of Linux, where low 
>latency audio (or firewire audio, for that matter) is a bit elusive, one 
>needs a system for evaluating such things.
>
>Any thoughts?
>
>Panos
>
>
>Send bugs reports to this list.
>To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
>csound"

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