Assists music production by grouping standalone programs into sessions. Community version of "Non Session Manager".
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

392 lines
17KB

  1. ! title The Non Sequencer
  2. ! author Jonathan Moore Liles #(email,male@tuxfamily.org)
  3. -- Table Of Contents
  4. : Description
  5. < non-new-about.png
  6. :: Guiding Principles
  7. + Flexibility
  8. + Efficiency
  9. + Purpose
  10. + Grace
  11. Non has many modes and functions. Where flexibility comes at a small
  12. cost, we prefer to be flexible and make up the difference
  13. elsewhere. Where arbitrary limitations are reasonable and necessary,
  14. Non enforces them, but not without being forced into it. Where it is
  15. easier to be inefficient than efficient, but the efficiency matters,
  16. we prefer to put in the (small amount of) work required to be
  17. efficient, often resulting in thousand-fold performance gains; this
  18. may sound like an obvious statement, but, in fact, design for
  19. efficiency is a rare practice in this (Linux Audio/'Modern'
  20. software) arena. Although it is tempting to implement a kitchen sink
  21. in every program, we resist the urge. Non has the purpose of being a
  22. real-time sequencer and anything outside of that scope is a job for
  23. another day. If there is something related to the task at hand that
  24. a computer can do instantly and easily, but which requires labor for
  25. you, Non tries to do it for you so that you can continue making
  26. music without being bothered. Non's user interface is designed to
  27. combine the stark functionality and speed of hardware with the
  28. degrees of freedom of software.
  29. : The Interface
  30. The interface is quite simple and is based on the excellent FLTK
  31. (1.1.x) toolkit. (Versions \< 1 of Non were based on raw Xlib and a
  32. few Motif widgets.) The author examined many toolkits before
  33. beginning, and has absolutely no interest in pursuing GTK or Qt--Non
  34. simply doesn't require much of a toolkit, and these are incapable of
  35. providing less than total excess.
  36. Non's GUI is highly optimized. Common operations are designed to be
  37. as fast as possible. Where other sequencers completely monopolize
  38. the CPU when scrolling, etc., Non performs smoothly--even on
  39. antiquated hardware. It is not technically difficult to achieve
  40. such speed. And, in fact, it is a shame that more developers don't
  41. consider good (or even just reasonable) performance a priority.
  42. :: The Pattern Editor
  43. < non-pattern-editor.png
  44. Upon invocation, Non enters the pattern editor and loads Pattern
  45. 1. The pattern editor presents a grid interface--the heart of a step
  46. sequencer. You can toggle a note on the grid by entering its
  47. coordinates with the keyboard or clicking an intersection with the
  48. mouse. The length of patterns is unlimited and no special action is
  49. required to lengthen them (simply adding notes beyond the "end" is
  50. enough.) Non can present grids in one of two modes, expanded and
  51. compacted. In the compacted view, only named rows are displayed;
  52. this means that only the notes the current instrument or scale will
  53. consume vertical space--resulting in far more efficient use of
  54. screen real-estate. Any notes that are made invisible by the
  55. compacted view will be silenced.
  56. You may add, remove, transpose, move, and edit notes, as well as
  57. trigger/mute patterns, while the transport is running.
  58. The resolution of the pattern display can be adjusted (the default
  59. is one point per 1\/16th note), and, additionally, the canvas can be
  60. zoomed horizontally and vertically as necessary. However, it is
  61. highly recommended that you avoid creating 'vertical' compositions,
  62. that is, one should place each part in a separate pattern and avoid
  63. the need to scroll about looking for notes.
  64. Tonic patterns have a choice of scale and key, which limits the
  65. display to only valid notes. This /row-compaction/ can be turned
  66. off, if desired, so that all 128 notes are visible. Or simply choose
  67. the /chromatic/ mapping if you are not creating scale based music.
  68. Percussion, or other sample-based patterns can be assigned an
  69. /instrument/ mapping, which again limits the display to only those
  70. notes for which names and volumes have been provided. The instrument
  71. definition format is a simple ASCII file containing one name, note
  72. and volume percentage per line.
  73. Individual patterns may be soloed or muted right from the pattern
  74. editor.
  75. Each pattern has a setting for output MIDI channel and sequencer
  76. port--and these may also be changed while the transport is running.
  77. ::: The Notes
  78. The type (duration) of note to be inserted can be adjusted in the
  79. pattern editor (control+mouse-wheel). The velocity of individual
  80. notes may be adjusted (mouse-wheel), and the current value is
  81. reflected in the color of the note. Ranges may also be /inserted/
  82. and /deleted/, a commonly required operation during composition, but
  83. one that is, sadly, missing from many sequencers.
  84. < non-cursors.png
  85. ::: Recording
  86. A pattern can be recorded via MIDI in one of four modes:
  87. = Merge (the most familiar/least useful)
  88. = In this mode recorded events are merged into the pattern on each pass
  89. = through the loop. This is how most sequencers work, but it usually just
  90. = results in a jumble of notes that require much manual cleaning up.
  91. = Overwrite (each pass [with input] replaces the previous contents of the pattern)
  92. = This is like merge mode, except that the pattern is cleared before
  93. = the recorded events are input. If no notes have been played during
  94. = a loop, the pattern remains unchanged. This is a great way to just get
  95. = a part down without having to remove your hands from the instrument.
  96. = Layer (each pass [with input] goes into a new pattern)
  97. = This is just like overwrite mode, except that the pattern actually
  98. = overwritten is a duplicate. Use this mode to record several loops of
  99. = the same length without removing your hands from the instrument.
  100. = New
  101. = In this mode, all recorded events are placed into a new pattern (of
  102. = whatever length) when recording is stopped.
  103. # It is especially useful if you bind Record to a MIDI footswitch.
  104. ::: The Event Editor
  105. < non-event-editor-notes.png
  106. For situations requiring close inspection, fine-adjustments or
  107. entering of non-note data, the Event Editor allows one to edit the
  108. raw MIDI event list of a pattern. A common use is to insert program
  109. or control change events.
  110. Like everything else in Non, the Event Editor is real-time--change a
  111. note and you'll see and hear the result as the pattern plays.
  112. :: The Phrase Editor
  113. < non-phrase-editor.png
  114. Phrases are to patterns as patterns are to notes. Switching to the
  115. Phrase Editor brings up Phrase 1, where each row corresponds to an
  116. existing /pattern/. The grid of the Phrase Editor is fixed at one
  117. column-per-beat. This view is somewhat similar to a timeline view in
  118. other sequencers, but do not be deceived--Phrases may be many in
  119. number and are triggered just like patterns.
  120. When a node on the Phrase Editor grid is activated, the length of
  121. the cue event inserted will be the same as that of the pattern being
  122. triggered. Adjusting the duration of this event will cause the
  123. pattern be cut short or looped. If the length of a referenced
  124. pattern is changed, this will *not* be reflected in the Phrase
  125. display. You must either re-insert or adjust the length of the
  126. reference.
  127. It is recommended that, to avoid confusion, you first compose all of
  128. the patterns you need for a phrase, and only then bring up the
  129. phrase editor.
  130. Editing operations are the same as those for the Pattern Editor.
  131. :: The Sequence Editor
  132. The Sequence Editor defines the sequence of playback. The interface
  133. is a list of phrases, to be played sequentially, beginning from bar
  134. 1. It is not necessary to include all existing phrases in the
  135. playlist. Phrases can be moved up and down the playlist, inserted
  136. and deleted. The editor displays the start bar of each phrase in
  137. addition to its number and name.
  138. This sequence->phrase->pattern hierarchy allows for logical,
  139. expressive compositions--without the labor intensive
  140. copy/paste/duplicate work-flow imposed by other sequencers.
  141. For example, suppose you have a song with a 12 bar progression that
  142. repeats 4 times. This 12 bar sequence is composed of many patterns,
  143. each a few measures in length and roughly corresponding to the
  144. chords in the progression.
  145. In another sequencer you would be required to use clumsy copy\/paste
  146. operations to destructively extend the 12 bar sequence. Then if you
  147. wanted to change a part of that subsequence later, you would have to
  148. go edit each instance of it on the 'timeline' view. This is absurdly
  149. inefficient for the operator.
  150. In Non you simply create your patterns, assemble them into logical
  151. phrases, and then assemble these phrases into a sequence that
  152. determines the entire song. This approach is similar to the
  153. bottom-up approach of factored languages such as Forth.
  154. :: Pattern Triggers
  155. < non-pattern-triggers.png
  156. Next to the sequence playlist is an array of pattern triggers. Here
  157. one can monitor the progress of multiple patterns during playback
  158. and cause them to be muted etc.
  159. The left mouse button toggles muting, the middle button toggles
  160. soloing, and the right button brings up the given pattern in the
  161. pattern editor.
  162. Playing patterns appear green, the solo pattern appears red, and
  163. muted patterns appear gray,
  164. : MIDI
  165. :: IO
  166. Non utilizes the Jack MIDI transport. Jack MIDI is an emerging MIDI
  167. transport for Linux. Since Jack already provides similar routing as
  168. the ALSA Sequencer interface, little is lost--besides compatibility
  169. with existing programs. (Jack has an aseq bridge capability, but in
  170. order to benefit from Jack MIDI, both sequencer and synth must use
  171. Jack). The Jack MIDI API is extremely limited in comparison to the
  172. very capable ALSA API, but this is a problem for the programmer, not
  173. the user.
  174. At the time of writing, Non is one of only two sequencers to use
  175. Jack MIDI natively.
  176. ::: About Jack MIDI Connections
  177. Since Jack MIDI is new and not all programs support it, many find
  178. themselves confused. This section attempts to explain Jack MIDI
  179. ports.
  180. The ALSA sequencer interface has long been the standard MIDI routing
  181. subsystem on Linux. But many (all) of the programs we use for
  182. synthesis these days use Jack for their audio IO. It makes more
  183. sense for those MIDI related programs utilizing the Jack Transport
  184. for synchronization to also use Jack ports for MIDI
  185. delivery. Therefore, ALSA MIDI is quickly becoming obsolete.
  186. Jack MIDI ports are *not* related to ALSA MIDI ports in any
  187. way. Jack MIDI ports are just like Jack audio ports, except that the
  188. data being transmitted in each buffer are raw, timestamped MIDI
  189. events instead of floating point audio samples. Jack MIDI is
  190. sample-accurate. This means that a MIDI Note On event can occur
  191. concurrently with a sound, and the two will never drift apart as
  192. often happens to some extent with ALSA.
  193. In essence, Jack MIDI is a way of expressing a direct temporal
  194. correlation between audio and MIDI data.
  195. // Note:
  196. { Older versions of QJackCtl and other connection managers do not
  197. { know about Jack MIDI ports. Please make sure you're using an
  198. { up-to-date version.
  199. When Non is started, it will create `Non:midi_in` and
  200. `Non:control_in` input ports, as well as the 16 output ports with
  201. names after the form `Non:midi_out-X`, where `X` is a number from 1
  202. to 16. These ports will be visible in any connection manager capable
  203. of connecting Jack MIDI ports, as well as via the `jack_lsp` and
  204. `jack_connect` command-line utilities.
  205. For example, to connect Non to ZynAddSubFX (the CVS version supports
  206. Jack MIDI), type the following into the shell:
  207. > $ jack_connect Non:midi_out-1 ZynAddSubFX:midi_in
  208. Also, be sure that Zyn's outputs are connected to
  209. system:playback\_\* so that you can hear the sounds it produces.
  210. It is possible to use Jack MIDI clients and ALSA MIDI clients
  211. together via the bridge built into jackd. For this to work you must
  212. append the `-X seq` option to the `alsa` driver section of the jackd
  213. command line. Like so:
  214. > $ jackd -d alsa -X seq
  215. The way such bridged ports are named varies between Jack versions,
  216. but they should be fairly obvious. When used in this way, many of
  217. the advantages of Jack MIDI are lost, so it is recommended that you
  218. find a Jack MIDI capable synth for best results.
  219. // Example of Jack MIDI connections in Patchage
  220. < non-patchage.png
  221. :: Non Files
  222. The format of `.non` files is a variation of SMF-2. In an SMF-2
  223. file, each track chunk represents a pattern. Because Non groups
  224. patterns into /phrases/, this usage of SMF-2 is probably not
  225. compatible with other implementations (although, the author has
  226. never actually seen another program that could play back SMF-2
  227. anyway.)
  228. Each phrase is stored as a track of MIDI Cue messages, each
  229. referring to a pattern to be triggered. The sequence\/playlist is
  230. stored as the first track, and consists of a list of Cue Point
  231. meta-events referring to phrases.
  232. Also in the first track is a sequencer specific meta-event (ID
  233. "Non!") containing song data that cannot be readily expressed with
  234. existing meta events, and some versioning info to aid future
  235. compatibility.
  236. In short, the author has done the utmost to save sequences in a
  237. standard format--within reason; SMF was hardly designed with a
  238. program like Non in mind--instead of some ad-hoc ASCII format (which
  239. would have been *far* easier to implement), or worse, buggy, bulky,
  240. and unmaintainable XML.
  241. :: Exports
  242. In addition to saving and loading `.non` files, Non can export
  243. individual patterns as flat, SMF-0 MIDI files.
  244. :: Imports
  245. SMF-0 files can be imported as a new pattern (all channels merged),
  246. or SMF-1 (such as those written by Seq24) and SMF-2 (ever seen one
  247. of these?) can be imported as N new patterns (selected from a track
  248. list.) All imported patterns are set to display the Chromatic scale,
  249. in order that no notes be hidden from view.
  250. This should make it easy to migrate any existing patterns that you
  251. may have over to Non, or to permit editing of Non patterns in
  252. external programs (for graphic controller tweaking perhaps?)
  253. : Synchronization
  254. Non's transport is driven by the Jack Transport, so in order to sync
  255. Non with a DAW like Ardour, you must set Ardour to be the Jack
  256. Timebase Master. Therefore, all tempo mapping and time signature
  257. information should be manipulated in the Timebase Master--Non will
  258. respond to these changes automatically. If there is no Timebase
  259. Master registered when Non starts, it will take over that role
  260. instead. This is useful if you simply plan to use Non as a musical
  261. instrument.
  262. : Control
  263. Non creates two MIDI input ports, one for /performance/ data and one
  264. for /control/ data. The control port is used to control Non with
  265. hardware MIDI controllers, such as the BCF2000, or other software.
  266. The performance port is used to record musical data into patterns.
  267. : Playback
  268. The playback mode can be toggled between Pattern, Sequence and
  269. Trigger. In Pattern mode (the default), all patterns are played
  270. simultaneously, from the beginning, and looped forever. Since
  271. patterns may differ widely in length, interesting compositions are
  272. possible. In this mode, Non makes for a very intuitive software
  273. instrument--rivaled only by the excellent program FreeWheeling (a
  274. live audio looper.)
  275. In Sequence mode, playback strictly follows the sequence list and
  276. the Jack transport, and does not loop. This mode is suitable for
  277. parallel compositions between Non and a Jack Timebase Master capable
  278. DAW.
  279. Trigger mode is very much like Pattern mode, except that all
  280. patterns begin muted and must be enabled via the trigger view.
  281. : Sister Projects
  282. Much of the inspiration to move forward with Non was derived from JP
  283. Mercury's highly useful and successful FreeWheeling
  284. looper. Mr. Mercury is a visionary.
  285. But the closest sister of Non has to be the amazingly capable
  286. ZynAddSubFX soft-synth by Nasca Octavian Paul. ZynAddSubFX, like
  287. Non, utilizes the FLTK GUI toolkit, and has recently begun to
  288. support Jack MIDI (albeit in a limited fashion.) This is, hands
  289. down, the best synth available for Linux, and probably one of the
  290. best period. If all you have is Non and Zyn, you have all that you
  291. require to make great music.
  292. Of course, this section can hardly go without mention of Rob Buse's
  293. Seq24. It was the author's unending frustration with the abysmal
  294. performance and absurd limitations of Seq24 that, more than any
  295. other single factor, inspired him to write Non. The most
  296. frustrating aspect was that, prior to Non, Seq24 was, in the
  297. author's opinion, the best sequencer available on Linux. Seq24,
  298. which claims to be light and free of bloat is, without comparison,
  299. the slowest, most poorly optimized sequencer the author has
  300. tried. Even the huge, snarling beast that is RoseGarden out performs
  301. Seq24 in every way but start time.
  302. Those days are over.