alda

WE'VE MOVED! Join us at: http://slack.alda.io
firesofmay 2016-05-30T18:44:25.000018Z

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?

mbrum 2016-05-30T20:15:05.000020Z

Are notes bmol represented as b ?

mbrum 2016-05-30T20:15:14.000021Z

And sustain with + ?

mbrum 2016-05-30T20:15:32.000022Z

Why not sustain + and bmol as - ?

dave 2016-05-30T20:29:41.000023Z

@mbrum: i took the flat/sharp syntax (+/-) from MML

dave 2016-05-30T20:30:19.000024Z

@firesofmay: glad you're enjoying it! 🙂

👍 1
dave 2016-05-30T20:30:31.000025Z

A-flat (Ab) is represent in alda as a-

firesofmay 2016-05-30T20:43:11.000026Z

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.

firesofmay 2016-05-30T20:44:46.000027Z

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?

firesofmay 2016-05-30T20:45:10.000028Z

Sorry, just a noob in music having fun with alda 😄

dave 2016-05-30T20:47:26.000029Z

the notes in that link are expressed in kind of a weird way... it makes sense, but it's not very idiomatic for music

dave 2016-05-30T20:47:41.000030Z

to explain why, i'd have to dive pretty deep into music theory

dave 2016-05-30T20:49:31.000031Z

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

dave 2016-05-30T20:49:59.000032Z

-F# doesn't mean anything in music theory 😛

firesofmay 2016-05-30T20:50:04.000033Z

Hehe

firesofmay 2016-05-30T20:51:15.000034Z

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?

dave 2016-05-30T20:52:38.000035Z

this is a pretty good reference: https://en.wikibooks.org/wiki/Music_Theory

firesofmay 2016-05-30T20:52:55.000036Z

thanks

dave 2016-05-30T20:56:41.000037Z

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" 🙂

mbrum 2016-05-30T20:59:59.000038Z

play the famous...

mbrum 2016-05-30T21:00:03.000039Z

do re mi fa ...

mbrum 2016-05-30T21:00:05.000040Z

🙂

mbrum 2016-05-30T21:01:38.000041Z

c d e f (f f) c d c d (d d) c g f e (e e) c d e f (f f)

mbrum 2016-05-30T21:02:04.000042Z

(f f) half time...

mbrum 2016-05-30T21:02:19.000043Z

😅

firesofmay 2016-05-30T21:11:56.000044Z

dave: That might be actually very helpful in learning both at the same time

dave 2016-05-30T21:15:14.000045Z

@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

firesofmay 2016-05-30T21:23:31.000046Z

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 🙂

firesofmay 2016-05-30T21:28:25.000047Z

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)

dave 2016-05-30T21:28:46.000048Z

ah, i see what you're saying

dave 2016-05-30T21:29:45.000049Z

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

firesofmay 2016-05-30T21:31:15.000050Z

dave: No there's this slight pause in between for a very simple score. Maybe its just my machine

dave 2016-05-30T21:31:29.000051Z

ohh -- yeah, i have seen that sometimes

dave 2016-05-30T21:31:47.000052Z

like, the tempo stutters for a second during the first few notes?

firesofmay 2016-05-30T21:32:47.000053Z

yes

dave 2016-05-30T21:34:28.000054Z

right. i'm not sure exactly what causes that. i think maybe what alda is doing can take up a lot of resources

firesofmay 2016-05-30T21:35:13.000055Z

Maybe

dave 2016-05-30T21:35:14.000056Z

i've found that the timing is generally pretty good, overall, but i've noticed some hiccups from time to time

firesofmay 2016-05-30T21:35:22.000057Z

Okay

firesofmay 2016-05-30T21:35:48.000058Z

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

dave 2016-05-30T21:37:27.000060Z

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

firesofmay 2016-05-30T21:37:53.000061Z

dave: How do I reproduce the issue though?

dave 2016-05-30T21:38:55.000062Z

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

dave 2016-05-30T21:39:20.000063Z

i actually just made some changes recently that might have solved the issue... i haven't tried to reproduce the issue lately

firesofmay 2016-05-30T21:40:08.000064Z

Ohk. Is that change on master? Can you confirm if its still an issue?

dave 2016-05-30T21:40:54.000065Z

i just tried -- definitely still an issue 🙂

firesofmay 2016-05-30T21:42:23.000066Z

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.

dave 2016-05-30T21:42:48.000067Z

awesome, that would help a lot! good talking to you

firesofmay 2016-05-30T21:43:18.000068Z

same here. Cya! 🙂