-
... g file; ^super.new.file_(loadDocument(file)) } *standardizePath { arg path; var pathName; pathName = PathName(path.standardizePath); ^if(pathName.isRelativePath,{ dir ++ pathName.asRelativePath },{ pathName.fullPath }) } *dir_ { arg path; d ...
-
... g file; ^super.new.file_(loadDocument(file)) } *standardizePath { arg path; var pathName; pathName = PathName(path.standardizePath); ^if(pathName.isRelativePath, { dir ++ pathName.asRelativePath }, { pathName.fullPath }) } *dir_ { arg path; ...
-
... ssing and testing general testing extensions on String isFile, isFolder same as Pathname:isFile / Pathname:isFolder isBundle test if it is a bundle "SuperCollider.app" .isBundle; // true isSoundFile test if path is a valid soundfile which c ...
-
... elative, paths = Array.newClear() ; if(me.isNil.not) { relative = PathName(me).pathOnly; paths = paths ++ [relative]; } { "Current document has not path! Have you saved it?".warn }; paths = paths ++ Require.ge ...
-
... e, <>path, <>version=1.0; var lastItem, count=0, stringCacheStart; *write { arg pathName; ^super.new(pathName, "wb").path_(pathName).check.initStringCache } *read { arg pathName; ^super.new(pathName, "rb").path_(pathName).check .getStringCa ...
-
... bj, cue); }); }); } // does not test for existence pr_loadBufferFromPath {|key, pathname, cue| var action = {|buf| home.log(\PlonkSoundSupport, "Buffer % loaded".format(key)); }; var buf; cue.if({ var info = SoundFile.use(pathname, {|file| ...
-
... xtensionFunc, extensionsRoots, extensionsFolders; var undoc, undocIndex; path = PathName .new( "Help/" ); headingIndices = List .new; titleString = "A Generated List of all Documented Classes" ; undoc = "*Show All Undocumented Classes" ; re ...
-
... ampleRate before calling SoundFile: -openWrite . Class Methods SoundFile. new ( pathName ) Creates a new SoundFile instance. SoundFile. writeArray ( array , pathName , headerFormat , sampleFormat , sampleRate ) Writes an array (or nested ar ...
-
... { // temp fix for SoundFile bug: avoid trying to open .psd files openRead { arg pathName, postExcluded = false, fileExtsToExclude; var fileext; fileExtsToExclude = fileExtsToExclude ? ["pic", "psd"]; path = pathName ? path; Platform.case( \ ...
-
... xtensionFunc, extensionsRoots, extensionsFolders; var undoc, undocIndex; path = PathName .new( "Help/" ); headingIndices = List .new; titleString = "A Generated List of all Documented Extension Classes" ; undoc = "*Show All Undocumented Cla ...