Steelie - pedal steel guitar for the Organelle
==============================================
by gur_shulman - v2.5.4

A playable pedal steel: real steel-string physics (a modelled string, not
samples), pedal bends and bar slides straight from the keys, volume swells
on the mod wheel,
bell harmonics on AUX, and a clean steel amp with effects. Every wheel,
pedal and button can be pointed at whatever you like.

GUITARS
  1 NASHVILLE E9   push-pull steel into a big clean twin: bright, scooped
  2 SWEET E9       warm, round, soft-picked (ballads, swells)
  3 C6 JAZZ        fat, dark, mid-forward
  4 SACRED STEEL   pushed amp, gospel shout
  5 LAP STEEL      6-string single coil lap steel
  6 BIGSBY 50s     western swing, woody
  7 HAWAIIAN       acoustic hollow-neck lap steel, no amp
  8 DOBRO          resonator guitar: nasal, metallic

PLAYING (default setup)
  A real steel has two ways to change notes without picking again: the
  pedals (a few strings bend while the others stay) and the bar (everything
  moves together, one direction). Steelie reads both from how you play.
  By default (SLIDE = BENDS) the keys work the pedals; set SLIDE = SLIDES
  to add the bar.

  PEDALS      Hold a note or a chord and press a key one or two semitones
              from one of its notes: that string bends there, the rest
              stay. Let go of the new key and it bends back - the classic
              steel "bend and release". E to A by holding E-G#-B and adding
              A and C# is exactly the A + B pedals of a real E9.
  THE BAR     (SLIDE = SLIDES) Play the next note or chord legato as the
              same shape moved up or down (up to an octave): it slides
              there, all strings together, and bigger moves take longer.
              Like a real player, it can also work a pedal during the
              slide: every note may land up to a whole step differently
              from the others, as long as they all go the same way.
              Lift your fingers first (a short gap) and it is picked fresh
              instead. Anything a bar and pedals can't do is picked or
              pedalled - nothing ever slides two ways.
              A key you keep holding underneath (a bass) is not on the bar
              and stays put. Slide from a key you are still holding and it
              comes back when you let go, like a pedal.
              SLIDE = OFF picks every note.
  MOD WHEEL   volume swell, like a steel player's volume pedal. Wheel down =
              silent, up = full. Only takes over once you touch the wheel.
  PITCH BEND  bends the pitch (+/-2 semitones)
  FOOTSWITCH  sustain (also MIDI CC64). Any footswitch works - "reversed"
              ones like the Yamaha FC5 are detected by themselves, and a
              keyboard's sustain pedal is never counted twice
  AUX (hold)  CHIME: every note you play is a bell-like harmonic an octave
              up (the guitarist's 12th-fret harmonic)
  All four can be changed on the ASSIGN page.

PAGES (turn the ENCODER, press it for the Organelle menu)
  1 SOUND          GUITAR | TONE | PICK | RING
  2 PLAY           SLIDE | GLIDE | VIB | SWELL
  3 CONTROL        OCTAVE | TRANSP | TOUCH | RANGE
  4 ASSIGN         WHEEL | BEND | PEDAL | AUX
  5 AMP            DRIVE | COMP | RING | TWANG
  6 VERB + DELAY   REVERB | TYPE | DELAY | TIME
  7 MOD FX         TREM | RATE | CHORUS | PHASER
  8 HUMAN          DETUNE | DRIFT | NOISE | FEEL
  9 SETUP          KNOBS | TUNE | OUTPUT | VOLUME

  Number knobs show their value as a bar. Option knobs (GUITAR, SLIDE,
  OCTAVE, WHEEL...) show a row of small dashes, one per option, with the
  chosen one drawn as a solid block. SETUP > KNOBS: JUMP (the value
  follows the knob), CATCH (a marker shows where the knob is; turn it past
  the bar to take over) or RELATIVE (moves from where it is). Any effect is off at 0.
  The LED lights while the footswitch or AUX is held.

  GUITAR   which steel (see the list above)
  TONE     brightness of the strings and amp
  PICK     soft thumb-pick to hard metal finger-pick
  RING     how long a string rings (seconds shown for middle C)
  SLIDE    OFF = every key is picked, BENDS = pedals, SLIDES = pedals +
           bar slides (see PLAYING). Each with how far a pedal bends:
           1, 2 or 3 semitones (default BENDS 2 SEMI)
  TUNE     (SETUP) A4 from 425 to 455 Hz
  OUTPUT   (SETUP) STEREO / MONO
  VOLUME   (SETUP) the patch level, -24 ... +6 dB
  GLIDE    bar and pedal speed (soft notes bend a little slower,
           like easing a pedal down)
  VIB      bar vibrato that starts a moment after each note
  SWELL    automatic fade-in of every note, OFF = picked
  OCTAVE   shifts the keyboard -2 / -1 / 0 / +1 octaves (default -1, so the
           Organelle keys sit in the steel's sweet range)
  TRANSP   transposes -6 ... +6 semitones (play in any key on the white keys)
  TOUCH    HEAVY / NORMAL / LIGHT keyboard response
  RANGE    pitch-bend range, 0-12 semitones

  ASSIGN page - what each controller does:
  WHEEL    VOL SWELL (default), VIBRATO, TONE, BEND UP (whole step), CHIME,
           DRIVE, REVERB, DELAY, TREM, CHORUS, PHASER, RING
  BEND     PITCH (default), VIBRATO, TONE (down = darker, up = brighter),
           DRIVE, REVERB, DELAY, TREM, CHORUS
           (anything but PITCH and TONE works in both bend directions)
  PEDAL    footswitch / CC64. AUX = the AUX button / CC25. Both can be:
           SUSTAIN    hold the notes (pedal default)
           CHIME      bell harmonics on the notes you play (AUX default)
           FREEZE     strings ring on forever while held
           OCTAVE UP  notes you play while held are an octave higher
           VIBRATO    deep vibrato while held
           TREM       tremolo while held
           DELAY      echo while held
  The wheel, bend, pedal and AUX add on top of the knob settings, so e.g.
  DELAY 20% with PEDAL = DELAY gives a bigger echo while the pedal is down.

  DRIVE    tube amp push
  COMP     compressor (the long, even steel sustain)
  RING     sympathetic ringing of the open E9 strings
  TWANG    the Nashville bite: metal pick right by the bridge, pickup
           nearer the bridge, snappier attack, upper-mid sparkle, tighter
           lows, a touch more compression. Level stays the same.
           (Output level = the Organelle's own volume knob.)
  REVERB   reverb amount, TYPE = SPRING / ROOM / HALL / AMBIENT
  DELAY    echo amount, TIME = 60 - 900 ms (slapback to long echoes)
  TREM     amp tremolo depth, RATE = 0.8 - 10 Hz
  CHORUS   stereo chorus
  PHASER   phaser

  HUMAN page - the small things that make it a real instrument (all tiny
  by default, OFF = perfectly clean):
  DETUNE   every string sits a little off pitch, always the same way,
           plus a tiny wobble from pick to pick: a few cents at 30-40%
           (chords start to shimmer), clearly out of tune near 100%
  DRIFT    the hand on the bar: slow drift on long notes, and slides land
           a few cents off and settle in
  NOISE    bar noise while sliding and a little pick sound
  FEEL     the picking hand: each pick a little stronger or softer (louder
           and brighter together, like a real finger), the notes of a
           chord land a few milliseconds apart, the pick spot wanders

MIDI
  Notes + velocity on the Organelle's MIDI channel, sustain CC64, pitch
  bend, mod wheel CC1, CC25 = AUX, expression CC11 = volume pedal.
  CC21-24 move knobs 1-4 as usual. The Organelle's pedal jack is the sustain
  footswitch (normal or reversed: where it is when Steelie loads counts
  as released). For a volume pedal use MIDI CC11.

TIPS
  Country: NASHVILLE E9, TWANG 60%, PICK 75%, COMP 55%, DELAY 20% with
  TIME 25% (slapback). Hold B, press C# legato, let go of C#: bend and
  release.
  Ambient swells: SWEET E9, TYPE AMBIENT, REVERB 60%, DELAY 30%, ride the
  mod wheel. Set PEDAL = FREEZE to hold a chord forever and play over it.
  Bells: hold AUX, play slow single notes high up, REVERB 50%.
  Surf / tremolo steel: LAP STEEL, TREM 60%, RATE 5 Hz, SPRING 40%.
  Gospel: SACRED STEEL, VIB 60%, DRIVE 30%, BEND = DRIVE.
  Delta / Hawaiian: DOBRO or HAWAIIAN, GLIDE 50%.

TECHNICAL
  Pure Data vanilla, no externals, no samples (tiny download), 8 strings.
  Works on older Organelle OS too (tested on Pd 0.47, 0.51 and 0.57).
  Each string is a physical model running in 16-sample blocks so high notes
  stay in tune; strings switch themselves off once they have died away.
  The model has steel stiffness (high partials run slightly sharp), two
  vibration planes (a full start and a slowly breathing tail), and the
  pick and pickup sit a fixed distance from the bridge, so the tone
  changes across the neck and while you slide - like the real thing.

FILES
  main.pd            top level
  ps-voice.pd        one string: pick, chime, slide, freeze, swell (x8)
  ps-string.pd       the vibrating string
  ps-alloc.pd        notes to strings, slides, octave, pedal + AUX
  ps-mod.pd          vibrato, pitch bend, volume swell, mod wheel
  ps-engine.pd       knobs + controllers -> engine
  ps-presets.pd      the eight steels
  ps-amp.pd          sympathetic strings, pickup, comp, amp, tone, body,
                     speaker, tremolo, effects chain
  ps-chorus.pd, ps-phaser.pd, ps-delay.pd, ps-spring.pd, ps-reverb.pd
  ps-ui.pd, ps-knob.pd, ps-row.pd   pages, soft takeover, screen
  ps-fs.pd           the pedal jack (sustain footswitch) + keyboard sustain

SETTINGS
  Everything is saved by itself to steelie_settings.txt in this folder
  two seconds after the last change (and with Organelle Save Patch).
  Delete the file for the defaults.

CHANGES
  2.5.4  the stereo effects (CHORUS, DELAY, REVERB) had left and right
         swapped - fixed.
  2.5.3  pitch bend: when you let the wheel spring back by itself (fast), the
         pitch now always lands exactly in tune
  2.5.2  pitch bend: a wheel that comes back a little off centre now goes
         back to exactly in tune by itself.
  2.5.1  pedals made simple, no guessing: the jack is the sustain
       footswitch (normal or reversed). Volume pedal: MIDI CC11.
  2.5  New SETUP page (KNOBS: JUMP / CATCH / RELATIVE, TUNE, OUTPUT, VOLUME);
       SLIDE sets how far a pedal bends (1-3 semitones). No clicks when
       switching GUITAR, footswitches (FC5, FC3 ...) work every time, level
       matched to the other patches.
  2.4.1  fixed: pitch bend could still get stuck off centre (the guitar
       out of tune), and pedal bends sometimes did not happen - both came
       from one setting the pitch bend and the pedal bends were sharing.
  2.4  your settings are kept: saved by themselves and back the next time
       you load Steelie.
       Fixed: pitch bend could stay stuck off centre (the whole guitar out
       of tune) on some keyboards / Organelle OS versions
  2.3  fixed: footswitches like the Yamaha FC5 lit the LED and cut the
       sound when not pressed - polarity is now detected automatically and
       a footswitch in the pedal jack is no longer taken for a volume
       pedal. Fixed: no sound on older Organelle OS (Pd 0.47). Tidier,
       readable patch layout
  2.2.1  The name is written as Steelie everywhere.
  2.2  TWANG knob (replaces VOLUME - use the Organelle volume), FEEL is now
       the picking hand (strength + chord timing), DETUNE goes much
       further, fixed: imperfections were not random before
  2.1  BENDS is the default again (plays like before); SLIDES adds the bar,
       now also with pedals during the slide
  2.0  playing rebuilt around the real instrument: legato same-shape moves
       slide like the bar (one direction, all strings, longer for bigger
       moves), other moves are pedals or picks, a held bass stays;
       SLIDES is the default; AUX SLIDE removed; new HUMAN page (DETUNE,
       DRIFT, NOISE, FEEL); quieter, darker bar noise
  1.9  AUX SLIDE rebuilt as a real bar: polyphonic, legato or not, bass
       stays, shared notes stay, chords slide as one; more realistic
       strings (pick "ping", steel stiffness, two vibration planes,
       pickup tone that moves with the bar), slower velocity-linked bends,
       all guitars re-matched with a psychoacoustic loudness model
  1.8  SLIDE for AUX / pedal (momentary, bar-like chord slides, bass stays,
       works with sustain), guitars matched in loudness across the whole
       range, smoother attack
  1.7  smoother pick attack (no buzz), hand-held bar drift on long notes,
       all guitars matched in perceived loudness, OCTAVE -1 by default
  1.6  more realistic pick: the string is released smoothly like a real
       pick (no digital click), hard picks start a hair sharp and settle,
       acoustic models get a real metallic pick tick, fuller tone,
       levels rebalanced
  1.5  option knobs get a segmented selector, BENDS is the default, new
       default sound (softer tone, spring + gentle echo, light chorus)
  1.4  ASSIGN page: wheel, bend, pedal and AUX can do almost anything
       (FREEZE, OCTAVE UP, chime, effects...), TRANSP, MOD FX page
       (tremolo, chorus, phaser), AUX = CHIME, OCTAVE, clearer pages,
       pickup + speaker voicing
  1.1  pedals = sustain only, mod wheel = volume swell, keys do the slides
  1.0  first release

LICENSE
  WTFPL - Do What The F*ck You Want To Public License.
