;; score-sort.sal -- using score-sort in SAL ;; ;; (c) 2008 by Roger B. Dannenberg ;; when score events are not in increasing order, you should ;; sort the score using score-sort() because score-play and ;; timed-seq assume that the score is sorted. ;; exec score-play(score-sort( {{0.0 0.5 {plucked-string pitch: 67 vel: 90 cutoff: 4000}} {0.5 0.5 {plucked-string pitch: 69 vel: 95 cutoff: 5000}} {1.0 0.5 {plucked-string pitch: 71 vel: 100 cutoff: 6000}} {1.5 0.5 {plucked-string pitch: 72 vel: 105 cutoff: 7000}} {2.0 0.5 {plucked-string pitch: 71 vel: 100 cutoff: 6000}} {2.5 0.5 {plucked-string pitch: 69 vel: 95 cutoff: 5000}} {3.0 1.0 {plucked-string pitch: 67 vel: 90 cutoff: 4000}} {0.0 1.0 {note pitch: 59 vel: 100}} {1.0 1.0 {note pitch: 55 vel: 100}} {2.0 1.0 {note pitch: 55 vel: 100}} {3.0 1.0 {note pitch: 59 vel: 100}}}))