Hi, I am just toying around with alda. I have no experience of music notes. And I was trying to play happy birthday. Its really exciting to hear music come out from a repl 😄
I am wondering what is Ab
in the second line here in terms of notes? http://www.hindisongsnotes.in/2014/05/happy-birthday-piano-notes.html
So this is what I wrote so far for the first two lines:
piano: c+ c+ d+ c+ f+ f r c+ c+ d+ ab f+
ab
part doesnt sound right. Can anyone point me to the right direction?
Are notes bmol represented as b ?
And sustain with + ?
Why not sustain + and bmol as - ?
@mbrum: i took the flat/sharp syntax (+/-) from MML
@firesofmay: glad you're enjoying it! 🙂
A-flat (Ab) is represent in alda as a-
dave: Hmm a-
doesn't sound right when I play it though 😕
piano: c+ c+ d+ c+ f+ f r c+ c+ d+ a- f+
It still sounds off to me.
Where can I get the meaning of these notes in terms of alda? Is there some documentation that I can look up? or any link?
Like I don't know what -F#
means?
Sorry, just a noob in music having fun with alda 😄
the notes in that link are expressed in kind of a weird way... it makes sense, but it's not very idiomatic for music
to explain why, i'd have to dive pretty deep into music theory
but, i would do "happy birthday" in F# like this: piano: c+8 c+ | d+4 c+ f+ | e+2 c+8 c+ | d+4 c+ g+ | f+2
-F#
doesn't mean anything in music theory 😛
Hehe
dave: Sweet! Just watching your talk on alda. This is awesome! Would you recommend some link to understand basic of music notes? To basically map that to alda and write simple music code?
this is a pretty good reference: https://en.wikibooks.org/wiki/Music_Theory
thanks
i've had this idea for a while -- at some point in the future, i'd like to write an introductory music theory book / alda manual, where i introduce each concept using alda code examples -- sort of a "music theory for programmers" 🙂
play the famous...
do re mi fa ...
🙂
c d e f (f f) c d c d (d d) c g f e (e e) c d e f (f f)
(f f) half time...
😅
dave: That might be actually very helpful in learning both at the same time
@firesofmay: give this a read, if you haven't already -- http://blog.djy.io/alda-a-manifesto-and-gentle-introduction the introduction covers a lot of the same things as the clojure remote talk i gave, but the tutorial might be helpful for you. it has a bunch of examples of sheet music and the corresponding alda code
dave: Yeah I read that. That article helped me get the power of alda but not in understanding how to go about creating something myself. Which is why I was asking about recommendation for music theory/notes. I'll read that wiki link and see if it helps 🙂
dave: Have you noticed while running a score from a file sometimes it hangs for a split second at the start of playing? Rerunning it plays properly sometimes (I'm on Mac OSX 10.10.5)
ah, i see what you're saying
the "hanging" you're seeing might just be how long it takes alda to parse and process the score... it can take a few seconds, for larger scores, unfortunately
dave: No there's this slight pause in between for a very simple score. Maybe its just my machine
ohh -- yeah, i have seen that sometimes
like, the tempo stutters for a second during the first few notes?
yes
right. i'm not sure exactly what causes that. i think maybe what alda is doing can take up a lot of resources
Maybe
i've found that the timing is generally pretty good, overall, but i've noticed some hiccups from time to time
Okay
Btw is this still relevant to fix? To convert all dynamic defs to defonce? - https://github.com/alda-lang/alda/issues/160 I'd be happy to fix this
that would be great, if you'd like to take a look at it! i'm not totally sure if not using defonce is the cause
dave: How do I reproduce the issue though?
i was mostly seeing the issue by doing this: 1. start an alda server, use it to play a score or two 2. close laptop and let it go to sleep 3. re-open laptop and play a score. usually there would be a delay of a few seconds
i actually just made some changes recently that might have solved the issue... i haven't tried to reproduce the issue lately
Ohk. Is that change on master? Can you confirm if its still an issue?
i just tried -- definitely still an issue 🙂
dave: okay will check this out then. Its time for me to sleep, quite late now. Will catch you later and update that ticket if defonce makes any difference.
awesome, that would help a lot! good talking to you
same here. Cya! 🙂