15. Zone Commands ................................................................................................... 193
15.1. General Information ..................................................................................... 193
15.2. get_loop_par() ............................................................................................. 194
15.3. get_sample() ............................................................................................... 195
15.4. get_zone_par() ............................................................................................ 196
15.5. is_zone_empty() .......................................................................................... 197
15.6. set_loop_par() ............................................................................................. 198
15.7. set_num_user_zones() ................................................................................ 199
15.8. set_sample .................................................................................................. 200
15.9. set_zone_par() ............................................................................................ 201
16. Load/Save Commands ........................................................................................... 202
16.1. General Information ..................................................................................... 202
16.2. get_folder() .................................................................................................. 203
16.3. load_array() ................................................................................................. 204
16.4. load_array_str() ........................................................................................... 207
16.5. load_ir_sample() .......................................................................................... 210
16.6. save_array() ................................................................................................ 212
16.7. save_array_str() .......................................................................................... 213
16.8. save_midi_file() ........................................................................................... 216
17. Music Information Retrieval .................................................................................... 218
17.1. General Information ..................................................................................... 218
17.2. detect_pitch() .............................................................................................. 219
17.3. detect_loudness() ........................................................................................ 220
17.4. detect_peak() .............................................................................................. 221
17.5. detect_rms() ................................................................................................ 222
17.6. detect_sample_type() ................................................................................... 223
17.7. detect_drum_type() ...................................................................................... 224
17.8. detect_instrument_type() .............................................................................. 225
17.9. Examples .................................................................................................... 226
18. MIDI Object Commands ......................................................................................... 227
18.1. General Information ..................................................................................... 227
18.2. mf_insert_file() ............................................................................................. 228
18.3. mf_set_export_area() ................................................................................... 230
18.4. mf_set_buffer_size() .................................................................................... 232
18.5. mf_get_buffer_size() .................................................................................... 233
18.6. mf_reset() ................................................................................................... 234
18.7. mf_insert_event() ......................................................................................... 235
18.8. mf_remove_event() ...................................................................................... 236
18.9. mf_set_event_par() ...................................................................................... 237
18.10. mf_get_event_par() .................................................................................... 239
18.11. mf_get_id() ................................................................................................ 240
18.12. mf_set_mark() ........................................................................................... 241
18.13. mf_get_mark() ........................................................................................... 242
18.14. by_marks() ................................................................................................ 243
18.15. by_track() .................................................................................................. 244
KSP Reference Manual