Hi list,
I have a question if you could enlighten me:
I would like to make a patch that loads randomly a sample from a folder (if I can make it open randomly any file begging with P01 ie. P01*.wav) and when the sample ends loads automatically another sample randomly (ie. P02*.wav).
Spyros Polychronopoulos Music Composer / BSc / PhD www.spyweirdos.com
?you need a folder playlist object attached to a file player
i suggest the browser/folder from the MTL abstractions and the player~ external from Eric lyon Potpourri
Patrick Pagano B.S, M.F.A Audio and Projection Design Faculty Digital Worlds Institute University of Florida, USA (352)294-2020 ________________________________ From: Pd-list pd-list-bounces@mail.iem.at on behalf of Spyros Polychronopoulos spypolymail@gmail.com Sent: Thursday, February 11, 2016 6:50 PM To: pd-list@mail.iem.at Subject: [PD] loading random samples
Hi list,
I have a question if you could enlighten me:
I would like to make a patch that loads randomly a sample from a folder (if I can make it open randomly any file begging with P01 ie. P01*.wav) and when the sample ends loads automatically another sample randomly (ie. P02*.wav).
Spyros Polychronopoulos Music Composer / BSc / PhD www.spyweirdos.comhttp://www.spyweirdos.com
[readsf~] outputs a bang out its right outlet when the current sample it's playing has finished. You can send that bang to [random] (the argument of which will be the number of your samples) and the output of [random] to a message [open ./samples/P$1.wav, 1( I don't think that you can use 01, 02, etc., but 1, 2, etc. If you really want to name your samples like that, your message could be [open ./samples/P0$1.wav, 1(, but any sample greater than 9 would have to be named P010.wav. There should be a work around that though. In this example there's a directory called "samples" in the directory of the patch.
On Fri, Feb 12, 2016 at 5:31 PM, Pagano, Patrick pat@digitalworlds.ufl.edu wrote:
you need a folder playlist object attached to a file player
i suggest the browser/folder from the MTL abstractions and the player~ external from Eric lyon Potpourri
*Patrick Pagano B.S, M.F.A* Audio and Projection Design Faculty Digital Worlds Institute University of Florida, USA (352)294-2020
*From:* Pd-list pd-list-bounces@mail.iem.at on behalf of Spyros Polychronopoulos spypolymail@gmail.com *Sent:* Thursday, February 11, 2016 6:50 PM *To:* pd-list@mail.iem.at *Subject:* [PD] loading random samples
Hi list,
I have a question if you could enlighten me:
I would like to make a patch that loads randomly a sample from a folder (if I can make it open randomly any file begging with P01 ie. P01*.wav) and when the sample ends loads automatically another sample randomly (ie. P02*.wav).
thank you in advance
Spyros Polychronopoulos Music Composer / BSc / PhD www.spyweirdos.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 12/02/16 16:04, Alexandros Drymonitis wrote:
[readsf~] outputs a bang out its right outlet when the current sample it's playing has finished. You can send that bang to [random] (the argument of which will be the number of your samples) and the output of [random] to a message [open ./samples/P$1.wav, 1( I don't think that you can use 01, 02, etc., but 1, 2, etc. If you really want to name your samples like that, your message could be [open ./samples/P0$1.wav, 1(, but any sample greater than 9 would have to be named P010.wav. There should be a work around that though.
Easiest to have files that are named with numbers rather than a number plus some extra sample-specific name. Otherwise you really do need a way to get a list of existing filenames into Pd somehow, either by a text file that you prepare beforehand, or a more complicated system with externals.
For leading 0 with fixed number of digits (here 2):
[nbx
|
[makefilename P%02d.wav]
|
[open $1, 1(
In this example there's a directory called "samples" in the directory of the patch.
On Fri, Feb 12, 2016 at 5:31 PM, Pagano, Patrick pat@digitalworlds.ufl.edu wrote:
you need a folder playlist object attached to a file player
i suggest the browser/folder from the MTL abstractions and the player~ external from Eric lyon Potpourri
*Patrick Pagano B.S, M.F.A* Audio and Projection Design Faculty Digital Worlds Institute University of Florida, USA (352)294-2020
*From:* Pd-list pd-list-bounces@mail.iem.at on behalf of Spyros Polychronopoulos spypolymail@gmail.com *Sent:* Thursday, February 11, 2016 6:50 PM *To:* pd-list@mail.iem.at *Subject:* [PD] loading random samples
Hi list,
I have a question if you could enlighten me:
I would like to make a patch that loads randomly a sample from a folder (if I can make it open randomly any file begging with P01 ie. P01*.wav) and when the sample ends loads automatically another sample randomly (ie. P02*.wav).
thank you in advance
Spyros Polychronopoulos Music Composer / BSc / PhD www.spyweirdos.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
attached is a tcl scripting example for reading a soundfile from a directory in shuffle mode by selecting first characters
Le 12/02/2016 17:15, Claude Heiland-Allen a écrit :
On 12/02/16 16:04, Alexandros Drymonitis wrote:
[readsf~] outputs a bang out its right outlet when the current sample it's playing has finished. You can send that bang to [random] (the argument of which will be the number of your samples) and the output of [random] to a message [open ./samples/P$1.wav, 1( I don't think that you can use 01, 02, etc., but 1, 2, etc. If you really want to name your samples like that, your message could be [open ./samples/P0$1.wav, 1(, but any sample greater than 9 would have to be named P010.wav. There should be a work around that though.
Easiest to have files that are named with numbers rather than a number plus some extra sample-specific name. Otherwise you really do need a way to get a list of existing filenames into Pd somehow, either by a text file that you prepare beforehand, or a more complicated system with externals.
For leading 0 with fixed number of digits (here 2):
[nbx
| [makefilename P%02d.wav] | [open $1, 1(In this example there's a directory called "samples" in the directory of the patch.
On Fri, Feb 12, 2016 at 5:31 PM, Pagano, Patrick pat@digitalworlds.ufl.edu wrote:
you need a folder playlist object attached to a file player
i suggest the browser/folder from the MTL abstractions and the player~ external from Eric lyon Potpourri
*Patrick Pagano B.S, M.F.A* Audio and Projection Design Faculty Digital Worlds Institute University of Florida, USA (352)294-2020
*From:* Pd-list pd-list-bounces@mail.iem.at on behalf of Spyros Polychronopoulos spypolymail@gmail.com *Sent:* Thursday, February 11, 2016 6:50 PM *To:* pd-list@mail.iem.at *Subject:* [PD] loading random samples
Hi list,
I have a question if you could enlighten me:
I would like to make a patch that loads randomly a sample from a folder (if I can make it open randomly any file begging with P01 ie. P01*.wav) and when the sample ends loads automatically another sample randomly (ie. P02*.wav).
thank you in advance
Spyros Polychronopoulos Music Composer / BSc / PhD www.spyweirdos.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thank you very much for your kind feedback! Especially Alexandros very detailed answer, thank you very much! Also you mention something about an example did you attach something that I can not find or you mean the discussed example?
On 12 February 2016 at 16:04, Alexandros Drymonitis adrcki@gmail.com wrote:
[readsf~] outputs a bang out its right outlet when the current sample it's playing has finished. You can send that bang to [random] (the argument of which will be the number of your samples) and the output of [random] to a message [open ./samples/P$1.wav, 1( I don't think that you can use 01, 02, etc., but 1, 2, etc. If you really want to name your samples like that, your message could be [open ./samples/P0$1.wav, 1(, but any sample greater than 9 would have to be named P010.wav. There should be a work around that though. In this example there's a directory called "samples" in the directory of the patch.
On Fri, Feb 12, 2016 at 5:31 PM, Pagano, Patrick < pat@digitalworlds.ufl.edu> wrote:
you need a folder playlist object attached to a file player
i suggest the browser/folder from the MTL abstractions and the player~ external from Eric lyon Potpourri
*Patrick Pagano B.S, M.F.A* Audio and Projection Design Faculty Digital Worlds Institute University of Florida, USA (352)294-2020
*From:* Pd-list pd-list-bounces@mail.iem.at on behalf of Spyros Polychronopoulos spypolymail@gmail.com *Sent:* Thursday, February 11, 2016 6:50 PM *To:* pd-list@mail.iem.at *Subject:* [PD] loading random samples
Hi list,
I have a question if you could enlighten me:
I would like to make a patch that loads randomly a sample from a folder (if I can make it open randomly any file begging with P01 ie. P01*.wav) and when the sample ends loads automatically another sample randomly (ie. P02*.wav).
thank you in advance
Spyros Polychronopoulos Music Composer / BSc / PhD www.spyweirdos.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Fri, Feb 12, 2016 at 11:12 PM, Spyros Polychronopoulos < spypolymail@gmail.com> wrote:
Thank you very much for your kind feedback! Especially Alexandros very detailed answer, thank you very much! Also you mention something about an example did you attach something that I can not find or you mean the discussed example?
I meant the "example" I described. No attachment, sorry for the confusion.
If you use wavebank~ from the Metastudio abstractions, you can load a folder of samples in one go. You can then use wavevoice~ to play them back using a simple [random] object. Ed Ninja Jamm - a revolutionary music remix app from Ninja Tune and Seeper, for iOS and Android: http://www.ninjajamm.com/
Gemnotes-0.2: Live music notation for Pure Data, now with dynamics! http://sharktracks.co.uk/puredata also Metastudio 5!
On Friday, 12 February 2016, 21:52, Alexandros Drymonitis <adrcki@gmail.com> wrote:
On Fri, Feb 12, 2016 at 11:12 PM, Spyros Polychronopoulos spypolymail@gmail.com wrote:
Thank you very much for your kind feedback! Especially Alexandros very detailed answer, thank you very much! Also you mention something about an example did you attach something that I can not find or you mean the discussed example?
I meant the "example" I described. No attachment, sorry for the confusion. _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
PS you can't save folders in Windows, but you're probably using a Mac, right? Ninja Jamm - a revolutionary music remix app from Ninja Tune and Seeper, for iOS and Android: http://www.ninjajamm.com/
Gemnotes-0.2: Live music notation for Pure Data, now with dynamics! http://sharktracks.co.uk/puredata also Metastudio 5!
On Saturday, 13 February 2016, 4:10, Ed Kelly <morph_2016@yahoo.co.uk> wrote:
If you use wavebank~ from the Metastudio abstractions, you can load a folder of samples in one go. You can then use wavevoice~ to play them back using a simple [random] object. Ed Ninja Jamm - a revolutionary music remix app from Ninja Tune and Seeper, for iOS and Android: http://www.ninjajamm.com/
Gemnotes-0.2: Live music notation for Pure Data, now with dynamics! http://sharktracks.co.uk/puredata also Metastudio 5!
On Friday, 12 February 2016, 21:52, Alexandros Drymonitis <adrcki@gmail.com> wrote:
On Fri, Feb 12, 2016 at 11:12 PM, Spyros Polychronopoulos spypolymail@gmail.com wrote:
Thank you very much for your kind feedback! Especially Alexandros very detailed answer, thank you very much! Also you mention something about an example did you attach something that I can not find or you mean the discussed example?
I meant the "example" I described. No attachment, sorry for the confusion. _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thank you very much Ed for your answer and for the attachment! Yes I am using mac, but my final goal is to have the pd file for raspberry pi. I still haven't been successful with the installation of pd on raspberry though (some packages missing and I can not install them). Thank you again!
On 13 February 2016 at 04:11, Ed Kelly morph_2016@yahoo.co.uk wrote:
PS you can't save folders in Windows, but you're probably using a Mac, right?
Ninja Jamm - a revolutionary music remix app from Ninja Tune and Seeper, for iOS and Android: http://www.ninjajamm.com/
Gemnotes-0.2: Live music notation for Pure Data, now with dynamics! http://sharktracks.co.uk/puredata also Metastudio 5!
On Saturday, 13 February 2016, 4:10, Ed Kelly morph_2016@yahoo.co.uk wrote:
If you use wavebank~ from the Metastudio abstractions, you can load a folder of samples in one go. You can then use wavevoice~ to play them back using a simple [random] object.
Ed
Ninja Jamm - a revolutionary music remix app from Ninja Tune and Seeper, for iOS and Android: http://www.ninjajamm.com/
Gemnotes-0.2: Live music notation for Pure Data, now with dynamics! http://sharktracks.co.uk/puredata also Metastudio 5!
On Friday, 12 February 2016, 21:52, Alexandros Drymonitis < adrcki@gmail.com> wrote:
On Fri, Feb 12, 2016 at 11:12 PM, Spyros Polychronopoulos < spypolymail@gmail.com> wrote:
Thank you very much for your kind feedback! Especially Alexandros very detailed answer, thank you very much! Also you mention something about an example did you attach something that I can not find or you mean the discussed example?
I meant the "example" I described. No attachment, sorry for the confusion.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list