Csound Csound-dev Csound-tekno Search About

[Csnd] Is FluidLoad blocking?

Date2020-05-15 15:57
FromSyl Morrison
Subject[Csnd] Is FluidLoad blocking?
Hi all, context for this is that I have say 4 huge sf2 files, so they take a nontrivial amount of time to load to RAM. I have their loading handled by an Initialise instrument, but because they take so long to load the first run, the score scheduling from c++ seems to get ignored when those messages come in while its loading the soundfonts, not a problem on consecutive runs (so I guess the soundfonts stay in RAM after cleanup??), So anyway I wrote a flag that chnsets 1 when the soundfonts are loaded, but doesn't seem to be working, which kind of indicates the fluidLoad stuff is non blocking, any ideas? 
Csound mailing list Csound@listserv.heanet.ie 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

Date2020-05-15 16:11
FromSyl Morrison
SubjectRe: [Csnd] Is FluidLoad blocking?
AttachmentsScreen Shot 2020-05-15 at 16.09.04.png  Screen Shot 2020-05-15 at 16.09.18.png  Screen Shot 2020-05-15 at 16.09.27.png  
Screen Shot 2020-05-15 at 16.09.04.png
Above is the triggering in c++, below is the definition of waitForLoadedSoundfonts() 
Screen Shot 2020-05-15 at 16.09.18.png
And below is what is happening in the Initialise instrument (instr 6) in csound
Screen Shot 2020-05-15 at 16.09.27.png

On Fri, May 15, 2020 at 3:57 PM Syl Morrison <honoonu@gmail.com> wrote:
Hi all, context for this is that I have say 4 huge sf2 files, so they take a nontrivial amount of time to load to RAM. I have their loading handled by an Initialise instrument, but because they take so long to load the first run, the score scheduling from c++ seems to get ignored when those messages come in while its loading the soundfonts, not a problem on consecutive runs (so I guess the soundfonts stay in RAM after cleanup??), So anyway I wrote a flag that chnsets 1 when the soundfonts are loaded, but doesn't seem to be working, which kind of indicates the fluidLoad stuff is non blocking, any ideas? 
Csound mailing list Csound@listserv.heanet.ie 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