Kara-Moon Forum
April 29, 2024, 11:00:27 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: You can go back to the main site here: Kara-Moon site
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: MMA 1.6a  (Read 7785 times)
bvdp
Kara-Moon Master
****
Posts: 1437


WWW
« on: June 21, 2010, 06:53:55 PM »

New beta release includes the Roman numeral chord specs discussed here and some fixes/enhancements to MidiInc.

   http://mellowood.ca/mma/downloads.html#developer

Thanks to Kara and Alexis for ideas and help! Please pound on this and let me know. I'm a bit concerned about the proper syntax for the Roman chords ... I nearly failed my theory classes many years ago, so don't be afraid to let me know.
Logged

My online life: http://www.mellowood.ca
bvdp
Kara-Moon Master
****
Posts: 1437


WWW
« Reply #1 on: June 21, 2010, 10:16:53 PM »

I should note that there is a file, roman.mma, in the egs/misc directory which does a bunch of conversions with a printout showing the translations.
Logged

My online life: http://www.mellowood.ca
alexis
Jr. Member
*
Posts: 62


« Reply #2 on: June 22, 2010, 09:52:04 PM »

Hello Bob,

I gave a try to your new version.
Very good job Smiley
Your implementation goes beyond my expectations!
Just a little thing : why not also allow the degree symbol (°) for diminished chords?
This is the standard notation. Most likely, it is not (directly) accessible on your keyboard but it is for me (french keyboard).


I also have a concern about IncMidi. Let's say I do something like this:

Quote
Begin Solo-MelodyStrings
   Voice Cello
   Articulate 80
   Octave -1
   Volume 80
End

midiInc file=<input midi> Solo-MelodyStrings=<input channel>

The Voice attribute is now correctly handled. I have a cello in my output track.
But the other attributes (articulate and others below) are ignored. Is it intentional?


Cheers,

Alexis
Logged
bvdp
Kara-Moon Master
****
Posts: 1437


WWW
« Reply #3 on: June 23, 2010, 12:31:49 AM »


Glad you like it Smiley

The degree symbol for DIM is not included simply because I don't know what the ascii code would be for it. I suppose it'd be easy enough to add. I am assuming that you are generating ASCII 176? I try to avoid stuff outside of ascii 32..127 since it always seems to complicate life Smiley

midiinc ... okay there are some problems with the suggestion/request Smiley

1. To do articulate one would need to determine the length of each note (not trivial with MIDI), then apply some kind of conversion. Certainly, this is doable ... but the idea behind midiinc is that you take an existing midi (probably something you played on a keyboard) and use that. And the reason you'd do that in the first place is that the imported file has the correct timing/articulation, and that is something you can't really do with a MMA solo line. Guess it all depends on how good you are on a keyboard Smiley

2. Much the same with Octave. The octave -1 setting simply takes the existing value and decrements it. So, by the time you do an import all that MMA knows is the current value (3,4, etc). However, in midiinc you can use the TRANSPOSE setting to raise/lower by semitones. And if you want to do an octave, use +/- 12 Smiley It's limited to +/- 24, but that is completely arbitrary and could be changed (line 180 of midiIn.py).

Bob.
Logged

My online life: http://www.mellowood.ca
alexis
Jr. Member
*
Posts: 62


« Reply #4 on: June 23, 2010, 02:07:27 PM »

Quote
The degree symbol for DIM is not included simply because I don't know what the ascii code would be for it. I suppose it'd be easy enough to add. I am assuming that you are generating ASCII 176? I try to avoid stuff outside of ascii 32..127 since it always seems to complicate life Smiley
You mean: you press 'Alt', then type one ASCII code with numeral keys, then the symbol appears?
Seems complicated to me! I was just telling that there are several keyboard layouts out there according to national particularities (http://en.wikipedia.org/wiki/Keyboard_layout), and that the symbol '°' can be typed directly in some countries (such as France), since it is in layout (third top-right key):
http://en.wikipedia.org/wiki/File:KB_France.svg

...so, it is a pity not to allow this symbol for diminished chord.

Quote
1. To do articulate one would need to determine the length of each note (not trivial with MIDI), then apply some kind of conversion. Certainly, this is doable ... but the idea behind midiinc is that you take an existing midi (probably something you played on a keyboard) and use that. And the reason you'd do that in the first place is that the imported file has the correct timing/articulation, and that is something you can't really do with a MMA solo line. Guess it all depends on how good you are on a keyboard Smiley

2. Much the same with Octave. The octave -1 setting simply takes the existing value and decrements it. So, by the time you do an import all that MMA knows is the current value (3,4, etc). However, in midiinc you can use the TRANSPOSE setting to raise/lower by semitones. And if you want to do an octave, use +/- 12 Smiley It's limited to +/- 24, but that is completely arbitrary and could be changed (line 180 of midiIn.py)
okay, we are close to another previous issue: the combination of AutoSolotracks and IncMidi fonctions. This would require substantial architectural changes, and you think there are more urgent stuff. I understand. However, may I ask you kindly to put it in your todo list?

Many thanks again for the job.

Cheers,

Alexis
Logged
kara
Kara-Moon, a site built by and for musicians
Global Moderator
Kara-Moon Master
*****
Posts: 4907


Music is my middle name


WWW
« Reply #5 on: June 23, 2010, 03:00:15 PM »

Quote
The degree symbol for DIM is not included simply because I don't know what the ascii code would be for it. I suppose it'd be easy enough to add. I am assuming that you are generating ASCII 176? I try to avoid stuff outside of ascii 32..127 since it always seems to complicate life Smiley

There is no unversal solution for this.
1. Wether you have the symbol or not, depends on the keyboard driver you are running, and a lot of language definitions don't have this symbol.
2. The ALT trick can give problems with some text editors, some of them switch modes when you press the Alt-key

So, I think it is a very wise decission to stick to the range of 32..127, which is the base definition and universal.

k
Logged

_____oOo______ http://www.myspace.com/kaazduo

www.kara-moon.com, a site built by and for musicians
Support us at : http://www.mymajorcompany.com/Artistes/kaaz/
folderol
Kara-Moon Master
****
Posts: 5308

Who? Me?


WWW
« Reply #6 on: June 23, 2010, 04:09:39 PM »

Prolly talking nonsense here, but couldn't you use the lower case 'o' to represent the degree 'o' symbol?
Logged

If you have a poem, I have a tune, and we exchange these, we can both have a poem, a tune, and a song.
- Will
bvdp
Kara-Moon Master
****
Posts: 1437


WWW
« Reply #7 on: June 23, 2010, 04:48:31 PM »

The problem is that when you venture outside of standard ascii (32-127) it gets complicated Smiley For example, in Latin1 char set the degree sign is a 176 and a stroked degree is 248. However, in other character sets this may not be true. And I don't really want to make life over complicated by checking for the ISO character set!

It'd be trivial to add an entry to my diminished conversion table with these 2 characters. Before I do, I do need to test it ... and I'll have to figure out how to enter a character like this in emacs on linux Smiley

folderol: MMA already permits a "0", "O" or "o" for the dim sign in Roman numeral entries; and for half dim just stick a "-" before it.

Now, when is someone going to ask for a TRIANGLE for MAJOR?
Logged

My online life: http://www.mellowood.ca
bvdp
Kara-Moon Master
****
Posts: 1437


WWW
« Reply #8 on: June 24, 2010, 12:20:12 AM »

Symbolic folk rejoice!

I've just added the ability to use a degree (176) or slashed-degree (248) for dim and half dim (m7b5) in both Roman and Symbolic notation. How you enter it is your problem (but in emacs one can use ctrl-X-8 to enter the correct mode).

For me, I consider it to be a complete pain to use, but it's added since I really need friends, etc Smiley

This will be in the next release. Probably later this week. Just have to finish to doc changes. If you've found something in the Roman notation which needs fixing, please let me know before I do the next release!

Logged

My online life: http://www.mellowood.ca
alexis
Jr. Member
*
Posts: 62


« Reply #9 on: June 24, 2010, 11:33:59 AM »

Quote
I've just added the ability to use a degree (176) or slashed-degree (248) for dim and half dim (m7b5) in both Roman and Symbolic notation. How you enter it is your problem (but in emacs one can use ctrl-X-8 to enter the correct mode).
Great! Thank you Bob!  Smiley

Quote
For me, I consider it to be a complete pain to use, but it's added since I really need friends, etc Smiley
We would have remained good friends, even if this feature hadn't be added!   Cheesy

Cheers,

Alexis
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.054 seconds with 21 queries.