/** * file: sound_track_looper_four.js * type: JavaScript * author: karbytes * date: 03_JUNE_2025 * license: PUBLIC_DOMAIN */ let track_count = 1; // This global variable is used to keep track how many sound track file menus are added to the application user interface (and is 1 immediately after the page is loaded). /** * Dynamically add a new sound track menu to the application web page (and increment the global variable named track_count). * * Assume this function is called in response to the add_another_sound_file_menu() button being clicked. * * Also append a time-stamped message to the output DIV indicating when this function was called (assumedly by the add button being clicked). */ function add_another_sound_file_menu() { try { // Generate a time-stamped message string containing the (approximate) number of milliseconds which have elapsed since the Unix Epoch (i.e. 12:00AM Coordinated Universal Time on 01_JANUARY_1970). const message = "The add_another_sound_file_menu() button was clicked at time: " + generate_time_stamp(); let sound_file_menu_area = document.getElementById("sound_file_menu_area"); // Create a new paragraph (i.e.

) element. let new_paragraph = document.createElement("p"); // Create a new menu (i.e. with menu options. new_select.innerHTML = get_menu_options(); // Append the