SustaiNuto

SustaiNuto v1.1 (2-Jan-2024)
Modified Sostenuto behavior for sustain pedals. Sustain new notes but don’t retrigger notes when the sustain pedal is down.

Any notes held down when sustain “on” is received remain on until the sustain “off” is received. If a note being sustained is played again it will not be retriggered, but new notes will trigger and be sustained as well. On sustain “off” notes being held by the script will be released, with the exception of notes still being held down.

Example: Press sustain while holding down notes C2 and D2. Now release C2 and D2. The notes will continue to play. If you play a C2 or D2 again they will not be triggered. Now press note E2 (still holding sustain down) – it will be triggered and sustained. Continue to hold E2 and release sustain. C2 and D2 will stop sustaining, but E2 will continue to sound until it is released.

NEW: When the first knob is set to PASSTHRU, sustain pedal messages are passed through. This option was added to address some problem behavior when used with the KeyStage app. It defaults to PASSTHRU, but that can be changed in the @Settings section below.

Script idea: Audiobus forum member @jjpl2001 👍🏼👍🏼😎
Coding: Mike Ware (wim / number37)

3 comments on “SustaiNuto”
  • jptech on said:

    I am immensely grateful for your efforts in implementing this code and bringing it to life.

    For those who may be curious about the purpose of this code, allow me to elaborate.
    When you want to blend a fast played piano with slow strings, the volume of the strings tends to increase significantly when you repeatedly play a chord while holding the sustain pedal.

    This code addresses this issue by allowing the initial strike of the chord to be sent, while preventing the already sustained keys from being retriggered. This will send to the strings only one chord of whatever wicked chords you are playing in the piano part.

    To achieve the described effect , load your piano layer without incorporating this MIDI code, and then apply this code to your strings layer. Voila! You will experience a much more controlled and regulated sound from the strings.

  • wim-number37 on said:

    v1.01 fixes an error affecting the channel number kindly pointed out by Audiobus forum member @McD. Also removes debug logging.

  • wim-number37 on said:

    v1.1 Adds the option to pass sustain pedal messages through to address an issue with the KeyStage app. This can be turned off (the previous behavior) by setting the knob to “Block”.

  • Leave a Reply

    • Platform:
    • Category: Utility
    • Revision: 1.1
    • License: The Unlicense
    • Modified: 3 years ago
    • Views: 1171
      Likes: 7
      Downloads: 39
    Download
    Chat