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

Allow for first time/second time bars #14

Closed
rbnpi opened this issue Oct 8, 2013 · 9 comments
Closed

Allow for first time/second time bars #14

rbnpi opened this issue Oct 8, 2013 · 9 comments

Comments

@rbnpi
Copy link
Contributor

rbnpi commented Oct 8, 2013

possibly looking at a first time/second time bar construct for repeats. At present you have to write it out in full if the endings are different

@samaaron
Copy link
Collaborator

samaaron commented May 3, 2014

Could you elaborate on this? I'm unsure what you mean. An example would help.

@rbnpi
Copy link
Contributor Author

rbnpi commented May 3, 2014

Hi Sam

Often if you have a repeat in music then the second time around there is a difference in the last one or two bars. The music is written once with the two differing bar sections at the end.

In this example, the first two bars shown are played, then the repeat starts. The first bar is played, but second time through the second bar is NOT played but the third bar shown is substituted. The sections marked 1. and 2. can extend over more than one bar, and don't necessarily have to contain the same number of bars.
This way the bulk of the music is only printed once, only the two differing sections at the end of each section are printed separately. In the same way, if you do this in a Sonic Score, you would only have to type in the notes for the repeat section once, and then the alternative first and second time bar sections at the end.
Programs like Sibelius and Lilypond cater for this.
Hope this makes it clear.

Robin

On 3 May 2014, at 13:13, Sam Aaron notifications@github.com wrote:

Could you elaborate on this? I'm unsure what you mean. An example would help.


Reply to this email directly or view it on GitHub.

@samaaron
Copy link
Collaborator

samaaron commented May 3, 2014

Hey Robin,

your example didn't seem to make it into your comment..

@rbnpi
Copy link
Contributor Author

rbnpi commented May 3, 2014

looks like it strips out a jpeg. Can I send it elsewhere?
Robin

On 3 May 2014, at 18:12, Sam Aaron notifications@github.com wrote:

Hey Robin,

your example didn't seem to make it into your comment..


Reply to this email directly or view it on GitHub.

@rbnpi
Copy link
Contributor Author

rbnpi commented May 3, 2014

It was stripped out. You can download the image here http://r.newman.ch/lego/ev3/2ndtimebar.jpg
Robin
On 3 May 2014, at 18:12, Sam Aaron notifications@github.com wrote:

Hey Robin,

your example didn't seem to make it into your comment..


Reply to this email directly or view it on GitHub.

@samaaron
Copy link
Collaborator

samaaron commented May 3, 2014

For this, I'd likely separate the melody into three lists: a, b, and c. I'd then play the following:

use_bpm 120

a = [:C, :D, :E]
b = [:F, :F, :E]
c = [:G, :D, :C]

play_pattern a + b + a + c

@samaaron
Copy link
Collaborator

Does this solve the issue?

@rbnpi
Copy link
Contributor Author

rbnpi commented May 13, 2014

Yes Sam I think that would work
Robin

Sent from my iPad

On 12 May 2014, at 23:28, Sam Aaron notifications@github.com wrote:

Does this solve the issue?


Reply to this email directly or view it on GitHub.

@rbnpi
Copy link
Contributor Author

rbnpi commented May 15, 2014

Hi Sam

Just watched your talk on Sonic_Pi at the Cambridge Raspberry Jam. Great Stuff! I've been working on a Lego EV3 music project, but that is finishing so I must get stuck into version 2 now. It looks really cool!

Robin

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

2 participants