Author Topic: Score - a program for editing music scores and playing them back  (Read 3470 times)

0 Members and 1 Guest are viewing this topic.

Offline catastropher

  • LV2 Member (Next: 40)
  • **
  • Posts: 30
  • Rating: +11/-0
    • View Profile
As a lover of music, programming, and calculators, I'm always looking for ways to combine the three! Though I've wanted to do this forever, last week I finally decided to get to work on a program which allows you to enter notes in music notation, and play them back through the linkport! Currently, you can only enter quarter, eighth, and sixteenth notes, but it renders them using proper stem direction, note grouping, and ligature marks (the lines that connect eighth and sixteenth notes). Oh, and beats line up! Here are some screenshots of score in action (the inverted portion is where the cursor is):











Of course, I still have a lot of work to do, but I'm happy with how it's turned out so far. Right now, I need to fix the stem length for sixteenth notes, since the ligature marks can make the stem look too short (for example, second screenshot, first group of sixteenth notes, last note). Also, I need to add thirty-second notes and rests. And music playback is an eventual goal, which will use Ben Ryves's sound routines for 4-channel sound. But it's not bad for a start!  :)


Now, I have a question for music-savvy people. In the first screenshot, the first two eighth notes are connected by a ligature mark to the following four sixteenth notes. Is this correct, or should they be separated?

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Score - a program for editing music scores and playing them back
« Reply #1 on: May 18, 2014, 02:07:44 pm »
This is looking awesome!
Was it made with assembly?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: Score - a program for editing music scores and playing them back
« Reply #2 on: May 18, 2014, 02:16:32 pm »
Now, I have a question for music-savvy people. In the first screenshot, the first two eighth notes are connected by a ligature mark to the following four sixteenth notes. Is this correct, or should they be separated?

They should be separated, assuming this is x/4 time, where x is anything.
I am Bach.

Offline catastropher

  • LV2 Member (Next: 40)
  • **
  • Posts: 30
  • Rating: +11/-0
    • View Profile
Re: Score - a program for editing music scores and playing them back
« Reply #3 on: May 18, 2014, 02:31:01 pm »

This is looking awesome!
Was it made with assembly?
Thank you so much! :) Right now, it's written in C and compiled with tisdcc, but I'll probably hand-optimize the time-critical parts in assembly once I have everything working. I'd write it all in assembly, but I'm guessing that this will turn into a very large project. I may have to turn it into an app because I'll need enough RAM to hold the note data and the song data.


They should be separated, assuming this is x/4 time, where x is anything.
Thanks for the help! :) I'll have to modify the renderer to group them properly. So my guess is that they are grouped based on what beat they're on? I'll have to do some research into how grouping is done in irregular time signatures.

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: Score - a program for editing music scores and playing them back
« Reply #4 on: May 18, 2014, 02:34:55 pm »
No, they're grouped based on what gets the beat. 6/8 is groups over the duration of 3 eighth notes, 4/4 over 2, etc.
I am Bach.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Score - a program for editing music scores and playing them back
« Reply #5 on: May 18, 2014, 02:40:59 pm »
OH, nice, a program in C! Haven't seen one yet :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Score - a program for editing music scores and playing them back
« Reply #6 on: May 18, 2014, 02:41:37 pm »
GlaßOS is in C. :P

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Score - a program for editing music scores and playing them back
« Reply #7 on: May 18, 2014, 02:42:35 pm »
I thought it was asm O.O

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Score - a program for editing music scores and playing them back
« Reply #8 on: May 18, 2014, 02:43:22 pm »
Nope, the author says he's not good enough for asm.

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Score - a program for editing music scores and playing them back
« Reply #9 on: May 18, 2014, 04:06:06 pm »
There's also Ti-Lib that deeph was working on, which includes a "C-ified" version of GBA lib. You can see some examples of early versions of the library here.

And i thought that the first two 8th notes shouldn't have been connected to the 16th notes, but i wasn't sure. Either way it looks really great. How long does it take to render things? I imagine there are a lot of calculations and things going on behind the scenes... Great work so far :)

Offline GinDiamond

  • LV3 Member (Next: 100)
  • ***
  • Posts: 71
  • Rating: +2/-2
  • I dont always fail at life, but when I do, I dont
    • View Profile
Re: Score - a program for editing music scores and playing them back
« Reply #10 on: May 18, 2014, 07:45:09 pm »
Dude, you are exactly like me. I love composing/playing music, calculators, and programming. Need any help with this project?

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Score - a program for editing music scores and playing them back
« Reply #11 on: May 19, 2014, 12:47:43 am »
Yeah, another oncalc music editor :D
I was planning to add this layout to AudaciTI for musicians but only during holidays -.-

Anyway, good luck with your project :)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s