jamoma / JamomaMax

Implementation of Jamoma for Cycling'74 Max:
http://www.jamoma.org
41 stars 9 forks source link

j.fileHandler component #692

Open theod opened 10 years ago

theod commented 10 years ago

this have been discussed during the workshop in Albi 2014 to have standard parameter, messages and returns relative to file loading and saving.

theod commented 10 years ago

[j.parameter file/path @type string @description "where the file is on the disk"]

theod commented 10 years ago

[j.message file/write @type generic @description "set a new file/path to write into or write at the last file if no argument provided"]

theod commented 10 years ago

[j.message file/read @type generic @description "set a new file/path where to read from or read at the last file if no argument provided"] No, we only keep j.parameter path @type string to know which file is loaded. If you need to have a dialog box, you put one in your view… so the read message is uselesss and is not wanted

theod commented 10 years ago

file/edit, file/edit_with ?

reno- commented 10 years ago

[j.message file/read @type generic @description "set a new file/path where to read from or read at the last file if no argument provided"]

No, we only keep j.parameter path @type string to know which file is loaded. If you need to have a dialog box, you put one in your view… so the read message is uselesss and is not wanted

bltzr commented 10 years ago

what am I supposed to do here ? review all models with file loading and change them accordingly ?

theod commented 10 years ago

I would say yes but as it it a lot of work I would split this issue in many ones each time this way of handling path have to be done (and tag them under a dedicated a milestone)

lossius commented 10 years ago

I’ll be taking care of this for the stereo audio models. I’ll also take care of it for surround audio models once I get to porting them.

On 19 Aug 2014, at 16:31, theod notifications@github.com wrote:

I would say yes but as it it a lot of work I would split this issue in many ones each time this way of handling path have to be done (and tag them under a dedicated a milestone)

— Reply to this email directly or view it on GitHub.

bltzr commented 10 years ago

apparently this is done in the only file-loading video model : movie% (which is used as a submodel in input%-), so once you're done with the audio and surround models, this would probably be OK, Trond

bltzr commented 10 years ago

should I move that into 0.6.1 ?

bltzr commented 10 years ago

AFAIK there is just:

I have changed the name of the open parameter in input= from open to path, so it's done and you don't have to think about it when you'll be porting it

then I'll move this to 0.6.1

bltzr commented 10 years ago

maybe we should just simply close it if there is no other place in which action is required ? (but I'm letting it open until at least another person checks it)