[Cs-dev] faster fout
Date | 2012-08-08 17:03 |
From | Tito Latini |
Subject | [Cs-dev] faster fout |
Attachments | None |
Date | 2012-08-08 17:20 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] faster fout |
Sounds good ] > lisp is idle for some minutes and I have the code for an efficient `fout'. > With the current version we have `kr' sf-write-calls in 1 second. > > Here I use the follow value for the buffer size: > > (int(512 / ksmps) + 1) * ksmps * fout_channels > > if ksmps < 512, and > > ksmps * fout_channels > > if ksmps >= 512. > > sf_write is called when there are at least 512*fout_channels samples in > the buffer, if ksmps < 512, or ksmps*fout_channels samples if ksmps >= > 512. > > In this way we have max `sr/512' sf-write-calls in 1 second. > With sr=44100, ceiling(sr/512) = 87. > > Added also `fout_flush_callback' to write the possible not empty buffer at > the end of the instance. > > If you think that it is good, I'll also change `foutk' and git-push > tomorrow. > > tito > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > > > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2012-08-08 17:25 |
From | Steven Yi |
Subject | Re: [Cs-dev] faster fout |
Attachments | None None |
Question: Is this code applicable for when Csound is non-realtime and rendering to file? It would be good if this is generalized and used where applicable. It would then be easier to update all with same code should the writing be done asynchronously. Otherwise, fantastic Tito! steven
On Wed, Aug 8, 2012 at 12:20 PM, <jpff@cs.bath.ac.uk> wrote: Sounds good |
Date | 2012-08-08 17:41 |
From | Tito Latini |
Subject | Re: [Cs-dev] faster fout |
Attachments | None |
Date | 2012-08-08 20:18 |
From | Rory Walsh |
Subject | Re: [Cs-dev] faster fout |
Great. What file is it in? I don't want to do a full checkout of the code as I have my current version of Csound running just toasty. On 8 August 2012 18:41, Tito Latini |
Date | 2012-08-08 20:55 |
From | Justin Smith |
Subject | Re: [Cs-dev] faster fout |
here are awesome things you can do with git: git branch local-awesome # this creates a snapshot of the code as it exists right now git pull origin master # this synchs your local master up with upstream master git checkout local-awesome # this switches everything back to the state where you took the snapshot (undo by doing git checkout master) git diff master # displays all differences between current branch and the master branch, file by file git checkout master |
Date | 2012-08-08 22:08 |
From | Rory Walsh |
Subject | Re: [Cs-dev] faster fout |
To be honest I had no idea. Thanks for the info! Rory. On 8 August 2012 21:55, Justin Smith |
Date | 2012-08-08 22:54 |
From | Tito Latini |
Subject | Re: [Cs-dev] faster fout |
Attachments | None |
Date | 2012-08-09 07:42 |
From | Tito Latini |
Subject | Re: [Cs-dev] faster fout |
Attachments | None |
Date | 2012-08-09 07:46 |
From | Tito Latini |
Subject | Re: [Cs-dev] faster fout |
Attachments | None None fout_fast.patch None None |
Date | 2012-08-09 10:17 |
From | Rory Walsh |
Subject | Re: [Cs-dev] faster fout |
Great thanks Tito. One other question. Is it possible to build fout as a plugin lib using fout.c and fout.h? Or would it conflict with existing versions of the opcode? Turns out I don't actually build Csound for this windows machine! But if I could just build a .dll that would be handy. Thanks. On 9 August 2012 08:46, Tito Latini |
Date | 2012-08-09 11:28 |
From | Tito Latini |
Subject | Re: [Cs-dev] faster fout |
Attachments | None |
Date | 2012-08-09 11:47 |
From | Tito Latini |
Subject | Re: [Cs-dev] faster fout |
Attachments | None |