⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fromobject.alg

📁 Audacity是一款用於錄音和編輯聲音的、免費的開放源碼軟體。它可以執行於Mac OS X、Microsoft Windows、GNU/Linux和其它作業系統
💻 ALG
字号:
(FROMOBJ-ALG  (NAME "fromobject")  (ARGUMENTS ("time_type" "t0") ("rate_type" "sr") ("LVAL" "src"))  (SUPPORT-FUNCTIONS "/* IMPLEMENTATION NOTE: * The src argument is an XLisp object that returns either a *  FLONUM sample or NIL. The output of fromobj is simply the * sequence of the samples.  */#include \"samples.h\"")  (SAMPLE-RATE "sr")  (STATE        ("boolean" "done" "false")        ("LVAL" "src" "src"))    (OUTER-LOOP "        if (susp->done) {            togo = 0; /* indicate termination */            break;    /* we're done */        }")  (INNER-LOOP "            LVAL rslt = xleval(cons(s_send, cons(src,                                                 consa(s_next))));            if (floatp(rslt)) {                output = (sample_type) getflonum(rslt);            } else {                done = true;                /* adjust togo to what it should have been */                break;            }")  (CONSTANT "length" "samples" "array" "src")  (TERMINATE COMPUTED))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -