Re: [Csnd] [Csnd-dev] write table into audio file

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] [Csnd-dev] write table into audio file

Tarmo Johannes-3
Thanks a lot!

I have not been able to test it yet -  no Csound time these days but I will in
the weekend.

ttarmo

On neljapäev, 7. juuni 2018 0:13.18 EEST you wrote:

> Opcode is call ftaudio and has two versions
>
> ians  ftaudio  itab, "filename", iformat
>
> iforayt is same a format in fout etc
>
> kans  ftaudio  ktrig, ktab, "filename", iformat[, ksync]
>
> ksyc 0 is direct, 1 (default) is async usinf processes
>
> k version tested a great deal, irate less so.  No manual page yet, but in
> git now
>
> On Wed, 6 Jun 2018, Tarmo Johannes wrote:
> > Dear John,
> > Thank you!
> >
> > >So do you wat one that always writes audio foratted files?
> >
> > Yes, that would be definitely useful.
> >
> > > Another thought; if the krate version with a trigger argument the
> > >correct
> >
> > thing or would an irate opcode be sufficient?
> > I imagine that you write usually a file once and not within a performance
> > cycle so I think i-rate only makes more sense to me. At least this how I
> > would use it.
> > k-rate option with a trigger, if the async option is there, is perhaps
> > also
> > good to have, on second thought...
> >
> > > and I am not sure what it will do for non audio files.
> >
> > - there is ftsave for non-audio files already (have not tested that yet,
> > though...)
> >
> >
> > Best greetings,
> > tarmo
> >
> > 2018-06-05 18:59 GMT+03:00 jpff <[hidden email]>:
> >       I have a crude version running now that writes the data in any
> >       table to a file.  Fotr a audio file it writes a raw flosting point
> >       file, channel coult as in the table.  This works for non audio
> >       files as well.
> >      
> >       So do you wat one that always writes audio foratted files?  I can
> >       do that as well but it is a little more complex (not much...) and
> >       I am not sure what it will do for non audio files.  I guess it
> >       coukd just generste bad stuff!
> >      
> >       Another thought; if the krate version with a trigger argument the
> >       correct thing or would an irate opcode be sufficient?
> >      
> >       Regarding async use I think I will do that simply, as the asyc
> >       part is really only one function call.
> >      
> >       My currnt raw files should be readable by gen1 usng the correct
> >       raw parameters -- not tested that yet.
> >      
> >       Let be know what you think is best.
> >      
> >       ==John
> >      
> >       On Mon, 4 Jun 2018, Tarmo Johannes wrote:
> >             This opcode would be welcome anyway, take your time,
> >             John!
> >            
> >             tarmo
> >            
> >             On Monday, June 4, 2018 7:09:32 PM EEST you wrote:
> >                   Best would be to write a new opcode......
> >                   not too hard.  Something like
> >                      tabwrite trig, file.name", format
> >                  
> >                   How quickly do you need a solution?
> >                  
> >                   On Mon, 4 Jun 2018, Tarmo Johannes wrote:
> >                         Hi,
> >                        
> >                         what is fastest method to
> >                         write a table containg audio
> >                         to a file?
> >                        
> >                         I need to load audio from file
> >                         to table, do some
> >                         manipulations and save it
> >                         to another file? The files are
> >                         large and it does not need to
> >                         be realtime,
> >                         of course.
> >                        
> >                         tarmo

Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here