<div dir="ltr"><div><div>Csound has the opcodes -- <br><br>If you&#39;ve got the examples working, you should be able to put together a .csd file that&#39;ll let you use them <br>[At least, I have tested those example and they work. I haven&#39;t tested the .csd and instrument codes I&#39;m putting into my own usage, because that&#39;s going to be complex, takes time I don&#39;t have to write -- &amp; isn&#39;t ready to run yet.]<br></div><br></div>Those opcodes include:<br><dl><dt>
                    <span class="">
                      fluidAllOut
                    </span>
                    <span class=""> — 
      Collects all audio from all Fluidsynth engines in a performance
           </span>
                  </dt><dt>
                    <span class="">
                      fluidCCi
                    </span>
                    <span class=""> — 
      Sends a MIDI controller data message to fluid.
           </span>
                  </dt><dt>
                    <span class="">
                      fluidCCk
                    </span>
                    <span class=""> — 
      Sends a MIDI controller data message to fluid.
    </span>
                  </dt><dt>
                    <span class="">
                      fluidControl
                    </span>
                    <span class=""> — 
      Sends MIDI note on, note off, and other messages to a SoundFont preset.
           </span>
                  </dt><dt>
                    <span class="">
                      fluidEngine
                    </span>
                    <span class=""> — 
      Instantiates a fluidsynth engine.
    </span>
                  </dt><dt>
                    <span class="">
                      fluidLoad
                    </span>
                    <span class=""> — 
       Loads a SoundFont into a fluidEngine, optionally listing SoundFont contents.
    </span>
                  </dt><dt>
                    <span class="">
                      fluidNote
                    </span>
                    <span class=""> — 
      Plays a note on a channel in a fluidSynth engine.
           </span>
                  </dt><dt>
                    <span class="">
                      fluidOut
                    </span>
                    <span class=""> — 
      Outputs sound from a given fluidEngine
           </span>
                  </dt><dt>
                    <span class="">
                      fluidProgramSelect
                    </span>
                    <span class=""> — 
      Assigns a preset from a SoundFont to a channel on a fluidEngine.
           </span>
                  </dt><dt>
                    <span class="">
                      fluidSetInterpMethod
                    </span>
                    <span class=""> — 
      Set interpolation method for channel in Fluid Engine
           </span>
                  </dt></dl><dl><dt>
                    <span class="">
                      [&amp; this more low-level stuff  that gives you more specific control over subsequent processing]:<br></span></dt><dd><br></dd><dt><span class="">sfilist
                    </span>
                    <span class=""> — 
      Prints a list of all instruments of a previously loaded SoundFont2 (SF2) file.
          </span>
                  </dt><dt>
                    <span class="">
                      sfinstr3
                    </span>
                    <span class=""> — 
      Plays a SoundFont2 (SF2) sample instrument, generating a stereo sound with cubic interpolation.
          </span>
                  </dt><dt>
                    <span class="">
                      sfinstr3m
                    </span>
                    <span class=""> — 
      Plays a SoundFont2 (SF2) sample instrument, generating a mono sound with cubic interpolation.
          </span>
                  </dt><dt>
                    <span class="">
                      sfinstr
                    </span>
                    <span class=""> — 
      Plays a SoundFont2 (SF2) sample instrument, generating a stereo sound.
          </span>
                  </dt><dt>
                    <span class="">
                      sfinstrm
                    </span>
                    <span class=""> — 
      Plays a SoundFont2 (SF2) sample instrument, generating a mono sound.
    </span>
                  </dt><dt>
                    <span class="">
                      sfload
                    </span>
                    <span class=""> — 
      Loads an entire SoundFont2 (SF2) sample file into memory.
    </span>
                  </dt><dt>
                    <span class="">
                      sflooper
                    </span>
                    <span class=""> — 
      Plays a SoundFont2 (SF2) sample preset, generating a stereo sound, with user-defined
      time-varying crossfade looping.
    </span>
                  </dt><dt>
                    <span class="">
                      sfpassign
                    </span>
                    <span class=""> — 
      Assigns all presets of a SoundFont2 (SF2) sample file to a sequence of progressive index numbers.
          </span>
                  </dt><dt>
                    <span class="">
                      sfplay3
                    </span>
                    <span class=""> — 
      Plays a SoundFont2 (SF2) sample preset, generating a stereo sound with cubic interpolation.
    </span>
                  </dt><dt>
                    <span class="">
                      sfplay3m
                    </span>
                    <span class=""> — 
      Plays a SoundFont2 (SF2) sample preset, generating a mono sound with cubic interpolation.
    </span>
                  </dt><dt>
                    <span class="">
                      sfplay
                    </span>
                    <span class=""> — 
      Plays a SoundFont2 (SF2) sample preset, generating a stereo sound.
    </span>
                  </dt><dt>
                    <span class="">
                      sfplaym
                    </span>
                    <span class=""> — 
      Plays a SoundFont2 (SF2) sample preset, generating a mono sound.
    </span>
                  </dt><dt>
                    <span class="">
                      sfplist
                    </span>
                    <span class=""> — 
      Prints a list of all presets of a SoundFont2 (SF2) sample file.
          </span>
                  </dt><dt>
                    <span class="">
                      sfpreset
                    </span>
                    <span class=""> — 
      Assigns an existing preset of a SoundFont2 (SF2) sample file to an index number.
          </span>
                  </dt></dl><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 7, 2015 at 6:54 AM, Pietari Seppänen <span dir="ltr">&lt;<a href="mailto:pietari.seppanen@pohjoinen.net" target="_blank">pietari.seppanen@pohjoinen.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>


<div><div>Hi Spencer,</div><div><br></div><div>Previously I only got the chuck_dl error 126. I don&#39;t know what&#39;s happened, but Chuck does load the chugin now. However, it doesn&#39;t work: it doesn&#39;t have any of the functions related to FluidSynth (at least &#39;open&#39; or &#39;noteOn&#39;). That said, I&#39;m unqualified to even compile these things properly, so I wouldn&#39;t go looking for bugs based on my strange process of getting the chug file to appear.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Pietari</div></font></span><div><div class="h5"><div><br></div><div>On Wed, 07 Oct 2015 12:28:02 +0300, Spencer Salazar &lt;<a href="mailto:spencer@ccrma.stanford.edu" target="_blank">spencer@ccrma.stanford.edu</a>&gt; wrote:<br></div><br><blockquote style="margin:0 0 0.80ex;border-left:#0000ff 2px solid;padding-left:1ex"><div dir="ltr">Hi <span style="font-size:12.8px">Pietari,</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Glad to hear of your interest in working with FluidSynth and ChucK. The main FluidSynth chugin works fairly well on Mac OS X and Linux (last I checked) but I have not yet tried to port it to Windows. Heavyweight chugins like FluidSynth tend to be harder to develop and maintain for multiple platforms, as each system has its own eccentricities with build systems and linking to external libraries. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">If you can post the log output from the console when that error occurs, that would be helpful, as maybe it is a straightforward error to fix. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">spencer</span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 5, 2015 at 9:30 AM, Pietari Seppänen <span dir="ltr">&lt;<a href="mailto:pietari.seppanen@pohjoinen.net" target="_blank">pietari.seppanen@pohjoinen.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi! The Extend section of the Chuck site describes a FluidSynth chugin for<br>
using soundfonts. CCRMA does have code for this chugin (<a href="https://github.com/ccrma/chugins/tree/master/FluidSynth" rel="noreferrer" target="_blank">https://github.com/ccrma/chugins/tree/master/FluidSynth</a>), which I managed to<br>
compile for Windows after many, many hours of effort. Unfortunately, I get<br>
a chuck_dl error 126 when Chuck tries to load the file (I had to change<br>
the message level), so either my frankly ridiculous compiling process<br>
broke it or the code doesn&#39;t work right now.<br>
<br>
Does anyone have this chugin in working form?<br>
<br>
Regards,<br>
<br>
Pietari Seppänen<br>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-family:arial;font-size:small"><div>Spencer Salazar<br></div><div>Doctoral Candidate</div><div>Center for Computer Research in Music and Acoustics</div><div>Stanford University</div><div><br></div><div><a href="mailto:spencer@ccrma.stanford.edu" target="_blank">spencer@ccrma.stanford.edu</a></div><div><a href="tel:%2B1%20831.277.4654" value="+18312774654" target="_blank">+1 831.277.4654</a><br></div><div><a href="https://ccrma.stanford.edu/~spencer/" style="color:rgb(17,85,204)" target="_blank">https://ccrma.stanford.edu/~spencer/</a><br></div><div><br></div></div></div></div></div></div></div></div></div></div>
</div>
</blockquote><br><br><br></div></div></div><br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br></div>