~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // VIEW BONES  
    const boneView = new BoneDirMesh2( pose );
    boneView.setBoneScale( 0.1 );
    boneView.updateFromPose( pose );
    App.add( boneView );
    Ref.boneView = boneView;
    
    onRender();
    //console.log( 'pose', pose.bones );

    App.render();
});

function armature_from_bvh( bvh, defaultBoneLen = 0.07 ){
    const arm  = new Armature();
    const skin = bvh.getSkin();

    for( let j of skin.joints ){
        arm.addBone( j.name, j.pa