Skip to content
Brice Donval edited this page Jan 13, 2020 · 15 revisions

Table of Contents

BML:

Head

Element: <head></head>
Time Markers: start, attack, sustain, end
Attributes: id, lexeme (Shake, Nod or Tilt), repetition

The lexeme attribute is usefull when no references are given. Greta will thus match the first signal in the library using the given lexeme. &lt;source lang&#61;&quot;xml&quot;&gt; &lt;head end&#61;&quot;2&quot; id&#61;&quot;p1_0&quot; lexeme&#61;&quot;nod&quot; start&#61;&quot;0&quot;&gt; &lt;description priority&#61;&quot;1&quot; type&#61;&quot;gretabml&quot;&gt; &lt;reference&gt;Nod_Big&lt;/reference&gt; &lt;intensity&gt;1.000&lt;/intensity&gt; &lt;SPC.value&gt;1.000&lt;/spc.value&gt; &lt;TMP.value&gt;0.400&lt;/tmp.value&gt; &lt;FLD.value&gt;0.000&lt;/fld.value&gt; &lt;PWR.value&gt;0.000&lt;/pwr.value&gt; &lt;REP.value&gt;0.000&lt;/rep.value&gt; &lt;OPN.value&gt;0.000&lt;/opn.value&gt; &lt;TEN.value&gt;0.000&lt;/ten.value&gt; &lt;/description&gt; &lt;/head&gt; &lt;/source&gt;

Gesture

The gestures have been extended in Greta with expressivity parameters. Therefore, when using a gesture in Greta, we are using the following extended BML description.

&lt;gesture id="g01" lexeme="performative=refuse_Ges_L" start="2" end="5"&gt;
	&lt;description priority="1" type="gretabml"&gt;
		&lt;reference&gt;performative=refuse_Ges_L&lt;/reference&gt;
		&lt;intensity&gt;1.000&lt;/intensity&gt;
		&lt;SPC.value&gt;0.646&lt;/spc.value&gt;
		&lt;TMP.value&gt;-0.400&lt;/tmp.value&gt;
		&lt;FLD.value&gt;0.000&lt;/fld.value&gt;
		&lt;PWR.value&gt;0.000&lt;/pwr.value&gt;
		&lt;REP.value&gt;0.000&lt;/rep.value&gt;
		&lt;OPN.value&gt;0.000&lt;/opn.value&gt;
		&lt;TEN.value&gt;0.000&lt;/ten.value&gt;
	&lt;/description&gt;
&lt;/gesture&gt;

Torso

&lt;greta:torso xmlns:greta="gretaNameSpace" end="10" id="torso1"
	lexeme="BackwardSagittalRightLateral" start="0.000"&gt;
	&lt;description priority="1" type="gretabml"&gt;
		&lt;reference&gt;BackwardSagittalRightLateral&lt;/reference&gt;
		&lt;intensity&gt;1.000&lt;/intensity&gt;
		&lt;SPC.value&gt;0.000&lt;/spc.value&gt;
		&lt;TMP.value&gt;0.000&lt;/tmp.value&gt;
		&lt;FLD.value&gt;0.000&lt;/fld.value&gt;
		&lt;PWR.value&gt;0.000&lt;/pwr.value&gt;
		&lt;REP.value&gt;0.000&lt;/rep.value&gt;
		&lt;OPN.value&gt;0.000&lt;/opn.value&gt;
		&lt;TEN.value&gt;0.000&lt;/ten.value&gt;
	&lt;/description&gt;
&lt;/greta:torso&gt;

Shoulders

Standard BML does not allow for defining shoulders movements. For this reason the tag shoulders has been added. The shoulders movement can defined along two axes.

NAMESPACE:
ELEMENT: <shoulders></shoulders>
SYNC POINTS: start, attackPeak, relax, end, Core extensions overshoot
ATTRIBUTES: id, lexeme, amount, repetition, side, sync attributes
CONTENTS: none
&amp;lt&#59;bml xmlns&#61;&quot;http&#58;//www.bml&#45;initiative.org/bml/bml&#45;1.0&quot; xmlns&#58;ext&#61;&quot;http&#58;//www.bml&#45;initiative.org/bml/coreextensions&#45;1.0&quot; xmlns&#58;greta&#61;&quot;http&#58;//perso.telecom&#45;paristech.fr/~pelachau/Greta/&quot; character&#61;&quot;Greta&quot; id&#61;&quot;bml1&quot;&amp;gt&#59;
	&amp;lt&#59;shoulder id&#61;&quot;sh1&quot; start&#61;&quot;1.0&quot; end&#61;&quot;3.0&quot; lexeme&#61;&quot;up&quot; side&#61;&quot;both&quot; amount&#61;&quot;1&quot;&amp;gt&#59;
	&amp;lt&#59;/shoulder&amp;gt&#59;
&amp;lt&#59;/bml&amp;gt&#59;
Example: Raise both arms for 2 seconds.

Attribute Details:

Attribute Type Use Default Description
lexeme closedSetItem required One of [UP|FRONT|BACK|SHAKE]
amount float 1 intensity
repetition int 1 number of repetitions for shake
side closedSetItem both One of [left|righ|both]

BML FileReader

This module is a SignalEmitter that reads a BML file and translate it into Signals.

Getting started with Greta

Greta Architecture

Quick start

Advanced

Functionalities

Core functionality

Auxiliary functionalities

Preview functionality

Nothing to show here

Previous functionality (possibly it still works, but not supported anymore)

Clone this wiki locally