Giter Site home page Giter Site logo

Comments (8)

walterbender avatar walterbender commented on June 3, 2024

OK. I can clean up multiple voices somewhat. And I have newlines working in the output now... had to safe encode them.

I suspect that the {}s were from unused start blocks in your code. I can filter those out.

Eventually it would be good to detect the proper staff to generate... maybe you can come up with some logic for me?

from musicblocks.

walterbender avatar walterbender commented on June 3, 2024

OK. I pushed a patch to better handle multiple voices. I struggled a bit because you were missing some {} in the example you gave above:
\new Staff \instrumentOne should be \new Staff {\instrumentOne}
But it turns out that including that generates extra empty staffs. Leaving it out and just defining the instruments seems to do what we want.

from musicblocks.

pikurasa avatar pikurasa commented on June 3, 2024

I am confused. Now Lilypond output is not working well for me.

screenshot from 2015-10-15 17 52 55 issue with ly code

It seems to be caused by two things, I think:

  1. Lilypond doesn't seem to like the numbers in the title of the instrument
  2. I think we need to following code at the bottom (you mention the brackets, I don't seem to need the brackets...):
>\<<
\new Staff \instrumentOne
\new Staff \instrumentTwo
\new Staff \instrumentThree
\new Staff \instrumentFour
>\>>

screenshot from 2015-10-15 18 02 19 now it looks better lilypond music blocks -- doesn t like plain numbers

FWIW, in the meantime I am reaching out to some colleagues who are more familiar with Lilypond for their input. The syntax is super-useful, but a little esoteric and I don't think that I will really master it very quickly.

(git checkout walter/experimental
Previous HEAD position was 328bc6d... fix problem with uninitialized beatfactor in oscillator blocks
HEAD is now at 72ec783... improvements to handling of multiple voices)

from musicblocks.

walterbender avatar walterbender commented on June 3, 2024

I think I have a reasonable solution at this point. If the turtle is named, the instrument takes on that name. If the turtle in unnamed, it uses a name off of a list of rodents.

Here is some sample output:

\version "2.18.2"
\header {
dedication = "Description: http://walterbender.github.io/musicblocks/"
title = "Title: My Music Blocks Creation"
subtitle = "Subtitle:"
instrument = "Instrument:"
composer = "Composer: Mr. Mouse"
arranger = "Arranger:"
copyright = "Copyright: Mr. Mouse (c) 2015 -- CC-SA-BY"
tagline = "Made from MB v. 328bc6d"
}

mouse = \new Staff {
g4 a4 b4 g4 g4 a4 b4 g4 b4 c'4 d'2 b4 c'4 d'2 d'8 e'8 d'8 c'8 b4 g4 d'8 e'8 d'8 c'8 b4 g4 g4 d4 g2 g4 d4 g2
}

brown_rat = \new Staff {
g'4 a'4 b'4 g'4 g'4 a'4 b'4 g'4 b'4 c''4 d''2 b'4 c''4 d''2 d''8 e''8 d''8 c''8 b'4 g'4 d''8 e''8 d''8 c''8 b'4 g'4 g'4 d'4 g'2 g'4 d'4 g'2
}

mole = \new Staff {
g''4 a''4 b''4 g''4 g''4 a''4 b''4 g''4 b''4 c'''4 d'''2 b''4 c'''4 d'''2 d'''8 e'''8 d'''8 c'''8 b''4 g''4 d'''8 e'''8 d'''8 c'''8 b''4 g''4 g''4 d''4 g''2 g''4 d''4 g''2
}

chipmunk = \new Staff {
g,4 a,4 b,4 g,4 g,4 a,4 b,4 g,4 b,4 c4 d2 b,4 c4 d2 d8 e8 d8 c8 b,4 g,4 d8 e8 d8 c8 b,4 g,4 g,4 d,4 g,2 g,4 d,4 g,2
}

{ <<
\mouse
\brown_rat
\mole
\chipmunk

}

from musicblocks.

pikurasa avatar pikurasa commented on June 3, 2024

I think I have a reasonable solution at this point. If the turtle is named, the instrument takes on that name.

Yes!

If the turtle in unnamed, it uses a name off of a list of rodents.

or turtles...

It might be better to stick with turtles, since our choir is really the "turtles". I want the user to really make the connection that the voices are the turtles (faster than it took me to make the connection).

Maybe Mr. Mouse represents the conducting/composing elements.

...so to bring Mr. Mouse into UI, I propose that the "play music slow" icon be changed to Mr. Mouse with his baton. And I want to change the opening picture to show the "turtle choir" with Mr. Mouse and some blocks in the "background". How does that sound for branding?

from musicblocks.

walterbender avatar walterbender commented on June 3, 2024

All fun ideas. I was thinking we could use a mouse icon instead of the
turtle. But we need the artwork.

On Fri, Oct 16, 2015 at 12:04 PM, Devin Ulibarri [email protected]
wrote:

I think I have a reasonable solution at this point. If the turtle is
named, the instrument takes on that name.

Yes!

If the turtle in unnamed, it uses a name off of a list of rodents.

or turtles...

It might be better to stick with turtles, since our choir is really the
"turtles". I want the user to really make the connection that the voices
are the turtles (faster than it took me to make the connection).

Maybe Mr. Mouse represents the conducting/composing elements.

...so to bring Mr. Mouse into UI, I propose that the "play music slow"
icon be changed to Mr. Mouse with his baton. And I want to change the
opening picture to show the "turtle choir" with Mr. Mouse and some blocks
in the "background". How does that sound for branding?


Reply to this email directly or view it on GitHub
https://github.com/walterbender/musicblocks/issues/46#issuecomment-148755867
.

Walter Bender
Sugar Labs
http://www.sugarlabs.org

from musicblocks.

pikurasa avatar pikurasa commented on June 3, 2024

All fun ideas. I was thinking we could use a mouse icon instead of the turtle. But we need the artwork.

I thought of same thing, but am a little conflicted b/c of the history of the code (precedent is important). Also the current turtle says "forward" real well so far.

Lastly, I am trying not to create more work for everyone.

from musicblocks.

walterbender avatar walterbender commented on June 3, 2024

Not sure what is outstanding here. We have multiple voice support. We can create issues re artwork under a separate ticket.

from musicblocks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.