Yuichi Yamamoto Posted January 12, 2017 Share Posted January 12, 2017 Hi, I'm playing around with the function gen-tuplet and having some bug / unexpected result. When I evaluate some code like (gen-tuplet 1 1 'm 'n 'w 5) I get Quote (1/5 1/5 1/5 1/5 1/5) which is understandable. But when I give the length-value twice the duration, (gen-tuplet 1 1 'm 'n 'd 5) I get Quote (1/10 1/10 1/10 1/10 1/10) whereas I would expect it to be (2/5 2/5 2/5 2/5 2/5). Is this a bug? Or this is just how it is? Cheers, Yuichi Quote Link to comment Share on other sites More sharing options...
opmo Posted January 12, 2017 Share Posted January 12, 2017 The maximum length-value is 1 (whole note 1/1). 4 = 1/4 2 = 1/2 etc... This could be changed, but we would need to use ratios or symbol length only. 4 would mean 4/1 and not 1/4 Quote Link to comment Share on other sites More sharing options...
Yuichi Yamamoto Posted January 12, 2017 Author Share Posted January 12, 2017 Thank you for your quick reply. OK, I get it. Would there be a quick alternative way of dividing a desired length into tuplets? I'm trying to define a function which will work like (some-func-name 'd 5) which will return quintuplet of 'd. Any ideas? Yuichi Quote Link to comment Share on other sites More sharing options...
opmo Posted January 12, 2017 Share Posted January 12, 2017 (length-divide 1 5 'd) => (2/5 2/5 2/5 2/5 2/5) Is this what you are looking for? hujairi 1 Quote Link to comment Share on other sites More sharing options...
Yuichi Yamamoto Posted January 12, 2017 Author Share Posted January 12, 2017 Oh wow, yes that is exactly what I was looking for! Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.