# Block-level note transposition

``

    with_transpose  note_shift (number)

Similar to use_transpose except only applies to code within supplied `do`/`end` block. Previous transpose value is restored after block. To transpose entire octaves see `with_octave`.

Introduced in v2.0

## Example

# Example 1
``
    use_transpose 3
    play 62

    with_transpose 12 do
      play 50
      sleep 1
      play 72
    end

    play 80
| ``
    # Plays note 65

    # Plays note 62

    # Plays note 84

    # Original transpose value is restored
    # Plays note 83