< previous page ][ next page > [back] [back to #library listing]


round(f)
Returns the rounded integer value of f.


sc8850patch(channel,patchnum,variation)
Return the message that will set an sc8850/sc8820/scd-70 patch channel and patchnum are 1-based, variation is 0-based (to match


scadjust(melody,scale)
Adjust the notes in the melody phrase so that each note falls on the closest note in the scale phrase.


scadur(phrase,factor)
Scale the durations of a phrase by multiplying the duration of each note by a specified factor.


scaleng(phrase,length)
Scale the phrase to the specified length by expanding it length-wise, adjusting both the time and duration of the notes.


scalevertical


scatimes(phrase,factor)
Scale a phrase by multiplying the time and duration of each note by a specified factor.


scavol(phrase,factor)
Scale the volume of a phrase by multiplying the volume of each note by a specified factor.


sd80patch(channel,patchnum,variation)
Return the message that will set an sd80/sc8820/scd-70 patch channel is 1-based, patchnum is 0-based (because the sd80 patch list used 0-based), and variation is 0-based (to match the LCD display of the sd80. The soundset value is 80 (special 1) 81 (special 2) 96 (classical) 97 (contemporary) 98 (solo) 99 (enhanced) 87 (user)


seconds(secs)
Returns the number of clicks in a given number of seconds.


setdefaults()
This function sets various global default values.


shuffle(ph)
This function takes a phrase, splits in in 2 halves (along time) and shuffles the result (ie. first a note from the first half, then a note from the second half, etc.). The timing of the original phrase is applied to the result.


spread(ph,num,rtime,rfactor)
Return phrase ph "spread" num times, with rtime delay between each iteration, and with the volume of each iteration decreased by rfactor. A "spread" is like an echo, except that notes are repeated in BOTH directions, forward and back.


status([str])
When called with no arguments, this function prints a list of all currently-running tasks. If a string argument is given, the list will only contain those tasks whose stacktrace (the output of taskinfo(tid,"trace")) contains that string.


strip(ph)
Strip off any leading and trailing rests from a phrase


sussect(time,channel)
Generate a phrase with controller messages that press the sustain pedal on the specified channel and let it up after the specified amount of time.


swapnote(ph)
Swap every two notes in the phrase ph.


syncphr(phrase)
This function returns a copy of the specified phrase, shifting the starting time so that it is as close as possible to 0 (but not less than 0). The amount by which the time is shifted must be a multiple of lng (which, if not specified, is the length of the Met. This is typically used when you want to play a phrase that has been taken from the middle of some other phrase. The goal is that the playback should still be synchronized to the current Met.


tonerow(p)
Better version of tonerow, works on all types of notes. Return a tone row of the notes in phrase p. Each note in the original phrase appears exactly once in the result, but in a random position. The original time/duration of the notes is retained.


tonerow_old(p)
Return a tone row of the notes in phrase p. Each note in the original phrase appears exactly once in the result, but in a random position. The original time/duration of the notes is retained.



< previous page ][ next page > [back] [back to #library listing]