| 1 |
|
| 2 |
|
| 3 |
<refentry id="link_create"> |
| 4 |
<indexterm id="IndexLinkCreate"><primary>link_beat_get</primary></indexterm> |
| 5 |
|
| 6 |
<refentryinfo><title>Ableton Link Opcodes</title></refentryinfo> |
| 7 |
<refmeta> |
| 8 |
<refentrytitle>link_create</refentrytitle> |
| 9 |
</refmeta> |
| 10 |
|
| 11 |
<refnamediv> |
| 12 |
<refname>link_create</refname> |
| 13 |
<refpurpose> |
| 14 |
Creates a peer in an Ableton Link network session. |
| 15 |
</refpurpose> |
| 16 |
</refnamediv> |
| 17 |
|
| 18 |
<refsect1> |
| 19 |
<title>Description</title> |
| 20 |
<para>Plugin opcode in ableton_link_opcodes. This opcode is part of the plugin repository and has to be installed separately. |
| 21 |
The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para> |
| 22 |
<para> |
| 23 |
Creates a peer in an Ableton Link network session. The first peer in a session determines the initial tempo of the session. The value returned must be passed as the first parameter to all subsequent Ableton Link opcode calls for this peer. |
| 24 |
</para> |
| 25 |
</refsect1> |
| 26 |
|
| 27 |
<refsect1> |
| 28 |
<title>Syntax</title> |
| 29 |
|
| 30 |
<synopsis>i_peer <command>link_create</command> [i_bpm]</synopsis> |
| 31 |
</refsect1> |
| 32 |
|
| 33 |
<refsect1> |
| 34 |
|
| 35 |
<title>Initialization</title> |
| 36 |
<para> |
| 37 |
<emphasis>i_bpm</emphasis> -- Initial tempo of the session, in beats per minute. Has no effect unless this is the first peer in the session. The default value is 60. |
| 38 |
</para> |
| 39 |
<para> |
| 40 |
<emphasis>i_peer</emphasis> -- The Ableton Link peer object returned for use with the other Ableton Link opcodes. |
| 41 |
</para> |
| 42 |
</refsect1> |
| 43 |
|
| 44 |
<refsect1> |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
<title>Examples</title> |
| 49 |
<para> |
| 50 |
Here is an example of the link_create opcode. It uses the file <ulink url="examples/ableton_link.csd"><citetitle>ableton_link.csd</citetitle></ulink>. |
| 51 |
<example> |
| 52 |
<title>Example of the link_create opcode.</title> |
| 53 |
<xi:include href="examples-xml/ableton_link.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 54 |
</example> |
| 55 |
</para> |
| 56 |
</refsect1> |
| 57 |
|
| 58 |
<refsect1> |
| 59 |
<title>See also</title> |
| 60 |
<para><link linkend="AbletonLink"><citetitle>Ableton Link Opcodes</citetitle></link></para> |
| 61 |
</refsect1> |
| 62 |
|
| 63 |
<refsect1> |
| 64 |
|
| 65 |
<title>Credits</title> |
| 66 |
<para>By: &namemichael; 2017</para> |
| 67 |
</refsect1> |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
</refentry> |