Package net.paulhertz.pixelaudio.io
Class AudioBrushSessionLoader
java.lang.Object
net.paulhertz.pixelaudio.io.AudioBrushSessionLoader
Read AudioBrush session data form JSON files.
Used in the example sketch
Bagatelle.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetectType(processing.data.JSONObject root) private static AudioBrushSessionLoader.LoadResultloadSession(File sessionFile, processing.data.JSONObject root) private static AudioBrushSessionLoader.LoadResultloadSingleFromConfig(File configFile, processing.data.JSONObject root) private static AudioBrushSessionLoader.LoadResultloadSingleFromGesture(File gestureFile, processing.data.JSONObject root) static processing.data.JSONObject
-
Constructor Details
-
AudioBrushSessionLoader
private AudioBrushSessionLoader()
-
-
Method Details
-
load
- Throws:
IOException
-
readRoot
- Throws:
IOException
-
detectType
-
loadSingleFromGesture
private static AudioBrushSessionLoader.LoadResult loadSingleFromGesture(File gestureFile, processing.data.JSONObject root) throws IOException - Throws:
IOException
-
loadSingleFromConfig
private static AudioBrushSessionLoader.LoadResult loadSingleFromConfig(File configFile, processing.data.JSONObject root) throws IOException - Throws:
IOException
-
loadSession
private static AudioBrushSessionLoader.LoadResult loadSession(File sessionFile, processing.data.JSONObject root) throws IOException - Throws:
IOException
-