Csound Csound-dev Csound-tekno Search About

Re: Real-time Listen and Record

Date2006-02-07 18:32
From"Art Hunkins"
SubjectRe: Real-time Listen and Record
FWIW, CsoundAV can actually do real time audio output and write to file
concurrently, without the fout.

As described in the AV manual, it's possible to do both from the command
line (using MME or DirectSound), but unfortunately, the file written is raw
(headerless) and cannot be played by media players I'm acquainted with.

The method described under "GUI" (section 2.2 of the AV manual) details
another method which purportedly also creates a raw .wav file. However, it
creates a file with *normal header*, or at least one playable by a usual
media player (such as Windows Media Player).

I note this as it seems the only current way in Windows to render live and
to file simultaneously, without modifying a live performance .csd. As I'd
like to "record my performances" and post some MP3's of my pieces to the
web, this capability of CsoundAV will be quite handy.

(One of the reasons why I'm doing this is because now I have a "real"
website, http://www.arthunkins.com, which allows music files (.mp3) to be
posted - thanks to a Christmas present from a family member.) Goodby
freebie.
(My old URL is redirected there.)

Art Hunkins

----- Original Message -----
From: "Art Hunkins" 
To: 
Sent: Monday, February 06, 2006 5:23 PM
Subject: Re: [Csnd] Real-time Listen and Record


> Thanks, Istvan. I meant "real time audio output and also writing to a file
> at the same time."
>
> I gather from your response that I should simply take my real time .csd
and
> add to it an "always on" fout instrument as described (under fout) in the
> manual. Also, I assume this method would work for all three versions of
> Csound (4, 5 and AV).
>
> Is this correct?
>
> One comment: It would be really nice to be able to do this from the
> commandline - as with both -odac and -ofilename.wav flags, for example, or
> something similar.
>
> Art Hunkins
>
> ----- Original Message -----
> From: "Istvan Varga" 
> To: 
> Sent: Monday, February 06, 2006 5:51 AM
> Subject: Re: [Csnd] Real-time Listen and Record
>
>
> > On Monday 06 February 2006 05:07, Art Hunkins wrote:
> >
> > > What are the necessary  in Windows for real-time
> MIDI-controlled
> > > performance, in order to both listen to and record simultaneously?
> >
> > What do you mean by "listen to and record simultaneously" ? Full-duplex
> > real time audio (use both -i adcN and -o dacN), real time audio output
> > and also writing to a file at the same time (use the fout opcode in a
> > global "always on" instrument), or recording the MIDI input to a file
> > (use --midioutfile=FNAME and midiin/midiout) ?
> > --
> > Send bugs reports to this list.
> > To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>

Date2006-02-07 19:17
FromIstvan Varga
SubjectRe: Real-time Listen and Record
AttachmentsNone  

Date2006-02-07 23:31
FromBill Beck
SubjectRe: Real-time Listen and Record
With fout, are floating point files always written without a header? If 
a header is possible, how?
Would it be possible to add an option for headers for 32bit files in the 
future? It'd make importing into other software much easier.
Thanks,
-Bill B


Istvan Varga wrote:

>On Tuesday 07 February 2006 19:32, Art Hunkins wrote:
>
>  
>
>>FWIW, CsoundAV can actually do real time audio output and write to file
>>concurrently, without the fout.
>>
>>As described in the AV manual, it's possible to do both from the command
>>line (using MME or DirectSound), but unfortunately, the file written is raw
>>(headerless) and cannot be played by media players I'm acquainted with.
>>    
>>
>
>With fout you can write multi-channel files in any of WAV, AIFF, raw, and
>IRCAM file types, in 9 different sample formats. You are also not limited
>to writing in the same format as the real time output, for example it is
>possible to play 16 bit samples on "dac", while writing a floating point
>WAV file.
>  
>

Date2006-02-07 23:39
FromIstvan Varga
SubjectRe: Real-time Listen and Record
AttachmentsNone