pnames.h 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621
  1. /*
  2. * Copyright (c) 1983-2013 Trevor Wishart and Composers Desktop Project Ltd
  3. * http://www.trevorwishart.co.uk
  4. * http://www.composersdesktop.com
  5. *
  6. This file is part of the CDP System.
  7. The CDP System is free software; you can redistribute it
  8. and/or modify it under the terms of the GNU Lesser General Public
  9. License as published by the Free Software Foundation; either
  10. version 2.1 of the License, or (at your option) any later version.
  11. The CDP System is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU Lesser General Public License for more details.
  15. You should have received a copy of the GNU Lesser General Public
  16. License along with the CDP System; if not, write to the Free Software
  17. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  18. 02111-1307 USA
  19. *
  20. */
  21. /** VARIABLE NAMES **/
  22. /************************************ SPEC *************************************/
  23. /* RWD floats version */
  24. /* ACCU */
  25. #define ACCU_DINDEX (0)
  26. #define ACCU_GINDEX (1)
  27. /* ARPE */
  28. #define ARPE_WTYPE (0) /* int */
  29. #define ARPE_ARPFRQ (1)
  30. #define ARPE_PHASE (2)
  31. #define ARPE_LOFRQ (3)
  32. #define ARPE_HIFRQ (4)
  33. #define ARPE_HBAND (5)
  34. #define ARPE_AMPL (6)
  35. #define ARPE_NONLIN (7)
  36. #define ARPE_SUST (8) /* int */
  37. /* internal */
  38. #define ARPE_LAST_TABPOS (9)
  39. #define ARPE_LASTARPFRQ (10)
  40. #define ARPE_SUSFLAG (11) /* int */
  41. #define ARPE_WAVETABPOS (12) /* int */
  42. /* AVRG */
  43. #define AVRG_AVRG (0) /* int */
  44. /* internal */
  45. #define AVRG_AVRGSPAN (1) /* int */
  46. /* BLTR & BLUR */
  47. #define BLUR_BLURF (0) /* int */
  48. /* BLTR */
  49. #define BLTR_TRACE (1) /* int */
  50. #define BLTR_MAXTRACE (2) /* int */
  51. /* BRIDGE */
  52. #define BRG_OFFSET (0)
  53. #define BRG_SF2 (1)
  54. #define BRG_SA2 (2)
  55. #define BRG_EF2 (3)
  56. #define BRG_EA2 (4)
  57. #define BRG_STIME (5)
  58. #define BRG_ETIME (6)
  59. /* internal */
  60. #define BRG_TFAC (7)
  61. #define BRG_FSTEP (8)
  62. #define BRG_ASTEP (9)
  63. #define BRG_TSTEP (10)
  64. #define BRG_SWIN (11) /* int */
  65. #define BRG_INTPEND (12) /* int */
  66. #define BRG_STARTIS (13) /* int */
  67. #define BRG_TAILIS (14) /* int */
  68. /* CHANNEL */
  69. #define CHAN_FRQ (0)
  70. /* CHORD */
  71. #define CHORD_LOFRQ (0)
  72. #define CHORD_HIFRQ (1)
  73. /* CHORUS */
  74. #define CHORU_AMPR (0)
  75. #define CHORU_FRQR (1)
  76. /* internal */
  77. #define CHORU_RTABSIZE (2) /* int */
  78. #define CHORU_SPRTYPE (3) /* int */
  79. /* CLEAN */
  80. #define CL_FRQ (0)
  81. #define CL_SKIPT (0) /* NB : same param storage location as CL_FRQ: alternatives !! */
  82. #define CL_GAIN (1)
  83. /* internal */
  84. #define CL_SKIPW (2) /* int */
  85. /* CROSS */
  86. #define CROS_INTP (0) /* cross */
  87. /* CUT */
  88. #define CUT_STIME (0)
  89. #define CUT_ETIME (1)
  90. /* DIFF */
  91. #define DIFF_CROSS (0)
  92. /* DRUNK */
  93. #define DRNK_RANGE (0) /* int */
  94. #define DRNK_STIME (1)
  95. #define DRNK_DUR (2)
  96. /* internal */
  97. #define DRNK_TWICERANGE (3) /* int */
  98. /* EXAG */
  99. #define EXAG_EXAG (0)
  100. /* FILT */
  101. #define FILT_FRQ1 (0)
  102. #define FILT_FRQ2 (1)
  103. #define FILT_QQ (2)
  104. #define FILT_PG (3)
  105. /* FMNTSEE */
  106. /* internal */
  107. #define FMNTSEE_MAX (0)
  108. /* FOCUS */
  109. #define FOCU_PKCNT (0) /* int */
  110. #define FOCU_BW (1)
  111. #define FOCU_LOFRQ (2)
  112. #define FOCU_HIFRQ (3)
  113. #define FOCU_STABL (4) /* int */
  114. /* internal */
  115. #define FOCU_BRATIO_DN (5)
  116. #define FOCU_BRATIO_UP (6)
  117. #define FOCU_SL1 (7) /* int */
  118. /* FOLD */
  119. #define FOLD_LOFRQ (0)
  120. #define FOLD_HIFRQ (1)
  121. /* internal */
  122. #define FOLD_HICHAN (2) /* int */
  123. #define FOLD_LOCHAN (3) /* int */
  124. #define FOLD_HICHANTOP (4)
  125. #define FOLD_LOCHANBOT (5)
  126. /* FORM */
  127. #define FORM_FBOT (0)
  128. #define FORM_FTOP (1)
  129. #define FORM_GAIN (2)
  130. /* FORMANTS */
  131. /* internal */
  132. //TW RENAMED
  133. #define FMNT_SAMPS_TO_WRITE (0) /* int */
  134. /* FORMSEE */
  135. /* internal */
  136. #define FSEE_FMAX (0)
  137. #define FSEE_FCNT (1) /* int */
  138. /* FREQUENCY */
  139. #define FRQ_CHAN (0) /* int */
  140. /* GAIN */
  141. #define GAIN_GAIN (0)
  142. /* GLIDE */
  143. #define GLIDE_DUR (0)
  144. /* GLIS */
  145. #define GLIS_RATE (0)
  146. #define GLIS_SHIFT (1)
  147. #define GLIS_HIFRQ (2)
  148. /* internal */
  149. #define GLIS_CONVERTOR (3)
  150. #define GLIS_HALF_SHIFT (4)
  151. #define GLIS_REFPITCH (5)
  152. #define GLIS_HALF_REFPITCH (6)
  153. #define GLIS_FRQTOP_TOP (7)
  154. #define GLIS_ROLL_OFF (8)
  155. #define GLIS_BASEFRQ (9)
  156. /* GRAB */
  157. #define GRAB_FRZTIME (0) /* as magnify */
  158. /* LEAF */
  159. #define LEAF_SIZE (0) /* int */
  160. /* MAGNIFY */
  161. #define MAG_FRZTIME (0) /* as grab */
  162. #define MAG_DUR (1)
  163. /* MEAN */
  164. #define MEAN_LOF (0)
  165. #define MEAN_HIF (1)
  166. #define MEAN_CHAN (2) /* int */
  167. /* internal */
  168. #define MEAN_TOP (3) /* int */
  169. #define MEAN_BOT (4) /* int */
  170. /* MORPH */
  171. #define MPH_ASTT (0)
  172. #define MPH_AEND (1)
  173. #define MPH_FSTT (2)
  174. #define MPH_FEND (3)
  175. #define MPH_AEXP (4)
  176. #define MPH_FEXP (5)
  177. #define MPH_STAG (6)
  178. /* internal */
  179. #define MPH_ASTTW (7) /* int */
  180. #define MPH_AENDW (8) /* int */
  181. #define MPH_FSTTW (9) /* int */
  182. #define MPH_FENDW (10) /* int */
  183. #define MPH_STAGW (11) /* int */
  184. /* NOISE */
  185. #define NOISE_NOIS (0)
  186. /* OCT */
  187. #define OCT_HMOVE (0) /* int */
  188. #define OCT_BREI (1)
  189. /* OCTVU */
  190. #define OCTVU_TSTEP (0)
  191. #define OCTVU_FUND (1)
  192. /* internal */
  193. #define OCTVU_BBBTOP (2) /* bottom-band bandtop */
  194. #define OCTVU_TBLOK (3) /* int */
  195. /* P_APPROX */
  196. #define PA_PRANG (0)
  197. #define PA_TRANG (1)
  198. #define PA_SRANG (2)
  199. /* P_CUT */
  200. #define PC_STT (0)
  201. #define PC_END (1)
  202. /* P_EXAG */
  203. #define PEX_MEAN (0)
  204. #define PEX_RANG (1)
  205. #define PEX_CNTR (2)
  206. /* P_FIX */
  207. #define PF_SCUT (0)
  208. #define PF_ECUT (1)
  209. #define PF_LOF (2)
  210. #define PF_HIF (3)
  211. #define PF_SMOOTH (4) /* int */
  212. #define PF_SMARK (5)
  213. #define PF_EMARK (6)
  214. /* internal */
  215. #define PF_SCUTW (7) /* int */
  216. #define PF_ECUTW (8) /* int */
  217. #define PF_ISCUT (9) /* int */
  218. #define PF_ISFILTER (10) /* int */
  219. /* P_HEAR */
  220. #define PH_GAIN (0)
  221. /* P_INFO */
  222. /* internal */
  223. #define PINF_MEAN (0)
  224. #define PINF_MAX (1)
  225. #define PINF_MIN (2)
  226. #define PINF_MAXPOS (3)
  227. #define PINF_MINPOS (4)
  228. /* P_INVERT */
  229. #define PI_MEAN (0)
  230. #define PI_BOT (1)
  231. #define PI_TOP (2)
  232. /* P_RANDOMISE */
  233. #define PR_MXINT (0)
  234. #define PR_TSTEP (1)
  235. #define PR_SLEW (2)
  236. /* internal */
  237. #define PR_NEGATIV_SLEW (3)
  238. /* P_SEE */
  239. #define PSEE_SCF (0)
  240. /* P_SMOOTH */
  241. #define PS_TFRAME (0)
  242. #define PS_MEAN (1)
  243. /* P_TRANSPOSE */
  244. #define PT_TVAL (0)
  245. /* P_VIBRATO */
  246. #define PV_FRQ (0)
  247. #define PV_RANG (1)
  248. /* P_WRITE */
  249. #define PW_DRED (0)
  250. /* PEAK */
  251. #define PEAK_CUTOFF (0)
  252. #define PEAK_TWINDOW (1)
  253. #define PEAK_FWINDOW (2)
  254. /* internal */
  255. #define PEAK_ENDTIME (3)
  256. #define PEAK_TGROUP (4) /* int */
  257. #define PEAK_BANDCNT (5) /* int */
  258. /* PICK */
  259. #define PICK_FUND (0)
  260. #define PICK_LIN (1)
  261. #define PICK_CLAR (2)
  262. /* internal */
  263. #define PICK_LONGPOW2 (3) /* int */
  264. #define PICK_DIVMASK (4) /* int */
  265. /* PITCH */
  266. #define PICH_RNGE (0)
  267. #define PICH_VALID (1) /* int */
  268. #define PICH_SRATIO (2)
  269. #define PICH_MATCH (3) /* int */
  270. #define PICH_LOLM (4)
  271. #define PICH_HILM (5)
  272. #define PICH_DATAREDUCE (6)
  273. /* internal */
  274. #define PICH_PICH (7)
  275. /* PLUCK */
  276. #define PLUK_GAIN (0)
  277. /* internal */
  278. #define PLUK_LONGPOW2 (1) /* int */
  279. #define PLUK_DIVMASK (2) /* int */
  280. /* PRINT */
  281. #define PRNT_STIME (0)
  282. #define PRNT_WCNT (1) /* int */
  283. /* internal */
  284. #define PRNT_STARTW (2) /* int */
  285. #define PRNT_ENDW (3) /* int */
  286. /* REPITCHB */
  287. #define RP_DRED (0)
  288. /* REPORT */
  289. #define REPORT_PKCNT (0) /* int */
  290. #define REPORT_LOFRQ (1)
  291. #define REPORT_HIFRQ (2)
  292. #define REPORT_STABL (3) /* int */
  293. /* internal */
  294. #define REPORT_SL1 (4) /* int */
  295. #define REPORT_LAST_PKCNT_HERE (5) /* int */
  296. /* SCAT */
  297. #define SCAT_CNT (0) /* int */
  298. #define SCAT_BLOKSIZE (1) /* only later round to INT converting frqspan->chan_cnt: special case */
  299. /* internal */
  300. #define SCAT_THISCNT (2) /* int */
  301. #define SCAT_BLOKS_PER_WINDOW (3) /* int */
  302. /* SHIFT */
  303. #define SHIFT_SHIF (0)
  304. #define SHIFT_FRQ1 (1)
  305. #define SHIFT_FRQ2 (2)
  306. /* SHIFTP */
  307. #define SHIFTP_FFRQ (0)
  308. #define SHIFTP_SHF1 (1)
  309. #define SHIFTP_SHF2 (2)
  310. #define SHIFTP_DEPTH (3)
  311. /* internal */
  312. #define SHIFTP_FDCNO (4) /* int */
  313. #define SHIFTP_S1L1 (5)
  314. #define SHIFTP_1LS1 (6)
  315. #define SHIFTP_S2L1 (7)
  316. #define SHIFTP_1LS2 (8)
  317. #define SHIFTP_NS1 (9)
  318. #define SHIFTP_NS2 (10)
  319. /* SHUFFLE */
  320. #define SHUF_GRPSIZE (0) /* int */
  321. /* internal */
  322. #define SHUF_DMNCNT (1) /* int */
  323. #define SHUF_IMGCNT (2) /* int */
  324. #define SHUF_I_WANTED (3) /* int */
  325. #define SHUF_D_WANTED (4) /* int */
  326. #define SHUF_I_BSZ (5) /* int */
  327. #define SHUF_D_BSZ (6) /* int */
  328. /* SPREAD */
  329. #define SPREAD_SPRD (0)
  330. /* STEP */
  331. #define STEP_STEP (0) /* only later round to INT converting time->windowcnt: special case */
  332. /* STRETCH */
  333. #define STR_FFRQ (0)
  334. #define STR_SHIFT (1)
  335. #define STR_EXP (2)
  336. #define STR_DEPTH (3)
  337. /* internal */
  338. #define STR_FDCNO (4) /* int */
  339. #define STR_SL1 (5)
  340. #define STR_NSHIFT (6)
  341. /* SUM */
  342. #define SUM_CROSS (0)
  343. /* SUPR */
  344. #define SUPR_INDX (0) /* int */
  345. /* TRACE */
  346. #define TRAC_INDX (0) /* int */
  347. #define TRAC_LOFRQ (1)
  348. #define TRAC_HIFRQ (2)
  349. /* TRACK */
  350. #define TRAK_PICH (0)
  351. #define TRAK_RNGE (1)
  352. #define TRAK_VALID (2) /* int */
  353. #define TRAK_SRATIO (3)
  354. #define TRAK_HILM (4)
  355. #define TRAK_DATAREDUCE (5)
  356. /* internal */
  357. #define TRAK_LOLM (6)
  358. /* TRNSF */
  359. #define TRNSF_LOFRQ (0)
  360. #define TRNSF_HIFRQ (1)
  361. /* TRSNP */
  362. #define TRNSP_LOFRQ (0)
  363. #define TRNSP_HIFRQ (1)
  364. /* TSTRETCH */
  365. #define TSTR_STRETCH (0)
  366. /* internal */
  367. #define TSTR_TOTIME (1)
  368. #define TSTR_ARRAYSIZE (2) /* int */
  369. /* TUNE */
  370. #define TUNE_FOC (0)
  371. #define TUNE_CLAR (1)
  372. #define TUNE_INDX (2) /* int */
  373. #define TUNE_BFRQ (3)
  374. /* VOCODE */
  375. #define VOCO_LOF (0)
  376. #define VOCO_HIF (1)
  377. #define VOCO_GAIN (2)
  378. /* WARP */
  379. #define WARP_PRNG (0)
  380. #define WARP_TRNG (1)
  381. #define WARP_SRNG (2)
  382. /* internal */
  383. #define WARP_WREAD (3) /* int */
  384. #define WARP_PART_INBUF (4) /* int */
  385. #define WARP_ATEND (5) /* int */
  386. /* WAVER */
  387. #define WAVER_VIB (0)
  388. #define WAVER_STR (1)
  389. #define WAVER_LOFRQ (2)
  390. #define WAVER_EXP (3)
  391. /* internal */
  392. #define WAVER_BOTCHAN (4) /* int */
  393. #define WAVER_STRCHANS (5) /* int */
  394. /* WEAVE */
  395. /* internal */
  396. #define WEAVE_BAKTRAK (0) /* int */
  397. /* LIMIT */
  398. #define LIMIT_THRESH (0)
  399. /******************************* GROUCHO ********************************/
  400. /************ NAMES FOR PARAMS, ,OPTIONS, VARIANTS, INTERNAL PARAMS ************/
  401. /* DISTORT */
  402. #define DISTORT_POWFAC (0)
  403. /* internal */
  404. #define DISTORT_PULSE (1) /* int */
  405. /* DISTORT_ENV */
  406. #define DISTORTE_CYCLECNT (0) /* int */
  407. /* param OR variant */
  408. #define DISTORTE_TROF (1)
  409. /* variant */
  410. #define DISTORTE_EXPON (2)
  411. /* internal */
  412. #define ONE_LESS_TROF (3)
  413. /* DISTORT_AVG */
  414. #define DISTORTA_CYCLECNT (0) /* int */
  415. /* option */
  416. #define DISTORTA_MAXLEN (1)
  417. /* variant */
  418. #define DISTORTA_SKIPCNT (2)
  419. /* internal */
  420. #define DISTORTA_CYCBUFLEN (3) /* int */
  421. /* DISTORT_OMT */
  422. #define DISTORTO_OMIT (0) /* int */
  423. #define DISTORTO_KEEP (1) /* int */
  424. /* DISTORT_MLT */
  425. /* DISTORT_DIV */
  426. #define DISTORTM_FACTOR (0) /* int */
  427. /* DISTORT_MLT flag name only */
  428. #define DISTORTM_SMOOTH_FLAG (1)
  429. /* DISTORT_DIV flag name only */
  430. #define DISTORTD_INTERP_FLAG (1)
  431. /* DISTORT_HRM */
  432. #define DISTORTH_PRESCALE (0)
  433. /* internal */
  434. #define DISTORTH_CYCBUFLEN (1) /* int */
  435. #define DISTORTH_HCNT (2) /* int */
  436. #define FOLDOVER_WARNING (3) /* int */
  437. /* DISTORT_FRC */
  438. #define DISTORTF_SCALE (0) /* int */
  439. #define DISTORTF_AMPFACT (1)
  440. #define DISTORTF_PRESCALE (2)
  441. /* internal */
  442. #define DISTORTF_CYCBUFLEN (3) /* int */
  443. /* DISTORT_REV */
  444. #define DISTORTR_CYCLECNT (0) /* int */
  445. /* DISTORT_SHUF */
  446. #define DISTORTS_CYCLECNT (0) /* int */
  447. #define DISTORTS_SKIPCNT (1) /* int */
  448. /* internal */
  449. #define DISTORTS_DMNCNT (2) /* int */
  450. #define DISTORTS_IMGCNT (3) /* int */
  451. /* DISTORT_RPT , DISTORT_RPTFL */
  452. #define DISTRPT_MULTIPLY (0) /* int */
  453. #define DISTRPT_CYCLECNT (1) /* int */
  454. #define DISTRPT_SKIPCNT (2) /* int */
  455. #define DISTRPT_CYCLIM (3) /* float */
  456. /* DISTORT_INTP */
  457. #define DISTINTP_MULTIPLY (0) /* int */
  458. #define DISTINTP_SKIPCNT (1) /* int */
  459. /* DISTORT_DEL */
  460. #define DISTDEL_CYCLECNT (0) /* int */
  461. #define DISTDEL_SKIPCNT (1) /* int */
  462. /* DISTORT_RPL */
  463. #define DISTRPL_CYCLECNT (0) /* int */
  464. #define DISTRPL_SKIPCNT (1) /* int */
  465. /* DISTORT_TEL */
  466. #define DISTTEL_CYCLECNT (0) /* int */
  467. #define DISTTEL_SKIPCNT (1) /* int */
  468. #define DISTTEL_AVG_FLAG (2) /* flagname only */
  469. /* DISTORT_FLT */
  470. #define DISTFLT_LOFRQ_CYCLELEN (0)
  471. #define DISTFLT_HIFRQ_CYCLELEN (1)
  472. #define DISTFLT_SKIPCNT (2) /* int */
  473. /* internal ?? */
  474. #define DISTFLT_SRATE (3)
  475. #define DISTFLT_NYQUIST (4)
  476. /* DISTORT_PCH */
  477. #define DISTPCH_OCTVAR (0)
  478. #define DISTPCH_CYCLECNT (1) /* int */
  479. #define DISTPCH_SKIPCNT (2) /* int */
  480. /* DISTORT_OVERLOAD */
  481. #define DISTORTER_MULT (0)
  482. #define DISTORTER_DEPTH (1)
  483. #define DISTORTER_FRQ (2)
  484. /************ NAMES FOR PARAMS, ,OPTIONS, VARIANTS, INTERNAL PARAMS ************/
  485. /* CREATE, EXTRACT, WARPING, REPLOTTING, CONVERT */
  486. #define ENV_WSIZE (0) /* MSECS */
  487. /* SWELL */
  488. #define ENV_PEAKTIME (0) /* double OR int : depends on MODE */
  489. /* DOVETAILING */
  490. #define ENV_STARTTRIM (0) /* double OR int : depends on MODE */
  491. #define ENV_ENDTRIM (1) /* double OR int : depends on MODE */
  492. #define ENV_STARTTYPE (2) /* int */
  493. #define ENV_ENDTYPE (3) /* int */
  494. /* CURTAILING */
  495. #define ENV_STARTTIME (0) /* double : but will pre-convert?? to int, depending on ENV_TIMETYPE */
  496. #define ENV_ENDTIME (1) /* double : but will pre-convert?? to int, depending on ENV_TIMETYPE */
  497. /* CURTAILING AND SWELL */
  498. #define ENV_ENVTYPE (2) /* int */
  499. /* ATTACK */
  500. #define ENV_ATK_GATE (0)
  501. #define ENV_ATK_ATTIME (0)
  502. #define ENV_ATK_GAIN (1)
  503. #define ENV_ATK_ONSET (2)
  504. #define ENV_ATK_TAIL (3)
  505. /* DOVETAILING, CURTAILING */
  506. #define ENV_TIMETYPE (4) /* int */
  507. /* ATTACK */
  508. #define ENV_ATK_ENVTYPE (4) /* int */
  509. /* WARPING_RESHAPING,REPLOTTING */
  510. #define ENV_EXAG (1)
  511. #define ENV_ATTEN (1)
  512. #define ENV_LIFT (1)
  513. #define ENV_FLATN (1) /* int */
  514. #define ENV_GATE (1)
  515. #define ENV_TROFDEL (1) /* int */
  516. #define ENV_LIMIT (1)
  517. #define ENV_AVERAGE (1) /* int */
  518. #define ENV_TSTRETCH (1)
  519. /* various */
  520. #define ENV_THRESHOLD (2)
  521. #define ENV_MIRROR (2)
  522. /* korrug */
  523. #define ENV_PKSRCHWIDTH (2) /* int */
  524. /* trigger */
  525. #define ENV_TRIGRISE (2)
  526. /* trigger */
  527. #define ENV_TRIGDUR (3)
  528. /* expand and gate */
  529. #define ENV_SMOOTH (3) /* int */
  530. /* EXTRACT, REPLOTTING, CONVERT : OPTION */
  531. #define ENV_DATAREDUCE (4)
  532. /* INTERNAL */
  533. #define ENV_SAMP_WSIZE (5) /* int */ /*RWD*/
  534. #define ENV_ATK_TIME (6) /* int */
  535. /* PLUCK */
  536. #define ENV_PLK_ENDSAMP (0)
  537. #define ENV_PLK_WAVELEN (1)
  538. #define ENV_PLK_CYCLEN (4)
  539. #define ENV_PLK_DECAY (5)
  540. /* INTERNAL for PLUCK */
  541. #define ENV_PLK_OBUFLEN (6)
  542. #define ENV_PLK_OWRAPLEN (7)
  543. /* TREMOL */
  544. #define ENV_TREM_FRQ (0)
  545. #define ENV_TREM_DEPTH (1)
  546. #define ENV_TREM_AMP (2)
  547. /************ NAMES FOR PARAMS, ,OPTIONS, VARIANTS, INTERNAL PARAMS ************/
  548. /* ZIGZAG */
  549. #define ZIGZAG_START (0)
  550. #define ZIGZAG_END (1)
  551. #define ZIGZAG_DUR (2)
  552. #define ZIGZAG_MIN (3)
  553. #define ZIGZAG_SPLEN (4)
  554. #define ZIGZAG_MAX (5)
  555. #define ZIGZAG_RSEED (6)
  556. /* internal */
  557. #define ZIG_SPLICECNT (7)
  558. #define ZIG_SPLBYTES (8)
  559. #define ZIG_SPLSAMPS (9)
  560. #define ZIG_RUNSTOEND (10)
  561. /* LOOP */
  562. #define LOOP_OUTDUR (0)
  563. #define LOOP_REPETS (1) /* int */
  564. #define LOOP_START (2)
  565. #define LOOP_LEN (3)
  566. #define LOOP_STEP (4)
  567. #define LOOP_SPLEN (5)
  568. #define LOOP_SRCHF (6)
  569. /* flag only : only for names */
  570. #define FROM_START_FLAG (7)
  571. /* internal */
  572. /* as ZIGZAG (7) */
  573. /* as ZIGZAG (8) */
  574. /* as ZIGZAG (9) */
  575. /* as ZIGZAG (10)*/
  576. /* SCRAMBLE */
  577. #define SCRAMBLE_MIN (0)
  578. #define SCRAMBLE_LEN (0) /* different mode */
  579. #define SCRAMBLE_MAX (1)
  580. #define SCRAMBLE_SCAT (1) /* different mode */
  581. #define SCRAMBLE_DUR (2)
  582. #define SCRAMBLE_SPLEN (3)
  583. #define SCRAMBLE_SEED (4) /* int */
  584. /* flag only : only for names : DO NOT CONFUSE WITH INTERNAL FLAG NAMES !!!! */
  585. #define FROM_START_SCRAMBLE (5)
  586. #define TO_END_SCRAMBLE (6)
  587. /* internal */
  588. #define SCRAMBLE_OUTLEN (5) /* int */
  589. #define SCRAMBLE_CHCNT (6) /* int */
  590. /* as ZIGZAG (7) */
  591. /* as ZIGZAG (8) */
  592. /* as ZIGZAG (9) */
  593. /* as ZIGZAG (10)*/
  594. #define ITER_DUR (0)
  595. #define ITER_REPEATS (0)
  596. #define ITER_DELAY (1)
  597. #define ITER_RANDOM (2)
  598. #define ITER_PSCAT (3)
  599. #define ITER_ASCAT (4)
  600. #define ITER_FADE (5)
  601. #define ITER_GAIN (6)
  602. #define CHUNKSTART (5)
  603. #define CHUNKEND (6)
  604. #define ITER_RSEED (7)
  605. /* internal params */
  606. #define ITER_STEP (8)
  607. #define ITER_MSAMPDEL (10)
  608. #define ITER_DO_SCALE (11)
  609. #define ITER_PROCESS (12)
  610. #define ITER_LGAIN (7)
  611. #define ITER_RRSEED (8)
  612. #define ITER_SSTEP (9)
  613. /* DRUNKWALK */
  614. #define DRNK_TOTALDUR (0) /* d */
  615. #define DRNK_LOCUS (1) /* D */
  616. #define DRNK_AMBITUS (2) /* D */
  617. #define DRNK_GSTEP (3) /* D */
  618. #define DRNK_CLOKTIK (4) /* D */
  619. #define DRNK_MIN_DRNKTIK (5) /* I */
  620. #define DRNK_MAX_DRNKTIK (6) /* I */
  621. /* option */
  622. #define DRNK_SPLICELEN (7) /* d */
  623. /* flagged */
  624. #define DRNK_CLOKRND (8) /* D */
  625. #define DRNK_OVERLAP (9) /* D */
  626. #define DRNK_RSEED (10) /* i */
  627. #define DRNK_MIN_PAUS (11) /* D */
  628. #define DRNK_MAX_PAUS (12) /* D */
  629. /* internal params */
  630. #define DRNK_LGRAIN (13) /* int */
  631. #define DRNK_DWNSHIFT (14) /* int */
  632. #define DRNK_MAXHOLD (15) /* int */
  633. #define DRNK_MAX_OVLAP (16) /* int */
  634. #define DRNK_DRNKTIK_RANG (17) /* int */
  635. #define DRNK_PAUS_RANG (18) /* int */
  636. #define DRNK_LAST_LOCUS (19) /* int */
  637. /******************* PARAMS ********************/
  638. #define FLT_Q (0)
  639. /* filteq */
  640. #define FLT_BW (0)
  641. #define FLT_GAIN (1)
  642. /* eq */
  643. #define FLT_BOOST (1)
  644. #define FLT_LOFRQ (2)
  645. /* eq, fstatvar */
  646. #define FLT_ONEFRQ (2)
  647. /* lphp */
  648. #define FLT_PASSFRQ (2)
  649. /* allpass, fltiter */
  650. #define FLT_DELAY (2)
  651. /* allpass */
  652. #define FLT_HIFRQ (3)
  653. /* fltiter */
  654. #define FLT_OUTDUR (3)
  655. /* lphp */
  656. #define FLT_STOPFRQ (3)
  657. /* fltbankn */
  658. #define FLT_INCOUNT (4) /* CARE!! don't confuse with FLT_CNT */
  659. #define FLT_INTSIZE (4)
  660. #define FLT_OFFSET (4)
  661. /* fltsweep */
  662. #define FLT_SWPFRQ (4)
  663. //TW NEW
  664. #define FILT_TAIL (5)
  665. #define FILT_TAILV (3)
  666. /*----------- options ------------*/
  667. //TW NEW, NUMBERING MODIFIED
  668. /* fltbnkhv */
  669. #define FLT_HARMCNT (4) /* int */
  670. #define FLT_ROLLOFF (5)
  671. #define FLT_PRESCALE (6)
  672. /* fltbankn */
  673. #define FLT_RANDFACT (6)
  674. /* fltsweep */
  675. #define FLT_SWPPHASE (6)
  676. /* fltiter */
  677. #define FLT_RANDDEL (7)
  678. #define FLT_PSHIFT (8)
  679. #define FLT_AMPSHIFT (9)
  680. /*----------- internal -----------*/
  681. //TW NEW, NUMBERING MODIFIED
  682. #define FLT_WORDCNT (8)
  683. #define FLT_ENTRYCNT (9) /* int */ /* no of entries on a fltbankv line */
  684. #define FLT_INV_SR (10) /* inverse of srate */
  685. #define FLT_CNT (11) /* int */ /* number of filters */
  686. #define FLT_SAMS (12) /* int */ /* Q-(or delay-)brkpnt_segment sample-counter */
  687. #define FLT_OVFLW (13) /* int */ /* overflows counter */
  688. #define FLT_BLOKSIZE (14) /* int */ /* bloksize before filter-val altered */
  689. #define FLT_BLOKCNT (15) /* int */ /* counter inside filter block */
  690. #define FLT_Q_INCR (16) /* samp-to-samp increment of Q in current Q-blok */
  691. /* allpass */
  692. //TW NEW, NUMBERING MODIFIED
  693. #define FLT_D_INCR (10) /* samp-to-samp increment of delay in current delay-blok */
  694. #define FLT_MAXDELSAMPS (11) /* int */ /* max delay in (stereo-pairs-counted-as-1) samples */
  695. #define FLT_DELBUFPOS (15) /* int */ /* current position for writing to delay buffer */
  696. #define FLT_PHSAMS (16) /* int */ /* phasing strength brkpnt counter */
  697. #define FLT_PH_INCR (17) /* samp-to-samp increment of strength in current strength-blok */
  698. /* eq */
  699. //TW NEW, NUMBERING MODIFIED
  700. #define FLT_A0 (11) /* filter coeff for eq */
  701. #define FLT_A1 (12) /* filter coeff for eq */
  702. #define FLT_A2 (14) /* filter coeff for eq */
  703. #define FLT_B1 (15) /* filter coeff for eq */
  704. #define FLT_B2 (16) /* filter coeff for eq */
  705. /* lphp */
  706. //TW NEW, NUMBERING MODIFIED
  707. #define FLT_MUL (10)
  708. #define FLT_INTERNAL_GAIN (12)
  709. /* time-varying filter frq-amps */
  710. //TW NEW, NUMBERING MODIFIED
  711. #define FLT_FSAMS (17) /* int */ /* timed-filter-'brkpnt'_segment sample-counter */
  712. #define FLT_F_INCR (18) /* samp-to-samp increment of Filt frq in current flt-blok */
  713. /* above 2 also used in FSTATVAR */
  714. #define FLT_TIMESLOTS (19) /* int */ /* number of timeslotes for changing filter */
  715. #define FLT_TIMES_CNT (20) /* int */ /* runnig counter of tvary-filter timeslots */
  716. #define FLT_FRQ_INDEX (21) /* int */ /* base index for next set of filter-data, tvarying filter */
  717. #define FLT_A_INCR (22) /* samp-to-samp increment of Filt amp in current flt-blok */
  718. #define HRM_ENTRYCNT (23)
  719. #define HRM_WORDCNT (24)
  720. #define FLT_TIMESTEP (25)
  721. #define FLT_TOTALTIME (26)
  722. /* fltsweep */
  723. //TW NEW, NUMBERING MODIFIED
  724. #define FLT_CYCPOS (17) /* position in sweep-wave cycle */
  725. #define FLT_SWINCR (18) /* samp-to-samp increment of sweepfrq in current sfrq blok */
  726. /* NB This has to be at 18, because FSTATVAR also uses it */
  727. #define FLT_QFAC (19) /* Q derived factor entering into filter calcs */
  728. #define FLT_SWSAMS (20) /* sweepfrq-brkpnt segment sample-counter */
  729. #define FLT_LOINCR (21) /* samp-to-samp increment of lofrq in current lofrq blok */
  730. #define FLT_LOSAMS (22) /* lofrq-brkpnt segment sample-counter */
  731. #define FLT_HIINCR (23) /* samp-to-samp increment of hifrq in current hifrq blok */
  732. #define FLT_HISAMS (24) /* hifrq-brkpnt segment sample-counter */
  733. /* fltiter */
  734. //TW NEW, NUMBERING MODIFIED
  735. #define FLT_INMSAMPSIZE (14) /* int */ /* input size counted in (stereopair = 1) samples */
  736. #define FLT_MSAMPDEL (15) /* int */ /* iteration delay counted ditto */
  737. #define FLT_SMPDEL (16) /* int */ /* iteration delay counted in standard (short) samples */
  738. #define FLT_DOFLAG (17) /* int */ /* internal flag for fltiter */
  739. #define FLT_OVFLWSIZE (18) /* int */ /* size of overflow buffer for fltiter */
  740. #define FLT_INFILESPACE (19) /* int */ /* size of input buffers for fltiter */
  741. #define FLT_WRITESTART (20) /* int */ /* position in buffer to write next filtered copy, for fltiter */
  742. #define FLT_MAXOVERLAY (21) /* int */ /* maximum superimpositions of infile, for fltiter */
  743. #define FLT_SAMPATTEN (22) /* sample-by-sample attenuation */
  744. /************ NAMES FOR PARAMS, ,OPTIONS, VARIANTS, INTERNAL PARAMS ************/
  745. /* params : PARTICULAR */
  746. /* OMIT */
  747. #define GR_KEEP (0) /* I */
  748. #define GR_OUT_OF (1) /* i */
  749. /* DUPLICATE */
  750. #define GR_DUPLS (0) /* I */
  751. /* TIMEWARP */
  752. #define GR_TSTRETCH (0) /* D */
  753. /* POSITION, ALIGN */
  754. #define GR_OFFSET (0) /* d */
  755. /* ALIGN */
  756. #define GR_GATE2 (1) /* D */
  757. /*---------------------*/
  758. /* options/flags with params : UNIVERSAL: MUST BE SO, for preprocessing to work!!! */
  759. #define GR_BLEN (2) /* d */
  760. #define GR_GATE (3) /* I */
  761. #define GR_MINTIME (4) /* d */
  762. #define GR_WINSIZE (5) /* d */
  763. /*---------------------*/
  764. /* flag name ONLY */
  765. #define LOSE_LAST_GRAIN_FLAG (6) /* 0 */
  766. /*---------------------*/
  767. /* internal : UNIVERSAL */
  768. #define GR_NGATE (6)
  769. #define GR_MINHOLE (7) /* int */
  770. /*#define GR_WSIZE_BYTES (7)*/ /* int */
  771. #define GR_WSIZE_SAMPS (8) /* RWD */
  772. #define GR_WINCNT (9) /* int */
  773. #define GR_SPLICELEN (10) /* int */
  774. #define GR_SPLUS1 (11) /* int */
  775. #define GR_ABS_SPLICELEN (12) /* int */
  776. #define GR_ABS_SPLICEX2 (13) /* int */
  777. #define GR_THISBRKSAMP (14) /* int */
  778. #define GR_NEXTBRKSAMP (15) /* int */
  779. #define GR_NEXTGATE (16)
  780. #define GR_FGATE (17)
  781. #define GR_GATESTEP (18)
  782. #define GR_UP (19) /* int */
  783. #define GR_TESTLIM (20) /* int */
  784. /*---------------------*/
  785. /* internal : PARTICULAR */
  786. /* reposition, [find?] & align only */
  787. #define GR_SYNCCNT (21) /* int */
  788. /* reverse */
  789. #define GR_ARRAYSIZE (21) /* int */
  790. /* reordr only */
  791. #define GR_REOSTEP (21) /* int */
  792. #define GR_REOCNT (22) /* int */
  793. #define GR_REOLEN (23) /* int */
  794. /* repitch, rerhythm, remotif only */
  795. #define GR_RATIOCNT (21) /* int */
  796. /* repitch: remotif only */
  797. #define GR_STORESIZE (22) /* int */
  798. /************************** MIX PARAMS *********************/
  799. /* inbetween */
  800. #define INBETW (0)
  801. /* cyc_inbetween */
  802. #define BTWN_HFRQ (1)
  803. /* cross */
  804. #define MCR_STAGGER (0)
  805. #define MCR_BEGIN (1)
  806. #define MCR_END (2)
  807. #define MCR_POWFAC (3)
  808. /* internal */
  809. #define MCR_CONTOUR (4) /* int */
  810. #define MCR_INDEX (5) /* int */
  811. #define MCR_CROSFACT (6)
  812. /* merge */
  813. #define MIX_STAGGER (0)
  814. #define MIX_SKIP (1)
  815. #define MIX_SKEW (2)
  816. #define MIX_STTA (3)
  817. #define MIX_DURA (4)
  818. /* internal */
  819. #define MIX2_GAIN1 (5)
  820. #define MIX2_GAIN2 (6)
  821. /* twarp */
  822. #define MTW_PARAM (0)
  823. /* sync */
  824. #define MSY_WFAC (0) /* int */
  825. /* flagname only */
  826. #define MSY_POWMETHOD_FLAG (1)
  827. /* internal */
  828. #define MSY_SRFAC (1) /* int */
  829. /* swarp */
  830. #define MSW_TWLINE (0)
  831. #define MSW_NARROWING (0)
  832. #define MSW_POS1 (0)
  833. #define MSW_POS2 (1)
  834. /* gain */
  835. #define MIX_GAIN (0)
  836. /* shuffle, twarp, swarp, gain */
  837. #define MSH_STARTLINE (2)
  838. #define MSH_ENDLINE (3)
  839. #define MSH_NOCHECK_FLAG (4)
  840. /* real mix */
  841. #define MIX_START (0)
  842. #define MIX_END (1)
  843. #define MIX_ATTEN (2)
  844. /* flagname only */
  845. #define ALTERNATIVE_MIX_FLAG (2)
  846. /* internal */
  847. #define MIX_STRTPOS (2) /* int */
  848. #define MIX_STRTPOS_IN_ACTION (3) /* int */
  849. #define MIX_TOTAL_ACTCNT (4) /* int */
  850. /* FLAGS */
  851. /* mix */
  852. #define ALTERNATIVE_MIX (0)
  853. /* mixshufl */
  854. #define MSH_NOCHECK (0)
  855. #define MSY_POWMETHOD (0)
  856. /* ARRAYS (double) */
  857. /* sync */
  858. #define MSY_TIMESTOR (0)
  859. #define MSY_STARTSRCH (1)
  860. #define MSY_ENDSRCH (2)
  861. /* timewarp */
  862. #define MTW_TIMESTOR (0)
  863. #define MTW_TIMEDIFF (1)
  864. /* spacewarp */
  865. #define MSW_TIMESTOR (0)
  866. /* gain */
  867. #define MIX_LLEVELSTOR (0)
  868. #define MIX_RLEVELSTOR (1)
  869. /* merge */
  870. #define MCR_COSTABLE (0)
  871. /* ARRAYS (long) */
  872. /* sync */
  873. #define MSY_PEAKSAMP (0)
  874. #define MSY_SAMPSIZE (1)
  875. #define MSY_ENVEL (2)
  876. /* ARRAYS (int) */
  877. /* sync */
  878. #define MSY_CHANS (0)
  879. #define MSY_ENVPOS (1)
  880. /******* PARAMS ******/
  881. /* brassage */
  882. #define GRS_VELOCITY (0)
  883. #define GRS_DENSITY (1)
  884. #define GRS_HVELOCITY (2)
  885. #define GRS_HDENSITY (3)
  886. #define GRS_GRAINSIZE (4)
  887. #define GRS_PITCH (5)
  888. #define GRS_AMP (6)
  889. #define GRS_SPACE (7)
  890. #define GRS_BSPLICE (8)
  891. #define GRS_ESPLICE (9)
  892. #define GRS_HGRAINSIZE (10)
  893. #define GRS_HPITCH (11)
  894. #define GRS_HAMP (12)
  895. #define GRS_HSPACE (13)
  896. #define GRS_HBSPLICE (14)
  897. #define GRS_HESPLICE (15)
  898. #define GRS_SRCHRANGE (16)
  899. #define GRS_SCATTER (17)
  900. #define GRS_OUTLEN (18)
  901. #define GRS_CHAN_TO_XTRACT (19)
  902. /* flagnames only */
  903. //#define GRS_NO_DECCEL_FLAG (20)
  904. //#define GRS_EXPON_FLAG (21)
  905. //#define GRS_NO_INTERP_FLAG (22)
  906. /* internal */
  907. #define GRS_PRANGE (20)
  908. #define GRS_SPRANGE (21)
  909. #define GRS_VRANGE (22)
  910. #define GRS_DRANGE (23)
  911. #define GRS_INCHANS (24)
  912. #define GRS_OUTCHANS (25)
  913. #define GRS_BUF_SMPXS (26)
  914. #define GRS_BUF_XS (27)
  915. #define GRS_GLBUF_SMPXS (28)
  916. #define GRS_LBUF_SMPXS (29)
  917. #define GRS_LBUF_XS (30)
  918. #define GRS_IS_BTAB (31)
  919. #define GRS_IS_ETAB (32)
  920. #define GRS_CHANNELS (33)
  921. #define ORIG_SMPSIZE (34)
  922. #define SAMPS_IN_INBUF (35)
  923. #define GRS_ARANGE (36)
  924. #define GRS_GRANGE (37)
  925. #define GRS_BRANGE (38)
  926. #define GRS_ERANGE (39)
  927. #define GRS_LONGS_BUFLEN (40)
  928. #define GRS_ARRAYSIZE (41)
  929. /************ NAMES FOR PARAMS, ,OPTIONS, VARIANTS, INTERNAL PARAMS ************/
  930. #define TEXTURE_DUR (0)
  931. #define TEXTURE_PACK (1) /* for applics with no prior timed set of notes */
  932. #define TEXTURE_SKIP (1) /* for applics with a timed set already */
  933. #define TEXTURE_SCAT (2)
  934. #define TEXTURE_TGRID (3)
  935. #define TEXTURE_INSLO (4) /* int */
  936. #define TEXTURE_INSHI (5) /* int */
  937. #define TEXTURE_MINAMP (6)
  938. #define TEXTURE_MAXAMP (7)
  939. #define TEXTURE_MINDUR (8)
  940. #define TEXTURE_MAXDUR (9)
  941. #define TEXTURE_MINPICH (10)
  942. #define TEXTURE_MAXPICH (11)
  943. #define TEX_PHGRID (12)
  944. #define TEX_GPSPACE (13) /* int */
  945. #define TEX_GRPSPRANGE (14) /* current spatial range of group */
  946. #define TEX_AMPRISE (15)
  947. #define TEX_AMPCONT (16) /* int */
  948. #define TEX_GPSIZELO (17) /* int */
  949. #define TEX_GPSIZEHI (18) /* int */
  950. #define TEX_GPPACKLO (19)
  951. #define TEX_GPPACKHI (20)
  952. #define TEX_GPRANGLO (21)
  953. #define TEX_GPRANGHI (22)
  954. #define TEX_MULTLO (23)
  955. #define TEX_MULTHI (24)
  956. #define TEX_DECPCENTRE (25) /* int */
  957. /* options or variants */
  958. #define TEXTURE_ATTEN (26)
  959. #define TEXTURE_POS (27)
  960. #define TEXTURE_SPRD (28)
  961. #define TEXTURE_SEED (29)
  962. #define TEX_IGNOREDUR_FLAG (30)
  963. #define DONT_KEEP_MTFDUR_FLAG (31)
  964. #define INS_TO_SCATTER_FLAG (32)
  965. #define FORCEHI_FLAG (33)
  966. #define FORCE_EVERY_FLAG (34)
  967. #define DISCARD_ORIGLINE_FLAG (35)
  968. /* internal params */
  969. #define SPINIT (30) /* int */ /* flags spatialisation of motif beginning */
  970. #define SPCNT (31) /* int */ /* count of spatialised motif items */
  971. #define DIRECTION (32) /* int */ /* spatial direction of motif */
  972. #define CPOS (33) /* central position of a motion at time x */
  973. #define TPOSITION (34) /* spatial position of note in tset */
  974. #define THISSPRANGE (35) /* current spatial range */
  975. #define TEX_MAXOUT (36) /* float */ /* abs max output level */ /*RWD*/
  976. /* PVOC */
  977. #define PVOC_CHANS_INPUT (0)
  978. #define PVOC_WINOVLP_INPUT (1)
  979. #define PVOC_CHANSLCT_INPUT (2)
  980. #define PVOC_LOCHAN_INPUT (3)
  981. #define PVOC_HICHAN_INPUT (4)
  982. #define PVOC_CHANS (5)
  983. #define PVOC_WIN_OVERLAP (6)
  984. #define PVOC_MINSAMP (7)
  985. #define PVOC_MAXSAMP (8)
  986. #define PVOC_SELECTED_CHAN (9)
  987. #define PVOC_PARTIAL_RESYNTH (10)
  988. #define PVOC_AF_PAIR_LO (11)
  989. #define PVOC_AF_PAIR_HI (12)
  990. #define PVOC_ANAL_ONLY (13)
  991. #define PVOC_ENVOUT_ONLY (14)
  992. #define PVOC_MAGOUT_ONLY (15)
  993. #define PVOC_SYNTH_ONLY (16)
  994. /* MOD_LOUDNESS */
  995. #define LOUD_GAIN (0)
  996. #define LOUD_LEVEL (1)
  997. /* MOD_SPACE */
  998. #define PAN_PAN (0)
  999. #define PAN_PRESCALE (1)
  1000. #define NARROW (0)
  1001. /* MOD_PITCH */
  1002. /* strans, vtrans */
  1003. #define VTRANS_TRANS (0)
  1004. /* accel */
  1005. #define ACCEL_ACCEL (0)
  1006. #define ACCEL_GOALTIME (1)
  1007. #define ACCEL_STARTTIME (2)
  1008. /* vibrato */
  1009. #define VIB_FRQ (0)
  1010. #define VIB_DEPTH (1)
  1011. /* internal */
  1012. /* strans, accel, vibrato */
  1013. #define VTRANS_HBUFSIZE (3)
  1014. /* vtrans */
  1015. #define UNITSIZE (1)
  1016. #define UNIT_BUFLEN (2)
  1017. #define UNITS_READ (3)
  1018. #define TOTAL_UNITS_READ (4)
  1019. #define UNITS_RD_PRE_THISBUF (5)
  1020. #define VTRANS_SR (6)
  1021. /* MOD_REVECHO */
  1022. #define DELAY_DELAY (0)
  1023. #define DELAY_MIX (1)
  1024. #define DELAY_FEEDBACK (2)
  1025. #define DELAY_LFOMOD (3)
  1026. #define DELAY_LFOFRQ (4)
  1027. #define DELAY_LFOPHASE (5)
  1028. #define DELAY_LFODELAY (6)
  1029. #define DELAY_TRAILTIME (7)
  1030. #define DELAY_PRESCALE (8)
  1031. #define DELAY_SEED (9) /* int */
  1032. /* flags only */
  1033. #define DELAY_INVERT_FLAGNAME (10)
  1034. /* internal */
  1035. #define DELAY_INVERT (10)
  1036. #define DELAY_MODRANGE (11)
  1037. #define DELAY_LFOFLAG (12) /* int */
  1038. #define DELAY_MODLEN (13)
  1039. #define DELAY_MDELAY (14) /* int */
  1040. /* stadium */
  1041. #define STAD_PREGAIN (0)
  1042. #define STAD_ROLLOFF (1)
  1043. #define STAD_SIZE (2)
  1044. #define STAD_ECHOCNT (3) /* int */
  1045. /* internal */
  1046. #define STAD_MAXDELAY (4)
  1047. #define STAD_OVFLWSZ (5)
  1048. /* MOD_RADICAL */
  1049. /* reverse */
  1050. /* internal */
  1051. #define REV_BUFCNT (0) /* int */
  1052. /*#define REV_RBYTES (1)*/ /* int */ /*RWD*/
  1053. #define REV_RSAMPS (1)
  1054. #define REV_SECOFFSET (2) /* int */
  1055. #define REV_WRAPBYTES (3) /* int */ /*RWD NOT USED NOW*/
  1056. /* SHRED */
  1057. #define SHRED_CNT (0) /* int */
  1058. #define SHRED_CHLEN (1)
  1059. #define SHRED_SCAT (2)
  1060. /* internal */
  1061. #define SHRED_SPLEN (3) /* int */
  1062. #define SHRED_HSPLEN (4) /* int */
  1063. #define SHRED_SPLENPOW2 (5) /* int */
  1064. #define SHR_LAST_BUFLEN (6) /* int */
  1065. #define SHR_LAST_CHCNT (7) /* int */
  1066. #define SHR_LAST_SCAT (8) /* int */
  1067. #define SHR_UNITLEN (9) /* int */
  1068. #define SHR_RAWLEN (10) /* int */
  1069. #define SHR_ENDRAWLEN (11) /* int */
  1070. #define SHR_SCATGRPCNT (12) /* int */
  1071. #define SHR_RANGE (13) /* int */
  1072. #define SHR_CHCNT_LESS_ONE (14) /* int */
  1073. #define SHR_ENDSCAT (15) /* int */
  1074. #define SHR_ENDRANGE (16) /* int */
  1075. #define SHR_CHCNT (17) /* int */
  1076. /* SCRUB */
  1077. #define SCRUB_TOTALDUR (0)
  1078. #define SCRUB_MINSPEED (1)
  1079. #define SCRUB_MAXSPEED (2)
  1080. #define SCRUB_STARTRANGE (3)
  1081. #define SCRUB_ESTART (4)
  1082. /* internal */
  1083. #define SCRUB_ENDRANGE (5) /* int */
  1084. #define SCRUB_SPEEDRANGE (6)
  1085. #define SCRUB_LENGTH (7) /* int */
  1086. #define SCRUB_SININTEGRAL (8)
  1087. #define SCRUB_TABINC (9)
  1088. #define SCRUB_DROPOUT (10) /* int */
  1089. #define SCRUB_BUFCNT (11) /* int */
  1090. /* LOBIT */
  1091. #define LOBIT_BRES (0)
  1092. #define LOBIT_TSCAN (1)
  1093. /* internal */
  1094. #define LOBIT_HF_BRES (2)
  1095. #define LOBIT_BRES_SHIFT (3)
  1096. #define LOBIT_HF_TSCAN (4)
  1097. #define LOBIT_TSCAN_SHIFT (5)
  1098. /* RINGMOD */
  1099. #define RM_FRQ (0)
  1100. /* EDIT */
  1101. #define CUT_CUT (0)
  1102. #define CUT_END (1)
  1103. #define CUT_SPLEN (2)
  1104. #define INSERT_LEVEL (3)
  1105. /* internal */
  1106. #define END_SPLICE_ADDR (4) /* int */ /* join ONLY */
  1107. #define CUT_BYTECUT (4) /* int */
  1108. #define CUT_BYTEEND (5) /* int */
  1109. /* #define CUT_BYTELEN (6) */ /* int */
  1110. #define CUT_LEN (6) /*RWD*/
  1111. #define CUT_HLFSPLEN (7) /* int */
  1112. #define CUT_BYTESPLEN (8) /* int */
  1113. #define CUT_BUFXS (9) /* int */
  1114. #define CUT_BYTEBUFXS (10) /* int */
  1115. #define CUT_BUFOFFSET (11) /* int */
  1116. #define CUT_BYTEBUFOFFSET (12) /* int */
  1117. #define CUT_BUFREMNANT (13) /* int */
  1118. #define CUT_BUFCNT (14) /* int */
  1119. #define CUT_BUFCNT2 (15) /* int */
  1120. #define CUT_SECCNT (16) /* int */
  1121. #define CUT_SECCNT2 (17) /* int */
  1122. #define CUT_BYTEREMAIN (18) /* int */
  1123. #define CUT_SECSREMAIN (19) /* int */
  1124. #define CUT_SECSREMAIN2 (20) /* int */
  1125. #define CUT_SMPSREMAIN (21) /* int */
  1126. #define CUT_GOES_TO_END (22) /* int */
  1127. #define CUT_NO_END (23) /* int */
  1128. #define CUT_NO_STT (24) /* int */
  1129. #define EXCISE_CNT (25) /* int */
  1130. #define SMALLBUFSIZ (26) /* int */
  1131. /* RANDCUTS */
  1132. #define RC_CHLEN (0)
  1133. #define RC_SCAT (1)
  1134. #define RC_CHCNT (2) /* internal */
  1135. #define RC_SCATGRPCNT (3) /* internal */
  1136. #define RC_ENDSCAT (4) /* internal */
  1137. #define RC_RANGE (5) /* internal */
  1138. #define RC_ENDRANGE (6) /* internal */
  1139. #define RC_UNITLEN (7) /* internal */
  1140. /* RANDCHUNKS ONLY */
  1141. #define CHUNKCNT (0)
  1142. #define MINCHUNK (1)
  1143. #define MAXCHUNK (2)
  1144. /* HOUSE_COPY */
  1145. #define COPY_CNT (0) /* int */
  1146. /* HOUSE_CHANS */
  1147. #define CHAN_NO (0) /* int */
  1148. /* HOUSE_SORT */
  1149. #define SORT_SMALL (0)
  1150. #define SORT_LARGE (1)
  1151. #define SORT_STEP (2)
  1152. /* internal */
  1153. #define SORT_LENCNT (3) /* int */
  1154. /* HOUSE_SPEC */
  1155. #define HSPEC_SRATE (0) /* int */
  1156. #define HSPEC_CHANS (1) /* int */
  1157. #define HSPEC_TYPE (2) /* int */
  1158. /* internal */
  1159. #define RSMP_OBUFSIZE (3) /* int */
  1160. #define RSMP_OBUFLEN (4) /* int */
  1161. #define RSMP_HISR (5) /* int */
  1162. #define RSMP_QIK (6) /* int */
  1163. /* HOUSE_EXTRACT */
  1164. #define RECTIFY_SHIFT (0) /* int */
  1165. #define TOPN_GATE (0) /* int */
  1166. #define TOPN_SPLEN (1)
  1167. /* internal */
  1168. #define TOPN_NGATE (2) /* int */
  1169. #define LAST_TOTALSAMPS_READ (3) /* int */
  1170. #define CUTGATE_GATE (0) /* int */
  1171. #define CUTGATE_SPLEN (1) /* int */
  1172. #define CUTGATE_ENDGATE (2) /* int */
  1173. #define CUTGATE_THRESH (3) /* int */
  1174. #define CUTGATE_SUSTAIN (4) /* int */
  1175. #define CUTGATE_BAKTRAK (5) /* int */
  1176. #define CUTGATE_INITLEVEL (6) /* int */
  1177. #define CUTGATE_MINLEN (7)
  1178. /* internal or not */
  1179. #define CUTGATE_WINDOWS (8) /* int */
  1180. /* internal */
  1181. #define CUTGATE_NUMSECS (9) /* int */
  1182. #define CUTGATE_NSEC (10) /* int */
  1183. #define CUTGATE_NBUFS (11) /* int */
  1184. //#define CUTGATE_BYTEBLOK (12) /* int */
  1185. #define CUTGATE_SAMPBLOK (12) /* int */
  1186. #define CUTGATE_SHRTBLOK (13) /* int */
  1187. #define CUTGATE_TYPFACT (14) /* int */
  1188. #define CUTGATE_SPLCNT (15) /* int */
  1189. //TW : REDUNDANT ITEMS REMOVED
  1190. /* HOUSE RECOVER */
  1191. #define DUMP_OK_CNT (0)
  1192. #define DUMP_OK_PROP (1)
  1193. #define DUMP_OK_SAME (2)
  1194. #define SFREC_SHIFT (3)
  1195. //TW : REDUNDANT ITEM REMOVED
  1196. /* internal recover */
  1197. //TW : RENUMBERED PLUS SOME REMOVED
  1198. #define SFD_OUTFILESIZE (4) /* i */
  1199. #define HEADER_CNT (5) /* i */
  1200. #define OK_HEADER_CNT (6) /* i */
  1201. #define TRUE_HEADER_CNT (7) /* i */
  1202. #define HEADER_VARIANT_CNT (8) /* i */
  1203. #define CRC_AT (9) /* i */
  1204. #define OK_CORRESPONDENCE (10) /* i */
  1205. #define UNKNOWN_CNT (11) /* i */
  1206. #define RENAME_CNT (12) /* i */
  1207. /* SNDINFO */
  1208. #define TIMESUM_SPLEN (0)
  1209. #define INFO_SAMPS (0) /* int */
  1210. #define INFO_TIME (0)
  1211. #define HOLE_THRESH (0) /* int */
  1212. #define SFDIFF_THRESH (0)
  1213. #define SFDIFF_CNT (1) /* int */
  1214. #define PRNT_START (0)
  1215. #define PRNT_END (1)
  1216. /* MUSUNITS */
  1217. #define MUSUNIT (0)
  1218. /* SYNTH */
  1219. #define SYN_SRATE (0)
  1220. #define SYN_CHANS (1)
  1221. #define SYN_DUR (2)
  1222. #define SYN_FRQ (3)
  1223. #define SYN_AMP (4)
  1224. #define SYN_TABSIZE (5)
  1225. /* SYNTH_SPEC */
  1226. #define SS_DUR (0)
  1227. #define SS_CENTRFRQ (1)
  1228. #define SS_SPREAD (2)
  1229. #define SS_FOCUS (3)
  1230. #define SS_FOCUS2 (4)
  1231. #define SS_TRAND (5)
  1232. #define SS_SRATE (6)
  1233. /* UTILS */
  1234. #define U0 (0)
  1235. #define U1 (1)
  1236. /* SINTAB */
  1237. #define SIN_FRQ (0)
  1238. #define SIN_AMP (1)
  1239. #define SIN_DUR (2)
  1240. #define SIN_QUANT (3)
  1241. #define SIN_PHASE (4)
  1242. /* ACC_STREAM */
  1243. #define ACC_ATTEN (0)
  1244. /* INFO_MAXSAMP2 */
  1245. #define MAX_STIME (0)
  1246. #define MAX_ETIME (1)
  1247. /* HF_PERM1 */
  1248. #define HP1_SRATE (0)
  1249. #define HP1_ELEMENT_SIZE (1)
  1250. #define HP1_GAP_SIZE (2)
  1251. #define HP1_GGAP_SIZE (3)
  1252. #define HP1_MINSET (4)
  1253. #define HP1_BOTNOTE (5)
  1254. #define HP1_BOTOCT (6)
  1255. #define HP1_TOPNOTE (7)
  1256. #define HP1_TOPOCT (8)
  1257. #define HP1_SORT1 (9)
  1258. /* internal */
  1259. #define HP1_HFCNT (10)
  1260. /* DEL_PERM */
  1261. /* DEL_PERM2 */
  1262. #define DP_SRATE (0)
  1263. #define DP_DUR (1)
  1264. #define DP_CYCCNT (2)
  1265. /* internal */
  1266. #define DP_NOTECNT (3)
  1267. #define DP_PERMCNT (4)
  1268. /* TWIXT */
  1269. #define IS_SPLEN (0)
  1270. #define IS_SEGCNT (1)
  1271. #define IS_WEIGHT (2)
  1272. /* internal */
  1273. #define IS_SPLICETIME (3)
  1274. #define IS_SHSECSIZE (4)
  1275. //TW NEW -->>
  1276. /* P_VOWELS */
  1277. #define PV_HWIDTH (0)
  1278. #define PV_CURVIT (1)
  1279. #define PV_PKRANG (2)
  1280. #define PV_FUNBAS (3)
  1281. #define PV_OFFSET (4)
  1282. /* VFILT */
  1283. #define VF_THRESH (3)
  1284. /* HOUSE_GATE */
  1285. #define GATE_ZEROS (0)
  1286. /* P_GEN */
  1287. #define PGEN_SRATE (0)
  1288. #define PGEN_CHANS_INPUT (1)
  1289. #define PGEN_WINOVLP_INPUT (2)
  1290. /* CUT_MANY */
  1291. #define CM_SPLICELEN (0)
  1292. /* internal */
  1293. //TW REVISED FOR FLTS
  1294. //#define CM_SPLICEBYTES (1)
  1295. #define CM_SPLICE_TOTSAMPS (1)
  1296. #define CM_SPLICESAMPS (2)
  1297. #define CM_SPLICEINCR (3)
  1298. /* STACK */
  1299. #define STACK_CNT (0)
  1300. #define STACK_LEAN (1)
  1301. #define STACK_OFFSET (2)
  1302. #define STACK_GAIN (3)
  1303. #define STACK_DUR (4)
  1304. /* internal */
  1305. #define STACK_MINTRANS (5)
  1306. /* DISTORT_PULSED */
  1307. #define PULSE_STARTTIME (0) /* starttime of impulses in input-sound */
  1308. #define PULSE_DUR (1) /* duration of impulse stream */
  1309. #define PULSE_FRQ (2) /* frq of impulses */
  1310. #define PULSE_FRQRAND (3) /* frq of impulses */
  1311. #define PULSE_TIMERAND (4) /* randomisation of pulse shape, timewise */
  1312. #define PULSE_SHAPERAND (5) /* randomisation of pulse shape, ampwise */
  1313. #define PULSE_WAVETIME (6) /* duration of wavcycle-group to cycle round, within impulse [synth option only] */
  1314. #define PULSE_TRANSPOS (7) /* transposition envelope of material inside impulse */
  1315. #define PULSE_PITCHRAND (8) /* randomisation of transposition envelope */
  1316. /* internal */
  1317. #define PULSE_ENVSIZE (9) /* no of paired vals in envelope of impulse */
  1318. #define PULSE_TRNSIZE (10) /* no of paired vals in transposition envelope of impulse */
  1319. /* noise suppress */
  1320. #define NOISE_SPLEN (0)
  1321. #define NOISE_MINFRQ (1)
  1322. #define MIN_NOISLEN (2)
  1323. #define MIN_TONELEN (3)
  1324. /* time grid */
  1325. #define GRID_COUNT (0)
  1326. #define GRID_WIDTH (1)
  1327. #define GRID_SPLEN (2)
  1328. /* convolve */
  1329. #define CONV_TRANS (0)
  1330. /* baktobak */
  1331. #define BTOB_CUT (0)
  1332. #define BTOB_SPLEN (1)
  1333. /* sequencer */
  1334. #define SEQ_ATTEN (0)
  1335. #define SEQ_SPLIC (1)
  1336. /* SHUDDER */
  1337. #define SHUD_STARTTIME (0)
  1338. #define SHUD_FRQ (1)
  1339. #define SHUD_SCAT (2)
  1340. #define SHUD_SPREAD (3)
  1341. #define SHUD_MINDEPTH (4)
  1342. #define SHUD_MAXDEPTH (5)
  1343. #define SHUD_MINWIDTH (6)
  1344. #define SHUD_MAXWIDTH (7)
  1345. /* MIX AT STEP */
  1346. #define MIX_STEP (0)
  1347. /* CLICKS */
  1348. #define CLIKSTART (0)
  1349. #define CLIKEND (1)
  1350. #define CLIKOFSET (2)
  1351. #define CLICKTIME (3)
  1352. /* DOUBLETS */
  1353. #define SEG_DUR (0)
  1354. #define SEG_REPETS (1)
  1355. /* internal */
  1356. #define SEGLEN (2)
  1357. /* SYLLABS */
  1358. #define SYLLAB_SPLICELEN (0) /* NB must be same paramno as edit_cutmany CM_SPLICELEN */
  1359. #define SYLLAB_DOVETAIL (1)
  1360. /* BATCH_EXPAND */
  1361. #define BE_INFILE (0)
  1362. #define BE_OUTFILE (1)
  1363. #define BE_PARAM (2)
  1364. /* JOIN_SEQ */
  1365. #define MAX_LEN (3)
  1366. /* ENVSYN */
  1367. #define ENVSYN_WSIZE (0)
  1368. #define ENVSYN_DUR (1)
  1369. #define ENVSYN_CYCLEN (2)
  1370. #define ENVSYN_STARTPHASE (3)
  1371. #define ENVSYN_TROF (4)
  1372. #define ENVSYN_EXPON (5)
  1373. /* INEXTEND */
  1374. #define INEXTEND_STT (0)
  1375. #define INEXTEND_END (1)
  1376. #define INEXTEND_REP (2)
  1377. #define INEXTEND_SPL (3)
  1378. /* RRRR_EXTEND */
  1379. #define RRR_START (0)
  1380. #define RRR_GATE (0)
  1381. #define RRR_END (1)
  1382. #define RRR_GRSIZ (1)
  1383. #define RRR_STRETCH (2)
  1384. #define RRR_GET (3)
  1385. #define RRR_RANGE (4)
  1386. #define RRR_REPET (5)
  1387. #define RRR_ASCAT (6)
  1388. #define RRR_PSCAT (7)
  1389. #define RRR_SKIP (8)
  1390. #define RRR_AFTER (9)
  1391. #define RRR_TEMPO (10)
  1392. #define RRR_AT (11)
  1393. /* internal */
  1394. #define RRR_WSIZE (12)
  1395. #define RRR_SAMP_WSIZE (13)
  1396. /* VERSION 8+ */
  1397. #define RRR_SLOW (9)
  1398. #define RRR_REGU (10)
  1399. /* internal */
  1400. #define RRR_WSIZENU (11)
  1401. #define RRR_SAMP_WSIZENU (12)
  1402. /* HOUSE_GATE2 */
  1403. #define GATE2_DUR (0)
  1404. #define GATE2_ZEROS (1)
  1405. #define GATE2_LEVEL (2)
  1406. #define GATE2_SPLEN (3)
  1407. #define GATE2_FILT (4)
  1408. /* ZCROSS_RATIO */
  1409. #define ZC_START (0)
  1410. #define ZC_END (1)
  1411. /* SSSS_EXTEND */
  1412. #define SSS_DUR (0)
  1413. #define MAX_NOISLEN (3)
  1414. #define SSS_GATE (4)
  1415. /* GREV */
  1416. #define GREV_WSIZE (0)
  1417. #define GREV_TROFRAC (1)
  1418. #define GREV_GPCNT (2)
  1419. #define GREV_TSTR (3)
  1420. #define GREV_REPETS (3)
  1421. #define GREV_KEEP (3)
  1422. #define GREV_DEL (3)
  1423. #define GREV_OUTOF (4)
  1424. /* internal */
  1425. #define GREV_SAMP_WSIZE (5)