manual/include/patch-change.html

111 lines
4.3 KiB
HTML
Raw Normal View History

2013-01-29 19:26:36 -05:00
<figure class="right">
<img src="/images/patch_change.png" alt="A patch change in a MIDI region"/>
<figcaption>A patch change in a MIDI region</figcaption>
</figure>
2014-02-18 14:12:28 -05:00
<p>
2017-01-17 03:46:03 -05:00
A <dfn>patch change</dfn> is Ardour's description for a combination
of MIDI program change and bank select messages, that (typically)
instruct a synthesizer or sampler to select a different sound to use
on a particular channel.
2014-02-18 14:12:28 -05:00
</p>
<p>
2017-01-17 03:46:03 -05:00
Patch changes are shown within MIDI regions as small rectangles or
<dfn>flags</dfn>, with a vertical line showing where in the region
(hence "when") this patch change happens.
2014-02-18 14:12:28 -05:00
</p>
2013-01-29 19:26:36 -05:00
2014-02-18 14:12:28 -05:00
<h2>Inserting Patch Changes</h2>
<p>
2017-11-15 09:34:10 -05:00
To insert a patch change, the <a href="@@edit-point-control">edit point</a>
should be located where the patch change should be (within an existing MIDI
region). When <kbd class="mouse">right</kbd> clicking, and from the MIDI
region's context menu, selecting <kbd class="menu">MIDI &gt; Insert Patch
Change</kbd>, a dialog appears allowing to set the bank and program values.
2014-02-18 14:12:28 -05:00
</p>
<h2>Modifying Patch Changes</h2>
<p>
2017-01-17 03:46:03 -05:00
Context-clicking on a patch change will bring up the same dialog that
2017-11-15 09:34:10 -05:00
was used to create it, allowing to modify the program and/or bank
2014-02-18 14:12:28 -05:00
numbers.
</p>
<p>
2017-11-15 09:34:10 -05:00
The mouse wheel can also be used: <kbd class="mouse">&uArr;</kbd>/<kbd
2017-01-17 03:46:03 -05:00
class="mouse">&dArr;</kbd> on the patch change will alter the program
number, <kbd class="mouse mod1">&uArr;</kbd>/<kbd
2014-02-18 14:12:28 -05:00
class="mouse mod1">&dArr;</kbd> will modify the bank number.
</p>
<h2>Moving Patch Changes</h2>
<p>
2017-11-15 09:34:10 -05:00
Just <kbd class="mouse">Left</kbd>-dragging the patch change moves it
2014-02-18 14:12:28 -05:00
around.
</p>
<h2>Removing Patch Changes</h2>
<p>
2017-11-15 09:34:10 -05:00
Pressing <kbd>Del</kbd> with the mouse pointer into the rectangular area, or
using the <kbd class="menu">delete</kbd> mouse button operation will remove the
patch change (the operation can be undone).
2014-02-18 14:12:28 -05:00
</p>
<h2>Names for Patch Numbers: MIDNAM files</h2>
2018-02-13 16:33:41 -05:00
<p>
2018-02-17 16:02:37 -05:00
MIDNAM files assign human-redable names to the "coordinates" (MSB, LSB, pc) of
instruments and controls of MIDI-devices. A number of MIDNAM files come already pre-bundled
2018-02-13 16:33:41 -05:00
with Ardour. Should this not be the case for your device, you can add your own (see below).
</p>
<h3>Selecting a device</h3>
<p>
2018-02-17 16:02:37 -05:00
For the proper names to show up in the "Patch Selector"-dialog, you have to assign a
device to your current track. To do so, hover the lower border of the tracks header
(the mouse-cursor will change to a "resize-cursor") and expand it.
2018-02-13 16:33:41 -05:00
You'll see dropdown menus. Select your device in the menu.
</p>
2018-02-13 16:33:41 -05:00
<h3>Adding a custom MIDNAM-file</h3>
<p>
2018-02-17 16:02:37 -05:00
MIDNAM-files are XML-Files. You can edit them using your favorite text-editor. When
2018-02-13 16:33:41 -05:00
doing so, please ensure to change the "Model" of the device, as Ardour will only load
each model once (i.e. it will skip files, if there are clashes).
</p>
<p>
After you have done modifications to a file, it is a good idea to validate it. This can
2018-02-13 16:33:41 -05:00
be done using the tool <i>xmllint</i> as shown below:
</p>
<pre><code class="bash">
$ xmllint --valid --noout myfile.midnam
$ wget http://www.midi.org/dtds/MIDINameDocument10.dtd
$ xmllint --dtdvalid MIDINameDocument10.dtd myfile.midnam
</code></pre>
<p>
2018-02-17 16:02:37 -05:00
Once you are satisfied with your file, you have to put it at a location where Ardour
picks it up. The best place would be the (hidden) directory
<a href="@@files-and-directories-ardour-knows-about">Ardour configuration directory</a>
subdirectory patchfiles.
in your home-folder. Should the sub-directory <i>patchfiles</i> not exist yet, just
create it. The path and file-names are case-sensitive. The file should end with
2018-02-13 16:33:41 -05:00
"<i>.midnam</i>".
</p>
<p>
After restarting Ardour, hit the small Log-button in the upper right corner of the
2018-02-17 16:02:37 -05:00
main window. It should say something like
(this is Linux, Macos or Windows will be different):
2018-02-13 16:33:41 -05:00
</p>
<pre>[INFO]: Loading 3 MIDI patches from /home/username/.config/ardour5/patchfiles</pre>
<p>
The added device should now show up in the dropdown mentioned in the previous paragraph.
</p>
<p>
Should the MIDNAM-file be useful for the general public, it would be nice to share it:
2018-02-17 16:02:37 -05:00
Fork the Ardour-project on <a href="https://github.com/Ardour/ardour">gitHub</a> by
2018-02-13 16:33:41 -05:00
hitting the "Fork"-Button. Go to the <a>patchfiles</a>-directory (and read the README).
</p>
<p>
You can upload the file using the Web-Interface. Be sure to select
"<i>Create a new branch for this commit and start a pull request</i>".
2014-02-18 14:12:28 -05:00
</p>