| Although I agree with Steven that Csound should not be written to output SoundFonts, the Python scripting capability of Csound 5 should make it possible to write a Python script to do what you want, or at least PART of what you want.
There may also be Python libraries for building or editing SoundFonts. Possibly, FluidSynth can do this.
You can embed Csound scores and orchestras in Python code, so you should be able to make a single .py file that:
1. Loads a patch.
2. Renders notes of various pitches and velocities to named soundfiles.
If there is indeed a Python library for making SoundFonts, you can go further:
3. Creates a SoundFont for your patch.
4. Loads the computed soundfiles into your SoundFont.
5. Saves your finished SoundFont.
Hope this helps,
Mike
-----Original Message-----
From: Steven Yi
Sent: Dec 14, 2005 1:31 PM
To: csound@lists.bath.ac.uk
Subject: Re: [Csnd] Csound Output to Soundfonts
Hi R.D.,
I think that the idea of outputting SoundFonts directly from csound is
not quite in line with the nature of Csound. If someone was to build
a soundfont building opcode library and distributed it themselves I
think that'd be fine, though I really think the architecture for
something like this would be better served by an external program
driving csound to make individual samples, and then the external
program itself collecting the generated samples and building the
soundfont. I'd guess it'd be the same work to do the soundbuilding
code within Csound as it would be externally anyways.
steven
On 14 Dec 2005 11:43:22 -0500, R. D. Davis wrote:
> Hi,
>
> Has any thought been given to having Csound write its output to a
> soundfont, just as it can create single wav files, etc.? I was
> thinking that with such functionality, one could specify a range of
> notes, and Csound could synthesize all of the .wav files necessary for
> a soundfont covering a certain range of notes for a Csound instrument,
> and package them in a soundfont. Many more possibilities come to
> mind, but for now, just to keep things simple, that functionality
> alone would be a great start!
>
> Perhaps that sounds a little far-fetched, but just think of how useful
> that would be. Csound could be the ultimate tool for sound-font
> creation, given its abilities to manipulate waveforms and eliminate the
> nuisance of manual looping with sound file editors, etc.
>
> Even without changing the Csound sources, the automated creation of
> sets of wav files wouldn't be too difficult, just have a script
> running in a loop that changes a couple of variables in the Csound
> score for each run, or wave file. Of course, one would still have to
> muck about with tools like Swami to create the actual soundfont this
> way, if Csound couldn't be modified to go a step further and create
> the actual soundfont.
>
> Any thoughs on this?
>
> --
> R. D. Davis The difference between humans & other animals: an
> www.rddavis.org 410-744-4900 unnatural belief that we're above Nature & her
> Dangling Spiders other creatures, using dogma to justify such
> Electronic Music Studio beliefs and to justify much human cruelty.
> --
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>
--
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
|