final revision for uniformity by Andrea
[goodguy/cin-manual-latex.git] / parts / Windows.tex
1 \chapter{The 4+ Windows}%
2 \label{cha:the_4_windows}
3
4 \begin{figure}[htpb]
5     \centering
6     \includegraphics[width=\linewidth,keepaspectratio]{images/Fenstergrundposition-en.png}
7     \captionsetup{labelformat=empty, textformat=empty}
8     \caption[The four windows (cc-by-sa Olaf)]{No text}    
9     \label{fig:Fenstergrundposition-en}
10 \end{figure}
11
12 \section{Program Window}%
13 \label{sec:program_window}
14
15 The main window is called the Program window and contains the timeline as well as the entry point for all menu driven operations.  
16 It is often just called the \textit{timeline}.  
17 The timeline consists of a vertical stack of tracks with a horizontal representation of time. 
18 This defines the output of rendering operations and what is saved when you save files. 
19 To the left of the timeline is the patchbay which contains options affecting each track.  
20 The patchbay is described in detail in the Editing section (\ref{sec:patchbay}).
21
22 The \textit{Window} pulldown on this main window contains options that affect the 4 main windows. 
23 Default positions repositions all the windows to a 4 screen editing configuration.
24 On dual headed displays,
25 the Default positions operation fills only one monitor with windows.
26
27 \subsection{Video and Audio Tracks and Navigation}%
28 \label{sub:video_and_audio_tracks_and_navigation}
29
30 The program window (figure~\ref{fig:pathbay})   contains many features for navigation and displays the timeline as it is structured in memory: tracks stacked vertically and extending across time horizontally. 
31 The horizontal scroll bar allows you to scan across time. 
32 The vertical scroll bar allows you to scan across tracks.
33
34 \begin{figure}[htpb]
35     \centering
36     \includegraphics[width=0.8\linewidth]{images/pathbay.png}
37     \caption{Patchbay  | Timeline with pulldowns \& navigation icons, Video/Audio tracks \& bottom Zoom}
38     \label{fig:pathbay}
39 \end{figure}
40
41
42 Video tracks represent the duration of your videos and clips, just as if you placed real photographic film stock end-to-end on a table. 
43 The individual images you see on the track are samples of what is located at that particular instant on the timeline.
44
45 Audio tracks represent your sound media as an audio waveform. 
46 Following the film analogy, it would be as if you \textit{viewed} magnetic tape horizontally on your table. 
47 You can adjust the horizontal and vertical magnification of the tracks and the magnification of the audio \textit{waveform} display using the zoom panel controls. 
48 Every track on the timeline has a set of attributes on the left, called the patch-bay. 
49 It is used to control some of the behavior of the tracks.
50
51 Track Navigation involves both selecting a specific audio or video track and moving to a certain time in the track. 
52 The vertical scroll bar allows you to scan across tracks. 
53 For vertical scrolling you can also use the mouse wheel. 
54 The horizontal scroll bar allows you to scan across time. For horizontal scrolling you can use the mouse wheel with the Ctrl key.  
55
56 In addition to the graphical tools, you can use the keyboard to navigate.  
57 There is a shortcuts document for keyboard navigation (\ref{sub:main_menu_keys}); it includes, for example, shortcuts like use the \texttt{Home} and \texttt{End} keys to instantly go to the beginning or end of the timeline.  
58 Or in the default cut and paste mode, hold down \texttt{Shift} while pressing \texttt{Home} or \texttt{End} in order to select the region of the timeline between the insertion point and the key pressed.
59
60 \subsection{Zoom Panel}%
61 \label{sub:zoom_panel}
62
63 Below the timeline, you will find the zoom panel. 
64 The zoom panel contains values for sample zoom (duration visible on the timeline), amplitude (audio waveform scale), track zoom (height of tracks in the timeline), and curve zoom (automation range). 
65 In addition to the scrollbars, these zooms are the main tools for positioning the timeline.  
66 Also on the zoom panel is selection change and alpha slider.
67
68 \begin{figure}[htpb]
69     \centering
70     \includegraphics[width=0.99\linewidth]{images/zoompanel.png}
71     \caption{Zoom panel on the bottom of the main program window}
72     \label{fig:zoompanel}
73 \end{figure}
74
75 Changing the \emph{sample zoom} causes the unit of time displayed in the timeline to change size. 
76 It allows you to view your media all the way from individual frames to the entire length of your project. 
77 The higher the setting, the more frames you can see per screen. 
78 The sample zoom value is not an absolute reference for the unit of time since it refers to the duration visible on the timeline and thus changes also as you modify the length of the program window horizontally.
79 Use the $\uparrow$ and $\downarrow$ arrows to change the sample zoom by a power of two. 
80 Or if your mouse has a wheel, mouse over the tumblers and use the wheel to zoom in and out.
81
82
83 The \emph{amplitude} only affects audio which determines how large the waveform appears. \texttt{Ctrl-$\uparrow$} and \texttt{Ctrl-$\downarrow$} cause the amplitude zoom to change.
84
85 The \emph{track zoom} affects all tracks. 
86 It determines the height of each track. 
87 If you change the track zoom, the amplitude zoom compensates so that the audio waveforms look proportional. 
88 \texttt{Ctrl-Pgup} and \texttt{Ctrl-Pgdown} cause the track zoom to change.
89
90 The \emph{curve zoom} affects the curves in all the tracks of the same type. 
91 It determines the value range for curves. 
92 First select the automation type (audio fade, video fade, zoom, X,Y) then use the left tumblers for the minimum value and the right tumblers for the maximum value or manually enter the values in the text box. 
93 Normally you will use -40.0 to 6.0 for audio fade and 0.0 to 100.0 for video fade. 
94 The tumblers change curve amplitude, but the only way to curve offset is to use the fit curves button.
95
96 The \emph{selection start time}, \emph{selection length}, and \emph{selection end time} display the current selected timeline values.  
97 The \emph{alpha slider} allows for varying the alpha value when using colors on the tracks as set in your \texttt{Preferences $\rightarrow$ Appearance} for \texttt{Autocolor assets}.  
98 It has no function without that flag set.
99
100 \subsection{Track Popup Menu}%
101 \label{sub:track_popup_menu}
102
103 Each Track has a popup menu. 
104 To activate the track popup menu, Right mouse click (RMB) on the track. 
105 The popup menu affects the track whether the track is armed on the patchbay or not. 
106 The Track Menu contains a number of options:
107
108 \begin{description}
109     \item[Attach Effect] opens a dialog box of effects applicable to the type of track of audio or video.
110     \item[Move up] moves the selected track one step up in the stack.
111     \item[Move down]  moves the selected track one step down in the stack.
112     \item[Delete track]  removes the track from the timeline.
113     \item[Add Track]  adds a track of the same media type, audio or video, as the one selected above that track.
114     \item[Find in Resources]  that media file will be highlighted in the media folder in the Resources window.
115     \item[Show edit]  will point out the exact start and stop points along with the length of the current edit on
116         that track as well as the media name.
117     \item[User title]  is used to change the title name.  This is really handy for files that have very long and
118         similar names that would get cut off during edits.  You can use short names to better differentiate the
119         media. If you select multiple, all those clips will have title name changed.
120     \item[Bar color]  allows the user to select a specific color for the title bar.  This helps ease of locating.
121     \item[Resize Track]  resizes the track.
122     \item[Match Output Size]  resizes the track to match the current output size.
123 \end{description}
124
125
126 \subsection{Insertion Point}%
127 \label{sub:insertion_point}
128
129 The insertion point (figure~\ref{fig:insertion-points}) is the flashing hairline mark that vertically spans the timeline in the program window. 
130 Analogous to the cursor on your word processor, the insertion point marks the place on the timeline where the next activity will begin. 
131 It is the point where a paste operation takes place. 
132 When rendering, it defines the beginning of the region of the timeline to be rendered. It is also the starting point of all playback operations.
133
134 Normally, the insertion point is moved by clicking inside the main timebar. 
135 Any region of the timebar not obscured by labels and in or out points is a hotspot for repositioning the insertion point. 
136 In cut and paste editing mode only, the insertion point can be moved also by clicking in the timeline itself. 
137 When moving the insertion point the position is either aligned to frames or aligned to samples. 
138 When editing video, you will want to align to frames. When editing audio you will want to align to samples. Select your preference by using \texttt{Settings$\rightarrow$Align cursor on frames}.
139
140 \begin{figure}[htpb]
141     \centering
142     %\includegraphics[width=0.8\linewidth]{name.ext}
143     \begin{tikzpicture}[scale=1, transform shape]
144         \node (img1) [yshift=0cm, xshift=0cm, rotate=0] {\includegraphics[width=0.6\linewidth]{images/insertion-point.png}};
145         \node [yshift=-13mm, xshift=-1cm,anchor=east] at (img1.north west) (Pulldowns) {Pulldowns};
146         \node [yshift=-20mm, xshift=-1cm,anchor=east] at (img1.north west) (Transport) {Transport \& Buttons Bar};
147         \node [yshift=-27mm, xshift=-1cm,anchor=east] at (img1.north west) (Timebar) {Timebar};
148         \node [yshift=-33mm, xshift=-1cm,anchor=east] at (img1.north west) (Title) {Media Title };
149         \node [yshift=-43mm, xshift=-1cm,anchor=east] at (img1.north west) (Video) {Video Track};
150         \node [yshift=-63mm, xshift=-1cm,anchor=east] at (img1.north west) (Audio) {Audio Track};
151         \draw [->, line width=1mm] (Pulldowns) edge  ([yshift=-13mm] img1.north west);
152         \draw [->, line width=1mm] (Transport) edge  ([yshift=-20mm] img1.north west);
153         \draw [->, line width=1mm] (Timebar) edge    ([yshift=-27mm] img1.north west);
154         \draw [->, line width=1mm] (Title) edge      ([yshift=-33mm] img1.north west);
155         \draw [->, line width=1mm] (Video) edge      ([yshift=-43mm] img1.north west);
156         \draw [->, line width=1mm] (Audio) edge      ([yshift=-63mm] img1.north west);
157         \end{tikzpicture}
158     
159     \caption{Insertion point is at 0:00:25:10 in Hr:Mn:Sec:Frames}
160     \label{fig:insertion-points}
161 \end{figure}
162
163
164 \subsection{Editing Modes}%
165 \label{sub:editing_modes}
166
167 There are 2 different editing methods of operation that affect the insertion point and the editing on the timeline.  
168 There is:  \emph{drag and drop mode} and \emph{cut and paste mode}. 
169 The editing mode is determined by selecting the \texttt{arrow} or the \texttt{I-beam} in the Transport and Buttons bar. 
170
171 If the arrow is highlighted, it enables \emph{drag and drop mode}.  
172 In drag and drop mode, clicking in the timeline does not reposition the insertion point.  
173 Double-clicking in the timeline selects the entire edit the mouse pointer is over.  
174 Dragging in the timeline repositions the edit the mouse pointer is over. 
175 This is useful for reordering audio playlists, sorting movie scenes, or moving effects around. 
176 To cut and paste in drag and drop mode you need to set In/Out points to define an affected region. 
177
178 If the I-beam is highlighted it enables \emph{cut and paste mode}. 
179 In cut and paste mode, clicking (LMB) in the timeline repositions the \textit{Insertion Point}. 
180 Double-clicking in the timeline selects the entire edit the cursor is over (column). 
181 Dragging in the timeline highlights a region. 
182 The highlighted region becomes the region affected by cut and paste operations and the playback range during the next playback operation. 
183 Shift-clicking in the timeline extends the highlighted region.
184
185 When highlighting a region, the start and end points are either aligned to frames or aligned to samples. When editing video, you will want to align to frames. When editing audio you will want to align to samples. Select your preference by using \texttt{Settings $\rightarrow$ align cursor on frames}.
186
187 \begin{figure}[htpb]
188     \centering
189     \includegraphics[width=0.4\linewidth]{images/i-beam.png}
190     \caption{I-beam + in/out  +  labels}
191     \label{fig:i-beam}
192 \end{figure}
193
194 \subsection{In/Out Points}%
195 \label{sub:in_out_points}
196
197 In both editing modes, you can set one In point and one Out point. 
198 The in/out points define the affected region. In the timebar, a colored bar will appear between [ and ] to better highlight the area between the In and Out Points.
199 In drag and drop mode, they are the only way to define an affected region.
200
201 In both cut and paste mode and drag and drop mode, the highlighted area overrides the In/Out points. 
202
203 If a highlighted area and In/Out points are set, the highlighted area is affected by editing operations and the In/Out points are ignored. 
204 If no region is highlighted, the In/Out points are used. 
205 To avoid confusion, it is better to use either highlighting or In/Out points but not both simultaneously.
206
207 To set in/out points, go to the timebar and position the insertion point somewhere. 
208 LMB the In point button. 
209 Move the insertion point to a position after the In point and click the Out point button. 
210 Instead of using the button bar, you can use the [ or < and ] or > keys to toggle in/out points.
211
212 If you set the insertion point somewhere else while In/Out points already exist, when you click the In/Out buttons the existing points will be repositioned. 
213 If you click on in/out points while a region is highlighted, the insertion point will be ignored and In/Out points will be set at the beginning and at the end of the highlighted area.
214
215 If you select either the In point or the Out point, the insertion point will jump to that location. 
216 After selecting an In point, if you click the In point button the In point will be deleted. 
217 After selecting an Out point, if you click the Out point button the Out point will be deleted. 
218 Shift-clicking on an In/Out point highlights the region between the insertion point and that In/Out point. 
219 If a region is already highlighted, it extends the highlighted region up to that In/Out point.
220
221 To quickly get rid of In/Out points, without caring about where they are or if they are set or not, just double click on [ and ] buttons. 
222 The first click will set a new point or reposition an old one at the insertion point; the second click will delete it. This trick does not work if the In point or the Out point is already set at insertion point.
223
224 Some of the useful operations concerning the In/Out pointers are listed next.
225
226 \begin{description}
227     \item[Ctrl-KeyPad\#]  if in/out set, \texttt{KP 2,3,5,6 + Enter}, play between In/Out point
228     \item[Shift-Ctrl]  loops play between In/Out points
229     \item[Click in/out] while holding the left mouse button, drags In/Out pointer elsewhere
230     \item[Shift-Ctrl] with transport button, loops play between In/Out points
231     \item[Ctrl-t]  clears both In/Out points
232 \end{description}
233
234 \subsection{Labels}%
235 \label{sub:labels}
236
237 The insertion point and the In/Out points allow you to define an affected region, but they do not let you jump to exact points on the timeline very easily. 
238 Labels are an easy way to set exact locations on the timeline that you want to jump to. 
239 When you position the insertion point somewhere and click the label button, a new label appears on the timeline. 
240 With label traversal you can quickly seek back and forth on the timeline.
241
242 No matter what the zoom settings are, clicking on the label highlights it and positions the insertion point exactly where you set the label. 
243 The lower case letter “\texttt{L}” is a shortcut for the label button.
244
245 Labels can reposition the insertion point when they are selected but they can also be traversed with the label traversal buttons. When a label is out of view, the label traversal buttons reposition the timeline so the label is visible. Keyboard shortcuts for label traversal are:
246
247 \begin{description}
248     \item[Ctrl-left] repositions the insertion point on the previous label.
249     \item[Ctrl-right] repositions the insertion point on the next label.
250 \end{description}
251
252 The Label folder in the Resources window lists the timestamp of every label. 
253 You can edit the label list and add a title for every item using the popup menu. 
254 To open the Label info dialog right click on the label icon in the Resources window or directly on the label symbol on the timebar. 
255 With labels you can also select regions:
256
257 \begin{description}
258     \item[Shift-Ctrl-left] highlights the region between the insertion point and the previous label.
259     \item[Shift-Ctrl-right] highlights the region between the insertion point and the next label.
260     \item[Double-clicking] on the timebar between two labels highlights the region between the labels.     
261     \item[Shift-clicking] on a label highlights the region between that label and the insertion point.
262         If a region is already highlighted, it extends the highlighted region up to that label.
263 \end{description}
264
265
266 If you hit the label button when a region is highlighted, labels are created at each end of the highlighted region. 
267 However, if one end already has a label, then the existing label is deleted. 
268 Hitting the label button again when a label is selected deletes it. 
269 Manually hitting the label button or L key over and over again to delete a series of labels can get tedious. 
270 To delete a set of labels, first highlight a region, then use the \texttt{Edit $\rightarrow$ Clear labels} function. 
271 If in/out points exist, the labels between the in/out points are cleared and the highlighted region is ignored.
272
273
274 In Cut and Paste editing mode only, by enabling \emph{Edit labels} in the settings menu or by disabling the \emph{Lock labels from moving} button on the program toolbar, labels will be cut, copied or pasted along with the selected region of the first armed track. 
275 Similarly, if a selected area of a resource is spliced from the viewer to the timeline in a position before labels, these labels will be pushed to the right on the timebar for the length of the selected area. 
276 To prevent labels from moving on the timebar, just disable the \emph{Edit labels} option or enable the \emph{Lock labels from moving} button.
277
278
279 Originally in Drag and Drop editing mode labels will be always locked to the timebar, even with the \emph{Edit labels} option enabled.  
280 This may no longer be correct in all cases. 
281
282 \subsection{Color Title Bars and Assets}%
283 \label{sub:color_title_bars_and_assets}
284
285 In order to visually aid in locating clips on the timeline that are from the same media file, you can have them auto-colored or self-colored.  
286 Use of this feature requires additional memory and cpu on every timeline redraw, therefore it is recommended that smaller computers leave it turned off.
287
288 For auto-color the color will be based on a hashed filename so that whenever you load this particular media, it will always have the same color on the title bar even if you use proxy.  
289 To enable auto-color (figure~\ref{fig:autocolor_assets}, go to \texttt{Settings $\rightarrow$ Preferences, Appearance tab} and check on \texttt{Autocolor assets}.  
290 It is disabled by default.  
291 Each media will have a random muted color and there could easily be close duplicates as generated by the program algorithm.  There will be no total black, but some dark shades are possible.  
292
293 Screencast shows the red colored checkmark to enable Autocolor assets.  
294 In the lower left corner is Highlighting Inversion color which can also be set and is discussed elsewhere.
295
296 \begin{figure}[htpb]
297     \centering
298     \includegraphics[width=0.8\linewidth]{images/autocolor-assets.png}
299     \caption{Autocolor assets}
300     \label{fig:autocolor_assets}
301 \end{figure}
302
303 To change a specific clip to your own chosen color, middle mouse button (MMB) over that clip and an Edits popup will be displayed.  
304 Choose the option \textit{Bar Color} to bring up the color picker and choose a color.   
305 You can also change the alpha value in the color picker and this alpha takes precedence over the current alpha slider bar value unless it was set to 1.0.   
306 The color will only change after you click on the checkmark.  
307 The \emph{Bar Color} option works in either Drag and Drop or Cut and Paste editing mode and also works if \textit{Autocolor assets} is not set.  
308 In Drag and Drop editing mode, if you select several clips and then bring up the Edits popup with the middle mouse button over a track, you can use the \emph{Bar Color} option to change all of those selected to the same color.
309
310 To go back to the default colors, uncheck \textit{Autocolor assets} in Preferences, but this does not affect the specially chosen self-colored ones as they are preserved.  
311 To change these individually or  selectively use the Edits popup \emph{Bar Color} option and click on \textit{Default} in the color picker window.  Auto-color does not honor armed/disarmed tracks.  
312 Self-color does honor armed/disarmed tracks.
313
314 And that’s not all!  
315 There is an \emph{alpha fader slider bar} on the bottom of the main window on the right hand side of what is referred to as the Zoom Panel.  
316 With this alpha slider, you can colorize your video and audio tracks to either see only the color at 0.0 or see only the image/audio waveform at 1.0.  
317 This slider bar affects all colored areas of the Autocolor assets and the self-colored ones.  
318 In the case when a specifically changed edit alpha value is any value except 1, the slider bar will not affect that.  
319 Once you use the slider bar, it is activated so gets first shot at any keystrokes in the main window.  
320 You deactivate this by simply clicking in a different part of the main window.  
321
322 As long as we are on the subject of color, just a reminder that you can also change the \textit{Highlighting Inversion color} in \texttt{Settings $\rightarrow$ Preferences, Appearance tab}.  
323 This is on right left hand side of the menu more than half the way down and you can see this in the figure~\ref{fig:autocolor_assets}.  
324 That setting defaults to white ($ffffff$) but sometimes this is a little bright so you can put any hex value in that suits you.
325
326 Screencast (figure~\ref{fig:autocolor_assets_alpha}a) which shows an example of the Autocolor assets with alpha set to 0.0.
327 In this screencast (figure~\ref{fig:autocolor_assets_alpha}b), the alpha is set to show the image as well as the colors.  The pink media file has been self-colored rather than the autocolor to make it easy to see.
328
329 \begin{figure}[htpb]
330     \centering
331     \begin{minipage}[h]{0.55\linewidth}
332         \center{\includegraphics[width=0.99\linewidth]{images/autocolor-assets_alpha0.png}} \\ a)
333     \end{minipage}
334     \begin{minipage}[h]{0.4\linewidth}
335         \center{\includegraphics[width=0.99\linewidth]{images/autocolor-assets_alpha1.png}} \\ b)
336     \end{minipage}
337     \caption{An example of the Autocolor assets}
338     \label{fig:autocolor_assets_alpha}
339 \end{figure}
340
341
342 \subsection{More about Pulldowns}%
343 \label{sub:more_about_pulldowns}
344
345 The main window pulldowns are quite obvious in their meaning and usage, so here is only a summary.  
346 %TODO Figure 3 shows an example of the pulldowns as displayed in the main window.Appearance
347
348
349 \begin{description}
350     \item[File]  options for loading, saving, and rendering as described in other sections (\ref{cha:load_save_and_the_EDL}).
351     \item[Edit]  edit functions; most of which have shortcuts that you will quickly learn.
352     \item[Keyframes]  keyframe options which are described in the Keyframe section (\ref{cha:keyframes}).
353     \item[Audio]  audio related functions such as \textit{Add track}, \textit{Attach transition/effect}.
354     \item[Video]  video functions such as \textit{Default/Attach transition}.
355     \item[Tracks]  move or delete tracks are the most often used.
356     \item[Settings]  this is mostly described in other sections (\ref{cha:configuration_settings_preferences}).  
357         However, \textit{typeless keyframes} are not described anywhere else.  
358         They allow keyframes from any track to be pasted on either audio or video tracks.
359     \item[View]  for display or modifying asset parameters and values to include Fade, Speed, and Cameras.
360     \item[Window]  window manipulation functions.
361 \end{description}
362
363
364 \subsection{Window Layouts}%
365 \label{sub:window_layouts}
366
367 If you like to use different window layouts than the default for certain scenarios, you can setup, save, and load 4 options.   
368 First position your Cinelerra windows where you want them to be and then use the Window pulldown and choose \emph{Save layout}.  
369 To use the default name of \textit{Layout \#}, when the popup comes up, just click the green checkmark OK on the Layout popup menu.  
370 If you would like a specific name for your layout so you can remember what it is for, keyin 1-8 english characters that are meaningful to you (english characters mean you can not use the German umlaut or the French accent).  
371 Legal characters are a-z, A-Z, 0-9, \_ (the underscore character) and a limit of 8 total.  
372 If you keyin more than 8, only the last 8 characters will be used.  
373 To rename a currently existing layout, use the Save layout option again on the one to rename, and keyin a different name into the text box or blank for the default name (figure~\ref{fig:window_layouts}).
374
375 \begin{figure}[htpb]
376     \centering
377     \begin{minipage}{.49\linewidth}
378         \center{\includegraphics[width=1\linewidth]{images/window_layout1.png}}\\ a)
379         %TODO High res image replace
380     \end{minipage}
381     \begin{minipage}{.49\linewidth}
382         \vspace{13ex}
383         \center{\includegraphics[width=1\linewidth]{images/window_layout2.png}}\\ b)
384         %TODO Alpha channel
385     \end{minipage}
386     \caption{Window Layouts}
387     \label{fig:window_layouts}
388 \end{figure}
389
390 The files containing the coordinates for your layouts will automatically be saved in the \texttt{\$HOME/.bcast5} directory as \texttt{layout\#\_rc} or \texttt{layout\#\_8chars\_rc}.
391
392 To use the desired layout, keyin the shortcut or use the Window pulldown and choose \emph{Load layout} and then make your choice. 
393
394 \subsection{Just Playing!}%
395 \label{sub:just_playing_}
396 What if you are just using Cinelerra to play media and listen to tunes? 
397 After loading your media, just hit the space bar to start playing and then again to stop playing.  
398 Other than that, use the transport buttons on the top bar of the Program window.  
399 Other ways, not previously mentioned to \textit{play around} are described next. 
400
401 \subsubsection*{Repeat Play / Looping Method}%
402 \label{ssub:repeat_play_looping_method}
403
404 There are 2 methods for repeat play or looping on the timeline and 1 method for both the Compositor and the Viewer.  This works in conjunction with any of the transport buttons or shortcuts in either forward or reverse as usual.  The 1 exception is that the Shift button can not be used to either add or subtract audio within the repeat area.
405
406 \textit{Method 1:} Shift-L on the Timeline, repeats the selection per the algorithm outlined next.
407   
408 When setup, long green lines are displayed across the entire set of tracks which shows the start and end of the loop.
409 \begin{enumerate}
410     \item  Highlighted selection repeats loop and takes precedence over all other possibilities.  
411         If the cursor is before the highlighted area, it will play up to the area and then repeat the highlighted section.  
412         If the cursor is after the highlighted section, play will start at the beginning until you get to the
413         highlighted section and then repeat.
414     \item  When both In and Out pointers are set, it repeats the section between [ and ].
415     \item  If only one of the In or Out pointers is set, it loops the whole media.
416 \end{enumerate}
417
418 \textit{Method 2:} Ctrl+Shift+transport button on the Timeline, Viewer, and Compositor
419
420 \begin{enumerate}
421     \item Repeats entire media if no In or Out pointer set.
422     \item  In and Out pointer set, repeats area between pointers.
423     \item  Only In pointer set, repeats from In to end of media.
424 \end{enumerate}
425
426 \subsubsection*{Last Play Position Memory}%
427 \label{ssub:last_play_position_memory}
428
429
430 When you play media, the start/end playback positions are saved as if they had been made into temporary labels.  
431 They appear on the timeline as purple/yellow hairline markers representing the last start/end labels for the last playback. 
432 They can be addressed as if they are label markers using:
433
434 \begin{description}
435     \item[Ctrl$\leftarrow$]   tab to the label before the cursor, that is \textit{play start}
436     \item[Ctrl$\rightarrow$]   tab to the label after the cursor, that is \textit{play stop}
437 \end{description}
438
439
440 You can use these markers for re-selection.  
441 Additionally, the selection region can be expanded by \textit{pushing} the markers using single frame playback.  
442 Use frame reverse (\texttt{keypad 4}) to push the start play marker backward, or use frame forward (\texttt{keypad 1}) to push the end play marker forward.
443
444 Another handy feature is to use the combination of Ctrl-shift-arrow (left or right) to select the media from the cursor position (red hairline) to the start or end marker by \textit{tabbing} to the label markers.  
445 For example, tab to the beginning of the previous play region using Ctrl-left-arrow to move the cursor to the beginning of last play, then press Ctrl-Shift-right-arrow to tab to the end of the playback region. 
446 Now you can clip/play/expand or edit the previous playback selection.
447
448 \begin{description}
449     \item[Ctrl SHIFT$\rightarrow$]        tab cursor to label right of cursor position and expand selection
450     \item[Ctrl SHIFT$\leftarrow$]         tab cursor to label left of cursor position and expand selection
451 \end{description}
452
453
454 \subsubsection*{Playback Speed Automation Support}%
455 \label{ssub:playback_speed_automation_support}
456
457
458 The speed automation causes the playback sampling rate to increase or decrease to a period controlled by the speed automation curve.  
459 This can make playback speed-up or slow-down according to the scaled sampling rate, as \textit{time is multiplied by speed} (Speed $\times$ Unit\_rate).
460
461 \subsubsection*{Alternative to using Numeric Keypad for Playing}%
462 \label{ssub:alternative_to_using_numeric_keypad_for_playing}
463
464
465 For the keyboards without a numeric keypad or if you prefer to use keys closer to where you normally type, there are alternative keys for the play/transport functions.  These are listed below.
466
467 \begin{tabular}{lcl}
468         Alt + m&=&stop playback\\
469
470         Alt + j&=&forward single frame\\
471
472         Alt + k&=&forward slow playback\\
473
474         Alt + l&=&forward normal playback\\
475
476         Alt + ;&=&forward fast playback\\
477
478         Alt + u&=&reverse single frame\\
479
480         Alt + i&=&reverse slow playback\\
481
482         Alt + o&=&reverse normal playback\\
483
484         Alt + p&=&reverse fast playback\\
485 \end{tabular}
486 \begin{minipage}{.45\linewidth}
487 + Shift key, results in the reverse of whether audio is included or not.
488 \vspace{1ex}
489
490 + Ctrl, results in the transport function operating only between the in/out pointers.
491 \end{minipage}
492
493 \section{Compositor Window}%
494 \label{sec:compositor_window}
495
496 The Compositor window (figure~\ref{fig:compositor_window}) displays the output of the timeline. 
497 It is the interface for most compositing operations or operations that affect the appearance of the timeline output. 
498 Operations done in the Compositor affect the timeline but do not affect clips.
499
500 \begin{figure}[htpb]
501     \centering
502     \includegraphics[width=0.99\linewidth]{images/compositor_window.png}
503     \caption{Upper right side contains navigation tools / bottom bar has manu control functions}
504     \label{fig:compositor_window}
505 \end{figure}
506
507 \subsection{Compositor controls}%
508 \label{sub:compositor_controls}
509
510
511 Navigating the video output does not affect the rendered output; it just changes the point of view in the compositor window. 
512 The video output has several navigation functions. 
513 The video output size is either locked to the window size or unlocked with scrollbars for navigation. 
514 The video output can be zoomed in and out and panned. 
515 If it is unlocked from the window size, middle clicking and dragging anywhere in the video pans the point of view. Hitting the + and -- keys zooms in and out of the video output.
516
517 Underneath the video output are copies of many of the functions available in the main window. 
518 In addition there is a zoom menu and a tally light. 
519 The zoom menu jumps to all the possible zoom settings and, through the Auto option, locks the video to the window size. 
520 The zoom menu does not affect the window size. 
521 The tally light turns red when rendering is happening. This is useful for knowing if the output is current. 
522 Right clicking anywhere in the video output brings up a menu with all the zoom levels, zoom auto mode, and some other options. 
523 In this particular case the zoom levels resize the entire window and not just the video. 
524 The \emph{Reset camera} and \emph{Reset projector} options center the camera and projector. 
525 The \emph{Hide controls} option hides everything except the video. 
526
527 On the left of the video output is a toolbar specific to the compositor window. The toolbar has the following functions:
528
529 \emph{Protect video} --- disables changes to the compositor output from clicks in it. It is an extra layer on top of the track arming toggle to prevent unwanted changes.
530
531 \emph{Magnifying glass} --- this tool zooms in and out of the compositor output without resizing the window. If the video output is currently locked to the size of the window, clicking in it with the magnifying glass unlocks it and creates scrollbars for navigation.
532
533 \begin{description}
534     \item[Left clicking] in the video zooms in;
535     \item[Ctrl clicking] in the video zooms out;
536     \item[Rotating the wheel] on a wheel mouse zooms in and out.
537 \end{description}
538
539 In addition, if you enable the Magnifying glass, a zoom slider for fine-viewing appears below these tools.  
540 It allows you to zoom to most any size. 
541 A \textit{zoom slider} will pop-up towards the bottom on the left-hand side of the Compositor when you enable \textit{Zoom view} via the magnifying glass or when you click on the icons for \textit{Adjust camera automation} or \textit{Adjust projector automation}.  
542 This will allow for adjusting the amount of zoom at any level between 0.01 and 100 based on a logarithmic scale.  
543 When using the zoom slider, the number by which the view is zoomed can be seen in the textbox where the original-also-working \% zoom is located.  
544 The zoom slider size is in the form of \textit{times}, such as $\times$0.82 which indicates that the picture is zoomed to $\frac{82}{100}^{th}$ of the original size as seen in \texttt{Settings $\rightarrow$ Format}.  
545 Once you have set the zoom to the desired size, use the vertical and horizontal scroll bars to position the view as needed.
546
547 Screencast (figure~\ref{fig:zoom_slider}) shows below at a zoom slider bar with the diamond shaped slider in the middle.  Note 
548 that the magnifying glass is  enabled which automatically pops-up the slider.
549
550 \begin{figure}[htpb]
551     \centering
552     \includegraphics[width=0.99\linewidth]{images/zoom_slider.png}
553     \caption{A zoom slider bar with the diamond shaped slider in the middle}
554     \label{fig:zoom_slider}
555 \end{figure}
556 The Format shows a large $5204\times3468$ video and the box at the arrow shows $\times0.82$ size.  
557
558 \begin{description}
559     \item[Masks tool] this tool brings up the mask editing tool. Enable \textit{Show tool info} to see the options.
560     \item[Camera]  the camera brings up the camera editing tool. Enable \textit{Show tool info} to see options.
561     \item[Projector]  the projector brings up the projector editing tool. Enable \textit{Show tool info} for options.
562     \item[Crop tool]  this tool brings up the cropping tool. \textit{Show tool info} must be enabled to use this tool.
563     \item[Eyedropper]  brings up the eyedropper. The eyedropper detects whatever color is under it and stores it
564         in a temporary area. Enabling the \textit{Show tool info} shows the currently selected color. Click
565         anywhere in the video output to select the color at that point. The eyedropper not only lets you see
566         areas which are clipped, but its value can be applied to many effects. Different effects handle the
567         eyedropper differently.
568     \item[Show tool info]  this tool button works only in conjunction with the other controls on the compositor.
569         Based on what compositing control is active, the toggle button will activate or deactivate the
570         appropriate control dialog box. Controls with dialog boxes are: Edit mask, Camera and Projector
571         automation, Crop control, and Get color.
572     \item[Safe regions tool]  draws the safe regions in the video output. The largest (external) square is called \textit{action safe overlay}; the smallest internal square is called \textit{title safe overlay}. They are especially useful if the destination is the TV. This does not affect the rendered output
573 \end{description}
574
575 \subsection{Compositing}%
576 \label{sub:compositing}
577
578 A large amount of Cinelerra's editing is directed towards compositing. 
579 Changing the resolution of a show, making a split screen, and fading in and out among other things are all compositing operations in Cinelerra. 
580 Cinelerra detects when it is in a compositing operation and plays back through the compositing engine only then. 
581 Otherwise, it uses the fastest decoder available in the hardware.
582
583 Compositing operations are done on the timeline and in the Compositor window. Shortcuts exist in the Resource window for changing some compositing attributes. 
584 Once some video files are on the timeline, the compositor window is a good place to try compositing.
585
586 \subsection{Camera and Projector}%
587 \label{sub:camera_and_projector}
588
589 In the compositor window, two of the more important functions are the adjust camera automation and the adjust projector automation which control operation of the camera and projector. 
590 Cinelerra's compositing routines use a \textit{temporary}, a frame of video in memory where all graphics processing is performed. 
591 Inside Cinelerra's compositing pipeline, the camera determines where in the source video the \textit{temporary} is copied from. 
592 The projector determines where in the output the \textit{temporary} is copied to (figure~\ref{fig:temporary-01}). 
593 Each track has a different \textit{temporary} which is defined by the track size. By resizing the tracks you can create split screens, pans, and zooms.
594
595 \begin{figure}[htpb]
596     \centering
597     \includegraphics[width=0.8\linewidth]{images/temporary-01.pdf}
598     \caption{Compositing pipeline}
599     \label{fig:temporary-01}
600 \end{figure}
601
602 In compositing, each frame can be digitally altered using various options, such as a color correction plugin (figure~\ref{fig:camera_and_projector}). 
603 Once the image has been transformed, the finished image is then projected to the compositor thus creating a modified version of the original.
604
605 \begin{figure}[htpb]
606     \centering
607     \includegraphics[width=0.8\linewidth]{images/camera_and_projector.png}
608     \caption{Color balance on Temporary}
609     \label{fig:camera_and_projector}
610 \end{figure}
611
612 When editing the camera and projector in the compositing window, the first track with record enabled is the track affected. 
613 Even if the track is completely transparent, it is still the affected track. 
614 If multiple video tracks exist, the easiest way to select one track for editing is to Shift-click on the record icon of the track. 
615 This solos the track.
616
617 The purpose of the projector is to place the contents of the \textit{temporary} into the project's output.  
618 The intent of the projector is to composite several sources from the various tracks into one final output track. 
619 The projector alignment frame is identical to the camera's viewport, except that it guides where on the output canvas to put the contents of each temporary.
620
621 \subsubsection*{Compositing projector controls}%
622 \label{ssub:compositing_projector_controls}
623
624 When the projector button is enabled in the compositor window, you are in projector editing mode. A guide box appears in the video window. The red box indicates the size of the frame that will be sent to the Ouput. You can drag the box with LMB, moving the frame in $x$ and $y$ as you like. Even when moving along the $z-axis$ (i.e. the zoom, with SHIFT+Drag) the red box faithfully follows the movement and size of the frame. Once you have positioned the video with the projector, you may want to work with adjusting the camera automation.
625
626 \subsubsection*{Viewport sizes}%
627 \label{ssub:viewport_sizes}
628
629 The viewport is a window on the camera that frames the area of source video to be scanned.
630 The initial size of the viewport is defined by the size of the current track. A smaller viewport ($640\times400$) captures a smaller area. 
631 A larger viewport ($800\times200$) captures an area larger than the source video and fills the empty spaces with blanks. 
632 Once we have our viewport defined, we still need to place the camera right above the area of source video we are interested on. To control the location of the camera:
633
634 \begin{enumerate}
635     \item  Open the compositor window with a track selected.
636     \item  Select the camera button to enable camera editing mode.
637     \item  Drag over the display window.
638 \end{enumerate}
639
640 When we drag over the viewport in the compositor window, the way it looks is as if you \textit{move the camera with the mouse}.  The viewport also moves with it.
641
642 \subsubsection*{Compositing camera controls}%
643 \label{ssub:compositing_camera_controls}
644
645 Select the camera button to enable camera editing mode. 
646 In this mode, the guide box shows where the camera position is in relation to past and future camera positions but not where it is in relation to the source video. 
647 The green box is the Viewport; at the beginning it coincides with the size of the source frame. If we move the viewport by dragging it with LMB (moving it in $x/y$), the green box remains fixed to the original size but the frame is moved to the new position.  A yellow frame will appear along the edges of the frame to indicate the displacement with respect to the green box; this behavior differs from that seen for the Projector. Even if we act on the $z-axis$ (SHIFT + Drag, equivalent to the zoom), the frame narrows or widens, moving behind the yellow frame.
648
649 \subsubsection*{The camera and projector tool window}%
650 \label{ssub:the_camera_and_projector_tool_window}
651
652 The camera and projector have shortcut operations that do not appear in the popup menu and are not represented in video overlays. 
653 These are accessed in the \emph{Show tool info} window . 
654 Most operations in the Compositor window have a tool window which is enabled by activating the question mark icon (figure~\ref{fig:camera_tool}).
655
656 \begin{wrapfigure}[12]{O}{0.3\linewidth} 
657         \vspace{-2ex}
658     \includegraphics[width=0.9\linewidth]{images/camera_tool.png}
659     \caption{Camera and Projector tool}
660     \label{fig:camera_tool}
661 \end{wrapfigure}
662
663 In the case of the camera and projector, the tool window shows $x$, $y$, and $z$ coordinates. 
664 By either tumbling or entering text directly, the camera and projector can be precisely positioned.  
665 Justification types are also defined for easy access. 
666 A popular justification operation is upper left projection after image reduction. 
667 This is used when reducing the size of video with aspect ratio adjustment.  
668 In the last figure you see the choices for justification as the red stripe in the 6 boxes in the order of left, center horizontal, right, top, center vertical, and bottom.
669
670 The translation effect allows simultaneous aspect ratio conversion and reduction but is easier to use if the reduced video is put in the upper left of the \textit{temporary} instead of in the center. 
671 The track size is set to the original size of the video and the camera is centered. 
672 The output size is set to the reduced size of the video. 
673 Without any effects, this produces just the cropped center portion of the video in the output.
674
675 The translation effect is dropped onto the video track. The input dimensions of the translation effect are set to the original size and the output dimensions are set to the reduced size. 
676 To put the reduced video in the center subsection that the projector shows would require offsetting out $x$ and out $y$ by a complicated calculation. 
677 Instead, we leave out $x$ and out $y$ at 0 and use the projector's tool window. 
678 By selecting left justify and top justify, the projector displays the reduced image from the top left corner of the \textit{temporary} in the center of the output.
679
680 \subsubsection*{Reset to Default}%
681 \label{ssub:reset_default}
682
683 In the compositing window, there is a popup menu of options for the camera and projector. Right click over the video portion of the compositing window to bring up the menu:
684
685 \textit{Reset Camera}: causes the camera to return to the center position.
686         
687 \textit{Reset Projector}: causes the projector to return to the center.
688
689 \subsubsection*{Use Case: Interaction Between Camera And Projector \protect\footnote{Example provided by Sam. The relative video is located at: \url{https://streamable.com/iq08i}}}%
690 \label{ssub:use_case_interaction_camera_projector}
691
692 \begin{enumerate}
693     \item Start by shrinking the projector to $z=0,500$ ($\frac{1}{4}$ of the original frame).
694     \item The next step is to switch to the camera and note that the green box has assumed the size of the projector, i.e. the red box. The value of $z$ of the camera is always equal to $1,000$ (default) but the frame is $\frac{1}{4}$ of the original frame, i.e. it has the size of the projector that has $z=0,500$. This is the current viewport size.
695     \item You enlarge the room bringing $z=2,000$. You can see that the dimensions of the viewport (green box) do not change, remaining the same as those of the projector. However, the frame has been enlarged and this variation is indicated by the enlargement of the yellow box. Let's remember that this follows the changes made with the camera tool.
696     \item We can drag the room so that we can center the frame to our liking. The movement of the yellow box shows well the variation compared to the green box.
697     \item Finally, if we want, we can switch to the projector tool to move the output frame to the position we want with respect to the size of the source. Of course, we can also work on the $z$, which in the example is at $z=0.500$, if we have decided to change the size of the output.
698 \end{enumerate}
699
700 \subsection{Masks}%
701 \label{sub:masks}
702
703 Masks select a region of the video for either displaying or hiding. 
704 Masks are also used in conjunction with another effect to isolate the effect to a certain region of the frame. 
705 A copy of one video track may be delayed slightly and unmasked in locations where the one copy has interference but the other copy does not. 
706 Color correction may be needed in one subsection of a frame but not another. 
707 A mask can be applied to just a subsection of the color corrected track while the plain track shows through. 
708 Removal of boom microphones and airplanes are a common kind of mask uses.
709
710 The order of the compositing pipeline affects what can be done with masks. Mainly, masks are performed on the temporary after effects and before the projector. This means multiple tracks can be bounced to a masked track and projected with the same mask.
711
712 The compositing pipeline graph has a masking stage (figure~\ref{fig:temporary-02}).
713
714 \begin{figure}[htpb]
715     \centering
716     \includegraphics[width=0.7\linewidth]{images/temporary-02.pdf}
717     \caption{compositing pipeline with mask}
718     \label{fig:temporary-02}
719 \end{figure}
720
721 There are 8 possible masks per track. Each mask is defined separately, although they each perform the same operation, whether it is addition or subtraction.
722
723 \subsubsection*{Compositing pipeline with masks}%
724 \label{ssub:compositing_pipeline_with_masks}
725
726 \begin{enumerate}
727     \item To define a mask, go into the Compositor window and enable the mask toggle.
728     \item  Next go over the video and click-drag. 
729         Note: You have to select automatic keyframes if you wish to move a mask over time.  
730         If you do not, the mask position will be the same even if you edit at different places on the timeline.
731     \item  Click-drag again in another part of the image to create each new point of the mask. 
732         While it is not the conventional Bezier curve behavior, this masking interface performs in realtime what the effect 
733         of the mask is going to be. Creating each point of the mask expands a rubber band curve.
734
735         Once points are defined, they can be moved by Ctrl-dragging in the vicinity of the corner. 
736         Shift-drag allows you to move existing points to new locations, thus altering the shape of the mask.  
737         However, this does not smooth out the curve. 
738         The end points of the Bezier curve are accessed by Ctrl-dragging in the vicinity of the corner. 
739         Then Ctrl-dragging near the end point causes the point to move.  
740         Shift-drag activates bezier handles (control points) to create curves between mask points.       
741
742     \item  Finally once you have a mask, the mask can be translated in one piece by Alt-dragging the mask.
743     The effect of the mask is always on.  
744     Ctrl-Alt-drag translates an entire mask to a new location on the
745     screen.
746 \end{enumerate}
747
748 The masks have many more parameters which could not be represented with video overlays. 
749 These are represented in the tool window for masks. 
750 Selecting the question mark when the mask toggle is highlighted brings up the mask options window (figure~\ref{fig:mask_window}).
751
752 \begin{figure}[htpb]
753     \centering
754     \includegraphics[width=0.5\linewidth]{images/mask_window.png}
755     \caption{Mask options window}
756     \label{fig:mask_window}
757 \end{figure}
758
759 Masking has been greatly improved compared to the original tool.  Detailed description is provided here.  Note that the Mask window is separated into various sections to make it easier to locate the area of interest.
760
761 \subsubsection*{Masks on Track section}%
762 \label{ssub:masks_track_section}
763
764 The \textit{Track}: textbox displays the different video tracks for your session which will be initially set to the first armed video track or will be left blank if there are no armed tracks.  A pulldown to the right of the box brings up the names of all of the video tracks allowing you to change to which track the masking applies.  You can also just use the tumbler to easily mouse up/down to get to the desired track. In the pulldown list, any track that has red colored text is disarmed so that you can not change it.  A track that contains masks has yellow colored text for easy identification.  Only when there are no masks on the track, do you have the default text color. This textbox is display only and you can not type into it.
765
766 The \textit{Solo} button in the Masks on Track section of the Mask window is very handy when working with masks on different tracks.  It displays only that track so that you only see the track you choose, as well as the tracks behind it to show the mask part.  The Solo button is just a convenience to prevent having to mouse over to the patchbay.
767
768 \subsubsection*{Masks section}%
769 \label{ssub:masks_section}
770
771 The \textit{Mask}: textbox will show you the mask numbers of $0-7$ or the 8 ascii character name that you have used to designate each mask number.  There is a pulldown on the right side to easily switch to another mask. 
772
773 The \textit{Delete} button is used to delete the mask number/name that is selected. The symbol to the right with tooltip of \textit{Delete all masks} can be used to delete all of the current video track masks.
774
775 The \textit{Select}: row of checkboxes is used to indicate which mask is currently displayed for that video track in the Compositor.  Numbers that are colored yellow are active masks for that track.  A tumbler to the right allows for quickly changing the mask number displayed.
776
777 The \textit{Enable} row of masks makes it so you can enable all or none of the masks, making it possible to look at no masks or at one mask without interference from the other masks. The symbol that looks like an \texttt{eye} can be used to easily check all or none as the tooltip \textit{Show/Hide mask states}.
778
779 \subsubsection*{Preset Shapes section}%
780 \label{ssub:preset_shape_section}
781
782 There are 4 shapes that are automatically available for usage as masks – square, circle, triangle, and oval.  In addition, the next 3 symbols in this section are for the purpose of loading, saving, and deleting your own customized shapes.  The first symbol, \textit{Load} preset, will bring up a list of your previously saved presets.  Clicking on \textit{Save} preset brings up a popup window allowing you to provide a name used to identify the preset you want to save, along with a pulldown to see the names of your other saved presets.   Clicking on \textit{Delete} preset also brings up a textbox with a pulldown to choose which one to delete.  There is a file, called \texttt{mask\_rc}, in \texttt{\$HOME/.bcast5} that records your custom masks.  
783
784 When you click \textit{Load} preset, keep in mind that it will write the mask number that you have selected so if you already have a mask at that location, it will write over it – just UNDO to revert to the previous if you made this mistake.
785
786 \subsubsection*{Position \& Scale section}%
787 \label{ssub:position_scale_section}
788
789 \textit{Center} mask button allows for quickly centering a mask on the video track. 
790 \textit{Normalize} mask button makes it easy to normalize the size of the mask based on the scale of the video. 
791 The next 3 symbols concern the direction to \textit{drag translate} a mask using the \texttt{Alt+LMB} thus making it easy to preserve the current $X$ or $Y$ value when desirable.
792
793 \texttt{xlate/scale x}  - drag translate constrained in the $X$ direction
794
795 \texttt{xlate/scale y}  - drag translate constrained in the $Y$ direction
796
797 \texttt{xlate/scale x/y}        - drag translate in both directions; this is the default and after using the other 2 options, you should reset to this to avoid future confusion while dragging.
798
799 \subsubsection*{Fade \& Feather section}%
800 \label{ssub:fade_feather_section}
801
802 The \texttt{Fade}: textbox is used to type in a fade value; the tumbler to the right of the textbox allows you to increase or decrease that number; and the slider bar makes it quick to adjust the fade value.  The fader goes from $-100$ on the left to $+100$ on the right for negative to positive.  Default value is $+100$. The fade slider includes a sticky point at 0 so that it is easy to get to 0 without going too far or not quite far enough -- that way you don’t have to keep jiggling to get there. 
803
804 In addition there is a \textit{Gang fader} symbol to allow for having all of the masks fade in unison. The symbol is surrounded by a gold colored background when it is in effect.  If you have multiple masks with different modes, a decision had to be made on what value to use -- it uses the maximum transparency value of the background to determine the operations results.  To understand how this works, here is a summary:
805
806 Note1: The area outside the mask is referred to as the background.
807
808 Note2: The operational result is based on the maximum transparency value of that background.
809
810 \paragraph{Case 1, Positive Fade:} When the fade for all of the masks is positive, affecting the area inside of the mask, all of the
811 background colors are at a transparency value of zero. So the largest transparency value is 0,and all masks are drawn with opaque backgrounds, depicted as one would expect.
812
813 \paragraph{Case 2, Negative Fade:} When the program computes the background color for any number of masks that includes negative
814 mask(s), it uses the largest transparency number as the determining factor for the background. Only 1 of the masks can be largest, and wins for the background transparency result.
815
816 \vspace{3ex}\textit{Feather}: works in a similar manner to a \textit{gradient Fade} aligned on the mask boundary but is a logical function instead of a mathematical function so will be faster.  The \textit{Gang feather} symbol also works in a similar fashion and is surrounded by a gold colored background when it is in effect.
817
818 \subsubsection*{Mask Points section}%
819 \label{ssub:masks_points_section}
820
821 This section is used to change to a different mask number and manipulate the masks you have created.
822
823 The \textit{Point}: textbox provides the ability to change which point number for the current mask that you want to work on.  It has a tumbler to allow for quickly switching the point number.  The \textit{X:} and \textit{Y:} boxes below reflect the current values and allow for modifying the $X/Y$ coordinates and these too have tumblers. The \textit{Delete} button will allow for deleting the selected point number.
824
825 The next 6 symbols in 2 columns represent \textit{Smooth} and \textit{Linear} buttons.  Smooth buttons use an algorithm based on the previous point and the next point to create a curved line. The smoothing operation takes three points, A, B, C, and arranges the slope at B to be AC as it moves to the next point for that mask.
826
827 \textit{smooth point}   $\rightarrow$ smooth a single point.
828
829 \textit{smooth curve}   $\rightarrow$ smooth all points on a mask edge curve.
830
831 \textit{smooth all}     $\rightarrow$ smooth all active masks.
832
833 Linear buttons of \textit{linear point}, \textit{linear curve}, and \textit{linear all}, perform the inverse of the smooth functions.
834 The control point vectors on the bezier endpoints are set to zero magnitude.
835
836 In addition there is a \textit{Markers} and a \textit{Boundary} checkbox which come in handy to turn off the display of the points and the outline of the mask.  Turning off \textit{Markers} is very useful when you have a lot of control points that clutter the display and make it more difficult to see the actual mask.  A helpful feature is available by disabling \textit{Markers} and enabling \textit{Boundary} which results in all masks being displayed in the viewer; for example you can then see mask 0, mask 1 \dots at the same time.
837
838 A \textit{gang} symbol on the right hand side of this section, tooltip of \textit{Gang points}, is another useful feature that makes it easy to drag a mask to an exact coordinate using the \textit{X} or \textit{Y} textbox for numerical input or the associated tumblers.  This works like the \texttt{Alt+LMB drag} translate but provides the ability to be precise.
839
840 \subsubsection*{Pivot Point section}%
841 \label{ssub:pivot_point_section}
842
843 The \textit{X:} and \textit{Y:} coordinates mark the value of the current \textit{Pivot Point} used for rotation, scaling, and translation.  You can either directly key in numerical values or use the tumblers to change the values as long as the \textit{Focus} checkbox is checked.
844
845 The \textit{Focus} checkbox is used in case you want to set a different point in the Compositor for pivoting instead.  And the \textit{Gang} symbol for rotate/scale/translate means that these operations will be performed on all points of the enabled masks.  The gang symbol is surrounded by a gold colored background when it is in effect.  When performing a rotate operation on a mask with the mouse wheel, \textit{acceleration} is in effect -- this means the faster you wheel, the more space is covered so that you do not have to wheel dozens of time to make a full rotation.  Then when you wheel around slower, you can fine tune the result.
846
847 \subsubsection*{Other sections}%
848 \label{ssub:other_sections}
849
850 Finally there are the \textit{Apply masks before plugins} and \textit{Disable OpenGL masking} self-explanatory checkboxes.
851
852 Note: Not all OpenGL software can support the current masking methods.  If your opengl implementation does not support Shader Version 4.3 or has trouble with this (it is relatively new to opengl at the time this was implemented), then this checkbox will allow you to use the software masking to avoid any potential issues.  Normally, a OpenGL is probed for the shader version and will automatically use the software implementation if required.
853
854 The \textit{Help} checkbox can be enabled in order to see a list of the keys used to perform various operations.  If you use Masking infrequently, these are a valuable reminder to which key combinations to use.  Currently they are as follows:
855
856 \vspace{2ex}
857 \begin{tabular}{ l  l }
858     \hline                      
859     Shift+LMB & move an end point \\
860     Ctrl+LMB & move a control point \\
861     Alt+LMB & to drag translate the mask \\
862     Shift+MMB & set Pivot Point at pointer \\
863     Wheel & rotate around Pivot Point \\
864     Ctrl+Shift+Wheel & scale around Pivot Point \\
865     Ctrl+Wheel & rotate/scale around pointer \\
866     \hline  
867 \end{tabular}
868
869 \vspace{2ex} Note: For some desktop window managers, certain keys may already be in use by the operating system, so you will either have to redefine them in your desktop or use different key combinations.  For example, at least some desktops used with \textit{UbuntuStudio 16.04} and \textit{Arch} field the \texttt{Alt} key, thus requiring alternative key combinations to be needed.  Below are some of these alternatives.
870
871 \vspace{2ex}
872 \begin{tabular}{ l p{11cm}}
873     \hline                      
874     LMB & move/create an end point (to move the end point the pointer must be above the point) \\
875     Shift+LMB & move an end point (the pointer may be near the point, not above it) \\
876     Ctrl+LMB & move/create a control point \\
877     Alt+Ctrl+LMB & to drag translate the mask \\
878     Shift+Key Delete & to delete the mask \\
879     Shift+MMB & Set Pivot Point at pointer \\
880     Alt+Wheel & zoom in/out the screen (also available in Ubuntu16 but does not exist in all distros) \\
881     \hline  
882 \end{tabular}
883
884 \vspace{2ex}
885 Focus checkbox = unchecked:
886
887 \vspace{2ex}
888 \begin{tabular}{ l  l }
889     \hline                      
890     Wheel & rotate around Pivot Point \\
891     Shift+Wheel & scale around Pivot Point \\
892     Ctrl+Wheel & rotate around pointer \\
893     Ctrl+Shift+Wheel & scale around pointer \\
894     
895     \hline  
896 \end{tabular}
897
898 \vspace{2ex}
899 Focus checkbox = checked:
900
901 \vspace{2ex}
902 \begin{tabular}{ l  l }
903     \hline                      
904     Wheel & rotate around Pivot Point (“Custom focus point”) \\
905     Shift+Wheel & scale around Pivot Point (“Custom focus point”) \\       
906     \hline  
907 \end{tabular}
908
909 \vspace{2ex}
910 Note: in order to be able to rotate/scale around pointer, the Focus checkbox must be unchecked.
911
912 \subsection{Cropping}%
913 \label{sub:cropping}
914
915 Cropping reduces the visible picture area of the whole project. It changes the values of the output dimensions (width and height in pixels) and the $X, Y$ values of the projector in a single operation. Since it changes project settings it affects all the tracks for their entire duration and it is not keyframable. 
916
917 \begin{figure}[htpb]
918     \centering
919     \includegraphics[width=0.5\linewidth]{images/cropped_area.png}
920     \caption{Cropped area is in the top right corner}
921     \label{fig:cropped_area}
922 \end{figure}
923
924 \begin{itemize}
925     \item Enable the crop toggle and the tool window in the compositor window to display the Crop control dialog box.
926     \item Click-drag anywhere in the video to define the crop area. This draws a rectangle over the video.
927     \item Click-drag anywhere in the video to start a new rectangle.
928     \item Click-drag over any corner of the rectangle to reposition the corner.
929     \item Alt-click in the cropping rectangle to translate the rectangle to any position without resizing it.
930     \item The crop control dialog allows text entry of the top left coordinates ($X1,Y1$) and bottom right coordinates ($X2,Y2$) that define the crop rectangle. When the rectangle is positioned, hit the \emph{Do it} button in the crop control dialog to execute the cropping operation: the portion of the image outside  the rectangle will be cut off and the projector will make the output fit the canvas.
931     \item The \textit{Set Format} window will show the new project Width and Height values.
932     \item The projector tool window will show the new $X, Y$ values.
933     \item Track size will remain unchanged.
934 \end{itemize}
935  
936 To undo the cropping enter the original project dimensions in the \textit{Set Format} window and click on \textit{Reset projector} in the popup menu of the compositor.
937
938 \subsection{Safe Regions}%
939 \label{sub:safe_regions}
940
941 On consumer displays the borders of the image are cut off and within the cut-off point is a region which is not always square like it is in the compositor window. 
942 The borders are intended for scratch room and vertical blanking data. 
943 You can show where these borders are by enabling the safe regions toggle. 
944 Keep titles inside the inner rectangle and keep action inside the outer rectangle.
945
946 \begin{figure}[htpb]
947     \centering
948     \includegraphics[width=0.5\linewidth]{images/safe_regions.png}
949     \caption{Note the black frames showing the safe regions}
950     \label{fig:safe_regions}
951 \end{figure}
952
953 \subsection{Track and Output Sizes}%
954 \label{sub:track_and_output_sizes}
955
956
957 The size of the temporary and the size of the output in our compositing pipeline are independent and variable. 
958 The camera's viewport is the temporary size. 
959 Effects are processed in the temporary and are affected by the temporary size. 
960 Projectors are rendered to the output and are affected by the output size. 
961 If the temporary is smaller than the output, the temporary is bordered by blank regions in the output. 
962 If the temporary is bigger than the output, the temporary is cropped.
963
964 \subsubsection*{Track size}%
965 \label{ssub:track_size}
966
967 The temporary size is defined as the track size. 
968 Each track has a different size. 
969 Right click on a track to bring up the track's menu. 
970 Select \emph{Resize Track} to resize the track to any arbitrary size. 
971 Alternatively you can select \emph{Match output size} to make the track the same size as the output. 
972 If you resize a track, then its appearance on the compositor changes accordingly. 
973 Using the relationship between the track and the project's output size you can effectively reduce or magnify the size of a particular track with regards to the final output and therefore create visual effects like split screens, pans, and zooms on the compositor.
974
975 \subsubsection*{Output size}%
976 \label{ssub:output_size}
977
978
979 The output size is set in either \texttt{File $\rightarrow$ New} when creating a new project or \texttt{Settings $\rightarrow$ Format}. 
980 In the Resources window there is another way to change the output size. 
981 Right click on a video asset and select \emph{Match project size} to conform the output to the asset. 
982 When new tracks are created, the track size always conforms to the output size specified by these methods.
983
984 When rendering, the project's output size is the final video track size where the temporary pipeline is rendered into.  
985 If the output size is larger than the temporary then the image transferred from the temporary will fit inside the Output Track. 
986 Any space left on the Output is left blank.  
987 If the output size is smaller than the temporary then some of the temporary video will be cropped.
988
989 \section{Viewer Window}%
990 \label{sec:viewer_window}
991
992 The viewer window (figure~\ref{fig:viewer_window}) is a place to load and preview your source media and clips.  
993 Here you can quickly browse through an asset using the slider control, focus on an area of work with the preview region or you use editing controls to cut and paste segments into the project or create a clip for later use.
994
995 \begin{figure}[htpb]
996     \centering
997     \includegraphics[width=0.99\linewidth]{images/viewer_window.png}
998     \caption{Viewer Window}
999     \label{fig:viewer_window}
1000 \end{figure}
1001
1002 To open the viewer window, go to \texttt{Window $\rightarrow$ Show Viewer}.  
1003 The display is the area on the viewer where you actually see media playing.  
1004 Before you can play any media, you must first load it on the viewer. 
1005 To load media into the viewer:
1006
1007 \begin{enumerate}
1008     \item  Open the resources manager window and select the Media folder or the Clip folder.
1009     \item  Drag a file from the Media or the Clip folder to the viewer.
1010 \end{enumerate}
1011
1012 You can also load media onto the viewer by right clicking on a file in the asset manager and selecting View from the popup menu or by double clicking on the icon. 
1013 Once your media loads you will see it appear on the display. 
1014 To play, rewind or forward through it use the slider control or the transport controls. 
1015 You can change the media display size by right clicking on the screen to activate the display zoom menu. 
1016 Select zoom levels of 50\%, 100\% or 200\% of the original media size.
1017
1018 When displaying media, the viewer uses the project's defined output size format settings, not the original assets format. 
1019 You can change the project's output to match the asset's format using the match project size menu option in the asset manager. 
1020 In the Viewer you can move around in the source media or clips and select regions to paste into the project. 
1021 Operations done in the viewer affect a temporary EDL or a clip, but not the timeline.
1022
1023 \section{Options in both the Compositor and Viewer Windows}%
1024 \label{sec:options_in_both_the_compositor_and_viewer_windows}
1025
1026 The next sections describe capabilities that are available in both the Compositor and Viewer windows.
1027
1028 \subsection{Click to Play in Viewer and Compositor}%
1029 \label{sub:click_to_play_in_viewer_and_compositor}
1030
1031 In both the Viewer and Compositor windows, there is an arrow on the right hand side of the other buttons in the edit panel.  
1032 Mouse action can be toggled on/off via this arrow, which has a tooltip of \textit{Click to play} with the letter "\texttt{P}" to be used for a shortcut.  
1033 When enabled there is a gold-colored shadow around the usual green-colored arrow.  
1034 The purpose of enabling this capability is to make it really easy to play the media in the window by just using the left mouse button to start or stop the play.  
1035 The entire main canvas surface becomes a big play button!  
1036 Although the default is initially off, a good reason to enable this, at least temporarily, is so that you can quickly review your video before a render. 
1037  
1038 \begin{description}
1039     \item[left click]          forward play or stop forward play if already playing
1040     \item[middle wheel]  single frame forward or back
1041     \item[middle click]    reverse play or stop reverse play if already playing. 
1042         Note that some 3 button mice do not accommodate a middle click for reverse but you can find out by testing from a terminal window with the command \texttt{xev}.
1043 \end{description}
1044
1045 \subsection{Timebar + Preview Region Usage in the Compositor and Viewer}%
1046 \label{sub:timebar_preview_region_usage_in_the_compositor_and_viewer}
1047
1048 The navigation features of the Viewer and Compositor behave very similarly. 
1049 Each has a timebar and slider below the video output. 
1050 The timebar represents the entire time covered by the program.   
1051 When you have a file loaded in the main window and then slide around it using the compositor slider. The insertion point in the main window follows the compositor. 
1052
1053 Labels and In/Out points are fully supported in the viewer and compositor.  
1054 In the viewer and compositor, labels and in/out points are displayed in the timebar.  
1055 But there is a difference between the viewer and compositor in that the compositor reflects the state of the program while the viewer reflects the state of a clip but not the program. 
1056 When you hit the label button in the compositor, the label appears both in the compositor timebar and the program timebar. 
1057 When you select a label or in/out point in the compositor, the insertion point in the program window jumps to that position. 
1058
1059 The timebar in the compositor and the viewer can be used to define a region known as the \textit{preview region}.  
1060 This preview region is the region of the timeline which the slider affects.  
1061 By using a preview region inside the entire program and using the slider inside the preview region you can very precisely and relatively quickly seek in the compositor and viewer.  
1062 The preview region can be especially handy when you have large pieces of media by previewing one section, then move to the next section.  
1063
1064 The active preview region is the zone between the edge bars.  
1065 The full range of the window slider pointer action is down-scaled to the active preview region.   
1066 To use this, set the preview active region as a media time region of interest.  
1067 Now addressing the timebar with the mouse only operates as if the timebar is zoomed to the scale of the active preview zone.  
1068 This has the effect of magnifying the interesting media in terms of the mouse pointer addressing, for fine-tuning.
1069
1070 \begin{figure}[htpb]
1071     \centering
1072     \includegraphics[width=0.8\linewidth]{images/timebar1.png}
1073     \caption{The arrow above the green colored “play forward” transport button is on the timebar.}
1074     \label{fig:timebar1}
1075 \end{figure}
1076
1077 To create and use a preview region, hold down the right mouse button inside the timebar on either end of the timebar close to the edge until you see the resize pointer.  
1078 While continuously holding the right mouse button down, drag the arrow away from the end towards the middle of the timebar until you have the desired area outlined.  
1079 The slider will be a light blue color while the selected preview region will remain the same initial black color.  
1080 There are either a left or right resize pointer and you can click and drag in either direction to expand or shrink the region.
1081
1082 \begin{figure}[htpb]
1083     \centering
1084     \includegraphics[width=0.8\linewidth]{images/timebar2.png}
1085     \caption{ A left-facing arrow on the right side of the blue slider bar is used to drag the bar.}
1086     \label{fig:timebar2}
1087 \end{figure}
1088
1089 \begin{figure}[htpb]
1090     \centering
1091     \includegraphics[width=0.8\linewidth]{images/timebar3.png}
1092     \caption{Here you can see the right-facing arrow used to drag the other end of the slider bar.  
1093         The black area between is the actual preview area.}
1094     \label{fig:timebar3}
1095 \end{figure}
1096
1097 You can slide the preview zone left or right by holding the right mouse button over the preview zone where you will see a fat double headed arrow.  
1098 The selected area will move left or right as you drag and still retains the same size.
1099
1100 \begin{figure}[htpb]
1101     \centering
1102     \includegraphics[width=0.8\linewidth]{images/timebar4.png}
1103     \caption{Note the double-headed fat arrow in the preview area used  to move the selection over.}
1104     \label{fig:timebar4}
1105 \end{figure}
1106
1107 Settings:
1108
1109 \begin{enumerate}
1110     \item  If no preview region is set, increasing the length of the media on the timeline by inserting media or
1111         appending, has no effect on the non-selected preview region.  That is, you will not see the blue slider
1112         suddenly mysteriously appear.
1113     \item  If the preview region is set, when you replace the current project or file,  the preview region is
1114         automatically disabled.
1115     \item  If the preview region is set, when you append data or change the size of the current project, the
1116         preview region may appear to either move, shrink, or grow depending on the new length of the
1117         media on the timeline.  
1118     \item  To disable the preview region, you will have to drag both the right and the left blue slider bars
1119         completely to their corresponding end so that there is no longer any visible blue slider.
1120 \end{enumerate}
1121
1122 A good method for taking advantage of the preview region is described here.  
1123 On the main track canvas, scroll to the beginning of the area of interest.  
1124 When you do that, you will see in the compositor the red indicator line of that location.  
1125 Now in the compositor window, right mouse drag from the left side of the edge of the timebar to create the blue slider bar line up to the red indicator.  
1126 Back in the main track canvas, move to the location of the area you want to end looking and again you will see the red indicator line in the compositor.  
1127 Use the right mouse drag from the right to stop at that end point.  Using this method is often easier than continuous usage of the single frame move which can be tedious.
1128
1129 One last interesting item of note -- sometimes you may wish to see just a little more that is outside the preview region and you can do so!  You can actually move outside the compositor or viewer window space and view more, at least until you hit the end of the monitor space.
1130
1131 \section{Resources Window}%
1132 \label{sec:resources_window}
1133
1134 Effects, transitions, labels, clips, proxies, user bins, and media assets are accessed here. 
1135 Most of the resources are inserted into the project by dragging them out of the resource window. 
1136 Management of resource allocation is also performed here.
1137
1138 \begin{figure}[htpb]
1139     \centering
1140     \includegraphics[width=0.7\linewidth]{images/resource_window.png}
1141     \caption{Folders are in the first column with contents of that folder on the right hand side}
1142     \label{fig:resource_window}
1143 \end{figure}
1144
1145 The resources window is divided into two areas (figure~\ref{fig:resource_window}. 
1146 One area lists folders and another area lists the folder contents. 
1147 Going into the folder list and clicking on a folder updates the contents area with the contents of that folder. 
1148 The folders can be displayed as icons or text. 
1149 There are several variations for displaying the contents; select \emph{Display text}, \emph{Display icons}, \emph{Display icons packed}, \emph{Display icons list} as types of display for the assets or plugins. 
1150 Use the letter “\texttt{V}” to easily scroll through the choices and see which you prefer.  
1151 You can also get to these options from the menu by a right mouse click in the window.
1152
1153 A \emph{Search} option is available for any of the folders in the Resources window (and when using \textit{Attach effect} on the main track canvas for the Plugins).  
1154 As you type in characters a match is made with that substring.  
1155 Names that do not match are filtered out making it a lot easier to find the item you are looking for.  
1156 The characters can be any where within the phrase and it does not matter if upper or lower case. 
1157
1158 Other options you will see if you \textit{right mouse click in the folder} which brings up the menu are described next.  
1159
1160 \begin{description}
1161     \item[ Load files ]  for convenience to load files same as from the main window so you do not have to move the mouse so far in case you have multiple monitors.
1162     \item[Display text/icons]  as described previously for format variations preference.
1163     \item[Select]  options are All, Used, Unused, and None.  This gives you the capability to have a set of the
1164         contents highlighted for ease of use so you can see what is or is not loaded, or unset the highlight.
1165     \item[Sort items]  to sort the contents of the folder alphabetically.  Especially helpful if you accidentally did a 
1166         drag and changed your mind or dropped suddenly so that the assets no longer look nicely aligned.
1167     \item[Copy/Paste file list]  use to easily copy a set of files or paste a set of files between Cin and windows.
1168     \item[Snapshot/Grabshot]  described elsewhere in more detail.
1169 \end{description}
1170
1171 Using the right mouse click to bring up a menu in the folder area, you can also switch from Display text to Display icons, Sort items and create, delete and manipulate user defined folders/bins. Select Folder to create a user Folder or modify an existing folder.
1172
1173 If you \textit{right mouse click on a highlighted/selected resource}, several options are available depending on whether the resource is an effect or transition or a piece of media.  
1174 You can highlight several for some options so that it is applicable to all of them, such as Info.  
1175 Those listed immediately below are the available choices for media assets.
1176
1177
1178 \begin{description}
1179     \item[Info]  provided basic Asset information; details are described later in this section.
1180     \item[Display text/icons]  same as mentioned previously.
1181     \item[Sort]  same as mentioned previously.
1182     \item[Rebuild index] if you switch from/to using ffmpeg/native for media loading, you should rebuild
1183         indexes.  Or if you get hangs on media or strange looking tracks, you might want to rebuild indexes.
1184     \item[View]  use this option to bring up the media in the Viewer window.
1185     \item[View in new window]  in order to not overwrite your current viewer window, you can open any
1186         number of viewer windows to simultaneously view multiple media.
1187     \item[Open mixers]  when you record with multiple cameras setup, you can work with them most easily
1188         using the mixer mode.  This is described in detail
1189     \item[Paste]  
1190     \item[Match]  if you need to change your media parameters you can choose from the following: Match frame
1191         rate, Match project size, Match all 
1192     \item[Remove]  use to Remove the asset from the project or with caution, to Remove from disk permanently.
1193 \end{description}
1194
1195 In the case of Effects or Transitions, a right mouse click on a highlighted selection leads to an \emph{Info} button which gives a short 1 line description of what the effect/transition can be used for.
1196 For Labels, choices are \emph{Edit}, \emph{Label}, and \emph{Go to}.
1197 For Clips, \emph{Nest} and \emph{UnNest} as described elsewhere are available.
1198
1199 \subsection{Info Asset Details}%
1200 \label{sub:info_asset_details}
1201
1202 The asset \emph{Info} window also can be used to display detailed information about the selected/highlighted media file -- available for any loaded media of type mpeg or ffmpeg.  
1203 This is extremely helpful in determining what type of media it is, size, resolution, format, and type/number of audio streams.  It is especially useful for multiple program streams.  You can have the info window popped on several of your assets simultaneously.
1204
1205 \textit{Asset's interlacing}  is the type of interlacing the asset has: If the file is (H)DV type, recognition and configuration is done automatically. All other media types will be set unknown. So we have to manually set the interlacing \protect\footnote{From Igor ubuntu's mail}.
1206
1207 Figure~\ref{fig:info_asset_details} shows the \textit{Detail} box to click on the left side and a simple, typical output in the Asset Detail window on the right side.  Also, note the highlighted media in the Resources window.
1208
1209 \begin{figure}[htpb]
1210     \centering
1211     \includegraphics[width=0.99\linewidth]{images/info_asset_details.png}
1212     \caption{The “Detail” box}
1213     \label{fig:info_asset_details}
1214 \end{figure}
1215
1216 \subsection{User Folders/Bins}%
1217 \label{sub:user_folders_bins}
1218
1219 Creating folders that are more specific to a particular project is helpful in better organizing your work.  
1220 This can be done by utilizing the files already loaded to the \textit{master} Media or Clips folders in the Resources window.  
1221 Below are steps illustrating an easy way to set up a folder.
1222
1223 %TODO Below part need to be rewriten
1224 \begin{enumerate}
1225     \item In the Resources window (figure~\ref{fig:folder_resources}), in the location of the Video/Audio effects and Media folders, bring up the \textit{Folder}$\dots$ popup by clicking the right mouse button.  
1226         Highlight, then click \textit{New Media or Clips}.
1227         \begin{figure}[htpb]
1228             \begin{minipage}{.55\linewidth}
1229                 \centering
1230                 \includegraphics[width=0.9\linewidth]{images/folder_resources.png}
1231                 \caption{Highlight, then click “New Media or Clips”.
1232                     “Modify folder” can be used to   change the name of a folder.
1233                     “Delete folder” in the popup can be used to delete a folder.
1234                 }
1235                 \label{fig:folder_resources}
1236             \end{minipage}
1237             \hfill
1238             \begin{minipage}{.35\linewidth}
1239                 \centering
1240                 \vspace{18ex}
1241
1242                 \includegraphics[width=0.9\linewidth]{images/folder_new.png}
1243                 \caption{Type in your folder name in the textbox.  Click OK.}
1244                 \label{fig:folder_new}
1245             \end{minipage}
1246         \end{figure}
1247     \item  In the \textit{New folder} popup as shown below (figure~\ref{fig:folder_new}), type in your folder name in the textbox.  Click OK.
1248         \begin{figure}[htpb]
1249             \centering
1250         \end{figure}
1251     \item  Select the \textit{master} Media folder to see which files are currently loaded, figure~\ref{fig:folder_master}.  
1252         Highlight the files there that you want to copy to your new folder (named Photos of Garden).  
1253         Drag the files to the left and when you see the Photos of Garden folder become highlighted, then drop there.  
1254         You can drag and drop any of the media from the \textit{master} Media at any time.  
1255         It flashes when the drop is successful.
1256 \end{enumerate}
1257
1258 \begin{wrapfigure}[12]{O}{0.53\linewidth} 
1259     \vspace{-3ex}
1260     \centering
1261     \includegraphics[width=0.9\linewidth]{images/folder_master.png}
1262     \caption{The “master” Media folder}
1263     \label{fig:folder_master}
1264 \end{wrapfigure}
1265
1266 Adding the Shift key before the actual drop, will allow for relative path filenames instead of full path.
1267 But you might want to include or eliminate some of the media that exists in one of the folders that you have set up already.  
1268 In this case you will want to click on the \textit{Modify folder} in the popup.  
1269 When you bring up the Modify folder window, if you already have files in that folder, you will see filters that were generated automatically when you did a Drag and Drop.
1270
1271
1272 \begin{figure}[htpb]
1273     \centering
1274     %\includegraphics[width=0.8\linewidth]{name.ext}
1275     \begin{tikzpicture}[scale=1, transform shape]
1276         \node (img1) [yshift=0cm, xshift=0cm, rotate=0] {\includegraphics[width=0.7\linewidth]{images/folder_modify.png}};
1277         \node [yshift=-31mm, xshift=-1cm,anchor=east] at (img1.north west) (Arrow1) {\parbox{8em}{Here is the filter that was generated with the original drop }};
1278         \node [yshift=-85mm, xshift=0cm,anchor=east] at (img1.north west) (Arrow2) {\parbox{10em}{When you click on the Value portion of that filter, the entire set of files that are covered by the filter rules pops up.   Now you can highlight a target filename that you would like to remove, and just erase that line and check the green checkmark for OK.}};
1279         \draw [->, line width=1mm] (Arrow1) edge  ([yshift=-31mm] img1.north west);
1280         \end{tikzpicture}
1281     
1282     \caption{Modify target}
1283     \label{fig:modify-target}
1284 \end{figure}
1285
1286 To delete the entire set of files listed on the filter rule, highlight the rule line and hit the \textit{Del} button.  
1287 To add a new filter rule, click on the \textit{Add} button which will automatically add a default line after any current lines.  
1288 The default line will be a line that matches everything in the \textit{master} Media folder which is \textit{Or  Patterns  Matches   *}.  
1289 Click the right mouse button on the current field underneath the column header to see the choices available for each column.  
1290
1291 Modifications will not be in effect until you click on the green arrow OK button or click on the Apply button.  
1292 But once you hit Apply, clicking on the red X button will not undo your changes.  
1293 The filter/search rules are applied in the order listed in the Modify folder window.  
1294 You can change the order of the filter rules by highlighting the rule you want to move and then drag and drop to a new location.
1295
1296 The figure~\ref{fig:modify_folder} below displays the available choices for each field.
1297
1298 \begin{figure}[htpb]
1299     \centering
1300     %\includegraphics[width=0.8\linewidth]{name.ext}
1301     \begin{tikzpicture}[scale=1, transform shape]
1302         \node (img1) [yshift=0cm, xshift=0cm, rotate=0] {\includegraphics[width=0.6\linewidth]{images/modify_folder1.png}};
1303         \node (img2) [yshift=-1cm, xshift=4cm, rotate=0] at (img1) {\includegraphics[width=0.6\linewidth]{images/modify_folder2.png}};
1304         \node (img3) [yshift=-1cm, xshift=3cm, rotate=0] at (img2){\includegraphics[width=0.3\linewidth]{images/modify_folder3.png}};
1305     \end{tikzpicture}
1306     \caption{The available choices for each field}
1307     \label{fig:modify_folder}
1308 \end{figure}
1309
1310 Information about the columns and rules for the search filters in the Modify folder window follows.
1311
1312 Column headers:
1313
1314 \begin{description}
1315 \item[ Enable]  this column is used to designate the state of that filter rule
1316     \begin{description}
1317         \item[ Off]             disable the filter
1318                 \item[And]              narrow your search; all of your search terms must be present
1319                 \item[Or]               broaden your search to include more values
1320                 \item[And Not]  exclude terms that do not contain the given value from your search results
1321                 \item[Or Not]   include terms that do not contain the given value from your search results
1322     \end{description}
1323 \item [Target] – this column designates which media asset attribute to look at
1324     \begin{description}
1325         \item[ Patterns]        each line contains a filename filter, matches the file path
1326                 \item[Filesize] number of bytes in a file
1327                 \item[Time]             date file was created
1328                 \item[Track Type]       track type of video, audio, or audio video (for both)
1329                 \item[Width]    Format width
1330                 \item[Height]   Format height
1331                 \item[Framerate]        Video framerate
1332                 \item[Samplerate]       Audio samplerate
1333                 \item[Channels] Number of audio channels
1334                 \item[Duration] Playback time in seconds -- it uses the largest of audio or video if contains both
1335     \end{description}
1336 \item[Op] – boolean operators used to narrow or broaden the relationship between your search terms
1337     \begin{description}
1338         \item[Around]   about this value; use \textit{+radius} for a search range: [target–radius$\dots$  target+radius]
1339         \item[Eq        ]       equal to
1340         \item[Ge]       greater than or equal to
1341         \item[Gt]       greater than
1342         \item[Ne]not equal
1343         \item[Le]       less than or equal
1344         \item[Lt] less than
1345         \item[Matches]  exactly matches for strings
1346     \end{description}
1347 \end{description}
1348
1349 \textbf{Value} --- the characteristic you are looking for with expressions that can be written with the following:
1350
1351 \begin{description}
1352 \item[Number] (decimal points are allowed and will be converted to a standard form):
1353     \begin{description}
1354         \item[inf] representing infinity
1355         \item[\#[TtGgMmKk]]  ---  where \# represents a number and the characters mean:
1356     \end{description}
1357
1358     \begin{tabular}{rcl}
1359         inf&=& infinity\\
1360         T&=&1099511627776\\
1361         t&=&1000000000000\\
1362         G&=&1073741824\\
1363         g&=&1000000000\\
1364         M&=&1048576\\
1365         m&=&1000000\\
1366         K&=&1024\\
1367         k&=&1000\\
1368     \end{tabular}
1369
1370 \item[Scalar:] 
1371
1372     \begin{tabular}{l}
1373         Number\\
1374         Number+Number\\
1375     \end{tabular}
1376 \item[Date time:]
1377     \begin{tabular}{rcl}
1378         date&=&year/month\\
1379         date&=&year/month/day\\
1380         time&=&hour:minute\\
1381         time&=&hour:minute:second\\
1382         date\_time&=&date time\\
1383     \end{tabular}
1384
1385   \item[Duration:]
1386       \begin{tabular}{rcl}
1387     day  &=&    \#day     | \#days\\
1388     week &=&    \#week    | \#weeks\\
1389     month&=&    \#month | \#months\\
1390     year &=&    \#year    | \#years\\
1391     delta&=&secs\\
1392     delta&=&mins:secs\\
1393     delta&=&hours:mins:secs\\
1394       \end{tabular}
1395
1396 \item[Around time:]
1397     date time+duration
1398
1399   \item[Around length:]
1400     duration+duration
1401
1402 \end{description}
1403
1404 Table showing the allowed usage:
1405
1406 %TODO create table for below code
1407 \begin{lstlisting}[numbers=none]
1408 target:    |  eq  ge  gt  ne  le  lt   matches  around
1409 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1410 patterns   | <---- strcmp ---------> + filter + nearest
1411 file_size  | <---- arithmetic -------+------> + radius
1412 mod_time   | <---- arithmetic -------+------> + radius
1413 track_type | <---- member test ------+--------+------>
1414 width      | <---- arithmetic -------+------> + radius
1415 height     | <---- arithmetic -------+------> + radius
1416 framerate  | <---- arithmetic -------+------> + radius
1417 samplerate | <---- arithmetic -------+------> + radius
1418 channels   | <---- arithmetic -------+------> + radius
1419 duration   | <---- arithmetic -------+------> + radius
1420 \end{lstlisting}
1421
1422 where in the above, the filter can be:
1423
1424 \begin{tabular}{rcl}
1425     filter&=&list\\
1426     filter&=&token\\
1427     list&=&[token]\\
1428     list&=&[token]list\\
1429     string&=&<chars>|<empty>\\
1430     token&=&string\\
1431     token&=&string*token\\
1432 \end{tabular}
1433
1434 Examples with some caveats first:
1435
1436 \begin{enumerate}
1437     \item   \textit{Or} generally includes or adds whereas \textit{And} generally excludes or subtracts.
1438     \item   The filters only work on media in the folder; if there is no media, then there is nothing to search.
1439     \item   The examples below are not meant to be executed as a list of filters in Modify folder, they are just single line examples to indicate what can work.
1440     \item   Sort is by filename base name (directory path not included automatically) except when the \textit{Around} operation is used and then it is sorted by that Target distance first and then filename.
1441 \end{enumerate}
1442
1443 \begin{table}[htpb]
1444     \centering
1445     \caption{Examples}
1446     \label{tab:label}
1447     \small
1448     \begin{tabular}{llllm{10em}} \toprule
1449         Enable& Target& Op&     Value&  meaning\\\midrule
1450 Or      &Patterns  &Matches   &*&        all files from the Media folder are included\\
1451 And Not&Filesize&Lt     &160000000& no files that are less than 160MB in size \\
1452 Or Not& Time    &Ge     &2018/07/30 06:13:00    & files not greater than or equal date\\
1453 And     &Duration&Eq    &01:00          & files included must have 60 secs. Duration\\
1454 Off     &Samplerate&Ne  &44000          & off for now, but may want to include later\\
1455 And     &Framerate&Around&24+1          & files included all have 24 to 25 framerate\\
1456 Or      &Patterns&Matches&[*.mp4]       & all files with the extension of mp4\\
1457 Or      &Time&  Around&2018/08/02 06:00:00 + 02:00:00  & files at 4AM to 8 AM\\\bottomrule
1458     \end{tabular}
1459 \end{table}
1460
1461
1462 \subsection{Vicons \& Aicons – aka Video Icons / Audio Icons}%
1463 \label{sub:vicons_aicons_aka_video_icons_audio_icons}
1464
1465 Vicons are video icons.  
1466 Aicons are audio icons.  
1467 By default the Resources window will play the first 5 seconds of video or audio waveform looped in the area occupied by the media icons (figure~\ref{fig:vicons1}). 
1468 This is enabled for the Media/Proxy folders in icon mode when the mouse pointer is inside the Resources window. 
1469
1470 \begin{figure}[htpb]
1471     \centering
1472     \includegraphics[width=0.99\linewidth]{images/vicons1.png}
1473     \caption{Note "Full Play" mode and Vicons and Aicons in Media folder}
1474     \label{fig:vicons1}
1475 \end{figure}
1476
1477 The waveform in the figure~\ref{fig:vicons2} is displayed in the Resources window in the color green/yellow for the 2 audio tracks. 
1478 There is a colored bar on the top of each a-icon where the color is based on the Color Spectrum -- the smaller the time duration, the redder the color; then as the time duration goes up, the color goes up so that you will go to green, then yellow, then blue, then really dark blue, then purple for the audio files 1 hour and over.  
1479 There are various other colors between these colors same as that seen in the color spectrum in the screenshot below.  
1480 Colors are utilized from the hue wheel in the counter-clockwise direction.  
1481 Note that the horizontal line in the middle of the a-icon is yellow/red representing the 2 audio tracks and is only red for mono.
1482
1483
1484
1485 \begin{figure}[htpb]
1486     \centering
1487     %\includegraphics[width=0.8\linewidth]{name.ext}
1488     \begin{tikzpicture}[scale=1, transform shape]
1489         \node (img1) [yshift=0cm, xshift=0cm, rotate=0] {\includegraphics[width=0.99\linewidth]{images/vicons2.png}};
1490         \node (img2) [yshift=0cm, xshift=2.8cm, rotate=0] at (img1.south west) {\includegraphics[width=0.3\linewidth]{images/hue_wheel.png}};
1491         \node [yshift=-5mm, xshift=1cm,anchor=west] at (img2.east) (Arrow1) {\parbox{18em}{Color hue wheel. For illustration only}};
1492         \draw [->, line width=1mm] (Arrow1) edge  ([yshift=-5mm] img2.east);
1493     \end{tikzpicture}
1494     \caption{Draw Vicons   |            Screenshot display various audio file lengths; red is shortest.}
1495     \label{fig:vicons2}
1496 \end{figure}
1497
1498 Note that if in \texttt{Settings $\rightarrow$ Preferences} under the Appearance tab, you have unchecked \textit{Use thumbnails in resource window} you will only have default icons and none of the above capabilities.
1499
1500
1501 \subsection{Resources Window Preview Mode}%
1502 \label{sub:resources_window_preview_mode}
1503
1504
1505 Preview mode can be used to pop up a window which draws the vicons/aicons thumbnails in a larger size.  
1506 Preview or \textit{draw vicons} mode is a helpful feature of Cinelerra that lets you see and/or hear the first 5 seconds of the video for identification purposes. 
1507 The Preview mode/playback toggle is to the right of the Visibility label as seen in the screenshot above. 
1508 Preview mode is available for the Media, Proxy, Media User Bins, and Clips but clips are only 1 image.
1509
1510 When \textit{Preview/draw vicons} is enabled/active, if you click on one of the video icons or an audio waveform icon, a view pops up that increases the size to 4 times the surface area larger. 
1511 This makes it easier to see or hear if it is the media you are looking for in case you have many similar media files. 
1512 To conserve memory, the video is stored 8\,bits per pixel which results in low image quality while the audio is 16\,bit. 
1513 The reason for playing 5 seconds of a video for a vicon is that until the first I-frame, the media frequently does not decode properly.  
1514 In other words, a lot of media does not begin at the \textit{beginning} point and will not be properly rendered until enough data has been read to assemble a picture.  
1515 You can increase the thumbnail size, clarity of pixels (memory size) and color mode but it takes a lot more memory.  
1516 Change these values in \texttt{Settings $\rightarrow$ Preferences}, Appearance tab, right hand side of the Layout section -- be aware that when you click OK, your session will re-initialize.  
1517 You can also temporarily increase the preview mini-window by use of the mouse wheel up or down.
1518
1519 There are 4 options for the preview mode.
1520
1521 \begin{enumerate}
1522     \item  \emph{Full Play} is the default mode.  
1523         This means all of the media will automatically play when the mouse is in the Resources window and you can use the left mouse button to click on specific media to see it pop up in a larger view.  
1524         Audio only files do not play the audio until the icon is clicked on and the waveform aicon pops up into the 4x larger mode. 
1525         \emph{Full Play} includes the \emph{Mouse Over} capabilities as described below as well as the Inter-View \emph{Src Target} functions.
1526
1527         \item  \emph{No Play} mode is especially useful on smaller computers and for users who find the constant loop play to be somewhat distracting.
1528
1529         \item  \emph{Mouse Over} mode is activated by a single click on one of the vicons/aicons and deactivated with another single click over any of the icons.  
1530     Once activated, whenever you just move the mouse over an icon, it automatically pops up the increased size preview.  
1531     The first time in your session that you enable this feature, it may take a few seconds to load all of the icon previews into memory so be patient and just wait.  
1532     \emph{Mouse Over} mode makes it quick and easy to preview without having to drag the media to the viewer.  
1533     You can still drag the media same as without preview enabled.  
1534
1535         \item  \emph{Src Target} mode gives easy access to the Inter-View source target available by using the middle mouse button on media.  
1536     There are 2 advantages to this mode -- there is no 5 second play loop taking up cpu time and the popup allows for the use of the letter “\texttt{f}” on that popup to have it go to fullscreen mode.  
1537     \emph{Src Target} mode in any scenario never plays sound as that is nonsensical usage.  
1538     After the initial click to pop media in this mode, you also have the \emph{Mouse over} feature.
1539 \end{enumerate}
1540
1541 For any of the options, but not \emph{No Play}, you can temporarily turn off that option by clicking on the button using the middle mouse button.  
1542 This helps to avoid having the thumbnail get in the way of dragging or other functions.  
1543 When you do, a line will be drawn through the current preview mode so that you are aware that it is in \emph{No Play} mode until click it again.
1544
1545 Note that if in \texttt{Settings $\rightarrow$ Preferences} under the Appearance tab, you have unchecked \textit{Use thumbnails in resource window} you will only have default icons and no active previews.
1546
1547 \begin{figure}[htpb]
1548     \begin{minipage}{.69\linewidth}
1549         \centering
1550         \includegraphics[width=0.99\linewidth]{images/preview_icon_mode.png}
1551         \caption{The location of the Preview/Draw Icons mode.}
1552         \label{fig:preview_icon_mode}
1553     \end{minipage}
1554     \hfill
1555     \begin{minipage}{.29\linewidth}
1556         \vspace{2ex}
1557         \centering
1558         \includegraphics[width=0.7\linewidth]{images/line_through_mode.png}
1559         \caption{Note the line through the mode.}
1560         \label{fig:line_through_mode}
1561     \end{minipage}
1562 \end{figure}
1563
1564
1565
1566 \subsection{Moving clips/media from/to Resources window}%
1567 \label{sub:moving_clips_media_from_to_resources_window}
1568
1569 If you have several media files loaded into the Resources window of one instance of Cinelerra and want to load some of the same ones into another instance or just want a listing to save in a file for later use, you can do this with these set of steps:
1570
1571 Copy or paste a list of files in the Media Resources window:  
1572
1573
1574 \begin{enumerate}
1575     \item  create a highlighted selection of the desired media files in the media Resources window
1576     \item    right click on an unused portion of that window to bring up the popup menu
1577     \item     select the \textit{Copy file list} item and a file list box will appear that contains the full path filenames
1578     \item     wipe the textbox using your standard copy/paste method to put the list of files in the copy buffer
1579     \item     in another Cinelerra instance, choose the \textit{Paste file list} of the media Resources window
1580     \item     paste the list of files, again using your standard paste method, into the new file list box; press OK
1581     \item    the status bar of the main window will be updated as the file list is loaded to the media folder (the purpose of displaying the status is simply to show that the load is progressing normally).
1582 \end{enumerate}
1583
1584 Obviously this \textit{Paste file list} feature means you can create a list of files outside of Cinelerra using an editor, wipe the names, and then use \textit{Paste file list} to load them into the media Resources window.  
1585
1586 It is important to note that in the steps above, the Operating System cut and paste capabilities are in use for steps 4 and 6 as opposed to Cinelerra’s c/v shortcuts.  
1587 Since the procedure varies among the distros, you will have to adapt to your specific one.  For example, a usage for ubuntu consists of:
1588 \begin{enumerate}
1589     \setcounter{enumi}{3}
1590     \item   Ctrl-c to copy the list of files; open gedit; Ctrl-v to paste the list of files into gedit
1591     \item   Ctrl-c or the standard way using the right click to copy this list from gedit
1592     \item Ctrl-v paste the list of files into the new file list box, and press OK
1593 \end{enumerate}
1594
1595 \begin{figure}[htpb]
1596     \centering
1597     \begin{minipage}{.49\linewidth}
1598     \centering
1599         \includegraphics[width=0.99\linewidth]{images/copy_files1.png}
1600     \end{minipage}
1601     \hfill
1602     \begin{minipage}{.49\linewidth}
1603     \centering
1604         \includegraphics[width=0.99\linewidth]{images/copy_files2.png}
1605     \end{minipage}
1606     \caption{Example of copy file list}
1607     \label{fig:copy_files1}
1608 \end{figure}
1609
1610 In the Figure~\ref{fig:copy_files1}, one instance of Cinelerra has 6 items in the Media area highlighted that were copied to the file list.  
1611 Note how it includes the full pathname.
1612
1613 In this screenshot on another instance of Cinelerra, there are only 2 items in the media but the \textit{Paste file list} box is ready to have the items inserted via the standard text box paste method.  When that is done, the additional 6 media files will be available on this other instance too.
1614
1615
1616 Another possible usage of this capability:
1617
1618 \begin{enumerate}
1619     \item  Right Click on the Clips Resources window and use the \textit{Paste Clip} option to paste the Copy selection as a clip.  
1620     \item  Similarly, by highlighting a clip in the Resources window and selecting its copy popup menu item using the right mouse button, that copy buffer can now be loaded onto the timeline.
1621 \end{enumerate}
1622
1623
1624 \subsection{Snapshot / Grabshot}%
1625 \label{sub:snapshot_grabshot}
1626
1627 \begin{figure}[htpb]
1628     \centering
1629     \begin{minipage}{.49\linewidth}
1630     \centering
1631     \includegraphics[width=0.8\linewidth]{images/snapshot.png}
1632     \caption{Snapshot menu and choices}
1633     \label{fig:snapshot}
1634     \end{minipage}
1635     \begin{minipage}{.49\linewidth}
1636     \centering
1637     \begin{tikzpicture}[scale=1, transform shape]
1638         \node (img1) [yshift=0cm, xshift=0cm, rotate=0] {\includegraphics[width=0.65\linewidth]{images/grabshot.png}};
1639         \node (img2) [yshift=2cm, xshift=-1cm, rotate=0] {\includegraphics[width=0.07\linewidth]{images/reticle.png}};
1640     \end{tikzpicture}
1641     \caption{Grabshot reticle \& orange box}
1642     \label{fig:grabshot_recticle}
1643     \end{minipage}
1644 \end{figure}
1645
1646 To take a snapshot, perform the following steps:
1647
1648 \begin{enumerate}
1649     \item set your timeline insert marker where you want the snapshot -- this frame shows in the compositor
1650     \item  right click in an empty spot in the media folder and the popup shows snapshot as the $5^{th}$ item down
1651     \item  highlight that and the submenu comes up allowing you to choose png, jpg, ppm or tiff
1652 \end{enumerate}
1653
1654 The snapshot shows up in the Media folder.  
1655 It is saved by default in \texttt{/tmp} as
1656
1657 \texttt{snap\_date-time.ext} BUT you can change the default directory path in \texttt{Settings $\rightarrow$ Preferences $\rightarrow$ Interface tab} in the right hand side of the Editing section.
1658
1659 Grabshot is the $6^{th}$ menu item.  
1660 A red circle reticle can be moved to the area to grab; use left mouse drag to surround an area; and right click to grab.
1661
1662
1663
1664
1665 \section{Other Options and Other Windows}%
1666 \label{sec:other_options_and_other_windows}
1667
1668 \subsection{Transport Controls}%
1669 \label{sub:transport_controls}
1670
1671 Transport controls are useful for navigation and for playing media.  
1672 Each of the Viewer, Compositor, and Program windows has its own transport panel.  
1673 The controls generally all contain a yellow colored tooltip when you mouse over the control, providing a hint of their function and shortcuts for usage.
1674
1675 The transport panel is controlled by the keyboard as well as the graphical interface. 
1676 For each of the operations it performs, the starting position is the position of the insertion point in the Program window and the slider in the Compositor and Viewer windows. 
1677 The ending position is either the end or start of the timeline or the end or start of the selected region if there is one.
1678
1679 The orientation of the end or start depends on the direction of playback. 
1680 If it is forward the end position is the end of the selected region. 
1681 If it is backward the end position is the start of the selected region.  
1682 The insertion point moves to track playback. 
1683 When playback stops, the insertion point stays where playback stopped. 
1684 Thus, by playing back you change the position of the insertion point. 
1685 The keyboard interface of either the numeric pad or alternative keys has more speeds with the addition of \emph{Forward Slow}(2) and \emph{Reverse Slow} (5).  
1686 Hitting any key on the keyboard twice pauses it. 
1687 The shortcuts section of this manual as well as a Shell Command available from the Cinelerra main window has a listing of each of the keys.
1688
1689 When using frame advance functions the behavior may seem odd. 
1690 If you frame advance forward and then frame advance backward, the displayed frame does not change. 
1691 This is because the playback position is not the frame but the time between two frames. 
1692 The rendered frame is the area that the playback position crosses. 
1693 When you increment the time between two frames by one and decrement it by one, you cross the same frame both times and so the same frame is displayed.  
1694 There is an option in \texttt{Settings $\rightarrow$ Preferences, Appearance tab} to \textit{Always show next frame} that may help make this clearer for some users.
1695
1696 The transport behavior changes if you hold down Ctrl when issuing any of the transport commands. This causes the starting point to be the In point if playing forward and the Out point if playing backward. If playing forward, the Out point becomes the ending point and if playing backward, the In point becomes the ending point. If no In/Out points are specified, the behavior falls back to using the insertion point and track boundaries as the starting and ending points.
1697
1698 The transport behavior also changes if you hold down the Shift key along with KeyPad 1--6.  
1699 If normally audio is included in the play, it will be removed and if normally audio is not included in the play, it will be added.
1700
1701
1702 \subsection{Zoombar}%
1703 \label{sub:zoombar}
1704
1705 The compositor has zoom capability. 
1706 The pull-down menu on the bottom of the compositor window has a number of zoom options. 
1707 When set to Auto the video is zoomed to match the compositor window size as closely as possible. 
1708 When set to any other percentage, the video is zoomed a power of 2 and scrollbars can be used to scroll around the output. 
1709 When the video is zoomed bigger than the window size,  you can use scrollbars to scan around or if the zoom icon is enabled, the middle mouse button can be used to zoom in or out the video.
1710
1711 The zoom toggle also causes the Compositor window to enter zoom mode. 
1712 In zoom mode, clicking in the video output zooms in while a Ctrl-click in the video output zooms out. 
1713 If you have a wheel mouse, rotating the wheel zooms in or out too. 
1714 Zooming in or out with the zoom tool does not change the rendered output. 
1715 It is merely for scrutinizing video or fitting it in the desktop. Playing video on the compositor when zoomed to any size other that 100\%, the original size, requires Cinelerra to do extra processing steps. 
1716 This could affect performance on slower systems
1717
1718 \subsection{Show Overlays}%
1719 \label{sub:show_overlays}
1720
1721 Color Coded Keyframe Curves are a big feature in the \textit{Show Overlays} window because by changing the colors to suit the user, it helps to remove confusion from multiple curves on the track canvas.  
1722 They can be viewed from the pulldown menu of \texttt{Window $\rightarrow$ Show overlays} but they will operate the same as when used from the View pulldown menu.  
1723 The \textit{Color Coded Keyframe Curves} have distinct colors associated with each type for ease of identification.  
1724 By clicking button 1 on the \textit{Color Ball} to the right of any keyframe type in the \textit{Show overlays} menu you have the ability to change the colors to whatever works best for your video.  
1725 The color ball changes made will be retained across sessions.
1726
1727 There is a line separating the first 4 items, which are just non-automation type settable values as opposed to \textit{auto} keyframe types.  
1728 The color is not changeable for the 3 items of Mode, Pan, and Mask which simply display their symbol icon.
1729
1730 Screenshot below displays the Show overlays popup with all of its options and color coded types such as yellow for Speed and blue for Camera Z.  
1731 Upon clicking on the associated \textit{color ball} to the right of any keyframe type, for example \textit{Fade} in this screenshot, the color wheel palette window pops up so that you can manipulate the color as desired.
1732
1733 \begin{figure}[htpb]
1734     \centering
1735     \includegraphics[width=0.99\linewidth]{images/overlays_window.png}
1736     \caption{Show Overlays window on the left with the Color ball window to the right to set color}
1737     \label{fig:overlays_window}
1738 \end{figure}
1739
1740 Screenshot below shows several color coded lines for different keyframes along with the Fade slider for manipulation.  
1741 The slider is in the same color as the color coded keyframe type line which is the same color as in the \textit{Show overlays} window.
1742
1743 \begin{figure}[htpb]
1744     \centering
1745     \includegraphics[width=0.8\linewidth]{images/overlays1.png}
1746     \caption{Lines are colored here on the timeline as designated in Show Overlays}
1747     \label{fig:overlays1}
1748 \end{figure}
1749
1750 Overlays Window Nuances:
1751
1752 The Overlays window is an alternative to the main track canvas View pulldown, and thus the order is mostly maintained to match each other.  
1753 To make it easier to get a quick temporary look at a specific option, there is a shortcut of Shift-LMB (left mouse button) that can be used as opposed to having to uncheck everything that is currently checked and then having to recheck them on when done.  
1754 Here is a list of how they work.  Keep in mind that if the Expander on the patchbay is enabled, you still see the track.
1755
1756 \begin{itemize}
1757     \item  Shift+LMB (left mouse button) in the Overlays Window on a checkbox will turn off all other
1758         checkboxes except for the one you are on.  Then this named box will have outline for a  \textit{hot} spot.
1759     \item  Shift+LMB on this \textit{hot} spot will return to \textit{cool} of the previous settings with all of the previous
1760         checkboxes checked again.
1761     \item  Shift+LMB on a non-\textit{hot} spot will simply check or uncheck a box and there is no previous state.
1762     \item This all works in conjunction with the View pulldown menu which, of course, has no hot spots.
1763     \item  Caveat \#1 - Shift+LMB on the top 4 choices of Assets, Titles, Transitions, Plugin Keyframes will turn
1764         off all of the checkboxes below because it makes sense to do so.
1765     \item  Caveat \#2 - Shift+LMB on the Autos will not turn off Assets, Titles, Transitions, or Plugin Keyframes
1766         because you need to be able to see what is going on.
1767         \item Caveat \#3 - XYZ toggle on/off of Camera and Projector are not affected.
1768 \end{itemize}
1769
1770 \begin{figure}[htpb]
1771     \begin{minipage}{.29\linewidth}
1772         \centering
1773         \includegraphics[width=0.99\linewidth]{images/overlays_list1.png}
1774         \caption{Original Settings --- cool spot}
1775         \label{fig:overlays_list1}
1776     \end{minipage}
1777     \hfill
1778     \begin{minipage}{.29\linewidth}
1779         \centering
1780         \includegraphics[width=0.99\linewidth]{images/overlays_list2.png}
1781         \caption{Note Titles box hot spot  }
1782         \label{fig:overlays_list2}
1783     \end{minipage}
1784     \hfill
1785     \begin{minipage}{.29\linewidth}
1786         \centering
1787         \includegraphics[width=0.99\linewidth]{images/overlays_list3.png}
1788         \caption{Cam/Proj XYZ toggle to fine tune}
1789         \label{fig:overlays_list3}
1790     \end{minipage}
1791 \end{figure}
1792
1793
1794 \subsection{Sound Level Meters Window}%
1795 \label{sub:sound_level_meters_window}
1796
1797 An additional window, the levels window, can be brought up from the Window pulldown.  
1798 The levels window displays the output audio levels after all mixing is done.  
1799 The visible range of the sound level meters is configurable in \texttt{Settings $\rightarrow$ Preferences, Interface tab} under the Operations section.
1800
1801 \begin{wrapfigure}[16]{O}{0.3\linewidth} 
1802     \centering
1803     %\vspace{-4ex}
1804     \includegraphics[width=0.5\linewidth]{images/volume_meter.png}
1805     \caption{Sound Level Meters Window}
1806     \label{fig:volume_meter}
1807 \end{wrapfigure}
1808
1809 Sound level meters can be toggled in the viewer and compositor windows with the show meters button.  
1810 They also appear in the patchbay when the track is expanded and in the recording monitor when audio is being recorded. 
1811
1812 The sound levels in the levels window, compositor, and viewer correspond to the final output levels before they are clipped to the sound card range.  
1813 In the record monitor they are the input values from the sound card.  
1814 In the patchbay they are the sound levels for each track after all effects are processed and before down-mixing for the output.  
1815 Most of the time, audio levels have numerical markings in dB but in the patchbay there is not enough room.
1816
1817
1818
1819 The sound level is color coded as an extra means of determining the sound level.  
1820 Even without numerical markings, the sound level color can distinguish between several ranges and overload.  
1821 Look at the color codings in a meter with numerical markings to see what colors correspond to what sound level.  
1822 Then for meters in the patchbay in expanded audio tracks, use the color codings to see if it is overloading.
1823
1824 Be aware that sound levels in Cinelerra can go above 0 dB.  
1825 This allows for not only seeing if a track is overloading but how much information is being lost by the overloading.  
1826 Overloading by less than 3 dB is usually acceptable.  
1827 While overloading is treated as positive numbers in Cinelerra, it is clipped to 0 when sent to a sound card or file.
1828
1829
1830
1831
1832
1833
1834