From 94a51997f72940630d08fcb9f176de7d5aa79e97 Mon Sep 17 00:00:00 2001 From: Ted Moore Date: Wed, 8 Dec 2021 11:22:47 +0000 Subject: [PATCH] created FluidFilesPath and a test file --- release-packaging/Classes/FluidFilesPath.sc | 5 +++++ test/FluidFilesPath_test.scd | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 release-packaging/Classes/FluidFilesPath.sc create mode 100644 test/FluidFilesPath_test.scd diff --git a/release-packaging/Classes/FluidFilesPath.sc b/release-packaging/Classes/FluidFilesPath.sc new file mode 100644 index 0000000..0b03015 --- /dev/null +++ b/release-packaging/Classes/FluidFilesPath.sc @@ -0,0 +1,5 @@ +FluidFilesPath { + *new { + ^"%/../AudioFiles/".format(File.realpath(FluidDataSet.class.filenameSymbol).dirname); + } +} \ No newline at end of file diff --git a/test/FluidFilesPath_test.scd b/test/FluidFilesPath_test.scd new file mode 100644 index 0000000..37addff --- /dev/null +++ b/test/FluidFilesPath_test.scd @@ -0,0 +1,12 @@ +( +s.waitForBoot{ + Routine{ + var path = FluidFilesPath()++"Nicol-LoopE-M.wav"; + var buf = Buffer.read(s,path); + + s.sync; + + buf.play; + }.play; +} +) \ No newline at end of file