1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
<html>
<head>
<title>fluidOpcodes</title>
</head>
<body class="REFENTRY" alink="#0000ff" bgcolor="#ffffff" link="#0000ff" text="#000000" vlink="#840084">
<h1>fluidOpcodes</h1>
<div class="REFNAMEDIV"> fluidEngine - creates a fluid engine<br>
fluidLoad - loads a soundfont into a fluid engine<br>
fluidProgramSelect - assign a bank and preset of a soundFont to a midi channel
as well as select<br>
fluidCC - send midi controller data to fluid<br>
fluidPlay - plays a note on a channel<br>
fluidOut - outputs sound from a fluid engine</div>
<div class="REFSECT1">
<h2>Description</h2>
<p>This family of opcodes are meant to be used together to load and play SoundFonts
using Peter Hannape's Fluidsynth. Use global engines, soundFonts, and outputs.<br>
<br>
Based on work by Michael Gogins. </p>
</div>
<div class="REFSECT1">
<h2>Syntax</h2>
<p>iEngineNumber <strong>fluidEngine</strong> <br>
<br>
iInstrumentNumber <strong>fluidLoad</strong> sfilename, iEngineNumber<br>
<br>
<strong>fluidProgramSelect</strong> iEngineNumber, iChannelNumber, iInstrumentNumber,
iBankNumber, iPresetNumber<br>
<br>
<strong>fluidCC</strong> iEngineNumber, iChannelNumber, iControllerNumber,
kValue<br>
<br>
<strong>fluidNote</strong> iEngineNumber, iInstrumentNumber, iMidiKeyNumber,
iVelocity<br>
<br>
aLeft, aRight <strong>fluidOut</strong> iEngineNum</p>
<p> </p></div>
<div class="REFSECT1">
<h2>Initialization</h2>
<p> iEngineNumber - engine number assigned from fluid_engine<br>
<br>
iInstrumentNumber - instrument number assigned from fluid_load<br>
<br>
sfilename - String specifying a SoundFont filename<br>
<br>
aLeft - left channel audio output.</p>
<p> aRight - right channel audio output.<br>
<br>
iMidiKeyNumber - midi key number to play (0-127)<br>
<br>
iVelocity - midi velocity to play at (0-127)<br>
<br>
iBankNum - bank number on soundfont to play<br>
<br>
iPresetNum - preset number on soundfont to play<br>
<br>
iprogram - Number of the fluidsynth program to be assigned to a MIDI channel.</p>
</div>
<div class="REFSECT1"><h2>Performance</h2>
<p> In this implementation, SoundFont effects such as chorus or reverb are used
if and only if they are defaults for the preset. There is no means of turning
such effects on or off, or of changing their parameters, from Csound.</p>
<p> </p></div>
<div class="REFSECT1">
<h2>Examples</h2>
<div class="EXAMPLE">
<p> </p>
</div>
</div>
<div class="REFSECT1">
<h2>Credits</h2>
<p>Opcode library created by Steven Yi, based on <strong>fluid</strong> opcode
plugin by Michael Gogins.</p>
<p> </p>
</div>
</body>
</html>
|