Hello, ive been trying to learn some scripting and i want to try to make a playlist for xrns. When song nr 1 played last pattern then song nr 2 will autoload and play. i can make a window and handle buttons/sliders/text but i have problems to do the list for the songs. i want something smiliar to renoise disk browser. i don’t know what commands i should use to create the selector thing.
os.filenames and os.dirnames can probably be useful. You’d get a table of strings that you could manipulate.
For GUI, you could inspire yourself from the IRC script. On the right side is a list of users that could be applicable to your GUI design.
That said, you will have to be creative in the way you design things. The list of users in the IRC aren’t individually selectable, for example. It’s just a textarea with formatting. Maybe look at the Batch Building Views (Matrix) example and work with buttons? Or bitmaps? There’s no straightforward way to emulate the disk browser.
– Opens a modal dialog to query a filename and path to read from a file.
– The given extension(s) should be something like {“wav”, “aiff”
– or “*” (any file) }
renoise.app():prompt_for_filename_to_read({file_extensions}, dialog_title)
-> [filename or empty string]
– Same as ‘prompt_for_filename_to_read’ but allows the user to select
– more than one file.
renoise.app():prompt_for_multiple_filenames_to_read({file_extensions}, dialog_title)
-> [list of filenames or empty list]