<soundObject type='blue.soundObject.Sound'>
  <subjectiveDuration>0.3000000000000007</subjectiveDuration>
  <startTime>0.0</startTime>
  <name>OSC Ardour control 1.4</name>
  <backgroundColor>-10027162</backgroundColor>
  <instrument type='blue.orchestra.BlueSynthBuilder' editEnabled='true'>
    <name>untitled</name>
    <comment></comment>
    <globalOrc/>
    <globalSco/>
    <instrumentText>
#define    IPADDRESS        # &quot;&lt;IPADDRESS&gt;&quot; #
#define    S_PORT         # &lt;S_PORT&gt; # 

if &lt;control&gt; == 0 then
OSCsend     1, $IPADDRESS, $S_PORT, &quot;/locate&quot;, &quot;ii&quot;, &lt;samples&gt;, 1
elseif &lt;control&gt; == 1 then
OSCsend     1, $IPADDRESS, $S_PORT, &quot;/transport_stop&quot;
elseif &lt;control&gt; == 2 then
OSCsend     1, $IPADDRESS, $S_PORT, &quot;/access_action/Editor/goto-mark-&lt;samples&gt;&quot;
OSCsend     1, $IPADDRESS, $S_PORT, &quot;/transport_play&quot;
elseif &lt;control&gt; == 3 then
OSCsend     1, $IPADDRESS, $S_PORT, &quot;/prev_marker&quot;
OSCsend     1, $IPADDRESS, $S_PORT, &quot;/transport_play&quot;
elseif &lt;control&gt; == 4 then
OSCsend     1, $IPADDRESS, $S_PORT, &quot;/transport_play&quot;
endif</instrumentText>
    <alwaysOnInstrumentText></alwaysOnInstrumentText>
    <graphicInterface editEnabled='false'>
      <gridSettings>
        <width>5</width>
        <height>5</height>
        <gridStyle>DOT</gridStyle>
        <snapGridEnabled>true</snapGridEnabled>
      </gridSettings>
      <bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
        <objectName></objectName>
        <x>0</x>
        <y>0</y>
        <groupName>Group</groupName>
        <backgroundColor>0x00000033</backgroundColor>
        <borderColor>0x000000ff</borderColor>
        <labelTextColor>0xffffffff</labelTextColor>
        <titleEnabled>true</titleEnabled>
        <width>20</width>
        <height>20</height>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
          <objectName></objectName>
          <x>10</x>
          <y>10</y>
          <groupName>OSC control</groupName>
          <backgroundColor>0x669966ff</backgroundColor>
          <borderColor>0x000000ff</borderColor>
          <labelTextColor>0xffffffff</labelTextColor>
          <titleEnabled>false</titleEnabled>
          <width>20</width>
          <height>20</height>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBDropdown' version='2'>
            <objectName>control</objectName>
            <x>215</x>
            <y>10</y>
            <automationAllowed>false</automationAllowed>
            <selectedIndex>0</selectedIndex>
            <fontSize>12</fontSize>
            <randomizable>true</randomizable>
            <bsbDropdownItemList>
              <bsbDropdownItem uniqueId='-1740566676'>
                <name>run at sample position</name>
                <value>0</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='-1740566675'>
                <name>transport stop</name>
                <value>1</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='-1740566674'>
                <name>run at marker number</name>
                <value>2</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='-1740566673'>
                <name>run from previous marker</name>
                <value>3</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='-1740566672'>
                <name>run playbackhead now</name>
                <value>4</value>
              </bsbDropdownItem>
            </bsbDropdownItemList>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>315</x>
            <y>60</y>
            <label>ardour</label>
            <font>
              <name>System Bold</name>
              <size>12.0</size>
            </font>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
            <objectName></objectName>
            <x>10</x>
            <y>10</y>
            <groupName>computer address</groupName>
            <backgroundColor>0x00000033</backgroundColor>
            <borderColor>0x000000ff</borderColor>
            <labelTextColor>0xffffffff</labelTextColor>
            <titleEnabled>true</titleEnabled>
            <width>20</width>
            <height>20</height>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
              <objectName></objectName>
              <x>5</x>
              <y>15</y>
              <label>IP address</label>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBTextField'>
              <objectName>S_PORT</objectName>
              <x>75</x>
              <y>40</y>
              <value>3819</value>
              <textFieldWidth>105</textFieldWidth>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBTextField'>
              <objectName>IPADDRESS</objectName>
              <x>75</x>
              <y>10</y>
              <value>192.168.1.131</value>
              <textFieldWidth>105</textFieldWidth>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
              <objectName></objectName>
              <x>45</x>
              <y>45</y>
              <label>port</label>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>415</x>
            <y>15</y>
            <label>--&gt;</label>
            <font>
              <name>System Bold</name>
              <size>12.0</size>
            </font>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBTextField'>
            <objectName>samples</objectName>
            <x>445</x>
            <y>10</y>
            <value>2000000</value>
            <textFieldWidth>100</textFieldWidth>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>360</x>
            <y>65</y>
            <label>OSC control</label>
            <font>
              <name>System Bold</name>
              <size>24.0</size>
            </font>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>520</x>
            <y>60</y>
            <label>v1.4</label>
            <font>
              <name>System Regular</name>
              <size>12.0</size>
            </font>
          </bsbObject>
        </bsbObject>
      </bsbObject>
    </graphicInterface>
    <parameterList/>
    <presetGroup name='Presets'/>
    <opcodeList/>
  </instrument>
  <comment>This Sound SoundObject is meant to control a DAW (Ardour in my case) by the OSC protocol. The DAW can run either on the localhost or on a second computer.
I use Ardour for this purpose, as it is well designed for use with OSC.

version 1.3, december 2017
- due to changed code of OSCsend (26 dec. 2017), adapted code to meet present status
- now, OSCsend code produces messages as expected by Ardour:  http://manual.ardour.org/using-control-surfaces/controlling-ardour-with-osc/osc-control/
- better description for the choices in the Dropdown Menu

version 1.2, december 2017

version 1.1, december 2017
- better naming
- with Ardour, option to run from one of the Ardour 9 markers
- localhost (same computer) or 192.168.1.xxx (destiantion computer)

version 1.0, december 2017
- 5 different ways to control the playbackhead of Ardour
- standard input port for Ardour = 3819
- the position of the playbackhead of Ardour is in samples</comment>
</soundObject>