| 1 |
# NES instrument editor |
| 2 |
|
| 3 |
the NES instrument editor consists of two tabs. |
| 4 |
|
| 5 |
## DPCM |
| 6 |
|
| 7 |
this tab is somewhat similar to [the Sample instrument editor](sample.md), but it has been tailored for use with NES' DPCM channel. |
| 8 |
|
| 9 |
- **Sample**: specifies which sample should be assigned to the instrument. |
| 10 |
- **Use sample map**: enables mapping different samples to notes. see next section for more information. |
| 11 |
- when this option is disabled, 16 notes (from C-0 to D#1 and repeating) will map to the DPCM channel's 16 possible pitches. |
| 12 |
|
| 13 |
### sample map |
| 14 |
|
| 15 |
the sample map allows you to set a sample for each note. |
| 16 |
|
| 17 |
after enabling this option, a table appears with the contents of the sample map. |
| 18 |
- the first column represents the input note. |
| 19 |
- the second column allows you to type in a sample number for each note. |
| 20 |
- you may press Delete to clear it. |
| 21 |
- the third one is used to set the DPCM pitch at which the specified sample will play. |
| 22 |
- for possible values, refer to the table below. |
| 23 |
- you may press Delete to clear it. if no value is specified, the last pitch is used. |
| 24 |
- the fourth column allows you to set the initial delta counter value when playing the sample. |
| 25 |
- this is an hexadecimal number. |
| 26 |
- the range is `00` to `7F`. |
| 27 |
- you may press Delete to clear it. if no value is specified, the delta counter isn't altered. |
| 28 |
- the fifth and last column provides a combo box for selecting a sample. |
| 29 |
|
| 30 |
you may right-click anywhere in the number, pitch and delta columns for additional options: |
| 31 |
- **set entire map to this pitch**: sets the DPCM pitch of all notes to the selected cell's. |
| 32 |
- **set entire map to this delta counter value**: sets the initial delta counter value of all notes to the selected cell's. |
| 33 |
- **set entire map to this sample**: sets the sample number of all notes to the selected cell's. |
| 34 |
- **reset pitches**: resets the sample map's DPCM pitches to defaults (15). |
| 35 |
- **clear delta counter values**: removes all delta counter values from the map. |
| 36 |
- **clear map samples**: removes all samples from the map. |
| 37 |
|
| 38 |
## Macros |
| 39 |
|
| 40 |
- **Volume**: volume sequence. |
| 41 |
- **Arpeggio**: pitch sequence. |
| 42 |
- **Duty/Noise**: duty cycle and noise mode. |
| 43 |
- pulse duty cycles: |
| 44 |
- `0`: 12.5% |
| 45 |
- `1`: 25% |
| 46 |
- `2`: 50% |
| 47 |
- `3`: 75% |
| 48 |
- noise modes: |
| 49 |
- `0`: long noise |
| 50 |
- `1`: short noise |
| 51 |
- **Pitch**: fine pitch. |
| 52 |
- **Phase Reset**: trigger restart of waveform. |