[chuck-users] Does a working FluidSynth chugin exist?

Forrest Curo treegestalt at gmail.com
Wed Oct 7 12:04:30 EDT 2015


Of course you can only really use the mono versions -- or at least, when it
comes to getting sound out, send it to 'out' rather than 'outs' and let
chucK deal with it from there.

On Wed, Oct 7, 2015 at 7:13 AM, Forrest Curo <treegestalt at gmail.com> wrote:

> Csound has the opcodes --
>
> If you've got the examples working, you should be able to put together a
> .csd file that'll let you use them
> [At least, I have tested those example and they work. I haven't tested the
> .csd and instrument codes I'm putting into my own usage, because that's
> going to be complex, takes time I don't have to write -- & isn't ready to
> run yet.]
>
> Those opcodes include:
> fluidAllOut — Collects all audio from all Fluidsynth engines in a
> performance fluidCCi — Sends a MIDI controller data message to fluid. fluidCCk
> — Sends a MIDI controller data message to fluid. fluidControl — Sends
> MIDI note on, note off, and other messages to a SoundFont preset. fluidEngine
> — Instantiates a fluidsynth engine. fluidLoad — Loads a SoundFont into a
> fluidEngine, optionally listing SoundFont contents. fluidNote — Plays a
> note on a channel in a fluidSynth engine. fluidOut — Outputs sound from a
> given fluidEngine fluidProgramSelect — Assigns a preset from a SoundFont
> to a channel on a fluidEngine. fluidSetInterpMethod — Set interpolation
> method for channel in Fluid Engine [& this more low-level stuff  that
> gives you more specific control over subsequent processing]:
>
> sfilist — Prints a list of all instruments of a previously loaded
> SoundFont2 (SF2) file. sfinstr3 — Plays a SoundFont2 (SF2) sample
> instrument, generating a stereo sound with cubic interpolation. sfinstr3m —
> Plays a SoundFont2 (SF2) sample instrument, generating a mono sound with
> cubic interpolation. sfinstr — Plays a SoundFont2 (SF2) sample
> instrument, generating a stereo sound. sfinstrm — Plays a SoundFont2
> (SF2) sample instrument, generating a mono sound. sfload — Loads an
> entire SoundFont2 (SF2) sample file into memory. sflooper — Plays a
> SoundFont2 (SF2) sample preset, generating a stereo sound, with
> user-defined time-varying crossfade looping. sfpassign — Assigns all
> presets of a SoundFont2 (SF2) sample file to a sequence of progressive
> index numbers. sfplay3 — Plays a SoundFont2 (SF2) sample preset,
> generating a stereo sound with cubic interpolation. sfplay3m — Plays a
> SoundFont2 (SF2) sample preset, generating a mono sound with cubic
> interpolation. sfplay — Plays a SoundFont2 (SF2) sample preset,
> generating a stereo sound. sfplaym — Plays a SoundFont2 (SF2) sample
> preset, generating a mono sound. sfplist — Prints a list of all presets
> of a SoundFont2 (SF2) sample file. sfpreset — Assigns an existing preset
> of a SoundFont2 (SF2) sample file to an index number.
>
> On Wed, Oct 7, 2015 at 6:54 AM, Pietari Seppänen <
> pietari.seppanen at pohjoinen.net> wrote:
>
>> Hi Spencer,
>>
>> Previously I only got the chuck_dl error 126. I don't know what's
>> happened, but Chuck does load the chugin now. However, it doesn't work: it
>> doesn't have any of the functions related to FluidSynth (at least 'open' or
>> 'noteOn'). That said, I'm unqualified to even compile these things
>> properly, so I wouldn't go looking for bugs based on my strange process of
>> getting the chug file to appear.
>>
>> Pietari
>>
>> On Wed, 07 Oct 2015 12:28:02 +0300, Spencer Salazar <
>> spencer at ccrma.stanford.edu> wrote:
>>
>> Hi Pietari,
>>
>> 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.
>>
>> 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.
>>
>> spencer
>>
>>
>> On Mon, Oct 5, 2015 at 9:30 AM, Pietari Seppänen <
>> pietari.seppanen at pohjoinen.net> wrote:
>>
>>> Hi! The Extend section of the Chuck site describes a FluidSynth chugin
>>> for
>>> using soundfonts. CCRMA does have code for this chugin (
>>> https://github.com/ccrma/chugins/tree/master/FluidSynth), which I
>>> managed to
>>> compile for Windows after many, many hours of effort. Unfortunately, I
>>> get
>>> a chuck_dl error 126 when Chuck tries to load the file (I had to change
>>> the message level), so either my frankly ridiculous compiling process
>>> broke it or the code doesn't work right now.
>>>
>>> Does anyone have this chugin in working form?
>>>
>>> Regards,
>>>
>>> Pietari Seppänen
>>> _______________________________________________
>>> chuck-users mailing list
>>> chuck-users at lists.cs.princeton.edu
>>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>>
>>>
>>>
>>
>>
>> --
>> Spencer Salazar
>> Doctoral Candidate
>> Center for Computer Research in Music and Acoustics
>> Stanford University
>>
>> spencer at ccrma.stanford.edu
>> +1 831.277.4654
>> https://ccrma.stanford.edu/~spencer/
>>
>>
>>
>>
>>
>> _______________________________________________
>> chuck-users mailing list
>> chuck-users at lists.cs.princeton.edu
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20151007/c2a23568/attachment.html>


More information about the chuck-users mailing list