# gen-tuplet not working for a length longer than 4/4?

## Recommended Posts

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

##### Share on other sites

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

##### Share on other sites

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

##### Share on other sites

```(length-divide 1 5 'd)
=> (2/5 2/5 2/5 2/5 2/5)```

Is this what you are looking for?

##### Share on other sites

Oh wow, yes that is exactly what  I was looking for!
Thank you!

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
• #### Browser

• Video Gallery

• Lessons