Problem playing files when put in "coll"
I am relatively new to Max MSP, but build some nice simple patches.
I am now trying to get my Akai MPD to play some samples when i hit the pads.
The problem is my samples can only be found when i put them in a folder inside Max.
Is this normal? I searched on the forum and in the tutorials but cant find the answer.
So when the samples that need to played through an "sfplay" are put within /Max/Examples/..
they’re found, but as soon as they’re in for instance users/me/documents/samples they’re not found.
I put them in a "coll" object. I allso tried to put the entire path in there, but no help.
Allso adding the searchpath of the samples-folder to the "file-preferences" didnt do anything.
Here’s the little patch;
----------begin_max5_patcher---------- 761.3ocyW00aaBCE8YxuBDS6korDr4iD1dpUSau0Wl1SUUQFvMwqfcD1z1zp 1e6y1.ojrDfzRRqTDFt95qO9bt9ZmGGXXExtGysL+l4klFFONvvPaRYvn7aC qTz8QIHt1MKJ9NV3esFVzk.euPadrI.NYTkYZdJKWjfE5w.JsdMiJnnTrd.m kQPIU9W3rX0RbATrtNggjA9px9WhDQKHz4yxvQhBW.ddirGZBgtpFWf9C6Q1 qGCIVOORv9UfiUMHvIOnmF.TNl03kPqfKTY6oACTOF91Xku7rIn+HENYNU1c irhsihHb7sKZZjUfuSrRBghed2rB7UyJCMsBQz4MyNt5jEGvj1YmfiM4feHF EsGZvd+qg.cZuagN65U8bWKAHv5HqjBSfYRuojDpPIiMJgSCzhlmV6bfi7FZ Bltmku8NkP6cKgf9iU3WuLAs5cICOXRsDbWU15doGvzCgdpfMGcaEr9zEJHs dwJEN4jI+AsC7kyqcgEquKAb+wse1bZuUOUku0dtFnjSaLWC.NHxr+3iHVxd 1.5d3DRoHZ00cgPc4GuflXF+CZSXoQ0pZVLRfJIjRFQ0QNUigoCKsT40kZ+V 6ormavqpUKUY4VTRd0ZksDSUqyyPIjUnEitCcaYhpQkrryvAZIbggq5brfsE KxbDIoygyo0vkg5bvbaNX+giy3i+AKJOEK00w+FktLAyGetpyKjoab0K+jko Z9EIKQ1EBcCqyyuWyy+4nrvCX032VzDXdmC1j1BFew+grxWkQ8k5nwyjaPj6 olgDhLRXtn3l30y2wog330GOUTynmpbPYBLgt6ZGNu5Cuq0zgRqd5qo552z4 TNu1Sw0ASeYys9CNZ7nruIowY4YQqEyxh5lufoXLWPnHAgQq4j+F9rfDGio0 uBWJIdISRGkXXOmE1UH4zADsErO1PRcMq1wzzSOl.ervjeGnos3xiMjB5hxA 2fJO1PROcsRSm1L7sRTZfmr+.xSmPsqKUmBN40KasNfya.RxOdZv+PK9OED -----------end_max5_patcher-----------
1. Absolute path would need to start with Macintosh HD:/Users/yourname/path/to/file.wav
2. Need to put a Abs path in quotes when there are spaces, then change the l to an s in your trigger object then [prepend open].
hope this helps
you could also add your personal sample collection at HD:/Users/yourname/path/ to the
search path in the maxmsp preferences.
[tosymbol] helps with this, it will essentially do the same thing as putting the filepath in quotes. On Windows I’ve run into that issue with "C:/Documents and Settings/etc…" because of the spaces in the path, it will behave as multiple symbols, when you just want it as one.
The best help is probably in the [sprintf] help file, check it out.
i have put in the absolute path in "coll" like this;
1, "Macintosh HD:/users/myname/path/sample.wav";
added, prepend open after a bang, and now its found.
Putting the mainfolderpath in "filepreferences" should make it able to find the files when only putting the filename in my list? I tried that at the beginnning, but didnt work.
thanks for the hint on those 2 objects.
i just would love to be able to put "crash2.wav" in my list instead of the entire path. its such a hastle to type them in. but am looking into the "polybuffer" which would make it possible to dragdrop files.
image of patch
Forums > MaxMSP