NAME

Music::Gestalt - Compose music using gestalts.

VERSION

Version 0.01

SYNOPSIS

use Music::Gestalt;

# see below

DESCRIPTION

This module helps to compose music using musical gestalts (forms). A gestalt is similar to a list in MIDI::Score format, but so far it only supports note events, and all parameters are expressed as values between 0 and 1. This allows for more flexible transformations of the musical material.

CONSTRUCTOR

new

my $g = Music::Gestalt->new(score => $score);

Creates a new Music::Gestalt object. The optional score argument receives a score in MIDI::Score format.

PROPERTIES

PitchLowest

Sets (if you pass a value) and returns lowest pitch used in this gestalt.

PitchHighest

Sets (if you pass a value) and returns highest pitch used in this gestalt.

PitchMiddle

Sets (if you pass a value) and returns middle pitch of the range used in this gestalt.

PitchRange

Returns the pitch range used in this gestalt, ie. the pitches that occur will be between pitch middle +/- pitch range.

If you pass a value as parameter, the new pitch range will be calculated around the current pitch middle.

VelocityLowest

Sets (if you pass a value) and returns lowest velocity used in this gestalt.

VelocityHighest

Sets (if you pass a value) and returns highest velocity used in this gestalt.

VelocityMiddle

Sets (if you pass a value) and returns middle velocity of the range used in this gestalt.

VelocityRange

Returns the velocity range used in this gestalt, ie. the velocities that occur will be between velocity middle +/- velocity range.

If you pass a value as parameter, the new velocity range will be calculated around the current velocity middle.

Duration

Returns the duration of this gestalt.

Notes

Returns the note list of this gestalt.

METHODS

AsScore

Returns a structure representing the gestalt in MIDI::Score format.

Append

Appends other Music::Gestalt objects to this object

AUTHOR

Christian Renz, <crenz @ web42.com>

BUGS

Please report any bugs or feature requests to bug-music-gestalt@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Music-Gestalt. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

Please also consider adding a test case to your bug report (.t script).

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2005 Christian Renz, <crenz @ web42.com>, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.