[PD] Letter -> Number

Frank Barknecht fbar at footils.org
Wed Feb 13 23:11:06 CET 2008


Hallo,
Frank Barknecht hat gesagt: // Frank Barknecht wrote:

> Hallo,
> David F. Place hat gesagt: // David F. Place wrote:
> 
> > Thanks.  I prefer to stick with vanilla Pd to make it easier to  
> > port.  Select will certainly work.  I have to translate 50 letters  
> > ('I' is never used as a rehearsal letter), so it is quite an ugly patch.
> 
> To make it more beautiful, you could use an abstraction "transl.pd" with these
> objects inside:
> 
>   "route float"
>   
>   "select $1"
>   
>   "f $2"
> 
> then make a chain of these:
> 
>   "transl a 1"
>   
>   "transl b 2"
>   
>   "transl c 3"
>   
>   ...
> 
> I currently cannot type bracket and pipe symbols in my terminal, so
> completing the patches above is left as an exercise for interested
> readers. ;)

Solution attached. Includes a little bonus (that requires list-abs)

Ciao
-- 
 Frank Barknecht                                     _ ______footils.org__
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transl.pd
Type: application/puredata
Size: 272 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080213/60a58f43/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transl-help.pd
Type: application/puredata
Size: 1229 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080213/60a58f43/attachment-0001.bin>


More information about the Pd-list mailing list