New API: Server and FileSystem
-
Oops, you're right, I think the great @Dominik-Mayer has accidently uploaded an older doc state. I'll fix it tomorrow. If you can't wait, you can browse the original markdowns here:
https://github.com/christophhart/hise_documentation/tree/master/scripting/scripting-api/file
-
This seems pretty cool, I dont really understand it, but will this allow you to export midi on a compiled plugin?
-
@BWSounds said in New API: Server and FileSystem:
will this allow you to export midi on a compiled plugin?
I couldn't come up with anything :man_shrugging:
-
@Christoph-Hart Still waiting on updated doc state. Can we fix this please?
-
@BWSounds said in New API: Server and FileSystem:
@BWSounds said in New API: Server and FileSystem:
will this allow you to export midi on a compiled plugin?
I couldn't come up with anything :man_shrugging:
Bump bump does Anyone have a clue on if this is possible?
-
Bump bump :)
-
Im trying to get list of files by using
var files = FileSystem.findFiles("AudioFiles", "*.wav", true);
and in result im gettin empty array. Any tips? And yes, i have files in this folder. :P
-
Being honest i can't scan any folder and can't find any file ...
-
You need to create a reference to the folder first:
const var audioFiles = FileSystem.getFolder(FileSystem.AudioFiles); FileSystem.findFiles(audioFiles, "*.wav", true);
Also use the constant
FileSystem.AudioFiles
instead of"AudioFiles"
. -
@Christoph-Hart said in New API: Server and FileSystem:
const var audioFiles = FileSystem.getFolder(FileSystem.AudioFiles);
FileSystem.findFiles(audioFiles, "*.wav", true);
thanks, but i gettin error
Interface:! Line 3, column 66: Function / constant not found: FileSystem.AudioFiles {SW50ZXJmYWNlfHwxMDZ8M3w2Ng==}
-
Ooops, my bad, I think this was in the second batch of constants which I forgot to add to the scripting object. Will fix it later. If you can't wait, goto
hi_scripting/scripting/api/ScriptingApi.cpp
and add
addConstant("AudioFiles", (int)AudioFiles);
at line 4381 (the constructor of the FileSystem object).
-
@Christoph-Hart unfortunly it still not work. I tried use other place but still the same error. Im using latest scriptnode.
constant not found: FileSystem.Desktop
-
@Christoph-Hart any solution?
-
I'll take a look tomorrow.
-
@Christoph-Hart said in New API: Server and FileSystem:
You need to create a reference to the folder first:
const var audioFiles = FileSystem.getFolder(FileSystem.AudioFiles); FileSystem.findFiles(audioFiles, "*.wav", true);
Also use the constant
FileSystem.AudioFiles
instead of"AudioFiles"
.Can we do this with MIDI FILES?
-
Are you talking about embedded Midi files or files on the user‘s disk?
Embedded files should be retrievable with MidiPlayer.getMidiFileList() - it‘s not implemented yet but it will follow the same logic as Sampler.getSampleMapList().
-
@Christoph-Hart you had a chance to check why consts not working properly?
-
@Christoph-Hart said in New API: Server and FileSystem:
Are you talking about embedded Midi files or files on the user‘s disk?
Embedded files should be retrievable with MidiPlayer.getMidiFileList() - it‘s not implemented yet but it will follow the same logic as Sampler.getSampleMapList().
Files on a user's disk. Really a way to save or create a path for midi files.
-
-
@Christoph-Hart ok audio files work but desktop not :)
constant not found: FileSystem.Desktop {SW50ZXJmYWNlfHwyMzJ8MTB8NjU=}
Is there option to show file name of object?