random name creator

Nov 5, 2008 at 5:47pm

random name creator

Hi,
I’m trying to make a patch where I can create a random name for a file to record to with sfrecord~. I’ve come up with this so far but Ive become a bit stuck.

I have a space in the filename and I can’t think how to get around this.

Can anyone give me a few pointers please? Maybe I’m just going about it the wrong way?

Thankyou.

Miles

– Pasted Max Patch, click to expand. –
#40687
Nov 5, 2008 at 5:53pm

I think sprintf is the way to go for this sort of things.

– Pasted Max Patch, click to expand. –
#144178
Nov 5, 2008 at 5:58pm

On 5 nov. 08, at 18:47, Filament wrote:

> Hi,
> I’m trying to make a patch where I can create a random name for a
> file to record to with sfrecord~. I’ve come up with this so far but
> Ive become a bit stuck.
>
> I have a space in the filename and I can’t think how to get around
> this.
>
> Can anyone give me a few pointers please? Maybe I’m just going about
> it the wrong way?

sprintf or combine are the objects that you’re looking for. You also
don’t need all those delays, bangbang object (or trigger) is all what
you need to make sure of the order of the messages.

HTH,
ej

– Pasted Max Patch, click to expand. –
#144179
Nov 5, 2008 at 8:54pm

Thanks all for your replies. They were most helpful.

I’ve gone with the sprintf object.

Thanks ej for the bangbang tip

Regards,

Miles

#144180

You must be logged in to reply to this topic.