Csound Csound-dev Csound-tekno Search About

[Csnd] UDO for transferring a number string to a function table

Date2010-02-20 14:07
Fromjoachim heintz
Subject[Csnd] UDO for transferring a number string to a function table
Hi all -

I've written an UDO which transfers a list of numbers in a string to a  
function table:

ift  StrNmLstToFt  "1 2 3 4 5"

produces the function table ift of length 5 with the elements as table  
values.

It's also possible to use simple math expressions (but no parenthesis)  
like this

ift  StrNmLstToFt  "1 9/8 2^1/6 5/4 2^1/3 2.5*2.5"

In QuteCsound, it can be useful if one types a list of numbers in a  
LineEdit widget, and wants to transfer these numbers in a function  
table, for using it in any way there.
And perhaps it can be a little help for typing in an array of numbers,  
without counting how many they are.

It's here:
http://www.csounds.com/udo/displayOpcode.php?opcode_id=99

Let me know if something is not working. Ciao -

	joachim


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"