We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
i'm pretty new to all this and working on a project for uni i came across a small problem.
the whole thing is an audio visualisation and the user should be be able to choose the song (.mp3) he wants to use for it from the file browser. as far as i know you do this with selectInput() which returns the type "file", to use it with the audio library however, i need it as an audiofile. i haven't found a way to cast a normal file to an audio file or another way to get an audio file via the browser. basically i would only need the path or file name (if the file is in the data folder) saved to a string.
can anyone please help me with this? .-.
-raiu
Answers
Class File got some methods which return the path it points to as a String. For example getPath():