electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » Discussion » Composition » Project Zylaphon
Microtonality and inheritance
Post new topic   Reply to topic Moderators: bachus
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
bachus



Joined: Feb 29, 2004
Posts: 2918
Location: Up in that tree over there.
Audio files: 5

PostPosted: Thu Dec 16, 2010 9:13 pm    Post subject: Microtonality and inheritance Reply with quote  Mark this post and the followings unread

The recent discussion on micro-tonality made me think of how it would be implemented in Zylaphon, and how a discussion of this would use inheritance might be of use to people who are just getting into object oriented programming. Below is an inheritance diagram for Zylaphon's ChannelBar base class.

The black boxes represent classes that have actually been defined, while the green ones indicated classes that I will eventually define, and the blue boxes are classes that might be defined – though not by me.

The ChannelBar class is virtual and never actually instantiated. It represents one bar of one channel and is implemented as a linked list of ChannelElements which is itself a virtual class. A ChannelBar is also associated with a Meter. Though not yet tested multiple commensurate meters in the same measure should be functional (¾ & 6/8 etc). Non commensurate meters are possible but will require nontrivial effort to implement.

The virtual ChBarMetered inherits from ChannelBar. It possesses all the methods needed to manipulate and format standard metric events including beaming. ChBarDiatonic contains those methods relating to the diatonic staff and the display of diatonic Notes and Chords. If one wanted to extend Zylaphon to handle some micro-tonal system not suited to notation on the five line diatonic staff, one would create a new Class and have it descend from ChBarMetered and in one fell swoop (one line of code) all the methods needed to manipulate and format metric events would be bestowed on that class. Though it occurs to me that I did not make stem lengths a parameter and if standard diatonic stem lengths were not acceptable a bit of reworking to ChBarMetered would be required.

This is very powerful stuff. By the simple act of inheritance one acquires thousands of lines of very difficult code perfectly suited to the needs of micro-tonal notation in terms of its metric notational aspects. Though, of course, much work would have to be put into the ChBarMicrotonal class to make it functional.

I have also shown a decimal time channel bar. This touches on one of the few fundamental limitations on Zylaphon's extensibility. While decimal time classes would not be difficult to implement and include with metered classes, doing so would, for technical reasons, preclude any variation of tempo. ( It would be possible, however, to create a decimal time class that was no more than real time markers for metric events and calculated after the fact and which could have no deep-structure links. )


ChannelBarInheritance.jpg
 Description:
 Filesize:  67.04 KB
 Viewed:  118 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

ChannelBarInheritance.jpg



_________________
The question is not whether they can talk or reason, but whether they can suffer. -- Jeremy Bentham
Back to top
View user's profile Send private message Visit poster's website
Acoustic Interloper



Joined: Jul 07, 2007
Posts: 1651
Location: Berks County, PA
Audio files: 38

PostPosted: Thu Dec 16, 2010 11:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

Let a hundred flowers blossom Exclamation
_________________
When the stream is deep
my wild little dog frolics,
when shallow, she drinks.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: bachus
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » Discussion » Composition » Project Zylaphon
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use