<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>libfluidsynth: seqbind.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.1 --> <script type="text/javascript"> function hasClass(ele,cls) { return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)')); } function addClass(ele,cls) { if (!this.hasClass(ele,cls)) ele.className += " "+cls; } function removeClass(ele,cls) { if (hasClass(ele,cls)) { var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)'); ele.className=ele.className.replace(reg,' '); } } function toggleVisibility(linkObj) { var base = linkObj.getAttribute('id'); var summary = document.getElementById(base + '-summary'); var content = document.getElementById(base + '-content'); var trigger = document.getElementById(base + '-trigger'); if ( hasClass(linkObj,'closed') ) { summary.style.display = 'none'; content.style.display = 'block'; trigger.src = 'open.png'; removeClass(linkObj,'closed'); addClass(linkObj,'opened'); } else if ( hasClass(linkObj,'opened') ) { summary.style.display = 'block'; content.style.display = 'none'; trigger.src = 'closed.png'; removeClass(linkObj,'opened'); addClass(linkObj,'closed'); } return false; } </script> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <h1>seqbind.h File Reference</h1> </div> </div> <div class="contents"> <p>Functions for binding sequencer objects to other subsystems. <a href="#_details">More...</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">FLUIDSYNTH_API short </td><td class="memItemRight" valign="bottom"><a class="el" href="seqbind_8h.html#a3680e34efa6745fcbe851fcd802cba39">fluid_sequencer_register_fluidsynth</a> (<a class="el" href="types_8h.html#a7c7acad4ee620fc954a7ad4d7e87e1c3">fluid_sequencer_t</a> *seq, <a class="el" href="types_8h.html#ae265f10ae174a13afe010de50d87e1a4">fluid_synth_t</a> *synth)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Registers a synthesizer as a destination client of the given sequencer. <a href="#a3680e34efa6745fcbe851fcd802cba39"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">FLUIDSYNTH_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="seqbind_8h.html#aecf29486fa3b80514be4a6a535b02045">fluid_sequencer_add_midi_event_to_buffer</a> (void *data, <a class="el" href="types_8h.html#a61c72b76e3ee344637994c3071f74d94">fluid_midi_event_t</a> *event)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Transforms an incoming midi event (from a midi driver or midi router) to a sequencer event and adds it to the sequencer queue for sending as soon as possible. <a href="#aecf29486fa3b80514be4a6a535b02045"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Functions for binding sequencer objects to other subsystems. </p> <hr/><h2>Function Documentation</h2> <a class="anchor" id="a3680e34efa6745fcbe851fcd802cba39"></a><!-- doxytag: member="seqbind.h::fluid_sequencer_register_fluidsynth" ref="a3680e34efa6745fcbe851fcd802cba39" args="(fluid_sequencer_t *seq, fluid_synth_t *synth)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FLUIDSYNTH_API short fluid_sequencer_register_fluidsynth </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#a7c7acad4ee620fc954a7ad4d7e87e1c3">fluid_sequencer_t</a> * </td> <td class="paramname"> <em>seq</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="types_8h.html#ae265f10ae174a13afe010de50d87e1a4">fluid_synth_t</a> * </td> <td class="paramname"> <em>synth</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Registers a synthesizer as a destination client of the given sequencer. </p> <p>The <em>synth</em> is registered with the name "fluidsynth". </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>seq</em> </td><td>Sequencer instance </td></tr> <tr><td valign="top"></td><td valign="top"><em>synth</em> </td><td>Synthesizer instance </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Sequencer client ID, or <a class="el" href="misc_8h.html#a90e8bdbc5a507bbfa5c45bac85a63a61" title="Value that indicates failure, used by most libfluidsynth functions.">FLUID_FAILED</a> on error. </dd></dl> <dl><dt><b>Examples: </b></dt><dd><a class="el" href="fluidsynth__arpeggio_8c-example.html#a12">fluidsynth_arpeggio.c</a>, and <a class="el" href="fluidsynth__metronome_8c-example.html#a11">fluidsynth_metronome.c</a>.</dd> </dl> <p>References <a class="el" href="log_8h.html#a4433d077ea131c3e4b542537d65ffd72">fluid_log()</a>, <a class="el" href="log_8h.html#aa341232c15addd9c336131984840ed9ea62d9ddd89d0a853606ce38d195daa99a">FLUID_PANIC</a>, <a class="el" href="seq_8h.html#a2ae3552fe3a4f20b8a29854c93eed643">fluid_sequencer_get_use_system_timer()</a>, <a class="el" href="seq_8h.html#a749882ab2b9ce51fa6a265db2cd59915">fluid_sequencer_register_client()</a>, and <a class="el" href="seqbind_8h.html#a3680e34efa6745fcbe851fcd802cba39">fluid_sequencer_register_fluidsynth()</a>.</p> <p>Referenced by <a class="el" href="seqbind_8h.html#a3680e34efa6745fcbe851fcd802cba39">fluid_sequencer_register_fluidsynth()</a>.</p> </div> </div> <a class="anchor" id="aecf29486fa3b80514be4a6a535b02045"></a><!-- doxytag: member="seqbind.h::fluid_sequencer_add_midi_event_to_buffer" ref="aecf29486fa3b80514be4a6a535b02045" args="(void *data, fluid_midi_event_t *event)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FLUIDSYNTH_API int fluid_sequencer_add_midi_event_to_buffer </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname"> <em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="types_8h.html#a61c72b76e3ee344637994c3071f74d94">fluid_midi_event_t</a> * </td> <td class="paramname"> <em>event</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Transforms an incoming midi event (from a midi driver or midi router) to a sequencer event and adds it to the sequencer queue for sending as soon as possible. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>The sequencer, must be a valid <a class="el" href="types_8h.html#a7c7acad4ee620fc954a7ad4d7e87e1c3" title="Sequencer instance.">fluid_sequencer_t</a> </td></tr> <tr><td valign="top"></td><td valign="top"><em>event</em> </td><td>MIDI event </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="misc_8h.html#ae4efb1c3ce0d550c922504adfb0fb886" title="Value that indicates success, used by most libfluidsynth functions.">FLUID_OK</a> or <a class="el" href="misc_8h.html#a90e8bdbc5a507bbfa5c45bac85a63a61" title="Value that indicates failure, used by most libfluidsynth functions.">FLUID_FAILED</a> </dd></dl> <dl class="since"><dt><b>Since:</b></dt><dd>1.1.0 </dd></dl> <p>References <a class="el" href="event_8h.html#af6af8215438942a79dc953ba8419d1ac">fluid_event_channel_pressure()</a>, <a class="el" href="event_8h.html#ad2fdd4dca4a9e35bdb1baa00ec71815c">fluid_event_control_change()</a>, <a class="el" href="event_8h.html#a0aae74aab2dae9597e4e1c402474629a">fluid_event_noteoff()</a>, <a class="el" href="event_8h.html#a1337c75403ebf9c43607a3f3139c6bba">fluid_event_noteon()</a>, <a class="el" href="event_8h.html#a144992d13bb535115daebcfe22f76449">fluid_event_pitch_bend()</a>, <a class="el" href="event_8h.html#a2cad84c0b644e7da4ec8f4f7f3175bd5">fluid_event_program_change()</a>, <a class="el" href="event_8h.html#ae0857e30ffdcfe4e277eb3c55df7ba32">fluid_event_set_dest()</a>, <a class="el" href="event_8h.html#ae58c2c79f68a9e8d9ba70281013a9bcf">fluid_event_system_reset()</a>, <a class="el" href="midi_8h.html#ad6a5072d25f83834d41205d0c0806b9d">fluid_midi_event_get_channel()</a>, <a class="el" href="midi_8h.html#a4f50a77de21c9bfa7207617ef3ff3440">fluid_midi_event_get_control()</a>, <a class="el" href="midi_8h.html#a2ed781f6bc77a94c80d5f33ba63f4b05">fluid_midi_event_get_key()</a>, <a class="el" href="midi_8h.html#ad1f10dd6f386f2a189b7389fd1fac169">fluid_midi_event_get_pitch()</a>, <a class="el" href="midi_8h.html#a49901971bb418efc14b2de5954b4b200">fluid_midi_event_get_program()</a>, <a class="el" href="midi_8h.html#a63c2b0009873e8a1761f3a3365b12244">fluid_midi_event_get_type()</a>, <a class="el" href="midi_8h.html#ac0dfb3cc8be8571ecf2d2dd05b92a9b2">fluid_midi_event_get_value()</a>, <a class="el" href="midi_8h.html#a6462c5c51d6cfa9c328417d2f1f4b6d5">fluid_midi_event_get_velocity()</a>, <a class="el" href="seqbind_8h.html#aecf29486fa3b80514be4a6a535b02045">fluid_sequencer_add_midi_event_to_buffer()</a>, <a class="el" href="seq_8h.html#a2a51cf34c359020eb6c9b7ab549ab239">fluid_sequencer_get_tick()</a>, and <a class="el" href="seq_8h.html#afb0c62f3a2cff3decbf628535f4511ef">fluid_sequencer_send_at()</a>.</p> <p>Referenced by <a class="el" href="seqbind_8h.html#aecf29486fa3b80514be4a6a535b02045">fluid_sequencer_add_midi_event_to_buffer()</a>.</p> </div> </div> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Oct 12 2010 for libfluidsynth by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>