manual.html 89 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="generator" content="Asciidoctor 1.5.8">
  8. <title>RaySession Manual</title>
  9. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700">
  10. <style>
  11. /* Asciidoctor default stylesheet | MIT License | http://asciidoctor.org */
  12. /* Uncomment @import statement below to use as custom stylesheet */
  13. /*@import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700";*/
  14. article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}
  15. audio,canvas,video{display:inline-block}
  16. audio:not([controls]){display:none;height:0}
  17. script{display:none!important}
  18. html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
  19. a{background:transparent}
  20. a:focus{outline:thin dotted}
  21. a:active,a:hover{outline:0}
  22. h1{font-size:2em;margin:.67em 0}
  23. abbr[title]{border-bottom:1px dotted}
  24. b,strong{font-weight:bold}
  25. dfn{font-style:italic}
  26. hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}
  27. mark{background:#ff0;color:#000}
  28. code,kbd,pre,samp{font-family:monospace;font-size:1em}
  29. pre{white-space:pre-wrap}
  30. q{quotes:"\201C" "\201D" "\2018" "\2019"}
  31. small{font-size:80%}
  32. sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
  33. sup{top:-.5em}
  34. sub{bottom:-.25em}
  35. img{border:0}
  36. svg:not(:root){overflow:hidden}
  37. figure{margin:0}
  38. fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}
  39. legend{border:0;padding:0}
  40. button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}
  41. button,input{line-height:normal}
  42. button,select{text-transform:none}
  43. button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}
  44. button[disabled],html input[disabled]{cursor:default}
  45. input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}
  46. button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}
  47. textarea{overflow:auto;vertical-align:top}
  48. table{border-collapse:collapse;border-spacing:0}
  49. *,*::before,*::after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}
  50. html,body{font-size:100%}
  51. body{background:#fff;color:rgba(0,0,0,.8);padding:0;margin:0;font-family:"Noto Serif","DejaVu Serif",serif;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:auto;tab-size:4;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}
  52. a:hover{cursor:pointer}
  53. img,object,embed{max-width:100%;height:auto}
  54. object,embed{height:100%}
  55. img{-ms-interpolation-mode:bicubic}
  56. .left{float:left!important}
  57. .right{float:right!important}
  58. .text-left{text-align:left!important}
  59. .text-right{text-align:right!important}
  60. .text-center{text-align:center!important}
  61. .text-justify{text-align:justify!important}
  62. .hide{display:none}
  63. img,object,svg{display:inline-block;vertical-align:middle}
  64. textarea{height:auto;min-height:50px}
  65. select{width:100%}
  66. .center{margin-left:auto;margin-right:auto}
  67. .stretch{width:100%}
  68. .subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#7a2518;font-weight:400;margin-top:0;margin-bottom:.25em}
  69. div,dl,dt,dd,ul,ol,li,h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6,pre,form,p,blockquote,th,td{margin:0;padding:0;direction:ltr}
  70. a{color:#2156a5;text-decoration:underline;line-height:inherit}
  71. a:hover,a:focus{color:#1d4b8f}
  72. a img{border:none}
  73. p{font-family:inherit;font-weight:400;font-size:1em;line-height:1.6;margin-bottom:1.25em;text-rendering:optimizeLegibility}
  74. p aside{font-size:.875em;line-height:1.35;font-style:italic}
  75. h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Open Sans","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.0125em}
  76. h1 small,h2 small,h3 small,#toctitle small,.sidebarblock>.content>.title small,h4 small,h5 small,h6 small{font-size:60%;color:#e99b8f;line-height:0}
  77. h1{font-size:2.125em}
  78. h2{font-size:1.6875em}
  79. h3,#toctitle,.sidebarblock>.content>.title{font-size:1.375em}
  80. h4,h5{font-size:1.125em}
  81. h6{font-size:1em}
  82. hr{border:solid #dddddf;border-width:1px 0 0;clear:both;margin:1.25em 0 1.1875em;height:0}
  83. em,i{font-style:italic;line-height:inherit}
  84. strong,b{font-weight:bold;line-height:inherit}
  85. small{font-size:60%;line-height:inherit}
  86. code{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;color:rgba(0,0,0,.9)}
  87. ul,ol,dl{font-size:1em;line-height:1.6;margin-bottom:1.25em;list-style-position:outside;font-family:inherit}
  88. ul,ol{margin-left:1.5em}
  89. ul li ul,ul li ol{margin-left:1.25em;margin-bottom:0;font-size:1em}
  90. ul.square li ul,ul.circle li ul,ul.disc li ul{list-style:inherit}
  91. ul.square{list-style-type:square}
  92. ul.circle{list-style-type:circle}
  93. ul.disc{list-style-type:disc}
  94. ol li ul,ol li ol{margin-left:1.25em;margin-bottom:0}
  95. dl dt{margin-bottom:.3125em;font-weight:bold}
  96. dl dd{margin-bottom:1.25em}
  97. abbr,acronym{text-transform:uppercase;font-size:90%;color:rgba(0,0,0,.8);border-bottom:1px dotted #ddd;cursor:help}
  98. abbr{text-transform:none}
  99. blockquote{margin:0 0 1.25em;padding:.5625em 1.25em 0 1.1875em;border-left:1px solid #ddd}
  100. blockquote cite{display:block;font-size:.9375em;color:rgba(0,0,0,.6)}
  101. blockquote cite::before{content:"\2014 \0020"}
  102. blockquote cite a,blockquote cite a:visited{color:rgba(0,0,0,.6)}
  103. blockquote,blockquote p{line-height:1.6;color:rgba(0,0,0,.85)}
  104. @media screen and (min-width:768px){h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2}
  105. h1{font-size:2.75em}
  106. h2{font-size:2.3125em}
  107. h3,#toctitle,.sidebarblock>.content>.title{font-size:1.6875em}
  108. h4{font-size:1.4375em}}
  109. table{background:#fff;margin-bottom:1.25em;border:solid 1px #dedede}
  110. table thead,table tfoot{background:#f7f8f7}
  111. table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:.5em .625em .625em;font-size:inherit;color:rgba(0,0,0,.8);text-align:left}
  112. table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(0,0,0,.8)}
  113. table tr.even,table tr.alt,table tr:nth-of-type(even){background:#f8f8f7}
  114. table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{display:table-cell;line-height:1.6}
  115. h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2;word-spacing:-.05em}
  116. h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400}
  117. .clearfix::before,.clearfix::after,.float-group::before,.float-group::after{content:" ";display:table}
  118. .clearfix::after,.float-group::after{clear:both}
  119. *:not(pre)>code{font-size:.9375em;font-style:normal!important;letter-spacing:0;padding:.1em .5ex;word-spacing:-.15em;background-color:#f7f7f8;-webkit-border-radius:4px;border-radius:4px;line-height:1.45;text-rendering:optimizeSpeed;word-wrap:break-word}
  120. *:not(pre)>code.nobreak{word-wrap:normal}
  121. *:not(pre)>code.nowrap{white-space:nowrap}
  122. pre,pre>code{line-height:1.45;color:rgba(0,0,0,.9);font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;text-rendering:optimizeSpeed}
  123. em em{font-style:normal}
  124. strong strong{font-weight:400}
  125. .keyseq{color:rgba(51,51,51,.8)}
  126. kbd{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em white inset;box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em #fff inset;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap}
  127. .keyseq kbd:first-child{margin-left:0}
  128. .keyseq kbd:last-child{margin-right:0}
  129. .menuseq,.menuref{color:#000}
  130. .menuseq b:not(.caret),.menuref{font-weight:inherit}
  131. .menuseq{word-spacing:-.02em}
  132. .menuseq b.caret{font-size:1.25em;line-height:.8}
  133. .menuseq i.caret{font-weight:bold;text-align:center;width:.45em}
  134. b.button::before,b.button::after{position:relative;top:-1px;font-weight:400}
  135. b.button::before{content:"[";padding:0 3px 0 2px}
  136. b.button::after{content:"]";padding:0 2px 0 3px}
  137. p a>code:hover{color:rgba(0,0,0,.9)}
  138. #header,#content,#footnotes,#footer{width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:62.5em;*zoom:1;position:relative;padding-left:.9375em;padding-right:.9375em}
  139. #header::before,#header::after,#content::before,#content::after,#footnotes::before,#footnotes::after,#footer::before,#footer::after{content:" ";display:table}
  140. #header::after,#content::after,#footnotes::after,#footer::after{clear:both}
  141. #content{margin-top:1.25em}
  142. #content::before{content:none}
  143. #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0}
  144. #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf}
  145. #header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px}
  146. #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-flow:row wrap;-webkit-flex-flow:row wrap;flex-flow:row wrap}
  147. #header .details span:first-child{margin-left:-.125em}
  148. #header .details span.email a{color:rgba(0,0,0,.85)}
  149. #header .details br{display:none}
  150. #header .details br+span::before{content:"\00a0\2013\00a0"}
  151. #header .details br+span.author::before{content:"\00a0\22c5\00a0";color:rgba(0,0,0,.85)}
  152. #header .details br+span#revremark::before{content:"\00a0|\00a0"}
  153. #header #revnumber{text-transform:capitalize}
  154. #header #revnumber::after{content:"\00a0"}
  155. #content>h1:first-child:not([class]){color:rgba(0,0,0,.85);border-bottom:1px solid #dddddf;padding-bottom:8px;margin-top:0;padding-top:1rem;margin-bottom:1.25rem}
  156. #toc{border-bottom:1px solid #e7e7e9;padding-bottom:.5em}
  157. #toc>ul{margin-left:.125em}
  158. #toc ul.sectlevel0>li>a{font-style:italic}
  159. #toc ul.sectlevel0 ul.sectlevel1{margin:.5em 0}
  160. #toc ul{font-family:"Open Sans","DejaVu Sans",sans-serif;list-style-type:none}
  161. #toc li{line-height:1.3334;margin-top:.3334em}
  162. #toc a{text-decoration:none}
  163. #toc a:active{text-decoration:underline}
  164. #toctitle{color:#7a2518;font-size:1.2em}
  165. @media screen and (min-width:768px){#toctitle{font-size:1.375em}
  166. body.toc2{padding-left:15em;padding-right:0}
  167. #toc.toc2{margin-top:0!important;background-color:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto}
  168. #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em}
  169. #toc.toc2>ul{font-size:.9em;margin-bottom:0}
  170. #toc.toc2 ul ul{margin-left:0;padding-left:1em}
  171. #toc.toc2 ul.sectlevel0 ul.sectlevel1{padding-left:0;margin-top:.5em;margin-bottom:.5em}
  172. body.toc2.toc-right{padding-left:0;padding-right:15em}
  173. body.toc2.toc-right #toc.toc2{border-right-width:0;border-left:1px solid #e7e7e9;left:auto;right:0}}
  174. @media screen and (min-width:1280px){body.toc2{padding-left:20em;padding-right:0}
  175. #toc.toc2{width:20em}
  176. #toc.toc2 #toctitle{font-size:1.375em}
  177. #toc.toc2>ul{font-size:.95em}
  178. #toc.toc2 ul ul{padding-left:1.25em}
  179. body.toc2.toc-right{padding-left:0;padding-right:20em}}
  180. #content #toc{border-style:solid;border-width:1px;border-color:#e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;-webkit-border-radius:4px;border-radius:4px}
  181. #content #toc>:first-child{margin-top:0}
  182. #content #toc>:last-child{margin-bottom:0}
  183. #footer{max-width:100%;background-color:rgba(0,0,0,.8);padding:1.25em}
  184. #footer-text{color:rgba(255,255,255,.8);line-height:1.44}
  185. #content{margin-bottom:.625em}
  186. .sect1{padding-bottom:.625em}
  187. @media screen and (min-width:768px){#content{margin-bottom:1.25em}
  188. .sect1{padding-bottom:1.25em}}
  189. .sect1:last-child{padding-bottom:0}
  190. .sect1+.sect1{border-top:1px solid #e7e7e9}
  191. #content h1>a.anchor,h2>a.anchor,h3>a.anchor,#toctitle>a.anchor,.sidebarblock>.content>.title>a.anchor,h4>a.anchor,h5>a.anchor,h6>a.anchor{position:absolute;z-index:1001;width:1.5ex;margin-left:-1.5ex;display:block;text-decoration:none!important;visibility:hidden;text-align:center;font-weight:400}
  192. #content h1>a.anchor::before,h2>a.anchor::before,h3>a.anchor::before,#toctitle>a.anchor::before,.sidebarblock>.content>.title>a.anchor::before,h4>a.anchor::before,h5>a.anchor::before,h6>a.anchor::before{content:"\00A7";font-size:.85em;display:block;padding-top:.1em}
  193. #content h1:hover>a.anchor,#content h1>a.anchor:hover,h2:hover>a.anchor,h2>a.anchor:hover,h3:hover>a.anchor,#toctitle:hover>a.anchor,.sidebarblock>.content>.title:hover>a.anchor,h3>a.anchor:hover,#toctitle>a.anchor:hover,.sidebarblock>.content>.title>a.anchor:hover,h4:hover>a.anchor,h4>a.anchor:hover,h5:hover>a.anchor,h5>a.anchor:hover,h6:hover>a.anchor,h6>a.anchor:hover{visibility:visible}
  194. #content h1>a.link,h2>a.link,h3>a.link,#toctitle>a.link,.sidebarblock>.content>.title>a.link,h4>a.link,h5>a.link,h6>a.link{color:#ba3925;text-decoration:none}
  195. #content h1>a.link:hover,h2>a.link:hover,h3>a.link:hover,#toctitle>a.link:hover,.sidebarblock>.content>.title>a.link:hover,h4>a.link:hover,h5>a.link:hover,h6>a.link:hover{color:#a53221}
  196. .audioblock,.imageblock,.literalblock,.listingblock,.stemblock,.videoblock{margin-bottom:1.25em}
  197. .admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{text-rendering:optimizeLegibility;text-align:left;font-family:"Noto Serif","DejaVu Serif",serif;font-size:1rem;font-style:italic}
  198. table.tableblock.fit-content>caption.title{white-space:nowrap;width:0}
  199. .paragraph.lead>p,#preamble>.sectionbody>[class="paragraph"]:first-of-type p{font-size:1.21875em;line-height:1.6;color:rgba(0,0,0,.85)}
  200. table.tableblock #preamble>.sectionbody>[class="paragraph"]:first-of-type p{font-size:inherit}
  201. .admonitionblock>table{border-collapse:separate;border:0;background:none;width:100%}
  202. .admonitionblock>table td.icon{text-align:center;width:80px}
  203. .admonitionblock>table td.icon img{max-width:none}
  204. .admonitionblock>table td.icon .title{font-weight:bold;font-family:"Open Sans","DejaVu Sans",sans-serif;text-transform:uppercase}
  205. .admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(0,0,0,.6)}
  206. .admonitionblock>table td.content>:last-child>:last-child{margin-bottom:0}
  207. .exampleblock>.content{border-style:solid;border-width:1px;border-color:#e6e6e6;margin-bottom:1.25em;padding:1.25em;background:#fff;-webkit-border-radius:4px;border-radius:4px}
  208. .exampleblock>.content>:first-child{margin-top:0}
  209. .exampleblock>.content>:last-child{margin-bottom:0}
  210. .sidebarblock{border-style:solid;border-width:1px;border-color:#e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;-webkit-border-radius:4px;border-radius:4px}
  211. .sidebarblock>:first-child{margin-top:0}
  212. .sidebarblock>:last-child{margin-bottom:0}
  213. .sidebarblock>.content>.title{color:#7a2518;margin-top:0;text-align:center}
  214. .exampleblock>.content>:last-child>:last-child,.exampleblock>.content .olist>ol>li:last-child>:last-child,.exampleblock>.content .ulist>ul>li:last-child>:last-child,.exampleblock>.content .qlist>ol>li:last-child>:last-child,.sidebarblock>.content>:last-child>:last-child,.sidebarblock>.content .olist>ol>li:last-child>:last-child,.sidebarblock>.content .ulist>ul>li:last-child>:last-child,.sidebarblock>.content .qlist>ol>li:last-child>:last-child{margin-bottom:0}
  215. .literalblock pre,.listingblock pre:not(.highlight),.listingblock pre[class="highlight"],.listingblock pre[class^="highlight "],.listingblock pre.CodeRay,.listingblock pre.prettyprint{background:#f7f7f8}
  216. .sidebarblock .literalblock pre,.sidebarblock .listingblock pre:not(.highlight),.sidebarblock .listingblock pre[class="highlight"],.sidebarblock .listingblock pre[class^="highlight "],.sidebarblock .listingblock pre.CodeRay,.sidebarblock .listingblock pre.prettyprint{background:#f2f1f1}
  217. .literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{-webkit-border-radius:4px;border-radius:4px;word-wrap:break-word;overflow-x:auto;padding:1em;font-size:.8125em}
  218. @media screen and (min-width:768px){.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{font-size:.90625em}}
  219. @media screen and (min-width:1280px){.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{font-size:1em}}
  220. .literalblock pre.nowrap,.literalblock pre.nowrap pre,.listingblock pre.nowrap,.listingblock pre.nowrap pre{white-space:pre;word-wrap:normal}
  221. .literalblock.output pre{color:#f7f7f8;background-color:rgba(0,0,0,.9)}
  222. .listingblock pre.highlightjs{padding:0}
  223. .listingblock pre.highlightjs>code{padding:1em;-webkit-border-radius:4px;border-radius:4px}
  224. .listingblock pre.prettyprint{border-width:0}
  225. .listingblock>.content{position:relative}
  226. .listingblock code[data-lang]::before{display:none;content:attr(data-lang);position:absolute;font-size:.75em;top:.425rem;right:.5rem;line-height:1;text-transform:uppercase;color:#999}
  227. .listingblock:hover code[data-lang]::before{display:block}
  228. .listingblock.terminal pre .command::before{content:attr(data-prompt);padding-right:.5em;color:#999}
  229. .listingblock.terminal pre .command:not([data-prompt])::before{content:"$"}
  230. table.pyhltable{border-collapse:separate;border:0;margin-bottom:0;background:none}
  231. table.pyhltable td{vertical-align:top;padding-top:0;padding-bottom:0;line-height:1.45}
  232. table.pyhltable td.code{padding-left:.75em;padding-right:0}
  233. pre.pygments .lineno,table.pyhltable td:not(.code){color:#999;padding-left:0;padding-right:.5em;border-right:1px solid #dddddf}
  234. pre.pygments .lineno{display:inline-block;margin-right:.25em}
  235. table.pyhltable .linenodiv{background:none!important;padding-right:0!important}
  236. .quoteblock{margin:0 1em 1.25em 1.5em;display:table}
  237. .quoteblock>.title{margin-left:-1.5em;margin-bottom:.75em}
  238. .quoteblock blockquote,.quoteblock p{color:rgba(0,0,0,.85);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify}
  239. .quoteblock blockquote{margin:0;padding:0;border:0}
  240. .quoteblock blockquote::before{content:"\201c";float:left;font-size:2.75em;font-weight:bold;line-height:.6em;margin-left:-.6em;color:#7a2518;text-shadow:0 1px 2px rgba(0,0,0,.1)}
  241. .quoteblock blockquote>.paragraph:last-child p{margin-bottom:0}
  242. .quoteblock .attribution{margin-top:.75em;margin-right:.5ex;text-align:right}
  243. .verseblock{margin:0 1em 1.25em}
  244. .verseblock pre{font-family:"Open Sans","DejaVu Sans",sans;font-size:1.15rem;color:rgba(0,0,0,.85);font-weight:300;text-rendering:optimizeLegibility}
  245. .verseblock pre strong{font-weight:400}
  246. .verseblock .attribution{margin-top:1.25rem;margin-left:.5ex}
  247. .quoteblock .attribution,.verseblock .attribution{font-size:.9375em;line-height:1.45;font-style:italic}
  248. .quoteblock .attribution br,.verseblock .attribution br{display:none}
  249. .quoteblock .attribution cite,.verseblock .attribution cite{display:block;letter-spacing:-.025em;color:rgba(0,0,0,.6)}
  250. .quoteblock.abstract blockquote::before,.quoteblock.excerpt blockquote::before,.quoteblock .quoteblock blockquote::before{display:none}
  251. .quoteblock.abstract blockquote,.quoteblock.abstract p,.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{line-height:1.6;word-spacing:0}
  252. .quoteblock.abstract{margin:0 1em 1.25em;display:block}
  253. .quoteblock.abstract>.title{margin:0 0 .375em;font-size:1.15em;text-align:center}
  254. .quoteblock.excerpt,.quoteblock .quoteblock{margin:0 0 1.25em;padding:0 0 .25em 1em;border-left:.25em solid #dddddf}
  255. .quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{color:inherit;font-size:1.0625rem}
  256. .quoteblock.excerpt .attribution,.quoteblock .quoteblock .attribution{color:inherit;text-align:left;margin-right:0}
  257. table.tableblock{max-width:100%;border-collapse:separate}
  258. p.tableblock:last-child{margin-bottom:0}
  259. td.tableblock>.content{margin-bottom:-1.25em}
  260. table.tableblock,th.tableblock,td.tableblock{border:0 solid #dedede}
  261. table.grid-all>thead>tr>.tableblock,table.grid-all>tbody>tr>.tableblock{border-width:0 1px 1px 0}
  262. table.grid-all>tfoot>tr>.tableblock{border-width:1px 1px 0 0}
  263. table.grid-cols>*>tr>.tableblock{border-width:0 1px 0 0}
  264. table.grid-rows>thead>tr>.tableblock,table.grid-rows>tbody>tr>.tableblock{border-width:0 0 1px}
  265. table.grid-rows>tfoot>tr>.tableblock{border-width:1px 0 0}
  266. table.grid-all>*>tr>.tableblock:last-child,table.grid-cols>*>tr>.tableblock:last-child{border-right-width:0}
  267. table.grid-all>tbody>tr:last-child>.tableblock,table.grid-all>thead:last-child>tr>.tableblock,table.grid-rows>tbody>tr:last-child>.tableblock,table.grid-rows>thead:last-child>tr>.tableblock{border-bottom-width:0}
  268. table.frame-all{border-width:1px}
  269. table.frame-sides{border-width:0 1px}
  270. table.frame-topbot,table.frame-ends{border-width:1px 0}
  271. table.stripes-all tr,table.stripes-odd tr:nth-of-type(odd){background:#f8f8f7}
  272. table.stripes-none tr,table.stripes-odd tr:nth-of-type(even){background:none}
  273. th.halign-left,td.halign-left{text-align:left}
  274. th.halign-right,td.halign-right{text-align:right}
  275. th.halign-center,td.halign-center{text-align:center}
  276. th.valign-top,td.valign-top{vertical-align:top}
  277. th.valign-bottom,td.valign-bottom{vertical-align:bottom}
  278. th.valign-middle,td.valign-middle{vertical-align:middle}
  279. table thead th,table tfoot th{font-weight:bold}
  280. tbody tr th{display:table-cell;line-height:1.6;background:#f7f8f7}
  281. tbody tr th,tbody tr th p,tfoot tr th,tfoot tr th p{color:rgba(0,0,0,.8);font-weight:bold}
  282. p.tableblock>code:only-child{background:none;padding:0}
  283. p.tableblock{font-size:1em}
  284. td>div.verse{white-space:pre}
  285. ol{margin-left:1.75em}
  286. ul li ol{margin-left:1.5em}
  287. dl dd{margin-left:1.125em}
  288. dl dd:last-child,dl dd:last-child>:last-child{margin-bottom:0}
  289. ol>li p,ul>li p,ul dd,ol dd,.olist .olist,.ulist .ulist,.ulist .olist,.olist .ulist{margin-bottom:.625em}
  290. ul.checklist,ul.none,ol.none,ul.no-bullet,ol.no-bullet,ol.unnumbered,ul.unstyled,ol.unstyled{list-style-type:none}
  291. ul.no-bullet,ol.no-bullet,ol.unnumbered{margin-left:.625em}
  292. ul.unstyled,ol.unstyled{margin-left:0}
  293. ul.checklist{margin-left:.625em}
  294. ul.checklist li>p:first-child>.fa-square-o:first-child,ul.checklist li>p:first-child>.fa-check-square-o:first-child{width:1.25em;font-size:.8em;position:relative;bottom:.125em}
  295. ul.checklist li>p:first-child>input[type="checkbox"]:first-child{margin-right:.25em}
  296. ul.inline{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-flow:row wrap;-webkit-flex-flow:row wrap;flex-flow:row wrap;list-style:none;margin:0 0 .625em -1.25em}
  297. ul.inline>li{margin-left:1.25em}
  298. .unstyled dl dt{font-weight:400;font-style:normal}
  299. ol.arabic{list-style-type:decimal}
  300. ol.decimal{list-style-type:decimal-leading-zero}
  301. ol.loweralpha{list-style-type:lower-alpha}
  302. ol.upperalpha{list-style-type:upper-alpha}
  303. ol.lowerroman{list-style-type:lower-roman}
  304. ol.upperroman{list-style-type:upper-roman}
  305. ol.lowergreek{list-style-type:lower-greek}
  306. .hdlist>table,.colist>table{border:0;background:none}
  307. .hdlist>table>tbody>tr,.colist>table>tbody>tr{background:none}
  308. td.hdlist1,td.hdlist2{vertical-align:top;padding:0 .625em}
  309. td.hdlist1{font-weight:bold;padding-bottom:1.25em}
  310. .literalblock+.colist,.listingblock+.colist{margin-top:-.5em}
  311. .colist td:not([class]):first-child{padding:.4em .75em 0;line-height:1;vertical-align:top}
  312. .colist td:not([class]):first-child img{max-width:none}
  313. .colist td:not([class]):last-child{padding:.25em 0}
  314. .thumb,.th{line-height:0;display:inline-block;border:solid 4px #fff;-webkit-box-shadow:0 0 0 1px #ddd;box-shadow:0 0 0 1px #ddd}
  315. .imageblock.left{margin:.25em .625em 1.25em 0}
  316. .imageblock.right{margin:.25em 0 1.25em .625em}
  317. .imageblock>.title{margin-bottom:0}
  318. .imageblock.thumb,.imageblock.th{border-width:6px}
  319. .imageblock.thumb>.title,.imageblock.th>.title{padding:0 .125em}
  320. .image.left,.image.right{margin-top:.25em;margin-bottom:.25em;display:inline-block;line-height:0}
  321. .image.left{margin-right:.625em}
  322. .image.right{margin-left:.625em}
  323. a.image{text-decoration:none;display:inline-block}
  324. a.image object{pointer-events:none}
  325. sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super}
  326. sup.footnote a,sup.footnoteref a{text-decoration:none}
  327. sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline}
  328. #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em}
  329. #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0}
  330. #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em}
  331. #footnotes .footnote a:first-of-type{font-weight:bold;text-decoration:none;margin-left:-1.05em}
  332. #footnotes .footnote:last-of-type{margin-bottom:0}
  333. #content #footnotes{margin-top:-.625em;margin-bottom:0;padding:.75em 0}
  334. .gist .file-data>table{border:0;background:#fff;width:100%;margin-bottom:0}
  335. .gist .file-data>table td.line-data{width:99%}
  336. div.unbreakable{page-break-inside:avoid}
  337. .big{font-size:larger}
  338. .small{font-size:smaller}
  339. .underline{text-decoration:underline}
  340. .overline{text-decoration:overline}
  341. .line-through{text-decoration:line-through}
  342. .aqua{color:#00bfbf}
  343. .aqua-background{background-color:#00fafa}
  344. .black{color:#000}
  345. .black-background{background-color:#000}
  346. .blue{color:#0000bf}
  347. .blue-background{background-color:#0000fa}
  348. .fuchsia{color:#bf00bf}
  349. .fuchsia-background{background-color:#fa00fa}
  350. .gray{color:#606060}
  351. .gray-background{background-color:#7d7d7d}
  352. .green{color:#006000}
  353. .green-background{background-color:#007d00}
  354. .lime{color:#00bf00}
  355. .lime-background{background-color:#00fa00}
  356. .maroon{color:#600000}
  357. .maroon-background{background-color:#7d0000}
  358. .navy{color:#000060}
  359. .navy-background{background-color:#00007d}
  360. .olive{color:#606000}
  361. .olive-background{background-color:#7d7d00}
  362. .purple{color:#600060}
  363. .purple-background{background-color:#7d007d}
  364. .red{color:#bf0000}
  365. .red-background{background-color:#fa0000}
  366. .silver{color:#909090}
  367. .silver-background{background-color:#bcbcbc}
  368. .teal{color:#006060}
  369. .teal-background{background-color:#007d7d}
  370. .white{color:#bfbfbf}
  371. .white-background{background-color:#fafafa}
  372. .yellow{color:#bfbf00}
  373. .yellow-background{background-color:#fafa00}
  374. span.icon>.fa{cursor:default}
  375. a span.icon>.fa{cursor:inherit}
  376. .admonitionblock td.icon [class^="fa icon-"]{font-size:2.5em;text-shadow:1px 1px 2px rgba(0,0,0,.5);cursor:default}
  377. .admonitionblock td.icon .icon-note::before{content:"\f05a";color:#19407c}
  378. .admonitionblock td.icon .icon-tip::before{content:"\f0eb";text-shadow:1px 1px 2px rgba(155,155,0,.8);color:#111}
  379. .admonitionblock td.icon .icon-warning::before{content:"\f071";color:#bf6900}
  380. .admonitionblock td.icon .icon-caution::before{content:"\f06d";color:#bf3400}
  381. .admonitionblock td.icon .icon-important::before{content:"\f06a";color:#bf0000}
  382. .conum[data-value]{display:inline-block;color:#fff!important;background-color:rgba(0,0,0,.8);-webkit-border-radius:100px;border-radius:100px;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:"Open Sans","DejaVu Sans",sans-serif;font-style:normal;font-weight:bold}
  383. .conum[data-value] *{color:#fff!important}
  384. .conum[data-value]+b{display:none}
  385. .conum[data-value]::after{content:attr(data-value)}
  386. pre .conum[data-value]{position:relative;top:-.125em}
  387. b.conum *{color:inherit!important}
  388. .conum:not([data-value]):empty{display:none}
  389. dt,th.tableblock,td.content,div.footnote{text-rendering:optimizeLegibility}
  390. h1,h2,p,td.content,span.alt{letter-spacing:-.01em}
  391. p strong,td.content strong,div.footnote strong{letter-spacing:-.005em}
  392. p,blockquote,dt,td.content,span.alt{font-size:1.0625rem}
  393. p{margin-bottom:1.25rem}
  394. .sidebarblock p,.sidebarblock dt,.sidebarblock td.content,p.tableblock{font-size:1em}
  395. .exampleblock>.content{background-color:#fffef7;border-color:#e0e0dc;-webkit-box-shadow:0 1px 4px #e0e0dc;box-shadow:0 1px 4px #e0e0dc}
  396. .print-only{display:none!important}
  397. @page{margin:1.25cm .75cm}
  398. @media print{*{-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important}
  399. html{font-size:80%}
  400. a{color:inherit!important;text-decoration:underline!important}
  401. a.bare,a[href^="#"],a[href^="mailto:"]{text-decoration:none!important}
  402. a[href^="http:"]:not(.bare)::after,a[href^="https:"]:not(.bare)::after{content:"(" attr(href) ")";display:inline-block;font-size:.875em;padding-left:.25em}
  403. abbr[title]::after{content:" (" attr(title) ")"}
  404. pre,blockquote,tr,img,object,svg{page-break-inside:avoid}
  405. thead{display:table-header-group}
  406. svg{max-width:100%}
  407. p,blockquote,dt,td.content{font-size:1em;orphans:3;widows:3}
  408. h2,h3,#toctitle,.sidebarblock>.content>.title{page-break-after:avoid}
  409. #toc,.sidebarblock,.exampleblock>.content{background:none!important}
  410. #toc{border-bottom:1px solid #dddddf!important;padding-bottom:0!important}
  411. body.book #header{text-align:center}
  412. body.book #header>h1:first-child{border:0!important;margin:2.5em 0 1em}
  413. body.book #header .details{border:0!important;display:block;padding:0!important}
  414. body.book #header .details span:first-child{margin-left:0!important}
  415. body.book #header .details br{display:block}
  416. body.book #header .details br+span::before{content:none!important}
  417. body.book #toc{border:0!important;text-align:left!important;padding:0!important;margin:0!important}
  418. body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-break-before:always}
  419. .listingblock code[data-lang]::before{display:block}
  420. #footer{padding:0 .9375em}
  421. .hide-on-print{display:none!important}
  422. .print-only{display:block!important}
  423. .hide-for-print{display:none!important}
  424. .show-for-print{display:inherit!important}}
  425. @media print,amzn-kf8{#header>h1:first-child{margin-top:1.25rem}
  426. .sect1{padding:0!important}
  427. .sect1+.sect1{border:0}
  428. #footer{background:none}
  429. #footer-text{color:rgba(0,0,0,.6);font-size:.9em}}
  430. @media amzn-kf8{#header,#content,#footnotes,#footer{padding:0}}
  431. </style>
  432. </head>
  433. <body class="book toc2 toc-left">
  434. <div id="header">
  435. <h1>RaySession Manual</h1>
  436. <div id="toc" class="toc2">
  437. <div id="toctitle">Table of Contents</div>
  438. <ul class="sectlevel1">
  439. <li><a href="#_introduction">Introduction</a></li>
  440. <li><a href="#_simple_use_example">Simple use example</a></li>
  441. <li><a href="#_overview_of_session_tools">Overview of session tools</a>
  442. <ul class="sectlevel2">
  443. <li><a href="#_top_row">Top row</a></li>
  444. <li><a href="#_bottom_row">Bottom row</a></li>
  445. </ul>
  446. </li>
  447. <li><a href="#_overview_of_a_client">Overview of a client</a></li>
  448. <li><a href="#add_application">Add application window</a></li>
  449. <li><a href="#add_executable">Add executable window</a></li>
  450. <li><a href="#client_properties">Client Properties Window</a>
  451. <ul class="sectlevel2">
  452. <li><a href="#_general_tab"><strong>General</strong> tab</a></li>
  453. <li><a href="#_nsm_tab"><strong>NSM</strong> tab</a></li>
  454. <li><a href="#_ray_hack_tab"><strong>Ray-Hack</strong> tab</a></li>
  455. </ul>
  456. </li>
  457. <li><a href="#_network_sessions">Network Sessions</a></li>
  458. <li><a href="#add_program_not_provided">Add a program not provided</a></li>
  459. <li><a href="#_import_an_nsm_session">Import an NSM session</a></li>
  460. <li><a href="#_the_daemons_options">The daemon&#8217;s options</a>
  461. <ul class="sectlevel2">
  462. <li><a href="#session_folder_shortcuts">Provide bookmarks for session folder</a></li>
  463. <li><a href="#_auto_snapshot_at_save">Auto Snapshot at Save</a></li>
  464. <li><a href="#_desktops_memory">Desktops Memory</a></li>
  465. <li><a href="#_session_scripts">Session scripts</a></li>
  466. <li><a href="#_remember_optional_gui_states">Remember optional GUI states</a></li>
  467. </ul>
  468. </li>
  469. <li><a href="#snapshots">Snapshots</a></li>
  470. <li><a href="#session_scripts">Session scripts</a></li>
  471. <li><a href="#jack_configuration_memory">JACK configuration memory</a>
  472. <ul class="sectlevel2">
  473. <li><a href="#_in_which_cases_to_use_it">In which cases to use it</a></li>
  474. <li><a href="#_usage">Usage</a></li>
  475. <li><a href="#_working_principle">Working principle</a></li>
  476. <li><a href="#_special_cases">Special cases</a></li>
  477. </ul>
  478. </li>
  479. <li><a href="#under_the_hood">Under the hood</a></li>
  480. <li><a href="#ray_control">Control RaySession from the command line</a></li>
  481. <li><a href="#_frequently_asked_questions">Frequently Asked Questions</a></li>
  482. </ul>
  483. </div>
  484. </div>
  485. <div id="content">
  486. <div id="preamble">
  487. <div class="sectionbody">
  488. <div class="paragraph text-right">
  489. <p><em>Other languages:</em> <span class="image"><a class="image" href="../fr/manual.html"><img src="images/flag_fr.jpeg" alt="EN" width="30" height="20"></a></span></p>
  490. </div>
  491. <div class="paragraph">
  492. <p><em>for version 0.10.0</em></p>
  493. </div>
  494. </div>
  495. </div>
  496. <div class="sect1">
  497. <h2 id="_introduction">Introduction</h2>
  498. <div class="sectionbody">
  499. <div class="paragraph">
  500. <p>RaySession is an audio session manager for GNU / Linux. It allows you to start several audio programs in the same session, to save their projects together and thus to avoid multiple operations to return to a given configuration.</p>
  501. </div>
  502. <div class="paragraph">
  503. <p>To be launched in RaySession, it is very much preferable that these audio programs be compatible with the NSM protocol, and many are already, among others Ardour, Qtractor, Carla, Guitarix, Mamba, Patroneo, ZynAddSubFx &#8230;&#8203;</p>
  504. </div>
  505. <div class="paragraph">
  506. <p>RaySession assumes that your audio setup is working for audio production, if not, fix this first and don&#8217;t waste your time trying to use RaySession.</p>
  507. </div>
  508. <div class="paragraph">
  509. <p>Now let&#8217;s see how to use it.</p>
  510. </div>
  511. </div>
  512. </div>
  513. <div class="sect1">
  514. <h2 id="_simple_use_example">Simple use example</h2>
  515. <div class="sectionbody">
  516. <div class="paragraph">
  517. <p>For audio production under GNU / linux, it is highly recommended to use the JACK server. Before creating or starting a session, make sure the JACK server is running, RaySession has no direct relation to JACK, however the programs you are going to launch in your session will need it.</p>
  518. </div>
  519. <div class="paragraph">
  520. <p>Let&#8217;s take an example where to compose a song, we will need Ardour and Guitarix softwares, make sure that these 2 programs are installed.</p>
  521. </div>
  522. <div class="paragraph">
  523. <p>To create a new session, click at the top left on New Session (<em>or Ctrl+N</em>). A dialog window appears.</p>
  524. </div>
  525. <div class="imageblock">
  526. <div class="content">
  527. <img src="images/example_new_session.png" alt="New session">
  528. </div>
  529. </div>
  530. <div class="paragraph">
  531. <p>At the top right you can see the root session folder, this is where the sessions will be saved (a RaySession session being a folder containing a file <code>raysession.xml</code>).</p>
  532. </div>
  533. <div class="paragraph">
  534. <p>Enter the name you want for this new session in the field provided. To put your new session in a sub-folder, type the name as follows: <code>sub-folder/my session</code>.</p>
  535. </div>
  536. <div class="paragraph">
  537. <p>The session template multiple choice box lets you choose between</p>
  538. </div>
  539. <div class="ulist">
  540. <ul>
  541. <li>
  542. <p>An empty session template</p>
  543. </li>
  544. <li>
  545. <p>A template with memory of JACK connections</p>
  546. </li>
  547. <li>
  548. <p>A scripted template with memory of the JACK configuration</p>
  549. </li>
  550. <li>
  551. <p>A template with basic session scripts (for advanced users with shell scripting knowledge)</p>
  552. </li>
  553. <li>
  554. <p>All the session templates that you have created yourself.</p>
  555. </li>
  556. </ul>
  557. </div>
  558. <div class="paragraph">
  559. <p>First, keep the template on <strong>With JACK patch memory</strong> , click <strong>Ok</strong> to start your session.</p>
  560. </div>
  561. <div class="imageblock">
  562. <div class="content">
  563. <img src="images/example_session_launched.png" alt="Session launched">
  564. </div>
  565. </div>
  566. <div class="paragraph">
  567. <p>The session part of the window becomes active, at the top is written the name of your session, and your session already contains a client program called <strong>JACK Connections</strong>. This client will save and redo the connections of the JACK patchbay.</p>
  568. </div>
  569. <div class="paragraph">
  570. <p>To add Ardour to your session, click on the <strong>Application</strong> button (<em>or Ctrl+A</em>), the application dialog will appear (more details in the <a href="#add_application">Add application window</a> section). On the right side, find Ardour (Depending on your version of ardour, it may be called Ardour5 or Ardour6) and double-click on it.</p>
  571. </div>
  572. <div class="imageblock">
  573. <div class="content">
  574. <img src="images/example_add_ardour.png" alt="Add Ardour to the session" width="640" height="480">
  575. </div>
  576. </div>
  577. <div class="paragraph">
  578. <p>An Ardour client appears below JACK Connections and Ardour starts up (normally directly with an empty Ardour session).</p>
  579. </div>
  580. <div class="paragraph">
  581. <p>Do the same with Guitarix.</p>
  582. </div>
  583. <div class="imageblock">
  584. <div class="content">
  585. <img src="images/example_session_ready.png" alt="Session ready with Ardour and Guitarix">
  586. </div>
  587. </div>
  588. <div class="paragraph">
  589. <p>In Ardour, add a track (Menu: Track → Add a track), in the Ardour window that has appeared, name the track <strong>Guitar</strong> and put the multiple choice box configuration on <em>Stereo</em>.</p>
  590. </div>
  591. <div class="imageblock">
  592. <div class="content">
  593. <a class="image" href="images/example_ardour_track.png"><img src="images/example_ardour_track.png" alt="Add a track in Ardour for Guitarix" width="640" height="480"></a>
  594. </div>
  595. </div>
  596. <div class="paragraph">
  597. <p>In your patchbay (Catia, QJackCtl or other) or in Ardour, connect the Guitarix input to a hardware input and the Guitarix outputs to the inputs of this new Ardour track. Make sure your Guitar track inputs are not connected to the hardware inputs.</p>
  598. </div>
  599. <div class="imageblock">
  600. <div class="content">
  601. <a class="image" href="images/example_catia.png"><img src="images/example_catia.png" alt="JACK patchbay with Catia"></a>
  602. </div>
  603. </div>
  604. <div class="paragraph">
  605. <p>Here you have a configuration where you can directly record the sound of your guitar processed by Guitarix in Ardour. If you don&#8217;t have a guitar, all you have to do is sing out of tune into a mic or tap a cushion, this is just an example.</p>
  606. </div>
  607. <div class="paragraph">
  608. <p>Now go back to the RaySession window, and save the current session by clicking the floppy disk button to the top right (<em>or Ctrl+S</em>). It is highly recommended because it is very practical to assign a global keyboard shortcut of your system to the save of the current session. This will depend on your desktop environment, but just assign the <em>Ctrl+Meta+S</em> shortcut to the command <code>ray_control save</code> (Meta is the Windows key), so you won&#8217;t have to return to the RaySession window to save the session.</p>
  609. </div>
  610. <div class="paragraph">
  611. <p>Now close the session by clicking on the red cross at the top right (<em>or Ctrl+W</em>).</p>
  612. </div>
  613. <div class="paragraph">
  614. <p>Once the session is closed, click on <strong>Open Session</strong> (<em>or Ctrl+O</em>), double-click on the session you just created to re-open it.</p>
  615. </div>
  616. <div class="paragraph">
  617. <p>You must find the programs and their projects as well as the JACK connections as they were when you closed the session, and everything therefore works without any further manipulation.
  618. One of the advantages of modularity in this specific case is that once you have finished taking the guitar, you can stop Guitarix so as not to overload the processor unnecessarily, and it will still be easy to restart it if necessary.</p>
  619. </div>
  620. </div>
  621. </div>
  622. <div class="sect1">
  623. <h2 id="_overview_of_session_tools">Overview of session tools</h2>
  624. <div class="sectionbody">
  625. <div class="sect2">
  626. <h3 id="_top_row">Top row</h3>
  627. <div class="imageblock">
  628. <div class="content">
  629. <img src="images/session_top_line.png" alt="Top line of the session frame">
  630. </div>
  631. </div>
  632. <div class="paragraph">
  633. <p>From left to right:</p>
  634. </div>
  635. <div class="ulist">
  636. <ul>
  637. <li>
  638. <p>the menu button gives you access to</p>
  639. <div class="ulist">
  640. <ul>
  641. <li>
  642. <p><strong>save the current session as a template</strong><br>
  643. The created session template will then appear in the multiple choice of session templates in the New Session dialog window. Be careful, however, all the files of the session will be saved in the template, so you should not do this if the session contains a lot of audio files. firstly, the copy will be long, secondly, you run the risk of unnecessarily multi-copying files which will take up a lot of space.</p>
  644. </li>
  645. <li>
  646. <p><strong>Duplicate the current session</strong><br>
  647. This is the equivalent of the well-known "Save As &#8230;&#8203;", except that RaySession has to stop and restart most programs to switch between sessions. Avoid duplicating a session with a lot of audio files, it could take a long time, but fortunately such an operation can be undone.</p>
  648. </li>
  649. <li>
  650. <p><strong>Rename the session</strong><br>
  651. It will then be necessary to stop all the clients.<br>
  652. Alternatively, you can rename a session by duplicating it and then deleting the folder from the initial session.<br>
  653. You can also rename a session by renaming its folder, but BE CAREFUL, this session must not be loaded!</p>
  654. </li>
  655. </ul>
  656. </div>
  657. </li>
  658. <li>
  659. <p>the pencil-shaped button gives you access to the session notes.<br>
  660. Write here the information you need, the physical settings, the lyrics of a song, the recipe for granny&#8217;s cassoulet &#8230;&#8203; however do not write a novel in 3 volumes, other tools are much more suitable, and notes are limited to 65,000 characters for technical reasons.
  661. The pencil is green when notes exist, it is orange when the notes window is open, otherwise it is transparent.</p>
  662. </li>
  663. <li>
  664. <p>the name of the loaded session (here <strong>my session</strong>)</p>
  665. </li>
  666. <li>
  667. <p>the <strong>Abort session</strong> button which allows you to close the session without saving it</p>
  668. </li>
  669. <li>
  670. <p>the <strong>Close session</strong> button ,which saves and closes the current session.<br>
  671. Note that you do not need to close the current session to start another. Some clients are able to switch from one session to another and it may take a lot less time than closing everything and restarting everything.</p>
  672. </li>
  673. </ul>
  674. </div>
  675. </div>
  676. <div class="sect2">
  677. <h3 id="_bottom_row">Bottom row</h3>
  678. <div class="imageblock">
  679. <div class="content">
  680. <img src="images/session_bottom_line.png" alt="Bottom line of the session frame">
  681. </div>
  682. </div>
  683. <div class="paragraph">
  684. <p>From left to right:</p>
  685. </div>
  686. <div class="ulist">
  687. <ul>
  688. <li>
  689. <p>the folder-shaped button to open the session folder with your file manager</p>
  690. </li>
  691. <li>
  692. <p>the yellow star-shaped button that pulls down a menu containing your favorite applications if there are any</p>
  693. </li>
  694. <li>
  695. <p>the <strong>Application</strong> button which allows you to add to the session a factory application template or that you have created yourself. This is the recommended method for adding a client. see <a href="#add_application">Add application window</a>.</p>
  696. </li>
  697. <li>
  698. <p>the <strong>Executable</strong> button which allows a program to be added to the session from its executable. You will need it if you want to add a program for which there is no template. see <a href="#add_executable">Add executable window</a>.</p>
  699. </li>
  700. <li>
  701. <p>the reverse button to return to a previous state of the session. This requires having the program <code>git</code> installed, else this button will not appears.<br>
  702. See <a href="#snapshots">Snapshots</a> for more details.</p>
  703. </li>
  704. <li>
  705. <p>the server status indicator.<br>
  706. Server states can actually be very stealthy, but they are displayed for a long enough time that you can see them.
  707. The server status can be:</p>
  708. <div class="ulist">
  709. <ul>
  710. <li>
  711. <p><strong>off</strong>: no session loaded</p>
  712. </li>
  713. <li>
  714. <p><strong>ready</strong>: the session is running</p>
  715. </li>
  716. <li>
  717. <p><strong>launch</strong>: launch of the session&#8217;s programs</p>
  718. </li>
  719. <li>
  720. <p><strong>copy</strong>: a copy is in progress, for a session duplication or to save the session as a template</p>
  721. </li>
  722. <li>
  723. <p><strong>close</strong>: the session is closing</p>
  724. </li>
  725. <li>
  726. <p><strong>snapshot</strong>: A snapshot of the session is being taken, so you can revert to the current session state.<br>
  727. see <a href="#snapshots">Snapshots</a>.</p>
  728. </li>
  729. <li>
  730. <p><strong>wait</strong>: The server waits for you to close yourself non-saveable programs</p>
  731. </li>
  732. <li>
  733. <p><strong>script</strong>: a script is activated</p>
  734. </li>
  735. </ul>
  736. </div>
  737. <div class="paragraph">
  738. <p>An information or progress window is displayed if you click this status indicator if it is on <strong>copy</strong> , <strong>snapshot</strong>, or <strong>wait</strong>.</p>
  739. </div>
  740. </li>
  741. <li>
  742. <p>the <strong>Save Session</strong> button</p>
  743. </li>
  744. <li>
  745. <p>the trash, here you will find the clients that you have deleted. You can then restore them in the session or permanently delete all the files they created in the session folder.</p>
  746. </li>
  747. </ul>
  748. </div>
  749. </div>
  750. </div>
  751. </div>
  752. <div class="sect1">
  753. <h2 id="_overview_of_a_client">Overview of a client</h2>
  754. <div class="sectionbody">
  755. <div class="imageblock">
  756. <div class="content">
  757. <img src="images/client_carla.png" alt="trame d&#8217;un client">
  758. </div>
  759. </div>
  760. <div class="paragraph">
  761. <p>A client contains from left to right:</p>
  762. </div>
  763. <div class="ulist">
  764. <ul>
  765. <li>
  766. <p>The client icon that you can click to bring up a menu with the following actions</p>
  767. <div class="ulist">
  768. <ul>
  769. <li>
  770. <p><strong>Save as application template</strong><br>
  771. The created template will then appear in the <a href="#add_application">Add application window</a>. This then allows you to directly launch a client with the desired configuration (Ardour with such tracks, Hydrogen with such drumkit…). Be careful, this copies all the client&#8217;s files so avoid doing this if the client contains a lot of audio files.</p>
  772. </li>
  773. <li>
  774. <p><strong>Rename</strong><br>
  775. Change the client name located to the right of its icon, it is a purely visual name that can help you organize yourself.</p>
  776. </li>
  777. <li>
  778. <p><strong>return to a previous state</strong><br>
  779. Returns only the client to a previous session state, see <a href="#snapshots">Snapshots</a>.<br>
  780. However, you will not be able to go back to a state prior to a session renaming, so you must go back the entire session.</p>
  781. </li>
  782. <li>
  783. <p><strong>Properties</strong><br>
  784. Displays the client properties window</p>
  785. </li>
  786. </ul>
  787. </div>
  788. <div class="paragraph">
  789. <p>This menu is also accessible by right-clicking anywhere on the client.</p>
  790. </div>
  791. </li>
  792. <li>
  793. <p>The name of the client (here Carla), which can be easily changed by right-clicking → Rename</p>
  794. </li>
  795. <li>
  796. <p>depending on the type and capacity of the client you can see here</p>
  797. <div class="ulist">
  798. <ul>
  799. <li>
  800. <p>an eye (possibly crossed out), this means that the client is NSM compatible and is capable to show or hide its window by clicking on the eye.</p>
  801. </li>
  802. <li>
  803. <p>a <strong>Hack</strong> button, it means that the client is not NSM compatible, or at least that it is not launched with this protocol. Clicking on <strong>Hack</strong> allows to change the way it is launched by opening the client properties window on the Ray-Hack tab.</p>
  804. </li>
  805. </ul>
  806. </div>
  807. </li>
  808. <li>
  809. <p>The Start button which is grayed out if the client is already started.</p>
  810. </li>
  811. <li>
  812. <p>the Stop button which is grayed out if the client is not started.<br>
  813. If you stop the client and it is still not stopped after a while, the button turns red and you can click on it to kill the client. But stay relaxed, and only use it if it really seems completely inert, it could cause problems, even if nobody will send you to jail.</p>
  814. </li>
  815. <li>
  816. <p>the state of the client which can be</p>
  817. <div class="ulist">
  818. <ul>
  819. <li>
  820. <p><strong>stopped</strong>: the client is stopped</p>
  821. </li>
  822. <li>
  823. <p><strong>ready</strong>: the client is running and everything is ok</p>
  824. </li>
  825. <li>
  826. <p><strong>open</strong>: the program is opening its project, please wait a little bit.</p>
  827. </li>
  828. <li>
  829. <p><strong>close</strong>: the program is closing</p>
  830. </li>
  831. <li>
  832. <p><strong>launch</strong>: if it stays on the launched state, it means</p>
  833. <div class="ulist">
  834. <ul>
  835. <li>
  836. <p>if it is a Ray-Hack client, that it does not have a configuration file</p>
  837. </li>
  838. <li>
  839. <p>if it is started as an NSM client, if it is not NSM compatible, and therefore any save is in vain. It may be practical to launch certain programs in this way, such as a patchbay (Catia) or a utility whose state you do not need to save (Qrest).</p>
  840. </li>
  841. </ul>
  842. </div>
  843. </li>
  844. <li>
  845. <p><strong>switch</strong>: the client changes projects during a session switch</p>
  846. </li>
  847. </ul>
  848. </div>
  849. </li>
  850. <li>
  851. <p>the floppy disk button that allows you to save the client.<br>
  852. If over this floppy you see</p>
  853. <div class="ulist">
  854. <ul>
  855. <li>
  856. <p>three red dots: the client contains unsaved changes</p>
  857. </li>
  858. <li>
  859. <p>a green V: the client does not contain unsaved changes</p>
  860. </li>
  861. <li>
  862. <p>an orange exclamation mark: It is not an NSM client, and it is impossible to save its project, you will have to do it yourself</p>
  863. </li>
  864. </ul>
  865. </div>
  866. </li>
  867. <li>
  868. <p>the red cross which allows you to send the client to the trash</p>
  869. </li>
  870. </ul>
  871. </div>
  872. </div>
  873. </div>
  874. <div class="sect1">
  875. <h2 id="add_application">Add application window</h2>
  876. <div class="sectionbody">
  877. <div class="paragraph">
  878. <p>The window for adding application is launched by clicking on the <strong>Application</strong> button (<em>or Ctrl+A</em>).</p>
  879. </div>
  880. <div class="imageblock">
  881. <div class="content">
  882. <img src="images/add_application.png" alt="Add Application window">
  883. </div>
  884. </div>
  885. <div class="paragraph">
  886. <p>The list of available applications is on the right. If the software you want to add is not present here, see <a href="#add_program_not_provided">Add a program not provided</a>.</p>
  887. </div>
  888. <hr>
  889. <div class="paragraph">
  890. <p>Top left is the filter block</p>
  891. </div>
  892. <div class="imageblock">
  893. <div class="content">
  894. <img src="images/add_application_filter.png" alt="Filter block of Add Application window">
  895. </div>
  896. </div>
  897. <div class="ulist">
  898. <ul>
  899. <li>
  900. <p>the filter field allows you to enter a character string, only templates containing this character string in their name will appear.</p>
  901. </li>
  902. <li>
  903. <p>the <strong>Factory</strong> checkbox displays the templates integrated into RaySession or provided by your distribution</p>
  904. </li>
  905. <li>
  906. <p><strong>user</strong> displays the templates created by the user by doing <strong>Save as application template</strong></p>
  907. </li>
  908. <li>
  909. <p><strong>NSM</strong> displays the NSM compatible clients, or launched as such</p>
  910. </li>
  911. <li>
  912. <p><strong>Ray-Hack</strong> displays clients launched without NSM protocol</p>
  913. </li>
  914. </ul>
  915. </div>
  916. <hr>
  917. <div class="paragraph">
  918. <p>Bottom left the information block on the selected template on the right</p>
  919. </div>
  920. <div class="imageblock">
  921. <div class="content">
  922. <img src="images/add_application_infos.png" alt="Informations block of Add Application window">
  923. </div>
  924. </div>
  925. <div class="ulist">
  926. <ul>
  927. <li>
  928. <p>at the top right of this block, a star, click on it to add it to favorites or remove it from favorites</p>
  929. </li>
  930. <li>
  931. <p>If it is a user template, a <strong>User</strong> button allows you to delete this template</p>
  932. </li>
  933. <li>
  934. <p>the button at the bottom right of this block allows you to access all the properties of the template, as in the <a href="#client_properties">Client Properties Window</a>, except that nothing is editable.</p>
  935. </li>
  936. </ul>
  937. </div>
  938. <table class="tableblock frame-all grid-all stretch">
  939. <colgroup>
  940. <col style="width: 100%;">
  941. </colgroup>
  942. <tbody>
  943. <tr>
  944. <td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Tip:</strong> This window is designed for very fast app addition, and behaves like <em>Alt+F2</em> on your desktop.<br>
  945. For example, from the main RaySession window, to add Carla type <em>Ctrl+A</em> , then <code>carla</code>, select the correct template with the Up/Down arrows, then Enter.</p></td>
  946. </tr>
  947. </tbody>
  948. </table>
  949. </div>
  950. </div>
  951. <div class="sect1">
  952. <h2 id="add_executable">Add executable window</h2>
  953. <div class="sectionbody">
  954. <div class="paragraph">
  955. <p>The window for adding an executable is launched by clicking on the <strong>Executable</strong> button (<em>or Ctrl+E</em>).</p>
  956. </div>
  957. <div class="imageblock">
  958. <div class="content">
  959. <img src="images/add_executable.png" alt="Add Executable window">
  960. </div>
  961. </div>
  962. <div class="paragraph">
  963. <p>You will need to go through this window if you want to add a client that does not appear in the list of the <a href="#add_application">Add application window</a>. This window is very simple, a field to enter the executable, an <strong>NSM Protocol</strong> box, an advanced options button.</p>
  964. </div>
  965. <div class="paragraph">
  966. <p>Leave the NSM protocol checked if:</p>
  967. </div>
  968. <div class="ulist">
  969. <ul>
  970. <li>
  971. <p>the program to launch is NSM compatible (if it is not in the list of applications, please let us know!)</p>
  972. </li>
  973. <li>
  974. <p>the program to run is a utility for which there is no need to save any project (QRest, Catia…).
  975. The state of such a program will remain on <strong>launch</strong> and will never be <strong>ready</strong>, it is irrelevant since they do not have a project to save.</p>
  976. </li>
  977. </ul>
  978. </div>
  979. <div class="paragraph">
  980. <p>If you leave the <strong>NSM protocol</strong> checked, it will not be possible to add an executable to an absolute path, the executable must be located in a location provided for this purpose (you will not be able to launch <code>/usr/bin/my_program</code>, but <code>my_program</code>). You cannot enter arguments here, with or without the NSM protocol.</p>
  981. </div>
  982. <div class="paragraph">
  983. <p>Unchecking <strong>NSM Protocol</strong> is equivalent to launching the program with the Ray-Hack pseudo-protocol.</p>
  984. </div>
  985. <div class="paragraph">
  986. <p>If you click on the <strong>advanced options</strong> button, an advanced options block appears with</p>
  987. </div>
  988. <div class="imageblock">
  989. <div class="content">
  990. <img src="images/add_executable_plus.png" alt="Advanced Add Executable window">
  991. </div>
  992. </div>
  993. <div class="ulist">
  994. <ul>
  995. <li>
  996. <p>the <strong>Start the client</strong> checkbox , if you uncheck it the client will be added but not launched</p>
  997. </li>
  998. <li>
  999. <p>the multiple choice box <strong>Prefix Mode</strong>, this defines the prefix of the name of the client&#8217;s files</p>
  1000. <div class="ulist">
  1001. <ul>
  1002. <li>
  1003. <p>on <strong>Session Name</strong>, the file names will start with the session name, this is the default value</p>
  1004. </li>
  1005. <li>
  1006. <p>on <strong>Client Name</strong>, the file names will begin with the name provided by the client itself, as is the case with New Session Manager</p>
  1007. </li>
  1008. <li>
  1009. <p>on <strong>Custom</strong>, the file names will start with the value you enter in the <strong>Prefix</strong> field just below.</p>
  1010. </li>
  1011. </ul>
  1012. </div>
  1013. </li>
  1014. <li>
  1015. <p>the <strong>Prefix</strong> field which is only active if <strong>Prefix Mode</strong> is set to Custom.</p>
  1016. </li>
  1017. <li>
  1018. <p>the <strong>Client ID</strong> field (client identifier). Enter only alphanumeric characters or '_'.<br>
  1019. This is useful if you want to catch and launch existing projects in the session with an executable. This is useful if you want to load in the session projects created outside a session. There is no method to make it easier, it depends a lot on the program you are using. RaySession will insult you if you enter a client ID that already exists in the session.</p>
  1020. </li>
  1021. </ul>
  1022. </div>
  1023. </div>
  1024. </div>
  1025. <div class="sect1">
  1026. <h2 id="client_properties">Client Properties Window</h2>
  1027. <div class="sectionbody">
  1028. <div class="paragraph">
  1029. <p>A client&#8217;s properties window opens from the client menu by clicking Properties.</p>
  1030. </div>
  1031. <div class="paragraph">
  1032. <p>The client properties window has 2 tabs, a General tab and a tab specific to the protocol used by the client. Depending on the client protocol, the second tab is called NSM, Ray-Hack or Ray-Net.</p>
  1033. </div>
  1034. <div class="sect2">
  1035. <h3 id="_general_tab"><strong>General</strong> tab</h3>
  1036. <div class="imageblock">
  1037. <div class="content">
  1038. <img src="images/properties_general.png" alt="Client properties">
  1039. </div>
  1040. </div>
  1041. <div class="paragraph">
  1042. <p>The first block of the General tab displays the client ID, protocol, label, description and icon.<br>
  1043. If you do not edit them, the label, description and icon are taken from the .desktop file associated with the launched executable, if found.<br>
  1044. If you want to know the .desktop file used, type <code>ray_control client CLIENT_ID get_properties</code> in a terminal (replacing CLIENT_ID with the client identifier).</p>
  1045. </div>
  1046. <div class="paragraph">
  1047. <p>Then comes the block of snapshots, see <a href="#snapshots">Snapshots</a>.</p>
  1048. </div>
  1049. <div class="paragraph">
  1050. <p>The checkbox <strong>Prevent stop without recent or possible save</strong> concerns the window that may appear when you ask a client to stop. If this box is unchecked, then the client will be stopped without a window warning you.<br>
  1051. If the box is checked, the window will warn you when</p>
  1052. </div>
  1053. <div class="ulist">
  1054. <ul>
  1055. <li>
  1056. <p>the client is unsaveable from RaySession</p>
  1057. </li>
  1058. <li>
  1059. <p>we know that the client contains unsaved changes</p>
  1060. </li>
  1061. <li>
  1062. <p>the client appears not to have been saved for more than a minute</p>
  1063. </li>
  1064. </ul>
  1065. </div>
  1066. <div class="paragraph">
  1067. <p>Whether or not to check this box depends only on the importance of your client&#8217;s save, it&#8217;s up to you to judge. That said, if the warning is annoying, just check <strong>Don&#8217;t prevent to stop this client again</strong> in the warning window and <strong>Prevent stop without recent or possible save</strong> will be unchecked.</p>
  1068. </div>
  1069. </div>
  1070. <div class="sect2">
  1071. <h3 id="_nsm_tab"><strong>NSM</strong> tab</h3>
  1072. <div class="imageblock">
  1073. <div class="content">
  1074. <img src="images/properties_nsm.png" alt="NSM Client properties">
  1075. </div>
  1076. </div>
  1077. <div class="paragraph">
  1078. <p>The <strong>Name</strong> of the client here is provided by the client himself.<br>
  1079. The <strong>capabilities</strong> are those which are transmitted by the client at its start-up. If the client has not yet been started, this field is therefore empty.</p>
  1080. </div>
  1081. <div class="paragraph">
  1082. <p>Editing the executable allows you to change the command that launches the client. Only change it to another executable capable of loading the existing client&#8217;s project. This is useful for example if you have two versions of Ardour, one running with the command <code>ardour</code>, the other with <code>Ardour6</code>, and you want to change which version to use.</p>
  1083. </div>
  1084. <div class="paragraph">
  1085. <p>Editing the arguments is strongly discouraged, and is especially not suitable for loading a file as an argument.</p>
  1086. </div>
  1087. </div>
  1088. <div class="sect2">
  1089. <h3 id="_ray_hack_tab"><strong>Ray-Hack</strong> tab</h3>
  1090. <div class="paragraph">
  1091. <p>If the client is a Ray-Hack type, here many fields are available to you. This is not necessarily good news, the idea is to be able to load a program into the session that is not (yet) compatible with NSM. If properly implemented in the client, the NSM protocol will always be much more comfortable to use and more reliable than this hack. That said, if we can expect the NSM implementation in all audio programs, this is not the case for other programs which can still be useful in the session.</p>
  1092. </div>
  1093. <div class="paragraph">
  1094. <p>The Ray-Hack pseudo-protocol uses the attributes of proxies (nsm-proxy or ray-proxy), except that the client is launched directly in the session.</p>
  1095. </div>
  1096. <div class="imageblock">
  1097. <div class="content">
  1098. <img src="images/properties_ray_hack.png" alt="Ray-Hack Client properties">
  1099. </div>
  1100. </div>
  1101. <div class="sect3">
  1102. <h4 id="_launch_block">Launch block</h4>
  1103. <div class="imageblock">
  1104. <div class="content">
  1105. <img src="images/ray_hack_launch.png" alt="ray hack launch">
  1106. </div>
  1107. </div>
  1108. <div class="ulist">
  1109. <ul>
  1110. <li>
  1111. <p>the <strong>Folder</strong> is the folder name of this client in the session folder. The program is launched from this folder.</p>
  1112. </li>
  1113. <li>
  1114. <p>the <strong>Executable</strong> is the command that starts the program</p>
  1115. </li>
  1116. <li>
  1117. <p>The <strong>Config file</strong> will be the project file that we want to open with this program. It is more than highly recommended to reference a file in the client folder.<br>
  1118. The variable <code>$RAY_SESSION_NAME</code> will be automatically replaced by the name of the session.<br>
  1119. If this field is empty, the client status will always remain <strong>launch</strong> and will never be <strong>ready</strong>. In some cases, therefore, it may be useful to type anything here rather than nothing.</p>
  1120. </li>
  1121. <li>
  1122. <p>The <strong>Browse</strong> button opens a dialog box to find the project file and fill in the <strong>Configuration file</strong> field</p>
  1123. </li>
  1124. <li>
  1125. <p>The <strong>Arguments</strong> field includes the arguments passed to the Executable command<br>
  1126. the arguments are split as they would be in a terminal, don&#8217;t forget the " or ' if necessary.<br>
  1127. For example to reproduce <code>my_command my_argument_1 "my argument 2"</code> enter <code>my_command</code> in the <strong>Executable</strong> field and <code>my_command my_argument_1 "my argument 2 "</code> in the <strong>Arguments</strong> field.</p>
  1128. </li>
  1129. </ul>
  1130. </div>
  1131. </div>
  1132. <div class="sect3">
  1133. <h4 id="_signals_block">Signals block</h4>
  1134. <div class="imageblock">
  1135. <div class="content">
  1136. <img src="images/ray_hack_signals.png" alt="ray hack signals">
  1137. </div>
  1138. </div>
  1139. <div class="ulist">
  1140. <ul>
  1141. <li>
  1142. <p><strong>Save Signal</strong> can be only rarely used. It can be SIGUSR1 for programs compatible with the old LASH protocol. Otherwise leave it on <em>None</em>, if there is no save method, we cannot invent it.</p>
  1143. </li>
  1144. <li>
  1145. <p><strong>Stop Signal</strong> will usually be SIGTERM. Only change it if this signal does not close the program correctly.</p>
  1146. </li>
  1147. <li>
  1148. <p>If <strong>Wait for a window before considered it ready</strong> box is checked, then the client status will only change to <strong>ready</strong> when a window appears.<br>
  1149. If <code>wmctrl</code> is not installed, or the window manager does not seem to be compatible with it, then the client status will be <strong>ready</strong> half a second after it is launched.</p>
  1150. </li>
  1151. </ul>
  1152. </div>
  1153. <div class="paragraph">
  1154. <p>With <code>ray_control</code> you can assign signals other than those offered in the multiple choice boxes. For example
  1155. <code>ray_control client CLIENT_ID set_properties save_sig:22</code>
  1156. will define the SIGTTOU signal for the client CLIENT_ID save.<br>
  1157. Type <code>kill -l</code> to see the available signals and their numbers.</p>
  1158. </div>
  1159. </div>
  1160. <div class="sect3">
  1161. <h4 id="_non_saveable_management_block">Non-saveable management block</h4>
  1162. <div class="imageblock">
  1163. <div class="content">
  1164. <img src="images/ray_hack_non_saveable.png" alt="ray hack non saveable">
  1165. </div>
  1166. </div>
  1167. <div class="paragraph">
  1168. <p>This block is active only if the <strong>Save Signal</strong> is set to <em>None</em>.</p>
  1169. </div>
  1170. <div class="ulist">
  1171. <ul>
  1172. <li>
  1173. <p>if <strong>Tell user to close program himself at session close</strong> is checked, the client will be considered as not saveable and an orange exclamation mark will appear in front of its save icon. When closing the session, RaySession will wait for you to close the program yourself because it is impossible to know if it contains unsaved changes.</p>
  1174. </li>
  1175. <li>
  1176. <p>If <strong>Try to close window gracefully</strong> is checked, then at session close, RaySession will try to close the window as if you were closing the program window. This is very useful when the program reacts by closing if there are no unsaved changes and displaying a close confirmation window in the opposite case (most programs react in this way). If <code>wmctrl</code> is not installed or the window manager does not seem to be compatible, you will have to close the program yourself in any case.</p>
  1177. </li>
  1178. </ul>
  1179. </div>
  1180. </div>
  1181. <div class="sect3">
  1182. <h4 id="_test_area">Test area</h4>
  1183. <div class="imageblock">
  1184. <div class="content">
  1185. <img src="images/ray_hack_test_zone.png" alt="ray hack test zone">
  1186. </div>
  1187. </div>
  1188. <div class="paragraph">
  1189. <p>The test area allows you to test the start, stop, and save settings set in this window without having to <strong>Save the changes</strong>.</p>
  1190. </div>
  1191. </div>
  1192. </div>
  1193. </div>
  1194. </div>
  1195. <div class="sect1">
  1196. <h2 id="_network_sessions">Network Sessions</h2>
  1197. <div class="sectionbody">
  1198. <div class="paragraph">
  1199. <p>A network session allows you to launch another session on another machine at the same time as your session. This can be particularly useful if you are using net-jack to unload your machine from part of the DSP, if you have greedy effects running on another machine for example.</p>
  1200. </div>
  1201. <div class="paragraph">
  1202. <p>Network sessions operate on a master-to-slave basis. A session is master and can have several slave sessions which are themselves masters of other slaves, but such a scenario seems completely out of the ordinary. Organize yourself simply: one master, one or more slave(s).</p>
  1203. </div>
  1204. <div class="paragraph">
  1205. <p>To launch a network session (therefore a slave), launch the <strong>Network Session</strong> application template from the applications window and follow the instructions.</p>
  1206. </div>
  1207. <div class="imageblock">
  1208. <div class="content">
  1209. <img src="images/network_session_template.png" alt="Add a network session">
  1210. </div>
  1211. </div>
  1212. <div class="paragraph">
  1213. <p>You will have to start a daemon on the remote machine with the command <code>ray-daemon -p 1234</code> (<code>1234</code> is an example, put the port you want). This daemon displays something like this in the terminal:</p>
  1214. </div>
  1215. <div class="listingblock">
  1216. <div class="content">
  1217. <pre class="highlight"><code>[ray-daemon]URL : osc.udp://192.168.1.00:1234/`
  1218. [ray-daemon] osc.udp://nom-de-machine:1234/`
  1219. [ray-daemon]ROOT: /home/utilisateur/Ray Sessions reseau</code></pre>
  1220. </div>
  1221. </div>
  1222. <div class="imageblock">
  1223. <div class="content">
  1224. <img src="images/network_session_invitation.png" alt="Configure a network session">
  1225. </div>
  1226. </div>
  1227. <div class="paragraph">
  1228. <p>You will need to copy one of the two URLs into the network session invitation window. The first (which begins with osc.udp://192.168.) must work for sure, the second will work only if the name of the slave machine is correctly entered in the file <code>/etc/hosts</code> of the master machine. However, entering the name of the slave machine in <code>/etc/hosts</code> and using the second URL is preferable, because the address in 192.168. will move if you connect your slave machine differently (wired, wifi), or if you reinstall the distribution.</p>
  1229. </div>
  1230. <div class="paragraph">
  1231. <p>You now have 2 RaySession windows on your master machine, one controls the master session, the other the slave. You will recognize the slave by the fact that it does not have a toolbar (<strong>New Session</strong>, <strong>Open Session</strong>, <strong>Control</strong>), nor <strong>Abort session</strong> and <strong>Close session</strong> buttons.</p>
  1232. </div>
  1233. <div class="imageblock">
  1234. <div class="content">
  1235. <img src="images/network_session_child.png" alt="network session child">
  1236. </div>
  1237. </div>
  1238. <div class="paragraph">
  1239. <p>The slave window is hideable as is the case in many NSM programs.</p>
  1240. </div>
  1241. <div class="imageblock">
  1242. <div class="content">
  1243. <img src="images/network_session_client.png" alt="network session client">
  1244. </div>
  1245. </div>
  1246. <div class="paragraph">
  1247. <p>If you run <code>raysession -p 1234</code> on your slave machine, you will have the slave session window in duplicate, one on each machine.</p>
  1248. </div>
  1249. <div class="paragraph">
  1250. <p><strong>Tip:</strong> Put this <code>ray-daemon -p 1234</code> in your slave machine startup.</p>
  1251. </div>
  1252. </div>
  1253. </div>
  1254. <div class="sect1">
  1255. <h2 id="add_program_not_provided">Add a program not provided</h2>
  1256. <div class="sectionbody">
  1257. <div class="paragraph">
  1258. <p>If the program you want to add does not manage a project to save, click on <strong>Executable</strong>, enter the name of the executable and click on <strong>Ok</strong>. Otherwise follow this example.</p>
  1259. </div>
  1260. <div class="paragraph">
  1261. <p>We want to add Audacity to the session here. Audacity is chosen as an example because it is known and generally installed on audio distributions. This is not necessarily a very suitable program for the modularity of an audio session given the way it handles JACK.</p>
  1262. </div>
  1263. <div class="paragraph">
  1264. <p>Click <strong>Executable</strong> (<em>or Ctrl+E</em>).
  1265. In the <a href="#add_executable">Add executable window</a>, Uncheck the <strong>NSM Protocol</strong> box, type <code>audacity</code> in the <strong>Executable</strong> field and click <strong>Ok</strong>.</p>
  1266. </div>
  1267. <div class="imageblock">
  1268. <div class="content">
  1269. <img src="images/audacity_executable.png" alt="Add Executable window well done">
  1270. </div>
  1271. </div>
  1272. <div class="paragraph">
  1273. <p>A new client is created, its properties window opens on the <strong>Ray-Hack</strong> tab and Audacity is launched.</p>
  1274. </div>
  1275. <div class="paragraph">
  1276. <p>In Audacity, we will directly save an empty project in the client&#8217;s folder. The client&#8217;s folder is located in the session folder and has the name given after <strong>Folder:</strong> at the top of the <strong>Ray-Hack</strong> tab. We will call the project EXACTLY like the current RaySession session. To do this, in Audacity, go to <em>Menu → File → Save project → Save project</em>.</p>
  1277. </div>
  1278. <div class="imageblock">
  1279. <div class="content">
  1280. <img src="images/audacity_save%20project.png" alt="Save empty Audacity project">
  1281. </div>
  1282. </div>
  1283. <div class="paragraph">
  1284. <p>Click <strong>Validate</strong> at the possible warning window.<br>
  1285. In the save files box that opens, you will find the session folder at the bottom left (see <a href="#session_folder_shortcuts">Provide bookmarks for session folder</a>), click on it to enter it. Inside this you should see the client&#8217;s folder as it appears at the top of the Ray-Hack tab, enter this folder. At the top left of the backup box, type the exact name of your session in the <strong>Name:</strong> field then validate.</p>
  1286. </div>
  1287. <div class="imageblock">
  1288. <div class="content">
  1289. <a class="image" href="images/audacity_save_file.png"><img src="images/audacity_save_file.png" alt="Where to save Audacity project" width="640" height="480"></a>
  1290. </div>
  1291. </div>
  1292. <div class="paragraph">
  1293. <p>Close Audacity.<br>
  1294. At the top right of the <strong>Ray-Hack</strong> tab of the client properties window, click <strong>Browse</strong>.</p>
  1295. </div>
  1296. <div class="imageblock">
  1297. <div class="content">
  1298. <a class="image" href="images/audacity_load_config_file.png"><img src="images/audacity_load_config_file.png" alt="Load CONFIG_FILE window" width="640" height="480"></a>
  1299. </div>
  1300. </div>
  1301. <div class="paragraph">
  1302. <p>select the Audacity project you just created, its name starts with the session name and ends with .aup.</p>
  1303. </div>
  1304. <div class="paragraph">
  1305. <p>If all went well, the <strong>Configuration File</strong> field became <code>$RAY_SESSION_NAME.aup</code> and the <strong>Arguments</strong> field became <code>"$CONFIG_FILE"</code>.<br>
  1306. Check the boxes <strong>Wait for a window before being considered ready</strong>, <strong>Ask the user to close the program himself</strong> and <strong>Try to close the window gracefully</strong>. Click in the bottom right corner on <strong>Save Changes</strong>.</p>
  1307. </div>
  1308. <div class="imageblock">
  1309. <div class="content">
  1310. <img src="images/audacity_ray_hack_final.png" alt="Ray-Hack tab of Audacity client well done">
  1311. </div>
  1312. </div>
  1313. <div class="paragraph">
  1314. <p>Launch the Audacity client and verify that the Audacity window has the name of the session.<br>
  1315. Click on the Audacity client icon, in the drop-down menu choose <strong>Save as an application template</strong>, and enter <code>Audacity</code> the field of the dialog box that has appeared. Now when you want to launch Audacity in the session, all you have to do is launch the Audacity template from the <a href="#add_application">Add application window</a>.</p>
  1316. </div>
  1317. <div class="paragraph">
  1318. <p>Note that the client&#8217;s save button is behind an orange exclamation point, this means that RaySession is not able to save its project and that you will have to do it yourself.</p>
  1319. </div>
  1320. <div class="paragraph">
  1321. <p>Depending on what program you want to add to the session, it might not always be that easy. Some programs will require an argument that precedes the configuration file, in this case type <code>my_program --help</code> or <code>man my_program</code> to know how to load a project when the program starts, and adapt this in the <strong>Arguments</strong> field.</p>
  1322. </div>
  1323. </div>
  1324. </div>
  1325. <div class="sect1">
  1326. <h2 id="_import_an_nsm_session">Import an NSM session</h2>
  1327. <div class="sectionbody">
  1328. <div class="paragraph">
  1329. <p>To import a session created with Non Session Manager or New Session Manager, move or copy the session folder to the RaySession root sessions folder (default ~/Ray Sessions). Then click <strong>Open session</strong>, your session should appear in the list of sessions, double-click on it.</p>
  1330. </div>
  1331. <div class="paragraph">
  1332. <p>RaySession will not rewrite clients added or deleted to the <code>session.nsm</code> file, as long as you open an NSM session with RaySession you must continue with RaySession.</p>
  1333. </div>
  1334. </div>
  1335. </div>
  1336. <div class="sect1">
  1337. <h2 id="_the_daemons_options">The daemon&#8217;s options</h2>
  1338. <div class="sectionbody">
  1339. <div class="paragraph">
  1340. <p>Daemon options are services which can be activated and deactivated via the <strong>Control</strong> button at the top right of the main window, or via the options menu in the menu bar.</p>
  1341. </div>
  1342. <div class="imageblock">
  1343. <div class="content">
  1344. <img src="images/daemon_options.png" alt="Daemon options">
  1345. </div>
  1346. </div>
  1347. <div class="paragraph">
  1348. <p>Here is the detail of the different options:</p>
  1349. </div>
  1350. <div class="sect2">
  1351. <h3 id="session_folder_shortcuts">Provide bookmarks for session folder</h3>
  1352. <div class="paragraph">
  1353. <p>In audio production, it is often used to create an audio or midi file with one program and then load it into another. This option offers something purely practical: a shortcut to the current session folder in your file manager and in the dialog boxes provided for fetching or saving files. It simply avoids wasting time browsing through your personal folder tree to find a file that you have put in your session folder, since that is where it belongs.<br>
  1354. Of course, this shortcut is deleted when the session is unloaded.<br>
  1355. Technically, shortcuts are created for GTK2, GTK3, QT4, QT5, KDE and FLTK.</p>
  1356. </div>
  1357. </div>
  1358. <div class="sect2">
  1359. <h3 id="_auto_snapshot_at_save">Auto Snapshot at Save</h3>
  1360. <div class="paragraph">
  1361. <p>This option is far from being trivial, it allows you to take a snapshot of the session after each session save. This means that in case of a technical or artistic error you will be able to find the session in the state it was in at the moment of the snapshot. This option requires that you have the <code>git</code> program installed. See <a href="#snapshots">Snapshots</a> for more details.</p>
  1362. </div>
  1363. </div>
  1364. <div class="sect2">
  1365. <h3 id="_desktops_memory">Desktops Memory</h3>
  1366. <div class="paragraph">
  1367. <p>If this option is activated, RaySession will save (or attempt to save) the number of the virtual desktop on which the client windows were located when the session was saved.
  1368. So when you restart the session or the clients, the windows will be redispatched to the desktops on which they appeared.
  1369. This option requires you to have the program <code>wmctrl</code> installed to work, and probably will not work with Wayland.</p>
  1370. </div>
  1371. </div>
  1372. <div class="sect2">
  1373. <h3 id="_session_scripts">Session scripts</h3>
  1374. <div class="paragraph">
  1375. <p>Disable this option to not activate any session script, and thus open, save or close a session completely ignoring the scripts associated with these actions.
  1376. These scripts are used by sessions with <a href="#jack_configuration_memory">JACK configuration memory</a>.
  1377. See <a href="#session_scripts">Session scripts</a> for more details.</p>
  1378. </div>
  1379. </div>
  1380. <div class="sect2">
  1381. <h3 id="_remember_optional_gui_states">Remember optional GUI states</h3>
  1382. <div class="paragraph">
  1383. <p>This option only concerns NSM clients capable of showing/hiding their graphical interface. Without this option, some of them will always start hidden, others will remember if they were visible when they were last saved. With this option enabled, the graphical interfaces will be displayed when the session is ready if they were visible during the last save or if the client has never been launched.</p>
  1384. </div>
  1385. </div>
  1386. </div>
  1387. </div>
  1388. <div class="sect1">
  1389. <h2 id="snapshots">Snapshots</h2>
  1390. <div class="sectionbody">
  1391. <div class="paragraph">
  1392. <p>Snapshots require you to have the program <code>git</code> installed, if you don&#8217;t have <code>git</code>, the reverse button does not appear and it is not possible to take or return to a snapshot.</p>
  1393. </div>
  1394. <div class="paragraph">
  1395. <p>A snapshot stores files and their contents at a specific time. Large files and files with certain extensions such as audio and video files are ignored, otherwise the snapshot process will take too long and the size of the session folders will needlessly double. This is actually not very annoying, on the contrary, since your recent audio files remain present when you go back to a previous snapshot.<br>
  1396. If despite everything the snapshot process turns out to be long, a window appears and you can safely cancel the current snapshot. If you cancel it, the automatic snapshot will no longer take place for this session.</p>
  1397. </div>
  1398. <div class="paragraph">
  1399. <p>The interest of the snapshots lies in the fact of being able to return to the previous moment of the session, before having had this brilliant artistic idea which turned out to be null and void, before having attempted a recutting of the samples with the microcoscope which finally killed all forms of musicality, before a program crashes for some reason unknown to the police&#8230;&#8203;</p>
  1400. </div>
  1401. <div class="paragraph">
  1402. <p>Don&#8217;t worry, going back to a snapshot won&#8217;t stop you from getting back to where you were.</p>
  1403. </div>
  1404. <div class="paragraph">
  1405. <p>To revert the session to a snapshot, click the reverse button located to the right of the <strong>Executable</strong> button.</p>
  1406. </div>
  1407. <div class="imageblock">
  1408. <div class="content">
  1409. <img src="images/snapshots.png" alt="snapshots">
  1410. </div>
  1411. </div>
  1412. <div class="paragraph">
  1413. <p>Select the snapshot you want to revert to and click <strong>Ok</strong>. A new snapshot is taken, the session closes, the desired snapshot is recalled and the session reopens.</p>
  1414. </div>
  1415. <div class="paragraph">
  1416. <p>It is also possible to return only a client to a previous state of the session by right-clicking on the client,then <strong>Return to a previous state</strong>.
  1417. If you want you can edit for each client the files ignored by the snapshots in the <a href="#client_properties">Client Properties Window</a>.</p>
  1418. </div>
  1419. <div class="paragraph">
  1420. <p>With the <strong>Automatic snapshot after save</strong> option, a snapshot is taken immediately after each backup of the session, unless there is no change since the previous snapshot. To take a snapshot at another time, click on the reverse icon to the right of the <strong>Executable</strong> button and on <strong>Take a snapshot now</strong>, this has the advantage of being able to name the snapshot and thus having a more meaningful time mark than the date and time of the snapshot.</p>
  1421. </div>
  1422. </div>
  1423. </div>
  1424. <div class="sect1">
  1425. <h2 id="session_scripts">Session scripts</h2>
  1426. <div class="sectionbody">
  1427. <div class="paragraph">
  1428. <p>Session scripts allow you to program personalized actions when opening, saving and closing the session. They are used in particular for sessions with <a href="#jack_configuration_memory">JACK configuration memory</a>.<br>
  1429. Knowledge of shell scripting is required to edit these scripts, but anyone can use them.</p>
  1430. </div>
  1431. <div class="paragraph">
  1432. <p>Session scripts are located in a folder <code>ray-scripts</code> located either in a session folder or in a parent folder.<br>
  1433. For example, for a session being in:<br>
  1434. <code>~/Ray Sessions/avec_script_de_foo/ma session</code></p>
  1435. </div>
  1436. <div class="paragraph">
  1437. <p>the session scripts folder may be</p>
  1438. </div>
  1439. <div class="listingblock">
  1440. <div class="content">
  1441. <pre class="highlight"><code>~/Ray Sessions/avec_script_de_foo/ma session/ray-scripts
  1442. ~/Ray Sessions/avec_script_de_foo/ray-scripts
  1443. ~/Ray Sessions/ray-scripts
  1444. ~/ray-scripts</code></pre>
  1445. </div>
  1446. </div>
  1447. <div class="paragraph">
  1448. <p>The advantage of such behavior is to be able to script a set of sessions without having to copy the scripts there, but above all to deliver an unscripted session when it is transferred to someone else for collective work.<br>
  1449. Only the script folder closest to the session in the tree will be considered. Thus, a <code>ray-scripts</code> empty folder in a session will disable scripts for that session.</p>
  1450. </div>
  1451. <div class="paragraph">
  1452. <p>To edit the scripts, start by creating a session with the template with the basic scripts, this is a template session with scripts that does not include any particular action. Go to the folder <code>ray-scripts</code> in the session folder, you will find the files <code>load.sh</code>, <code>save.sh</code> and <code>close.sh</code>. In each of these scripts, <code>ray_control run_step</code> corresponds to the normal action performed (depending on the script: load, save or close the session). If one of these three scripts is of no use to you, delete it, it will save time not to go through that script.</p>
  1453. </div>
  1454. <div class="paragraph">
  1455. <p>The script files must imperatively be executable to work.</p>
  1456. </div>
  1457. <div class="paragraph">
  1458. <p>You will probably need the command line utility <code>ray_control</code> to perform actions relating to a particular client. type <code>ray_control --help</code> to know all its possibilities, see also <a href="#ray_control">Control RaySession from the command line</a>.</p>
  1459. </div>
  1460. <div class="paragraph">
  1461. <p>JACK memory configuration session template uses session scripts, but we can also imagine many possible actions according to your needs and desires, for example:</p>
  1462. </div>
  1463. <div class="ulist">
  1464. <ul>
  1465. <li>
  1466. <p>define a specific order for launching clients when the session is opened (an example is provided in the source code)</p>
  1467. </li>
  1468. <li>
  1469. <p>make a backup copy of the session on an external hard drive each time you close it</p>
  1470. </li>
  1471. <li>
  1472. <p>send a <em>Ctrl+S</em> shortcut to non-saveable client windows when saving the session (an example is provided in the source code)</p>
  1473. </li>
  1474. <li>
  1475. <p>Turn on the red light at the entrance to the studio when opening, turn it off when closing</p>
  1476. </li>
  1477. <li>
  1478. <p>Start the coffee machine at the end of the session (stupid example, go and press the button on the coffee maker, anyway you will have to change the filter!)</p>
  1479. </li>
  1480. <li>
  1481. <p>Make many, many, many mistakes that will crash your session, be careful of course!</p>
  1482. </li>
  1483. </ul>
  1484. </div>
  1485. </div>
  1486. </div>
  1487. <div class="sect1">
  1488. <h2 id="jack_configuration_memory">JACK configuration memory</h2>
  1489. <div class="sectionbody">
  1490. <div class="paragraph">
  1491. <p>It is possible thanks to session scripts to automatically recall the JACK configuration specific to a session before loading it. This behavior may remind some of the operation of LADISH studios, much better done, at least that&#8217;s what is hoped.</p>
  1492. </div>
  1493. <div class="sect2">
  1494. <h3 id="_in_which_cases_to_use_it">In which cases to use it</h3>
  1495. <div class="paragraph">
  1496. <p>This can be useful:</p>
  1497. </div>
  1498. <div class="ulist">
  1499. <ul>
  1500. <li>
  1501. <p>If you need to use a specific audio interface for the session</p>
  1502. </li>
  1503. <li>
  1504. <p>If you are working on multiple projects with different sample rates (such session at 44100 Hz, such session at 48000 Hz).<br>
  1505. This will prevent you from having to reconfigure, stop and restart JACK yourself, or even avoid forgetting to do so and being insulted by certain programs.</p>
  1506. </li>
  1507. <li>
  1508. <p>If you want to avoid loading a very DSP-intensive session (for example in the mixing phase) with a too small buffer (128 for example).<br>
  1509. Note that on most audio interfaces it is possible to change the buffer size hotly (without restarting JACK).</p>
  1510. </li>
  1511. </ul>
  1512. </div>
  1513. </div>
  1514. <div class="sect2">
  1515. <h3 id="_usage">Usage</h3>
  1516. <div class="paragraph">
  1517. <p>The Session scripts option must be enabled (This option is enabled by default).</p>
  1518. </div>
  1519. <div class="paragraph">
  1520. <p>To use the JACK configuration memory, create a new session from the <strong>With JACK configuration memory</strong> template.
  1521. It is in fact a scripted session (see <a href="#session_scripts">Session scripts</a>) which launches a script supplied with RaySession, but which is completely external to it, so RaySession still has no direct relation to JACK.</p>
  1522. </div>
  1523. <div class="paragraph">
  1524. <p>Read the information window on this subject then validate. JACK restarts then your session starts.</p>
  1525. </div>
  1526. </div>
  1527. <div class="sect2">
  1528. <h3 id="_working_principle">Working principle</h3>
  1529. <div class="paragraph">
  1530. <p>Each time the session is saved, the JACK configuration is saved in the session, in the <code>jack_parameters</code> file.<br>
  1531. Before opening the session, JACK is restarted if the configuration of the session is different from the current configuration of JACK.<br>
  1532. After closing the session, JACK is restarted if necessary with the current configuration before opening.<br></p>
  1533. </div>
  1534. <div class="paragraph">
  1535. <p>The configuration of the PulseAudio → JACK bridges is also saved and restored with the JACK configuration.</p>
  1536. </div>
  1537. <div class="paragraph">
  1538. <p>If you open this session after having copied it to another computer, the JACK configuration will not be recalled but will be overwritten when saving. Only the sampling frequency of the session will be used.</p>
  1539. </div>
  1540. </div>
  1541. <div class="sect2">
  1542. <h3 id="_special_cases">Special cases</h3>
  1543. <hr>
  1544. <div class="paragraph">
  1545. <p><strong>To open a session without reloading its configuration from JACK:</strong></p>
  1546. </div>
  1547. <div class="ulist">
  1548. <ul>
  1549. <li>
  1550. <p>disable the <strong>Session scripts</strong> option</p>
  1551. </li>
  1552. <li>
  1553. <p>open the session</p>
  1554. </li>
  1555. </ul>
  1556. </div>
  1557. <hr>
  1558. <div class="paragraph">
  1559. <p><strong>To change the JACK configuration of a session:</strong></p>
  1560. </div>
  1561. <div class="ulist">
  1562. <ul>
  1563. <li>
  1564. <p>Start JACK with the desired configuration</p>
  1565. </li>
  1566. <li>
  1567. <p>Disable the Session scripts option</p>
  1568. </li>
  1569. <li>
  1570. <p>Open the session</p>
  1571. </li>
  1572. <li>
  1573. <p>Re-enable the Session scripts option</p>
  1574. </li>
  1575. <li>
  1576. <p>Save the session</p>
  1577. </li>
  1578. </ul>
  1579. </div>
  1580. <hr>
  1581. <div class="paragraph">
  1582. <p><strong>To make an old session sensitive to the configuration of JACK</strong></p>
  1583. </div>
  1584. <div class="ulist">
  1585. <ul>
  1586. <li>
  1587. <p>copy the folder <code>ray-scripts</code> of a session with memory from the JACK configuration to the session folder</p>
  1588. </li>
  1589. <li>
  1590. <p>Activate the Session scripts option</p>
  1591. </li>
  1592. <li>
  1593. <p>Open the session</p>
  1594. </li>
  1595. </ul>
  1596. </div>
  1597. <div class="paragraph">
  1598. <p><strong>or</strong></p>
  1599. </div>
  1600. <div class="ulist">
  1601. <ul>
  1602. <li>
  1603. <p>move the session to a sub-folder containing the good one <code>ray-scripts</code> folder</p>
  1604. </li>
  1605. <li>
  1606. <p>Open the session</p>
  1607. </li>
  1608. </ul>
  1609. </div>
  1610. </div>
  1611. </div>
  1612. </div>
  1613. <div class="sect1">
  1614. <h2 id="under_the_hood">Under the hood</h2>
  1615. <div class="sectionbody">
  1616. <div class="paragraph">
  1617. <p>RaySession is really just a GUI for ray-daemon. When you launch RaySession, the GUI launches and connects to the daemon, and it stops the daemon when closed. The graphical interface and the daemon communicate with each other by OSC (Open Sound Control) messages, as is the case between the daemon and the NSM clients. Thus, you can connect several graphical interfaces to a daemon, even remotely. Tap <code>raysession --help</code> to see how.</p>
  1618. </div>
  1619. <div class="paragraph">
  1620. <p>It is not forbidden to have several daemon instances launched simultaneously, so if you launch RaySession while an instance is already launched, it will launch a new daemon. However, this way of working being unusual, the use of a single daemon is favored. So, if a daemon is running and it has no GUI attached, raysession will connect to that daemon by default.</p>
  1621. </div>
  1622. </div>
  1623. </div>
  1624. <div class="sect1">
  1625. <h2 id="ray_control">Control RaySession from the command line</h2>
  1626. <div class="sectionbody">
  1627. <div class="paragraph">
  1628. <p>the command <code>ray_control</code> lets you do just about anything you can do with the GUI, and a little more. type <code>ray_control --help-all</code> to know all the possibilities.</p>
  1629. </div>
  1630. <div class="paragraph">
  1631. <p>In case there are multiple daemons started (see <a href="#under_the_hood">Under the hood</a>), <code>ray_control</code> will only consider the one that was started first, unless you specify its OSC port with the <code>--port</code> option or <code>RAY_CONTROL_PORT</code> environment variable.</p>
  1632. </div>
  1633. <div class="paragraph">
  1634. <p>One might think that there is no point in using <code>ray_control</code> since the command <code>oscsend</code> allows to send an OSC message to the daemon, it is false.<br>
  1635. Firstly, because <code>oscsend</code> allows you to send messages but not to obtain information in a simple way (which are the active clients? What is the executable of such and such client? &#8230;&#8203;), secondly, because the command <code>ray_control</code> will end when the requested action is taken, for example <code>ray_control open_session "my session"</code> will end when the session is loaded.</p>
  1636. </div>
  1637. <div class="paragraph">
  1638. <p>Remember to assign <code>ray_control save</code> to a global shortcut of your desktop environment (<em>Ctrl+Meta+S</em>), this will save you a lot of time!</p>
  1639. </div>
  1640. </div>
  1641. </div>
  1642. <div class="sect1">
  1643. <h2 id="_frequently_asked_questions">Frequently Asked Questions</h2>
  1644. <div class="sectionbody">
  1645. <div class="paragraph">
  1646. <p><strong>Is it still worth running Ardour (or another NSM compatible DAW) directly rather than in RaySession?</strong></p>
  1647. </div>
  1648. <div class="paragraph">
  1649. <p>Except for a really tiny project, no.
  1650. If you are using Ardour, always run it from RaySession, firstly, the automatic snapshot after save can be of unexpected help to you, secondly, you are not immune to needing another program even if you did not plan it.</p>
  1651. </div>
  1652. </div>
  1653. </div>
  1654. </div>
  1655. <div id="footer">
  1656. <div id="footer-text">
  1657. Last updated 2020-11-13 18:58:39 +0100
  1658. </div>
  1659. </div>
  1660. </body>
  1661. </html>