How it works
OxiGuitar asks the plugin about each track before a song plays or is exported. It gets the track’s notes and every beat with its rhythm, and gives the notes back marked with how each one is struck: down or up, which finger if any, and whether the stroke lands on a ringing string or carries on from another. The sound plugin hears those marks with each note.
With a plectrum
The picking hand of most guitarists moves like a pendulum, in time with the music: down on each beat, up between beats, and it keeps moving even when it doesn’t touch the strings. So a note’s direction depends on where it falls in the bar, not on the note before it.
The plugin looks at each quarter note in turn. It takes the shortest note that starts there, an eighth at the longest, as the size of the hand’s swing. Notes on the first, third, fifth… step of that swing are downstrokes, the others upstrokes. So:
- eighths go down, up, down, up;
- sixteenths go down, up, down, up, four to a beat;
- a gallop (an eighth then two sixteenths) goes down, then down, up;
- quarter notes are all down;
- a note on the “and” after a rest is an upstroke, as the hand was already on its way up.
Triplets are the exception: three to a beat don’t divide evenly into down and up, so the hand keeps alternating from one beat to the next (down, up, down, then up, down, up). A chord is one stroke: every note in it goes the same way. Hammer-ons, pull-offs, slides, taps, slaps and pops aren’t struck, and grace notes are left as they are.
Fingerstyle
The thumb strikes down and the fingers strike up. On an instrument with five strings or more, the thumb takes the lower half of the strings. The fingers take the rest, lowest first: one note is i, alternating with m when the note before was also a lone i; two notes are i and m; three are i, m and a. Any more go to the thumb. On four strings (a bass, a ukulele), the fingers play everything.
The same way twice
After the directions are set, each stroke is compared with the one just before it:
- The same direction, on a string that is still ringing: the pick, or the finger, lands on the vibrating string before it can strike it. That is the percussive “restrike”.
- The same direction, onto another string: the stroke carries on through, like a sweep or a rest stroke. That is the smoother “glide”.
A rest, or a note that has stopped ringing, breaks the chain. This holds for the fingers too, by their direction: two upward fingers in a row on one ringing string restrike.
The numbers
Every number above that shapes what you hear (the hand’s coarsest swing, how long a note counts as ringing, and the sound plugin’s levels, onsets, tone and tick) can be tuned in Plugins → Picking… (How to use it). The plugin keeps them in settings.json and hands the sound’s to the sound plugin through a small service of its own, picking-sound, which the MIDI plugin asks each time it gets a song ready to play. A sound plugin that doesn’t ask plays its own defaults, and the MIDI plugin’s defaults are the same numbers.
What is written
OxiGuitar itself reads the marks in the score: pick strokes, the direction of a brush, right-hand fingers, tremolo picking (alternating from its written stroke), a rasgueado’s strokes. The plugin never changes those. It only fills in what isn’t written, and adds the restrikes and glides.