{"id":291,"date":"2019-02-26T11:18:45","date_gmt":"2019-02-26T19:18:45","guid":{"rendered":"http:\/\/fx-td.com\/houdiniandchill\/?p=291"},"modified":"2019-02-26T11:18:47","modified_gmt":"2019-02-26T19:18:47","slug":"archived-post-by-profbetis-2","status":"publish","type":"post","link":"http:\/\/fx-td.com\/houdiniandchill\/2019\/02\/26\/archived-post-by-profbetis-2\/","title":{"rendered":"Archived post by profbetis"},"content":{"rendered":"<p class=\"\">@flight404 you can interact with ramp keys just like a multiparm block. The ramp parameter itself has the value of how many keys there are<\/p>\n<p class=\"\">&#8220;`c int rampkeys = chramp(&#8220;ramp&#8221;);<br \/>\nfor( int i=i; i<=rampkeys; i++){     float pos = ch(sprintf(\"ramp%gpos\", i));     float val = ch(sprintf(\"ramp%gvalue\", i));          \/\/ Do stuff }```<\/p>\n<p class=\"\">(I normally don&#8217;t condone 1-based loop indices but the keys do start at 1 and not 0. I supposed you could switch to doing `i+1` in the `sprintf` calls though if you wanted)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>@flight404 you can interact with ramp keys just like a multiparm block. The ramp parameter itself has the value of how many keys there are &#8220;`c int rampkeys = chramp(&#8220;ramp&#8221;); for( int i=i; i<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-291","post","type-post","status-publish","format-standard","hentry","category-hou-general"],"_links":{"self":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/comments?post=291"}],"version-history":[{"count":0,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/291\/revisions"}],"wp:attachment":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/media?parent=291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/categories?post=291"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/tags?post=291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}