<commit_before>#KaraFun Remote Control Documentation

List of actions that can be send to the Player : 

### changeVolume(typeOfVolume,volume)
- typeOfVolume (string) : 'general', 'lead', 'cover'
- volume (int)

### play
### pause
### seek(time)
- time (int)

### getTree()

    <tree>
        <treeElementName id="1"></treeElementName>
        <treeElementName id="2">
            <treeElementName id="3"></treeElementName>
            <treeElementName id="10"></treeElementName>
        </treeElementName>
        <treeElementName id="5"></treeElementName>
    </tree>

### getList(id)
- id (int) : tree Element Id

Response

    <list>
    </list>

### getStatus()<commit_msg>amélioration documentation protocol<commit_after>#KaraFun Remote Control Documentation

List of actions that can be send to the Player : 

### Volume

    <action type="volume">{{volume_between_0_100}}</action>
    <action type="leadvolume">{{volume_between_0_100}}</action>
    <action type="chorusvolume">{{volume_between_0_100}}</action>

### play
    
    <action type="play"></action>

### pause

    <action type="pause"></action>

### seek

    <action type="seek">{{time_in_second}}</action>


### getTree()

call

    <action type="gettree"></action>

response

    <tree>
        <treeElementName id="{{element_id}}"></treeElementName>
        <treeElementName id="{{element_id}}">
            <treeElementName id="{{element_id}}"></treeElementName>
            <treeElementName id="{{element_id}}"></treeElementName>
        </treeElementName>
        <treeElementName id="{{element_id}}"></treeElementName>
    </tree>

### getList(id)

call

    <action type="getlist">{{list_id}}</action>

response

    <list>
        <item>
            <song id="{{song_id}}">{{song_name}}</song>
            <artist id="{{artist_id}}">{{artist_name}}</artist>
        </item>
        <item>
            <song id="{{song_id}}">{{song_name}}</song>
            <artist id="{{artist_id}}">{{artist_name}}</artist>
        </item>
    </list>

### getStatus()

call

    <action type="getstatus"></action>

response

    <status>
        <playtime>{{time_in_seconds}}</playtime>
        <volumes>
            <general>{{volume_between_0_100}}</general>
            <lead>{{volume_between_0_100}}</lead>
            <chorus>{{volume_between_0_100}}</chorus>
        </volumes>
        <pitch>{{pitch}}</pitch>
        <tempo>{{tempo}}</tempo>
    </status>
{'fraction_non_alphanumeric': 0.1814814814814815, 'fraction_numerical': 0.012345679012345678, 'mean_word_length': 3.1841652323580036, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5347944', 'n_tokens_mistral': 812, 'n_tokens_neox': 748, 'n_words': 134}