< Back to IRCAM Forum

OM7.6 - snd process boxes - support for pathname input?

hello Friends,

i noticed that connecting a file Pathname (e.g. #P"…" output from supervp-merge) directly to sound-cut results in a “No applicable methods” error, in OM 7.6 . unlike sound-dur or sound-info which accept pathnames directly, sound-cut seems to strictly require a loaded sound object by (s sound) (s om-sound-data), this applies probably to almost all functions in snd process boxes

currently i am inserting a load-sound box as a workaround. however, would it be possible to include direct pathname support for sound-cut in a future update? this would be very helpful for batch .

thanks in advance :slight_smile:
best
Yukun

Dear Yukun,

Yes without problem. For the time being here is a patch for using either path names or name strings for the sound-cut method:

soundcut_pathname.lisp (354 Bytes)

You just put it in the init folder of your OM application folder.

Do you have also any request for other sound processing methods which requires this?

best
K

Dear Karim,

thank you so much for the quick patch!

regarding other methods: yes, most functions in the same boxes (like sound-seq, sound-vol, etc.) currently lack direct pathname support. updating them would be fantastic for some batch processing.

and i noticed that in the code, sound-dur has methods defined for pathname, string and sound objects, but not for om-sound-data. Currently, when I generate audio in memory (e.g. output from sound-seq), I have to save it to disk with save-sound just to check its duration. It would be extremely helpful if sound-dur could accept om-sound-data directly also, which would avoid unnecessary disk I/O loops.

thanks again for your help!
best
Yukun

Dear Yukun,

Here you are:

sound-methods.lisp (439 Bytes)

Just replace this file with the one i have already sent since all the methods are there.
Still i will include the other methods for the other processing tools in the next release.

And by the way thank you for your great suggestions! They are always welcomed :slight_smile:

Best
K

1 Like

Dear Karim,

thank you for your incredibly fast update lispfile!! i will replace as instructed.
it is great to hear that these methods will be included in the next release. glad i could help! :slight_smile:

best
Yukun