File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ patterns: [
7878 name : " constant.language.extempore"
7979 }
8080 {
81- match: "\\b(cons|car|cdr|cadr|caddr|cadddr|cond|lambda|quote|eval|append|list|vector|member|load|begin|map|apply|for-each|println|printf|print|rmatch|rsplit|rreplace|cosd|tand|sind|coshd|tanhd|sinhd|acosd|asind|atand|atan2d|ceild|floord|expd|fmodd|powd|logd|log2d|log10d|sqrtd|fabsd|clearerr|ctermid|fclose|fdopen|feof|ferror|fflush|fgetc|fgets|fileno|flockfile|fopen|fputc|fputs|fread|freopen|fseek|ftell|ftrylockfile|funlockfile|fwrite|getc|getchar|getc_unlocked|getchar_unlocked|gets|getw|pclose|perror|popen|putc|putchar|putc_unlocked|putchar_unlocked|puts|putw|remove|rename|rewind|setbuf|setvbuf|tempnam|tmpfile|tmpnam|ungetc|atof|atoi|atol|memccpy|memchr|memcmp|memcpy|memmove|memset|strcat|strchr|strcmp|strcoll|strcpy|strcspn|strdup|strerror|strlen|strncat|strncmp|strncpy|strpbrk|strrchr|strspn|strstr|strtok|strtok_r|strxfrm|base64_encode|base64_decode|cname_encode|cname_decode|swap64f|unswap64f|swap32f|unswap32f|swap64i|unswap64i|swap32i|unswap32i|thread_fork|thread_fork|thread_join|thread_kill|thread_self|thread_sleep|mutex_create|mutex_destroy|mutex_lock|mutex_unlock|mutex_trylock|callback|modulo|random |play-midi-note|mplay|inexact->exact|pm_send|min |max |cosr)\\b"
81+ match: "\\b(cons|car|cdr|cadr|caddr|cadddr|cond|lambda|quote|eval|append|list|vector|member|load|begin|map|apply|for-each|println|printf|print|rmatch|rsplit|rreplace|cosd|tand|sind|coshd|tanhd|sinhd|acosd|asind|atand|atan2d|ceild|floord|expd|fmodd|powd|logd|log2d|log10d|sqrtd|fabsd|clearerr|ctermid|fclose|fdopen|feof|ferror|fflush|fgetc|fgets|fileno|flockfile|fopen|fputc|fputs|fread|freopen|fseek|ftell|ftrylockfile|funlockfile|fwrite|getc|getchar|getc_unlocked|getchar_unlocked|gets|getw|pclose|perror|popen|putc|putchar|putc_unlocked|putchar_unlocked|puts|putw|remove|rename|rewind|setbuf|setvbuf|tempnam|tmpfile|tmpnam|ungetc|atof|atoi|atol|memccpy|memchr|memcmp|memcpy|memmove|memset|strcat|strchr|strcmp|strcoll|strcpy|strcspn|strdup|strerror|strlen|strncat|strncmp|strncpy|strpbrk|strrchr|strspn|strstr|strtok|strtok_r|strxfrm|base64_encode|base64_decode|cname_encode|cname_decode|swap64f|unswap64f|swap32f|unswap32f|swap64i|unswap64i|swap32i|unswap32i|thread_fork|thread_fork|thread_join|thread_kill|thread_self|thread_sleep|mutex_create|mutex_destroy|mutex_lock|mutex_unlock|mutex_trylock|callback|modulo|random |play-midi-note|mplay|inexact->exact|pm_send|min |max |cosr|list-ref|real->integer|rotate|vector-set!|vector-ref|vector-length)\\b"
8282 name : " support.function.extempore"
8383 }
8484 {
Original file line number Diff line number Diff line change 294294 body : " (metplay ${1:metro} ${2:device} ${3:pitch} ${4:vel} ${5:dur} ${6:ch})"
295295 " mplay" :
296296 prefix : " mplay "
297- body : " (mplay ${1:device} ${2:pitch} ${3:vel} ${4:dur} ${5:0 })"
297+ body : " (mplay ${1:device} ${2:pitch} ${3:vel} ${4:dur} ${5:ch })"
298298 " midi-play-chord" :
299299 prefix : " mpchord "
300300 body : '''
301301 (for-each (lambda (p)
302- (mplay ${1:device} p ${2:vel} ${3:dur} ${4:channel }))
303- (pc:make-chord ${5:lower} ${6:upper} ${7:voices} ${8:'(0 2 4 5 7 9 11 )}))
302+ (mplay ${1:device} p ${2:vel} ${3:dur} ${4:ch }))
303+ (pc:make-chord ${5:lower} ${6:upper} ${7:voices} ${8:'(0 2 5 7 9)}))
304304 '''
305305 " nargs-test" :
306306 prefix : " ifnargs "
392392 play :
393393 prefix : " play "
394394 body : " (play ${1:inst} ${2:60} ${3:80} ${4:dur})"
395+ " pm-send" :
396+ prefix : " pms"
397+ body : " (pm_send ${1:device} ${2:*midi-cc*} ${3:ch} ${4:a} ${5:b})"
395398 pref :
396399 prefix : " pref "
397400 body : " (pref$1 ${2:dat} ${3:index})"
478481 (define ${1:fun-name}
479482 (lambda (beat dur lst inc)
480483 $0
481- (mplay ${6:device} (car lst) 100 dur 0 )
484+ (mplay ${6:device} (car lst) 50 dur ${7:0} )
482485 (callback (*metro* (+ beat (* .5 dur))) '$1 (+ beat dur) dur
483486 (rotate lst inc) inc)))
484487
485- ($1 (*metro* 'get-beat ${2:4}) ${3:1/4} ${4:'(60)} ${5:1})
488+ ($1 (*metro* 'get-beat ${2:4}) ${3:1/4} ${4:'(60)} ${5:- 1})
486489 '''
490+ " temporal-recursion-rotate-velocity" :
491+ prefix : " trrv "
492+ body : '''
493+ (define ${1:fun-name}
494+ (lambda (beat dur lst inc vel)
495+ $0
496+ (mplay ${7:device} (car lst) (cosr vel 10 1) dur ${8:0})
497+ (callback (*metro* (+ beat (* .5 dur))) '$1 (+ beat dur) dur
498+ (rotate lst inc)
499+ inc
500+ vel)))
487501
502+ ($1 (*metro* 'get-beat ${2:4}) ${3:1/4} ${4:'(60)} ${5:-1} ${6:20})
503+ '''
488504" temporal-recursion-metro-with-note-attributes" :
489505 prefix : " trmn "
490506 body : '''
You can’t perform that action at this time.
0 commit comments