code: def unpitched_high(dur, idx):
    
    first_dur, a, d, r, gain = [
      (30 * ms, 10 * ms, 8 * ms, 10 * ms, .4),
      (60 * ms, 20 * ms, 8 * ms, 20 * ms, .5)
    ][idx]
    env = chain(adsr(first_dur, a=a, d=d, s=.2, r=r),
                adsr(dur - first_dur,
                     a=10 * ms, d=30 * ms, s=.2, r=dur - 50 * ms))
    result = gauss_noise(dur) * env * gain
    return list(result)
docs: Non-harmonic treble/higher frequency sound as a list (due to memoization).
  
    Parameters
    ----------
    dur:
      Duration, in samples.
    idx:
      Zero or one (integer), for a small difference to the sound played.
  
    Returns
    -------
    A list with the synthesized note.