| 1 |
/** |
| 2 |
* @typedef CSOUND_PARAMS |
| 3 |
* @property {number} debug_mode |
| 4 |
* @property {number} buffer_frames |
| 5 |
* @property {number} hardware_buffer_frames |
| 6 |
* @property {number} displays |
| 7 |
* @property {number} ascii_graphs |
| 8 |
* @property {number} postscript_graphs |
| 9 |
* @property {number} message_level |
| 10 |
* @property {number} tempo |
| 11 |
* @property {number} ring_bell |
| 12 |
* @property {number} use_cscore |
| 13 |
* @property {number} terminate_on_midi |
| 14 |
* @property {number} heartbeat |
| 15 |
* @property {number} defer_gen01_load |
| 16 |
* @property {number} midi_key |
| 17 |
* @property {number} midi_key_cps |
| 18 |
* @property {number} midi_key_oct |
| 19 |
* @property {number} midi_key_pch |
| 20 |
* @property {number} midi_velocity |
| 21 |
*/ |
| 22 |
export const CSOUND_PARAMS = [ |
| 23 |
/* debug mode, 0 or 1 */ |
| 24 |
["debug_mode", "int"], |
| 25 |
/* number of frames in in/out buffers */ |
| 26 |
["buffer_frames", "int"], |
| 27 |
/* number of frames in in/out hardware buffers */ |
| 28 |
["hardware_buffer_frames", "int"], |
| 29 |
/* graph displays, 0 or 1 */ |
| 30 |
["displays", "int"], |
| 31 |
/* use ASCII graphs, 0 or 1 */ |
| 32 |
["ascii_graphs", "int"], |
| 33 |
/* use postscript graphs, 0 or 1 */ |
| 34 |
["postscript_graphs", "int"], |
| 35 |
/* message printout control */ |
| 36 |
["message_level", "int"], |
| 37 |
/* tempo (sets Beatmode) */ |
| 38 |
["tempo", "int"], |
| 39 |
/* bell, 0 or 1 */ |
| 40 |
["ring_bell", "int"], |
| 41 |
/* use cscore for processing */ |
| 42 |
["use_cscore", "int"], |
| 43 |
/* terminate performance at the end */ |
| 44 |
["terminate_on_midi", "int"], |
| 45 |
/* print heart beat, 0 or 1 */ |
| 46 |
["heartbeat", "int"], |
| 47 |
/* defer GEN01 load, 0 or 1 */ |
| 48 |
["defer_gen01_load", "int"], |
| 49 |
/* pfield to map midi key no */ |
| 50 |
["midi_key", "int"], |
| 51 |
/* pfield to map midi key no as cps */ |
| 52 |
["midi_key_cps", "int"], |
| 53 |
/* pfield to map midi key no as oct */ |
| 54 |
["midi_key_oct", "int"], |
| 55 |
/* pfield to map midi key no as pch */ |
| 56 |
["midi_key_pch", "int"], |
| 57 |
/* pfield to map midi velocity */ |
| 58 |
["midi_velocity", "int"], |
| 59 |
/* pfield to map midi velocity as amplitude */ |
| 60 |
["midi_velocity_amp", "int"], |
| 61 |
/* disable relative paths from files, 0 or 1 */ |
| 62 |
["no_default_paths", "int"], |
| 63 |
/* number of threads for multicore performance */ |
| 64 |
["number_of_threads", "int"], |
| 65 |
/* do not compile, only check syntax */ |
| 66 |
["syntax_check_only", "int"], |
| 67 |
/* csd line error reporting */ |
| 68 |
["csd_line_counts", "int"], |
| 69 |
/* deprecated, kept for backwards comp. */ |
| 70 |
["compute_weights", "int"], |
| 71 |
/* use realtime priority mode, 0 or 1 */ |
| 72 |
["realtime_mode", "int"], |
| 73 |
/* use sample-level score event accuracy */ |
| 74 |
["sample_accurate", "int"], |
| 75 |
/* overriding sample rate */ |
| 76 |
["sample_rate_override", "MYFLT"], |
| 77 |
/* overriding control rate */ |
| 78 |
["control_rate_override", "MYFLT"], |
| 79 |
/* overriding number of out channels */ |
| 80 |
["nchnls_override", "int"], |
| 81 |
/* overriding number of in channels */ |
| 82 |
["nchnls_i_override", "int"], |
| 83 |
/* overriding 0dbfs */ |
| 84 |
["e0dbfs_override", "MYFLT"], |
| 85 |
/* daemon mode */ |
| 86 |
["daemon", "int"], |
| 87 |
/* ksmps override */ |
| 88 |
["ksmps_override", "int"], |
| 89 |
/* fft_lib */ |
| 90 |
["FFT_library", "int"], |
| 91 |
]; |
| 92 |
|
| 93 |
/** |
| 94 |
* @typedef CS_MIDIDEVICE Array<Array.<string | number>>> |
| 95 |
*/ |
| 96 |
export const CS_MIDIDEVICE = [ |
| 97 |
/* debug mode, 0 or 1 */ |
| 98 |
["device_name", "char", 64], |
| 99 |
["interface_name", "char", 64], |
| 100 |
["device_id", "char", 64], |
| 101 |
["midi_module", "char", 64], |
| 102 |
["isOutput", "int"], |
| 103 |
]; |