Skip to content
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

Add a function to set the duration that a note rings #3

Open
newlandsvalley opened this issue Sep 25, 2017 · 0 comments
Open

Add a function to set the duration that a note rings #3

newlandsvalley opened this issue Sep 25, 2017 · 0 comments
Assignees

Comments

@newlandsvalley
Copy link
Owner

Currently, notes are interpreted by players in a fairly strict legato style, A note sounds for its allotted duration and then tends to be immediately followed by the next note in the sequence. This sounds OK for some instruments but tends to sound very stilted, for example, with the grand piano. Things improved a little when I allowed notes to overlap by a tenth of the original duration. This approach should now be extended by adding a function

   setNoteRing :: forall eff. Int -> Eff (au :: AUDIO | eff) Unit

where the parameter is constrained to be a percentage of the original note duration. This allows the note to last for longer, playing alongside the next note in sequence, where 0 represents no ring at all and 100 rings for an extra whole note duration.

@newlandsvalley newlandsvalley self-assigned this Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant