Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There should be a convenient way to write long slurs #378

Closed
UlyssesZh opened this issue Jul 16, 2021 · 1 comment
Closed

There should be a convenient way to write long slurs #378

UlyssesZh opened this issue Jul 16, 2021 · 1 comment
Labels

Comments

@UlyssesZh
Copy link
Contributor

There are cases where there are like dozens of notes lying under a slur. Then, appending each note with a tilde is very inconvenient, like:

piano: c16~ d~ e~ f~ g~ f~ e~ d~ c2 | d16~ e~ f~ g~ a~ g~ f~ e~ d2

This is extremely inconvenient if at some moment I suddenly say "let's delete the slurs!"
In this case, maybe we can design a function slur so that the code above is equivalent to

piano: (slur 'on) c16 d e f g f e d c2~ | d16 e f g a g f e d2~ (slur 'off)

(after (slur 'on), the notes without ~ are slurred while those with ~ are not slurred), or even something like

piano: [~ c16 d e f g f e d c2] [~ d16 e f g a g f e d2]

(just like how we write a long slur to cover a sequence of notes in sheet music).

@daveyarwood
Copy link
Member

daveyarwood commented Jul 18, 2021

For practical purposes, you can use (quant 100) and it will sound exactly the same as if the note is slurred. For example:

piano: c8~ d~ e~ f~ g~

is effectively the same thing as:

piano: (quant 100) c8 d e f g

The default quantization value is 90, so if you want to "turn off" the automatic slurring, you can use (quant 90).


All that being said, it might still be useful to add a "slur mode" that you can enable/disable with (slur 'on) and (slur 'off), or maybe something like (slur) and (/slur). This would be useful specifically for exporting an Alda score to a format like MusicXML that supports slurs, i.e. so that we can export to sheet music that has notes under long slurs.

@alda-lang alda-lang locked and limited conversation to collaborators Oct 7, 2022
@daveyarwood daveyarwood converted this issue into discussion #450 Oct 7, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

2 participants