Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

quote inside a quote? (reference to other operator)

Still a little green? Ask your beginner's questions here

quote inside a quote? (reference to other operator)

Postby 666sbm » Wed Jun 05, 2019 12:14 pm

hello

this is my case

-----

i have a list of 10 words inside a TABLE DAT . i would like them to change the content of a TEXT TOP . while being selected by a LFO+COUNT+math CHOP (math is for transform the count into an integer type value)

------

current setup is :

TEXT TOP text field : op('text_table')[1,0] that works. easy .

how do i insert the value of the count chop in that expression?

op('text_table')[ [(op('math1')['chan1']] ,0]

was my first guess but it doesnt work ... :roll:
thank you in advance :)
666sbm
 
Posts: 8
Joined: Wed Nov 21, 2018 8:54 pm

Re: quote inside a quote? (reference to other operator)

Postby greg » Wed Jun 05, 2019 8:06 pm

CHOPs produce floating point numbers. You want the indeces to be integers:

op('text_table')[ [int((op('math1')['chan1']]) ,0]
User avatar
greg
Staff
 
Posts: 549
Joined: Tue Nov 13, 2007 1:08 am

Re: quote inside a quote? (reference to other operator)

Postby 666sbm » Thu Jun 06, 2019 12:08 pm

the export works.. but its showing NONE as text... i may try another method like export to chop and select the channels... :? :?

****************************

EDIT: just realized that the TEXT TOP , can read text straight from TABLE DAT.. and the index can be changed with the COUNT CHOP.

solved!
666sbm
 
Posts: 8
Joined: Wed Nov 21, 2018 8:54 pm


Return to Beginners

Who is online

Users browsing this forum: No registered users and 23 guests