Initial public checkin.
This commit is contained in:
commit
8f3f02d9aa
|
@ -0,0 +1,6 @@
|
|||
*~
|
||||
*.bak
|
||||
*.swp
|
||||
*.[ao]
|
||||
TAGS
|
||||
.nfs*
|
|
@ -0,0 +1,340 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
|
@ -0,0 +1,95 @@
|
|||
|
||||
# Makefile for the Non Sequencer.
|
||||
# Copyright 2007-2008 Jonathan Moore Liles
|
||||
# This file is licencesd under version 2 of the GPL.
|
||||
|
||||
# config
|
||||
PREFIX=/usr/local/
|
||||
SYSTEM_PATH=$(PREFIX)/share/non-sequencer/
|
||||
DOCUMENT_PATH=$(PREFIX)/share/doc/non-sequencer/
|
||||
USE_LASH=1
|
||||
|
||||
# Debugging
|
||||
CFLAGS:=-O0 -ggdb -fno-omit-frame-pointer -Wall
|
||||
# Production
|
||||
# CFLAGS:=-O3 -fomit-frame-pointer -DNDEBUG
|
||||
|
||||
CFLAGS+=-DINSTALL_PREFIX=\"$(PREFIX)\" \
|
||||
-DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \
|
||||
-DDOCUMENT_PATH=\"$(DOCUMENT_PATH)\"
|
||||
|
||||
CXXFLAGS:=$(CFLAGS) -fno-exceptions -fno-rtti `fltk-config --cxxflags` `pkg-config jack --atleast-version 0.105 || echo -DJACK_MIDI_PROTO_API` `pkg-config jack --cflags` `pkg-config --cflags sigc++-2.0`
|
||||
LIBS=`pkg-config --libs jack` `fltk-config --use-images --ldflags` `pkg-config --libs sigc++-2.0`
|
||||
|
||||
ifeq ($(USE_LASH),1)
|
||||
LIBS+=-llash
|
||||
CXXFLAGS+=-DUSE_LASH `pkg-config --cflags lash-1.0`
|
||||
endif
|
||||
|
||||
|
||||
SRCS= \
|
||||
canvas.C \
|
||||
debug.C \
|
||||
event.C \
|
||||
event_list.C \
|
||||
grid.C \
|
||||
gui/draw.C \
|
||||
gui/event_edit.C \
|
||||
gui/input.C \
|
||||
gui/ui.C \
|
||||
gui/widgets.C \
|
||||
instrument.C \
|
||||
jack.C \
|
||||
lash.C \
|
||||
main.C \
|
||||
mapping.C \
|
||||
midievent.C \
|
||||
pattern.C \
|
||||
phrase.C \
|
||||
scale.C \
|
||||
sequence.C \
|
||||
smf.C \
|
||||
transport.C
|
||||
|
||||
OBJS=$(SRCS:.C=.o)
|
||||
|
||||
.PHONEY: all clean install
|
||||
|
||||
all: non makedepend
|
||||
|
||||
clean:
|
||||
rm -f non makedepend $(OBJS)
|
||||
@ echo Done
|
||||
|
||||
.C.o:
|
||||
@ echo -n "Compiling: "; tput bold; tput setaf 3; echo $<; tput sgr0; true
|
||||
@ $(CXX) $(CXXFLAGS) -c $< -o $@
|
||||
|
||||
%.C : %.fl
|
||||
@ cd gui && fluid -c ../$<
|
||||
|
||||
non: $(OBJS)
|
||||
@ echo -n "Linking..."
|
||||
@ rm -f $@
|
||||
@ $(CXX) $(CXXFLAGS) $(LIBS) $(OBJS) -o $@ || (tput bold; tput setaf 1; echo Error!; tput sgr0)
|
||||
@ test -x $@ && echo done.
|
||||
|
||||
install:
|
||||
@ echo -n "Installing..."
|
||||
@ install non $(PREFIX)/bin
|
||||
@ mkdir -p "$(SYSTEM_PATH)"
|
||||
@ cp -r instruments "$(SYSTEM_PATH)"
|
||||
@ mkdir -p "$(DOCUMENT_PATH)"
|
||||
@ cp doc/*.{html,png} "$(DOCUMENT_PATH)"
|
||||
@ echo done
|
||||
# make -C doc install
|
||||
|
||||
TAGS: $(SRCS)
|
||||
etags $(SRCS)
|
||||
|
||||
makedepend: $(SRCS)
|
||||
@ echo -n Checking dependencies...
|
||||
@ makedepend -f- -- $(CXXFLAGS) -- $(SRCS) > makedepend 2>/dev/null && echo done.
|
||||
|
||||
|
||||
include makedepend
|
|
@ -0,0 +1,43 @@
|
|||
|
||||
! title TODO list for the Non-sequencer
|
||||
|
||||
--
|
||||
|
||||
; General
|
||||
|
||||
* per phrase tempo setting? Perhaps a percentage of global tempo?
|
||||
* add channel field to event list widget (but channel bits in pattern
|
||||
event lists are currently meaningless.)
|
||||
* add uneditable "other" tab to event list widget.
|
||||
* new Phrase playback mode. In this mode, a single phrase is looped,
|
||||
and the next phrase to be looped can be queued. This is similar the
|
||||
the playlist, but not linear from bar 1.
|
||||
* live performance record. Does this have to be internal to Non? Is
|
||||
there no jack MIDI capable recorder that could be connected to all
|
||||
non ports? How would ports be handled anyway? As separate tracks in
|
||||
an SMF-1 file, perhaps?
|
||||
* add global setting for composer name/copyright to be included in
|
||||
song files.
|
||||
* !!! now that we're not using stupid-ass STL list container for the
|
||||
event lists we can perhaps keep a pointer to the next event in the
|
||||
playback thread, which would eliminate much overhead. This might
|
||||
also require keeping a "dirtied" bit in the grid to let the
|
||||
playback thread know that the UI thread has changed the list
|
||||
between process calls (also, what about transport relocations?)
|
||||
* guess key signature of imports?
|
||||
* figure out how to handle SysEx events with Jack MIDI (packetize them?)
|
||||
* add chords to scale list... a pattern using the scale of a chord
|
||||
would contain a melody within that chord.
|
||||
|
||||
; Canvas
|
||||
|
||||
* custom scrollbar widget (dots)
|
||||
* add vertical scrollbar widget to canvas.
|
||||
* update beat/measure line drawing when BPB changes.
|
||||
* update phrase height when number of patterns changes... (good use
|
||||
for a signal?)
|
||||
* phrases need a way to show/hide relevant patterns. The whole
|
||||
"mapping" system is a total mess. How about only showing rows
|
||||
containing events? How would one add a pattern in this system? A
|
||||
button that adds an event for the given pattern?
|
||||
* split canvas into separate widgets (ruler, names, canvas)?
|
|
@ -0,0 +1,876 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007-2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
/* This is a generic double-buffering, optimizing canvas interface to
|
||||
grids (patterns and phrases). It draws only what is necessary to keep
|
||||
the display up-to-date. Actual drawing functions are in draw.C */
|
||||
|
||||
#include "canvas.H"
|
||||
#include "pattern.H"
|
||||
#include "gui/draw.H"
|
||||
#include "common.h"
|
||||
|
||||
#include "non.H"
|
||||
|
||||
cell_t **
|
||||
Canvas::_alloc_array ( void )
|
||||
{
|
||||
cell_t **a;
|
||||
|
||||
int one = sizeof( typeof( a ) ) * m.vp->w;
|
||||
int two = sizeof( typeof( a[0] ) ) * (m.vp->h * m.vp->w);
|
||||
|
||||
a = (cell_t **) malloc( one + two );
|
||||
|
||||
m.size = one + two;
|
||||
|
||||
cell_t *c = (cell_t *) (((unsigned char *)a) + one);
|
||||
|
||||
for ( uint x = m.vp->w; x-- ; )
|
||||
{
|
||||
a[x] = c;
|
||||
c += m.vp->h;
|
||||
for ( uint y = m.vp->h; y-- ; )
|
||||
{
|
||||
a[ x ][ y ].flags = 0;
|
||||
a[ x ][ y ].state = -1;
|
||||
a[ x ][ y ].shape = SQUARE;
|
||||
a[ x ][ y ].color = 0;
|
||||
}
|
||||
}
|
||||
|
||||
m.w = m.vp->w;
|
||||
m.h = m.vp->h;
|
||||
|
||||
return a;
|
||||
}
|
||||
|
||||
Canvas::Canvas ( )
|
||||
{
|
||||
m.height = m.width = m.div_w = m.div_h = m.playhead = m.margin_top = m.margin_left = m.playhead = m.w = m.h = m.p1 = m.p2 = 0;
|
||||
|
||||
m.margin_top = ruler_height;
|
||||
|
||||
m.ruler_drawn = false;
|
||||
m.mapping_drawn = false;
|
||||
m.grid_drawn = false;
|
||||
|
||||
m.current = m.previous = NULL;
|
||||
|
||||
m.row_compact = true;
|
||||
|
||||
m.maxh = 128;
|
||||
|
||||
m.vp = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::handle_event_change ( void )
|
||||
{
|
||||
/* mark the song as dirty and pass the signal on */
|
||||
song.dirty = true;
|
||||
signal_draw();
|
||||
}
|
||||
|
||||
/** change grid to /g/, returns TRUE if new grid size differs from old */
|
||||
bool
|
||||
Canvas::grid ( Grid *g )
|
||||
{
|
||||
bool r = false;
|
||||
|
||||
if ( m.grid )
|
||||
{
|
||||
}
|
||||
|
||||
m.grid = g;
|
||||
|
||||
if ( ! g )
|
||||
return false;
|
||||
|
||||
if ( m.vp )
|
||||
if ( m.vp->w != g->viewport.w ||
|
||||
m.vp->h != g->viewport.h )
|
||||
r = true;
|
||||
|
||||
m.vp = &g->viewport;
|
||||
|
||||
char *s = m.vp->dump();
|
||||
DEBUG( "viewport: %s", s );
|
||||
free( s );
|
||||
|
||||
m.mapping_drawn = m.ruler_drawn = false;
|
||||
|
||||
resize_grid();
|
||||
|
||||
_update_row_mapping();
|
||||
|
||||
m.shape = m.grid->draw_shape();
|
||||
|
||||
/* connect signals */
|
||||
/* FIXME: what happens when we do this twice? */
|
||||
g->signal_events_change.connect( mem_fun( this, &Canvas::handle_event_change ) );
|
||||
g->signal_settings_change.connect( signal_settings_change.make_slot() );
|
||||
|
||||
signal_draw();
|
||||
signal_settings_change();
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
/** keep row compaction tables up-to-date */
|
||||
void
|
||||
Canvas::_update_row_mapping ( void )
|
||||
{
|
||||
/* reset */
|
||||
for ( int i = 128; i-- ; )
|
||||
m.rtn[i] = m.ntr[i] = -1;
|
||||
|
||||
DEBUG( "updating row mapping" );
|
||||
|
||||
/* rebuild */
|
||||
int r = 0;
|
||||
for ( int n = 0; n < 128; ++n )
|
||||
{
|
||||
if ( m.grid->row_name( n ) )
|
||||
{
|
||||
m.rtn[r] = n;
|
||||
m.ntr[n] = r;
|
||||
++r;
|
||||
}
|
||||
}
|
||||
|
||||
if ( m.row_compact && r )
|
||||
m.maxh = r;
|
||||
else
|
||||
m.maxh = 128;
|
||||
|
||||
m.vp->h = min( m.vp->h, m.maxh );
|
||||
}
|
||||
|
||||
/** change grid mapping */
|
||||
void
|
||||
Canvas::changed_mapping ( void )
|
||||
{
|
||||
_update_row_mapping();
|
||||
|
||||
m.mapping_drawn = false;
|
||||
|
||||
m.vp->y = (m.maxh / 2) - (m.vp->h / 2);
|
||||
|
||||
resize();
|
||||
|
||||
int old_margin = m.margin_left;
|
||||
|
||||
m.margin_left = 0;
|
||||
|
||||
m.draw = false;
|
||||
|
||||
m.grid->draw_row_names( this );
|
||||
|
||||
if ( m.margin_left != old_margin )
|
||||
signal_resize();
|
||||
else
|
||||
signal_draw();
|
||||
}
|
||||
|
||||
Grid *
|
||||
Canvas::grid ( void )
|
||||
{
|
||||
return m.grid;
|
||||
}
|
||||
|
||||
|
||||
/** recalculate node sizes based on physical dimensions */
|
||||
void
|
||||
Canvas::resize ( void )
|
||||
{
|
||||
if ( ! m.vp )
|
||||
return;
|
||||
|
||||
m.div_w = (m.width - m.margin_left) / m.vp->w;
|
||||
m.div_h = (m.height - m.margin_top) / m.vp->h;
|
||||
|
||||
m.border_w = min( m.div_w, m.div_h ) / 8;
|
||||
|
||||
m.mapping_drawn = m.ruler_drawn = false;
|
||||
}
|
||||
|
||||
/** reallocate buffers to match grid dimensions */
|
||||
void
|
||||
Canvas::resize_grid ( void )
|
||||
{
|
||||
// _update_row_mapping();
|
||||
|
||||
resize();
|
||||
|
||||
if ( m.vp )
|
||||
{
|
||||
if ( m.vp->w != m.w || m.vp->h != m.h ||
|
||||
m.div_w != m.old_div_w || m.div_h != m.old_div_h )
|
||||
{
|
||||
if ( m.grid_drawn )
|
||||
signal_resize();
|
||||
|
||||
m.old_div_w = m.div_w;
|
||||
m.old_div_h = m.div_h;
|
||||
}
|
||||
else
|
||||
return;
|
||||
}
|
||||
|
||||
DEBUG( "resizing grid %dx%d", m.vp->w, m.vp->h );
|
||||
|
||||
if ( m.previous )
|
||||
{
|
||||
free( m.previous );
|
||||
free( m.current );
|
||||
}
|
||||
|
||||
m.current = _alloc_array();
|
||||
m.previous = _alloc_array();
|
||||
|
||||
m.grid_drawn = false;
|
||||
}
|
||||
|
||||
/** inform the canvas with new phsyical dimensions */
|
||||
void
|
||||
Canvas::resize ( int x, int y, int w, int h )
|
||||
{
|
||||
m.origin_x = x;
|
||||
m.origin_y = y;
|
||||
|
||||
m.width = w;
|
||||
m.height = h;
|
||||
|
||||
resize();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/***********/
|
||||
/* Drawing */
|
||||
/***********/
|
||||
|
||||
/** copy last buffer into current */
|
||||
void
|
||||
Canvas::copy ( void )
|
||||
{
|
||||
for ( uint y = m.vp->h; y-- ; )
|
||||
for ( uint x = m.vp->w; x-- ; )
|
||||
m.current[ x ][ y ] = m.previous[ x ][ y ];
|
||||
}
|
||||
|
||||
|
||||
/** reset last buffer */
|
||||
void
|
||||
Canvas::_reset ( void )
|
||||
{
|
||||
cell_t empty;
|
||||
|
||||
for ( uint y = m.vp->h; y-- ; )
|
||||
for ( uint x = m.vp->w; x-- ; )
|
||||
m.current[ x ][ y ] = empty;
|
||||
}
|
||||
|
||||
/** prepare current buffer for drawing (draw "background") */
|
||||
void
|
||||
Canvas::clear ( void )
|
||||
{
|
||||
uint rule = m.grid->ppqn();
|
||||
|
||||
uint lx = m.grid->ts_to_x( m.grid->length() );
|
||||
|
||||
for ( uint y = m.vp->h; y--; )
|
||||
for ( uint x = m.vp->w; x--; )
|
||||
{
|
||||
m.current[ x ][ y ].color = 0;
|
||||
m.current[ x ][ y ].shape = m.shape;
|
||||
m.current[ x ][ y ].state = EMPTY;
|
||||
m.current[ x ][ y ].flags = 0;
|
||||
}
|
||||
|
||||
for ( int x = m.vp->w - rule; x >= 0; x -= rule )
|
||||
for ( uint y = m.vp->h; y-- ; )
|
||||
m.current[ x ][ y ].state = LINE;
|
||||
|
||||
int sx = (int)(lx - m.vp->x) >= 0 ? lx - m.vp->x : 0;
|
||||
|
||||
for ( int x = sx; x < m.vp->w; ++x )
|
||||
for ( int y = m.vp->h; y-- ; )
|
||||
m.current[ x ][ y ].state = PARTIAL;
|
||||
|
||||
}
|
||||
|
||||
/** is /x/ within the viewport? */
|
||||
bool
|
||||
Canvas::viewable_x ( int x )
|
||||
{
|
||||
return x >= m.vp->x && x < m.vp->x + m.vp->w;
|
||||
}
|
||||
|
||||
/** flush delta of last and current buffers to screen, then flip them */
|
||||
void
|
||||
Canvas::flip ( void )
|
||||
{
|
||||
/* FIXME: should this not go in clear()? */
|
||||
if ( m.p1 != m.p2 )
|
||||
{
|
||||
if ( viewable_x( m.p1 ) ) draw_line( m.p1 - m.vp->x, F_P1 );
|
||||
if ( viewable_x( m.p2 ) ) draw_line( m.p2 - m.vp->x, F_P2 );
|
||||
}
|
||||
|
||||
if ( viewable_x( m.playhead ) ) draw_line( m.playhead - m.vp->x, F_PLAYHEAD );
|
||||
|
||||
for ( uint y = m.vp->h; y--; )
|
||||
for ( uint x = m.vp->w; x--; )
|
||||
{
|
||||
cell_t *c = &m.current[ x ][ y ];
|
||||
cell_t *p = &m.previous[ x ][ y ];
|
||||
|
||||
if ( *c != *p )
|
||||
gui_draw_shape( m.origin_x + m.margin_left + x * m.div_w, m.origin_y + m.margin_top + y * m.div_h, m.div_w, m.div_h, m.border_w,
|
||||
c->shape, c->state, c->flags, c->color );
|
||||
}
|
||||
|
||||
cell_t **tmp = m.previous;
|
||||
|
||||
m.previous = m.current;
|
||||
m.current = tmp;
|
||||
}
|
||||
|
||||
/** redraw the ruler at the top of the canvas */
|
||||
void
|
||||
Canvas::redraw_ruler ( void )
|
||||
{
|
||||
m.margin_top = gui_draw_ruler( m.origin_x + m.margin_left, m.origin_y, m.vp->w, m.div_w, m.grid->division(), m.vp->x,
|
||||
m.p1 - m.vp->x, m.p2 - m.vp->x );
|
||||
m.ruler_drawn = true;
|
||||
}
|
||||
|
||||
/** callback called by Grid::draw_row_names() to draw an individual row name */
|
||||
void
|
||||
Canvas::draw_row_name ( int y, const char *name, int color )
|
||||
{
|
||||
bool draw = m.draw;
|
||||
bool clear = false;
|
||||
|
||||
y = ntr( y );
|
||||
|
||||
if ( ! m.row_compact && ! name )
|
||||
clear = true;
|
||||
|
||||
y -= m.vp->y;
|
||||
|
||||
int bx = m.origin_x;
|
||||
int by = m.origin_y + m.margin_top + y * m.div_h;
|
||||
int bw = min( m.margin_left, m.width / 8 );
|
||||
int bh = m.div_h;
|
||||
|
||||
if ( y < 0 || y >= m.vp->h )
|
||||
draw = false;
|
||||
|
||||
if ( clear && draw )
|
||||
gui_clear_area( bx, by, bw, bh );
|
||||
else
|
||||
m.margin_left = max( m.margin_left, gui_draw_string( bx, by,
|
||||
bw, bh,
|
||||
color,
|
||||
name,
|
||||
draw ) );
|
||||
}
|
||||
|
||||
/** redraw row names */
|
||||
void
|
||||
Canvas::redraw_mapping ( void )
|
||||
{
|
||||
m.margin_left = 0;
|
||||
|
||||
m.draw = false;
|
||||
|
||||
m.grid->draw_row_names( this );
|
||||
|
||||
resize();
|
||||
|
||||
m.draw = true;
|
||||
|
||||
m.grid->draw_row_names( this );
|
||||
|
||||
m.mapping_drawn = true;
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::draw_mapping ( void )
|
||||
{
|
||||
if ( ! m.mapping_drawn ) redraw_mapping();
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::draw_ruler ( void )
|
||||
{
|
||||
if ( ! m.ruler_drawn ) redraw_ruler();
|
||||
}
|
||||
|
||||
/** "draw" a shape in the backbuffer */
|
||||
void
|
||||
Canvas::draw_shape ( int x, int y, int shape, int state, int color, bool selected )
|
||||
{
|
||||
y = ntr( y );
|
||||
|
||||
if ( y < 0 )
|
||||
return;
|
||||
|
||||
// adjust for viewport.
|
||||
|
||||
x -= m.vp->x;
|
||||
y -= m.vp->y;
|
||||
|
||||
if ( x < 0 || y < 0 || x >= m.vp->w || y >= m.vp->h )
|
||||
return;
|
||||
|
||||
m.current[ x ][ y ].shape = shape;
|
||||
m.current[ x ][ y ].color = color;
|
||||
m.current[ x ][ y ].state = (uint)m.vp->x + x > m.grid->ts_to_x( m.grid->length() ) ? PARTIAL : state;
|
||||
m.current[ x ][ y ].flags = selected ? F_SELECTED : 0;
|
||||
}
|
||||
|
||||
/** callback used by Grid::draw() */
|
||||
void
|
||||
Canvas::draw_dash ( int x, int y, int l, int shape, int color, bool selected )
|
||||
{
|
||||
draw_shape( x, y, shape, FULL, color, selected );
|
||||
for ( int i = x + l - 1; i > x; i-- )
|
||||
{
|
||||
draw_shape( i, y, shape, CONTINUED, 0, selected );
|
||||
}
|
||||
}
|
||||
|
||||
/** draw a vertical line with flags */
|
||||
void
|
||||
Canvas::draw_line ( int x, int flags )
|
||||
{
|
||||
for ( uint y = m.vp->h; y-- ; )
|
||||
m.current[ x ][ y ].flags |= flags;
|
||||
}
|
||||
|
||||
|
||||
/** draw only the playhead--without reexamining the grid */
|
||||
int
|
||||
Canvas::draw_playhead ( void )
|
||||
{
|
||||
int x = m.grid->ts_to_x( m.grid->index() );
|
||||
|
||||
if ( m.playhead == x )
|
||||
return 0;
|
||||
|
||||
m.playhead = x;
|
||||
|
||||
if ( m.playhead < m.vp->x || m.playhead >= m.vp->x + m.vp->w )
|
||||
{
|
||||
if ( config.follow_playhead )
|
||||
{
|
||||
m.vp->x = m.playhead / m.vp->w * m.vp->w;
|
||||
|
||||
m.ruler_drawn = false;
|
||||
|
||||
signal_draw();
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
copy();
|
||||
|
||||
for ( uint x = m.vp->w; x-- ; )
|
||||
for ( uint y = m.vp->h; y-- ; )
|
||||
m.current[ x ][ y ].flags &= ~ (F_PLAYHEAD | F_P1 | F_P2 );
|
||||
|
||||
flip();
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/** draw ONLY those nodes necessary to bring the canvas up-to-date with the grid */
|
||||
void
|
||||
Canvas::draw ( void )
|
||||
{
|
||||
DEBUG( "drawing canvas" );
|
||||
|
||||
draw_mapping();
|
||||
draw_ruler();
|
||||
|
||||
m.grid_drawn = true;
|
||||
|
||||
m.grid->draw( this, m.vp->x, m.vp->y, m.vp->w, m.vp->h );
|
||||
}
|
||||
|
||||
/** redraw every node on the canvas from the buffer (without
|
||||
* necessarily reexamining the grid) */
|
||||
void
|
||||
Canvas::redraw ( void )
|
||||
{
|
||||
DEBUG( "redrawing canvas" );
|
||||
|
||||
if ( ! m.grid_drawn )
|
||||
draw();
|
||||
|
||||
m.ruler_drawn = false;
|
||||
m.mapping_drawn = false;
|
||||
|
||||
draw_mapping();
|
||||
draw_ruler();
|
||||
|
||||
for ( int y = m.vp->h; y--; )
|
||||
for ( int x = m.vp->w; x--; )
|
||||
{
|
||||
cell_t c = m.previous[ x ][ y ];
|
||||
|
||||
if ( c.shape > HEXAGON ) return;
|
||||
|
||||
if ( m.vp->x + x == m.playhead )
|
||||
c.flags |= F_PLAYHEAD;
|
||||
|
||||
gui_draw_shape( m.origin_x + m.margin_left + x * m.div_w, m.origin_y + m.margin_top + y * m.div_h, m.div_w, m.div_h, m.border_w,
|
||||
c.shape, c.state, c.flags, c.color );
|
||||
}
|
||||
}
|
||||
|
||||
/** convert pixel coords into grid coords. returns true if valid */
|
||||
bool
|
||||
Canvas::grid_pos ( int *x, int *y )
|
||||
{
|
||||
*y = (*y - m.margin_top - m.origin_y) / m.div_h;
|
||||
*x = (*x - m.margin_left - m.origin_x) / m.div_w;
|
||||
|
||||
if ( *x < 0 || *y < 0 || *x >= m.vp->w || *y >= m.vp->h )
|
||||
return false;
|
||||
|
||||
/* adjust for viewport */
|
||||
*x += m.vp->x;
|
||||
*y += m.vp->y;
|
||||
|
||||
/* adjust for row-compaction */
|
||||
*y = rtn( *y );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/******************/
|
||||
/* Input handlers */
|
||||
/******************/
|
||||
|
||||
/* These methods translate viewport pixel coords to absolute grid
|
||||
coords and pass on to the grid. */
|
||||
|
||||
void
|
||||
Canvas::set ( int x, int y )
|
||||
{
|
||||
if ( y - m.origin_y < m.margin_top )
|
||||
/* looks like a click on the ruler */
|
||||
{
|
||||
if ( x - m.margin_left - m.origin_x >= 0 )
|
||||
{
|
||||
m.p1 = m.vp->x + ((x - m.margin_left - m.origin_x) / m.div_w);
|
||||
m.ruler_drawn = false;
|
||||
}
|
||||
|
||||
_lr();
|
||||
|
||||
signal_draw();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! grid_pos( &x, &y ) )
|
||||
return;
|
||||
|
||||
m.grid->put( x, y, 0 );
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::unset ( int x, int y )
|
||||
{
|
||||
if ( y - m.origin_y < m.margin_top )
|
||||
/* looks like a click on the ruler */
|
||||
{
|
||||
if ( x - m.margin_left - m.origin_x >= 0 )
|
||||
{
|
||||
m.p2 = m.vp->x + ((x - m.margin_left - m.origin_x) / m.div_w);
|
||||
m.ruler_drawn = false;
|
||||
}
|
||||
|
||||
_lr();
|
||||
|
||||
signal_draw();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! grid_pos( &x, &y ) )
|
||||
return;
|
||||
|
||||
m.grid->del( x, y );
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::adj_color ( int x, int y, int n )
|
||||
{
|
||||
if ( ! grid_pos( &x, &y ) )
|
||||
return;
|
||||
|
||||
m.grid->adj_velocity( x, y, n );
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::adj_length ( int x, int y, int n )
|
||||
{
|
||||
if ( ! grid_pos( &x, &y ) )
|
||||
return;
|
||||
|
||||
m.grid->adj_duration( x, y, n );
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::select ( int x, int y )
|
||||
{
|
||||
if ( ! grid_pos( &x, &y ) )
|
||||
return;
|
||||
|
||||
m.grid->select( x, y, true );
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::move_selected ( int dir, int n )
|
||||
{
|
||||
switch ( dir )
|
||||
{
|
||||
case RIGHT:
|
||||
m.grid->move_selected( n );
|
||||
break;
|
||||
case LEFT:
|
||||
m.grid->move_selected( 0 - n );
|
||||
break;
|
||||
case UP:
|
||||
case DOWN:
|
||||
{
|
||||
/* row-compaction makes this a little complicated */
|
||||
event_list *el = m.grid->events();
|
||||
|
||||
/* FIXME: don't allow movement beyond the edges! */
|
||||
|
||||
/* int hi, lo; */
|
||||
|
||||
/* m.grid->selected_hi_lo_note( &hi, &lo ); */
|
||||
|
||||
/* hi = ntr( hi ) > 0 ? ntr( hi ) : */
|
||||
|
||||
/* if ( m.grid->y_to_note( ntr( hi ) ) ) */
|
||||
|
||||
|
||||
if ( dir == UP )
|
||||
for ( int y = 0; y <= m.maxh; ++y )
|
||||
el->rewrite_selected( m.grid->y_to_note( rtn( y ) ), m.grid->y_to_note( rtn( y - n ) ) );
|
||||
else
|
||||
for ( int y = m.maxh; y >= 0; --y )
|
||||
el->rewrite_selected( m.grid->y_to_note( rtn( y ) ), m.grid->y_to_note( rtn( y + n ) ) );
|
||||
|
||||
m.grid->events( el );
|
||||
|
||||
delete el;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::randomize_row ( int y )
|
||||
{
|
||||
int x = m.margin_left;
|
||||
|
||||
if ( ! grid_pos( &x, &y ) )
|
||||
return;
|
||||
|
||||
((pattern*)m.grid)->randomize_row( y, song.random.feel, song.random.probability );
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::_lr ( void )
|
||||
{
|
||||
int l, r;
|
||||
|
||||
if ( m.p2 > m.p1 )
|
||||
{
|
||||
l = m.p1;
|
||||
r = m.p2;
|
||||
}
|
||||
else
|
||||
{
|
||||
l = m.p2;
|
||||
r = m.p1;
|
||||
}
|
||||
|
||||
m.p1 = l;
|
||||
m.p2 = r;
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::select_range ( void )
|
||||
{
|
||||
m.grid->select( m.p1, m.p2 );
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::crop ( void )
|
||||
{
|
||||
m.grid->crop( m.p1, m.p2 );
|
||||
|
||||
m.vp->x = 0;
|
||||
|
||||
m.p2 = m.p2 - m.p1;
|
||||
m.p1 = 0;
|
||||
|
||||
m.ruler_drawn = false;
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::delete_time ( void )
|
||||
{
|
||||
m.grid->delete_time( m.p1, m.p2 );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Canvas::insert_time ( void )
|
||||
{
|
||||
m.grid->insert_time( m.p1, m.p2 );
|
||||
}
|
||||
|
||||
/** paste range as new grid */
|
||||
void
|
||||
Canvas::duplicate_range ( void )
|
||||
{
|
||||
Grid *g = m.grid->clone();
|
||||
|
||||
g->crop( m.p1, m.p2 );
|
||||
g->viewport.x = 0;
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::row_compact ( int n )
|
||||
{
|
||||
switch ( n )
|
||||
{
|
||||
case OFF:
|
||||
m.row_compact = false;
|
||||
m.maxh = 128;
|
||||
break;
|
||||
case ON:
|
||||
m.row_compact = true;
|
||||
m.vp->y = 0;
|
||||
_update_row_mapping();
|
||||
break;
|
||||
case TOGGLE:
|
||||
row_compact( m.row_compact ? OFF : ON );
|
||||
break;
|
||||
}
|
||||
_reset();
|
||||
m.mapping_drawn = false;
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::pan ( int dir, int n )
|
||||
{
|
||||
|
||||
switch ( dir )
|
||||
{
|
||||
case LEFT: case RIGHT: case TO_PLAYHEAD: case TO_NEXT_NOTE: case TO_PREV_NOTE:
|
||||
/* handle horizontal movement specially */
|
||||
n *= m.grid->division();
|
||||
m.ruler_drawn = false;
|
||||
break;
|
||||
default:
|
||||
n *= 5;
|
||||
m.mapping_drawn = false;
|
||||
break;
|
||||
}
|
||||
|
||||
switch ( dir )
|
||||
{
|
||||
case LEFT:
|
||||
m.vp->x = max( m.vp->x - n, 0 );
|
||||
break;
|
||||
case RIGHT:
|
||||
m.vp->x += n;
|
||||
break;
|
||||
case TO_PLAYHEAD:
|
||||
m.vp->x = m.playhead - (m.playhead % m.grid->division());
|
||||
break;
|
||||
case UP:
|
||||
m.vp->y = max( m.vp->y - n, 0 );
|
||||
break;
|
||||
case DOWN:
|
||||
m.vp->y = min( m.vp->y + n, m.maxh - m.vp->h );
|
||||
break;
|
||||
case TO_NEXT_NOTE:
|
||||
{
|
||||
int x = m.grid->next_note_x( m.vp->x );
|
||||
m.vp->x = x - (x % m.grid->division() );
|
||||
break;
|
||||
}
|
||||
case TO_PREV_NOTE:
|
||||
{
|
||||
int x = m.grid->prev_note_x( m.vp->x );
|
||||
m.vp->x = x - (x % m.grid->division() );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
signal_draw();
|
||||
}
|
||||
|
||||
/** adjust horizontal zoom (* n) */
|
||||
void
|
||||
Canvas::h_zoom ( float n )
|
||||
{
|
||||
m.vp->w = max( 32, min( (int)(m.vp->w * n), 256 ) );
|
||||
|
||||
resize_grid();
|
||||
}
|
||||
|
||||
/** adjust vertical zoom (* n) */
|
||||
void
|
||||
Canvas::v_zoom ( float n )
|
||||
{
|
||||
m.vp->h = max( 1, min( (int)(m.vp->h * n), m.maxh ) );
|
||||
|
||||
resize_grid();
|
||||
}
|
||||
|
||||
void
|
||||
Canvas::notes ( char *s )
|
||||
{
|
||||
m.grid->notes( s );
|
||||
}
|
||||
|
||||
char *
|
||||
Canvas::notes ( void )
|
||||
{
|
||||
return m.grid->notes();
|
||||
}
|
|
@ -0,0 +1,175 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007-2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "grid.H"
|
||||
#include "gui/draw.H"
|
||||
|
||||
#include <sigc++/sigc++.h>
|
||||
using namespace sigc;
|
||||
|
||||
class Mapping;
|
||||
|
||||
struct cell_t {
|
||||
unsigned char color;
|
||||
unsigned char shape : 4;
|
||||
unsigned char state : 4;
|
||||
unsigned char flags : 4;
|
||||
|
||||
bool
|
||||
operator!= ( const cell_t &rhs )
|
||||
{
|
||||
return color != rhs.color || shape != rhs.shape || state != rhs.state || flags != rhs.flags;
|
||||
}
|
||||
};
|
||||
|
||||
enum { LEFT, RIGHT, UP, DOWN, TO_PLAYHEAD, TO_NEXT_NOTE, TO_PREV_NOTE };
|
||||
|
||||
|
||||
class Canvas : public trackable
|
||||
{
|
||||
|
||||
struct {
|
||||
int origin_x, origin_y;
|
||||
int width, height;
|
||||
|
||||
int margin_left, margin_top;
|
||||
int div_w, div_h;
|
||||
int border_w;
|
||||
|
||||
|
||||
int old_div_w, old_div_h;
|
||||
|
||||
int maxh;
|
||||
|
||||
bool ruler_drawn;
|
||||
bool mapping_drawn;
|
||||
|
||||
bool grid_drawn;
|
||||
|
||||
int playhead; /* where the playhead is for this canvas. only used for display. */
|
||||
|
||||
/* /\* these are in logical units, not pixels *\/ */
|
||||
/* int w, h; /\* viewport *\/ */
|
||||
/* int x, y; /\* pan position *\/ */
|
||||
|
||||
enum { PATTERN, SEQUENCE } mode;
|
||||
|
||||
Grid *grid; /* grid currently connected to this canvas */
|
||||
|
||||
size_t size;
|
||||
cell_t **current, **previous;
|
||||
|
||||
bool draw; /* really drawing, or just checking size? */
|
||||
|
||||
int rule;
|
||||
|
||||
bool row_compact; /* use row-compaction? */
|
||||
|
||||
/* tables used for row-compaction */
|
||||
int rtn[128]; /* row-to-note */
|
||||
int ntr[128]; /* note-to-row */
|
||||
|
||||
int shape;
|
||||
|
||||
Viewport *vp;
|
||||
int w, h;
|
||||
|
||||
uint p1, p2; /* cursors */
|
||||
} m;
|
||||
|
||||
int rtn ( int r );
|
||||
int ntr ( int n );
|
||||
|
||||
void _update_row_mapping ( void );
|
||||
cell_t ** _alloc_array ( void );
|
||||
|
||||
void redraw_ruler ( void );
|
||||
void redraw_mapping ( void );
|
||||
void draw_mapping ( void );
|
||||
void draw_ruler ( void );
|
||||
|
||||
void _reset ( void );
|
||||
void _lr ( void );
|
||||
|
||||
bool viewable_x ( int x );
|
||||
void draw_line ( int x, int flags );
|
||||
|
||||
public:
|
||||
|
||||
enum { OFF, ON, TOGGLE };
|
||||
|
||||
signal <void> signal_settings_change;
|
||||
signal <void> signal_draw;
|
||||
signal <void> signal_resize;
|
||||
|
||||
Canvas ( );
|
||||
|
||||
void handle_event_change ( void );
|
||||
void set ( int x, int y );
|
||||
bool grid ( Grid *g );
|
||||
void changed_mapping ( void );
|
||||
Grid * grid ( void );
|
||||
void resize ( void );
|
||||
void resize_grid ( void );
|
||||
void resize ( int x, int y, int w, int h );
|
||||
void copy ( void );
|
||||
void clear ( void );
|
||||
void flip ( void );
|
||||
void draw_row_name ( int y, const char *name, int color );
|
||||
void draw_shape ( int x, int y, int shape, int state, int color, bool selected );
|
||||
void draw_dash ( int x, int y, int l, int shape, int color, bool selected );
|
||||
int draw_playhead ( void );
|
||||
void draw ( void );
|
||||
void redraw ( void );
|
||||
bool grid_pos ( int *x, int *y );
|
||||
void unset ( int x, int y );
|
||||
void adj_color ( int x, int y, int n );
|
||||
void adj_length ( int x, int y, int n );
|
||||
void select ( int x, int y );
|
||||
void select_range ( void );
|
||||
void duplicate_range ( void );
|
||||
void crop ( void );
|
||||
void row_compact ( int n );
|
||||
void pan ( int dir, int n );
|
||||
void h_zoom ( float n );
|
||||
void v_zoom ( float n );
|
||||
void notes ( char *s );
|
||||
char * notes ( void );
|
||||
void randomize_row ( int y );
|
||||
|
||||
void delete_time ( void );
|
||||
void insert_time ( void );
|
||||
|
||||
void move_selected ( int dir, int n );
|
||||
|
||||
};
|
||||
|
||||
inline int
|
||||
Canvas::rtn ( int r )
|
||||
{
|
||||
return m.row_compact ? m.rtn[ r ] : r;
|
||||
}
|
||||
|
||||
inline int
|
||||
Canvas::ntr ( int n )
|
||||
{
|
||||
return m.row_compact ? m.ntr[ n ] : n;
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
|
||||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007,2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
// #pragma once
|
||||
|
||||
typedef unsigned char byte_t;
|
||||
typedef unsigned long tick_t;
|
||||
typedef unsigned int uint;
|
||||
|
||||
|
||||
/* #define min(x,y) ((x) < (y) ? (x) : (y)) */
|
||||
/* #define max(x,y) ((x) > (y) ? (x) : (y)) */
|
||||
|
||||
#include <algorithm>
|
||||
using namespace std;
|
||||
|
||||
#define elementsof(x) (sizeof((x)) / sizeof((x)[0]))
|
||||
|
||||
#include "config.h"
|
||||
#include "const.h"
|
||||
#include "debug.h"
|
|
@ -0,0 +1,45 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007,2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
/* getting around this will require bank switching etc, and
|
||||
before that happens I'd like to see a song with 128 phrases in it. */
|
||||
const int MAX_PHRASE = 128;
|
||||
const int MAX_PATTERN = 128;
|
||||
|
||||
const unsigned int PPQN = 480;
|
||||
|
||||
/* interval between GUI updates for playhead movement, etc. */
|
||||
const double TRANSPORT_POLL_INTERVAL = 0.05;
|
||||
|
||||
const char APP_NAME[] = "Non";
|
||||
const char APP_TITLE[] = "The Non-Sequencer";
|
||||
const char COPYRIGHT[] = "Copyright (c) 2007-2008 Jonathan Moore Liles";
|
||||
|
||||
#define PACKAGE "non"
|
||||
#define VERSION "1.9.0"
|
||||
|
||||
/* directories */
|
||||
|
||||
// #define SYSTEM_PATH INSTALL_PREFIX "share/non-sequencer/"
|
||||
// #define DOCUMENT_PATH INSTALL_PREFIX "share/doc/non-sequencer/"
|
||||
|
||||
#define USER_CONFIG_DIR ".non/"
|
||||
#define INSTRUMENT_DIR "instruments/"
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
struct dash
|
||||
{
|
||||
tick_t timestamp;
|
||||
tick_t length;
|
||||
unsigned char color;
|
||||
};
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
void
|
||||
warnf ( warning_t level,
|
||||
const char *module,
|
||||
const char *file,
|
||||
const char *function, size_t line, const char *fmt, ... )
|
||||
{
|
||||
va_list args;
|
||||
static const char *level_tab[] = {
|
||||
"message", "\033[1;32m",
|
||||
"warning", "\033[1;33m",
|
||||
"assertion", "\033[1;31m"
|
||||
};
|
||||
|
||||
if ( module )
|
||||
fprintf( stderr, "[%s] ", module );
|
||||
#ifndef NDEBUG
|
||||
if ( file )
|
||||
fprintf( stderr, "%s", file );
|
||||
if ( line )
|
||||
fprintf( stderr, ":%i", line );
|
||||
if ( function )
|
||||
fprintf( stderr, " %s()", function );
|
||||
|
||||
fprintf( stderr, ": " );
|
||||
#endif
|
||||
|
||||
if ( unsigned( ( level << 1 ) + 1 ) <
|
||||
( sizeof( level_tab ) / sizeof( level_tab[0] ) ) )
|
||||
fprintf( stderr, "%s", level_tab[( level << 1 ) + 1] );
|
||||
|
||||
if ( fmt )
|
||||
{
|
||||
va_start( args, fmt );
|
||||
vfprintf( stderr, fmt, args );
|
||||
va_end( args );
|
||||
}
|
||||
|
||||
fprintf( stderr, "\033[0m\n" );
|
||||
}
|
|
@ -0,0 +1,115 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
/* debug.h
|
||||
*
|
||||
* 11/21/2003 - Jonathan Moore Liles
|
||||
*
|
||||
* Debuging support.
|
||||
*
|
||||
* Disable by defining the preprocessor variable NDEBUG prior to inclusion.
|
||||
*
|
||||
* The following macros sould be defined as string literals
|
||||
*
|
||||
* name value
|
||||
*
|
||||
* __MODULE__ Name of module. eg. "libfoo"
|
||||
*
|
||||
* __FILE__ Name of file. eg. "foo.c"
|
||||
*
|
||||
* __FUNCTION__ Name of enclosing function. eg. "bar"
|
||||
*
|
||||
* (inteter literal)
|
||||
* __LINE__ Number of enclosing line.
|
||||
*
|
||||
*
|
||||
* __FILE__, and __LINE__ are automatically defined by standard CPP
|
||||
* implementations. __FUNCTION__ is more or less unique to GNU, and isn't
|
||||
* strictly a preprocessor macro, but rather a reserved word in the compiler.
|
||||
* There is a sed script available with this toolset that is able to fake
|
||||
* __FUNCTION__ (among other things) with an extra preprocesessing step.
|
||||
*
|
||||
* __MODULE__ is nonstandard and should be defined the enclosing program(s).
|
||||
* Autoconf defines PACKAGE as the module name, and these routines will use its
|
||||
* value instead if __MODULE__ is undefined.
|
||||
*
|
||||
* The following routines are provided (as macros) and take the same arguments
|
||||
* as printf():
|
||||
*
|
||||
* MESSAGE( const char *format, ... )
|
||||
* WARNING( const char *format, ... )
|
||||
* ASSERTION( const char *format, ... )
|
||||
*
|
||||
* Calling MESSAGE or WARNING prints the message to stderr along with module,
|
||||
* file and line information, as well as appropriate emphasis. Calling
|
||||
* ASSERTION will do the same, and then call abort() to end the program. It is
|
||||
* unwise to supply any of these marcros with arguments that produce side
|
||||
* effects. As, doing so will most likely result in Heisenbugs; program
|
||||
* behavior that changes when debugging is disabled.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _DEBUG_H
|
||||
#define _DEBUG_H
|
||||
|
||||
#ifndef __MODULE__
|
||||
#ifdef PACKAGE
|
||||
#define __MODULE__ PACKAGE
|
||||
#else
|
||||
#define __MODULE__ NULL
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef __GNUC__
|
||||
#define __FUNCTION__ NULL
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
typedef enum {
|
||||
W_MESSAGE = 0,
|
||||
W_WARNING,
|
||||
W_ASSERTION
|
||||
} warning_t;
|
||||
|
||||
void
|
||||
warnf ( warning_t level,
|
||||
const char *module,
|
||||
const char *file,
|
||||
const char *function, size_t line, const char *fmt, ... );
|
||||
|
||||
|
||||
#ifndef NDEBUG
|
||||
#define DEBUG( fmt, args... ) warnf( W_MESSAGE, __MODULE__, __FILE__, __FUNCTION__, __LINE__, fmt, ## args )
|
||||
#define ASSERTION( fmt, args... ) ( warnf( W_ASSERTION, __MODULE__, __FILE__, __FUNCTION__, __LINE__, fmt, ## args ), abort() )
|
||||
#define ASSERT( pred, fmt, args... ) ( do { if ( ! (pred) ) warnf( W_ASSERTION, __MODULE__, __FILE__, __FUNCTION__, __LINE__, fmd, ## args ); abort(); } while ( 0 ) )
|
||||
#else
|
||||
#define DEBUG( fmt, args... )
|
||||
#define ASSERTION( fmt, args... )
|
||||
#define ASSERT( pred, fmt, args... )
|
||||
#endif
|
||||
|
||||
/* this one's always defined */
|
||||
#define MESSAGE( fmt, args... ) warnf( W_MESSAGE, __MODULE__, __FILE__, __FUNCTION__, __LINE__, fmt, ## args )
|
||||
#define WARNING( fmt, args... ) warnf( W_WARNING, __MODULE__, __FILE__, __FUNCTION__, __LINE__, fmt, ## args )
|
||||
|
||||
#endif
|
|
@ -0,0 +1,69 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head>
|
||||
<meta name="generator" content="Generated by MUP v3.5">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link type="text/css" rel="stylesheet" href="mup.css">
|
||||
<title>Key Bindings</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id=cover>
|
||||
<h1>Key Bindings</h1>
|
||||
<h3></h3>
|
||||
<address>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
</address><hr></div>
|
||||
<div id=body>
|
||||
<hr width=50%>
|
||||
<p>
|
||||
These keys are in effect when the pattern or phrase editor grid is focused.
|
||||
</p>
|
||||
<center><div class="fig table"><table id="Fig.1" border=1>
|
||||
<caption>
|
||||
<strong>Fig. 1.</strong> Editor Keybindings
|
||||
</caption>
|
||||
<tr><th>key</th><th>function</th></tr>
|
||||
<tr><td>[</td><td>previous</td></tr>
|
||||
<tr><td>]</td><td>next</td></tr>
|
||||
<tr><td>1</td><td>horizontal zoom out</td></tr>
|
||||
<tr><td>2</td><td>horizontal zoom in</td></tr>
|
||||
<tr><td>3</td><td>vertical zoom out</td></tr>
|
||||
<tr><td>4</td><td>vertical zoom in</td></tr>
|
||||
<tr><td>c</td><td>create</td></tr>
|
||||
<tr><td>d</td><td>duplicate</td></tr>
|
||||
<tr><td>f</td><td>move to playhead</td></tr>
|
||||
<tr><td>r</td><td>select range as defined by L and R cursors</td></tr>
|
||||
<tr><td>q</td><td>select none</td></tr>
|
||||
<tr><td>C</td><td>crop to range</td></tr>
|
||||
<tr><td>Delete</td><td>delete selected</td></tr>
|
||||
<tr><td>Shift-Delete</td><td>clear grid</td></tr>
|
||||
<tr><td>Arrow keys</td><td>move viewport</td></tr>
|
||||
<tr><td>Ctrl-Left</td><td>move to previous note</td></tr>
|
||||
<tr><td>Ctrl-Right</td><td>move to next note</td></tr>
|
||||
<tr><td><</td><td>move selection left</td></tr>
|
||||
<tr><td>></td><td>move selection right</td></tr>
|
||||
<tr><td>,</td><td>move selection up</td></tr>
|
||||
<tr><td>.</td><td>move selection down</td></tr>
|
||||
<tr><td>t</td><td>trim length</td></tr>
|
||||
<tr><td>Space</td><td>toggle transport</td></tr>
|
||||
<tr><td>m</td><td>mute</td></tr>
|
||||
<tr><td>s</td><td>solo</td></tr>
|
||||
</table></div></center>
|
||||
<center><div class="fig table"><table id="Fig.2" border=1>
|
||||
<caption>
|
||||
<strong>Fig. 2.</strong> Gloabl keybindings
|
||||
</caption>
|
||||
<tr><th>key</th><th>function</th></tr>
|
||||
<tr><td>Alt-p</td><td>Switch to pattern editor</td></tr>
|
||||
<tr><td>Alt-a</td><td>Switch to phrase editor</td></tr>
|
||||
<tr><td>Alt-s</td><td>Switch to sequence editor</td></tr>
|
||||
<tr><td>Space</td><td>Toggle transport</td></tr>
|
||||
<tr><td>Home</td><td>Locate transport to frame 0</td></tr>
|
||||
</table></div></center>
|
||||
<p>
|
||||
Other functions are accessible from the menus or the key is otherwise indicated.
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,44 @@
|
|||
|
||||
! title Key Bindings
|
||||
|
||||
--
|
||||
|
||||
These keys are in effect when the pattern or phrase editor grid is focused.
|
||||
|
||||
// Editor Keybindings
|
||||
[[ key, function
|
||||
[[ [, previous
|
||||
[[ ], next
|
||||
[[ 1, horizontal zoom out
|
||||
[[ 2, horizontal zoom in
|
||||
[[ 3, vertical zoom out
|
||||
[[ 4, vertical zoom in
|
||||
[[ c, create
|
||||
[[ d, duplicate
|
||||
[[ f, move to playhead
|
||||
[[ r, select range (as defined by L and R cursors)
|
||||
[[ q, select none
|
||||
[[ C, crop to range
|
||||
[[ Delete, delete selected
|
||||
[[ Shift-Delete, clear grid
|
||||
[[ Arrow keys, move viewport
|
||||
[[ Ctrl-Left, move to previous note
|
||||
[[ Ctrl-Right, move to next note
|
||||
[[ \<, move selection left
|
||||
[[ >, move selection right
|
||||
[[ \,, move selection up
|
||||
[[ ., move selection down
|
||||
[[ t, trim length
|
||||
[[ Space, toggle transport
|
||||
[[ m, mute
|
||||
[[ s, solo
|
||||
|
||||
// Gloabl keybindings
|
||||
[[ key, function
|
||||
[[ Alt-p, Switch to pattern editor
|
||||
[[ Alt-a, Switch to phrase editor
|
||||
[[ Alt-s, Switch to sequence editor
|
||||
[[ Space, Toggle transport
|
||||
[[ Home, Locate transport to frame 0
|
||||
|
||||
Other functions are accessible from the menus or the key is otherwise indicated.
|
|
@ -0,0 +1,199 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head>
|
||||
<meta name="generator" content="Generated by MUP v3.5">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link type="text/css" rel="stylesheet" href="mup.css">
|
||||
<title>The Non Sequencer</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id=cover>
|
||||
<h1>The Non Sequencer</h1>
|
||||
<h3></h3>
|
||||
<address>
|
||||
Jonathan Moore Liles <a href="mailto:wantingwaiting@users.sf.net"><wantingwaiting@users.sf.net></a><br>
|
||||
Oct 13 2007<br>
|
||||
|
||||
</address><a class=ext href="http://non.tuxfamily.org">Home</a><hr></div>
|
||||
<div id=body>
|
||||
<hr width=50%>
|
||||
<h1 id="n:1.">1. Description</h1>
|
||||
<center><div class="fig image"><table border=1>
|
||||
<tr><td><img src="non-new-about.png" alt="fig. "></td></tr>
|
||||
</table></div></center>
|
||||
<h2 id="n:1.1.">1.1. Guiding Principles</h2>
|
||||
<ol><li><span>Flexibility</span>
|
||||
<li><span>Efficiency</span>
|
||||
<li><span>Purpose</span>
|
||||
<li><span>Grace</span>
|
||||
</ol><p>
|
||||
Non has many modes and functions. Where flexibility comes at a small cost, we prefer to be flexible and make up the difference elsewhere. Where arbitrary limitations are reasonable and necessary, Non enforces them, but not without being forced into it. Where it is easier to be inefficient than efficient, but the efficiency matters, we prefer to put in the (small amount of) work required to be efficient, often resulting in thousand-fold performance gains; this may sound like an obvious statement, but, in fact, design for efficiency is a rare practice in this (Linux Audio<i>'Modern' software</i> arena. Although it is tempting to implement a kitchen sink in every program, we resist the urge. Non has the purpose of being a real-time sequencer and anything outside of that scope is a job for another day. If there is something related to the task at hand that a computer can do instantly and easily, but which requires labor for you, Non tries to do it for you so that you can continue making music without being bothered. Non's user interface is designed to combine the stark functionality and speed of hardware with the degrees of freedom of software.
|
||||
</p>
|
||||
<h1 id="n:2.">2. The Interface</h1>
|
||||
<p>
|
||||
The interface is quite simple and is based on the excellent FLTK (1.1.x) toolkit. (Versions < 1 of Non were based on raw Xlib and a few Motif widgets.) The author examined many toolkits before beginning, and has absolutely no interest in pursuing GTK or Qt--Non simply doesn't require much of a toolkit, and these are incapable of providing less than total excess.
|
||||
</p>
|
||||
<p>
|
||||
Non's GUI is highly optimized. Common operations are designed to be as fast as possible. Where other sequencers completely monopolize the CPU when scrolling, etc., Non performs smoothly--even on antiquated hardware. It is not technically difficult to achieve such speed. And, in fact, it is a shame that more developers don't consider good (or even just reasonable) performance a priority.
|
||||
</p>
|
||||
<h2 id="n:2.1.">2.1. The Pattern Editor</h2>
|
||||
<center><div class="fig image"><table border=1>
|
||||
<tr><td><img src="non-pattern-editor.png" alt="fig. "></td></tr>
|
||||
</table></div></center>
|
||||
<p>
|
||||
Upon invocation, Non enters the pattern editor and loads Pattern 1. The pattern editor presents a grid interface--the heart a step sequencer. You can toggle a note on the grid by entering its coordinates with the keyboard or clicking an intersection with the mouse. The length of patterns is unlimited and no special action is required lengthen them (simply adding notes beyond the "end" is enough.) Non can present grids in one of two modes, expanded and compacted. In the compacted view, only named rows are displayed; this means that only the notes the current instrument or scale will consume vertical space--resulting in far more efficient use of screen real-estate. Any notes are made invisible by the compacted view will be silenced.
|
||||
</p>
|
||||
<p>
|
||||
<p>
|
||||
The resolution of the pattern display can be adjusted (the default is one point per 1/16th note), and, additionally, the canvas can be zoomed horizontally and vertically as necessary. However, it is highly recommended that you avoid creating 'vertical' compositions, that is, one should place each part in a separate pattern and avoid the need to scroll about looking for notes.
|
||||
</p>
|
||||
<p>
|
||||
Tonic patterns have a choice of scale and key, which limits the display to only valid notes. This <i>row-compaction</i> can be turned off, if desired, so that all 128 notes are visible. Or simply choose the <i>chromatic</i> mapping if you are not creating scale based music.
|
||||
</p>
|
||||
<p>
|
||||
Percussion, or other sample-based patterns can be assigned an <i>instrument</i> mapping, which again limits the display to only those notes for which names and volumes have been provided. The instrument definition format is simple ASCII file containing one name, note and volume percentage per line.
|
||||
</p>
|
||||
<p>
|
||||
Individual patterns may be soloed or muted right from the pattern editor.
|
||||
</p>
|
||||
<p>
|
||||
Each pattern has a setting for output MIDI channel and sequencer port--and these may also be changed while the transport is running.
|
||||
</p>
|
||||
<h3 id="n:2.1.1.">2.1.1. The Notes</h3>
|
||||
<p>
|
||||
The type (duration) of note to be inserted can be adjusted in the pattern editor (control+mouse-wheel). The velocity of individual notes may be adjusted (mouse-wheel), and is the current value is reflected in the color of the note. Ranages may also be <i>inserted</i> and <i>deleted</i>, a commonly required operation during composition, but one that is, sadly, missing from many sequencers.
|
||||
</p>
|
||||
<center><div class="fig image"><table border=1>
|
||||
<tr><td><img src="non-cursors.png" alt="fig. "></td></tr>
|
||||
</table></div></center>
|
||||
<h3 id="n:2.1.2.">2.1.2. Recording</h3>
|
||||
<p>
|
||||
A pattern can be recorded via MIDI in one of four modes:
|
||||
</p>
|
||||
<dl>
|
||||
<dt><em>Merge (the most familiar/least useful)</em></dt>
|
||||
<dd>In this mode recorded events are merged into the pattern on each pass through the loop. This is how most sequencers work, but it usually just results in a jumble of notes that require much manual cleaning up.</dd>
|
||||
<dt><em>Overwrite (each pass [with input] replaces the previous contents of the pattern)</em></dt>
|
||||
<dd>This is like merge mode, except that the pattern is cleared before the recorded events are input. If note notes have been played during a loop, the pattern remains unchanged. This is a great way to just get a part down without having to remove your hands from the instrument.</dd>
|
||||
<dt><em>Layer (each pass [with input] goes into a new pattern)</em></dt>
|
||||
<dd>This is just like overwrite mode, except that the pattern actually overwritten is a duplicate. Use this mode to record several loops of the same length without removing your hands from the instrument.</dd>
|
||||
<dt><em>New</em></dt>
|
||||
<dd>In this mode, all recorded events are placed into a new pattern (of whatever length) when recording is stopped.</dd>
|
||||
</dl>
|
||||
<h3 id="n:2.1.3.">2.1.3. The Event Editor</h3>
|
||||
<center><div class="fig image"><table border=1>
|
||||
<tr><td><img src="non-event-editor-notes.png" alt="fig. "></td></tr>
|
||||
</table></div></center>
|
||||
<p>
|
||||
For situations requiring close inspection, fine-adjustments or entering of non-note data, the Event Editor allows one to edit the raw MIDI event list of a pattern. A common use is to insert program or control change events.
|
||||
</p>
|
||||
<p>
|
||||
Like everything else in Non, the Event Editor is real-time--change a note and you'll see and hear the result as the pattern plays.
|
||||
</p>
|
||||
<h2 id="n:2.2.">2.2. The Phrase Editor</h2>
|
||||
<p>
|
||||
Phrases are to patterns as patterns are to notes. Switching to the Phrase Editor brings up Phrase 1, where each row corresponds to an existing <i>pattern</i>. The grid of the Phrase Editor is fixed at one column-per-beat. This view is somewhat similar to a timeline view in other sequencers, but do not be deceived--Phrases may be many in number and are triggered just like patterns.
|
||||
</p>
|
||||
<p>
|
||||
When a node on the Phrase Editor grid is activated, the length of the cue event inserted will be the same as that of the pattern being triggered. Adjusting the duration of this event will cause the pattern be cut short or looped. If the length of a referenced pattern is changed, this will <b>not</b> be reflected in the Phrase display. You must either re-insert or adjust the length of the reference.
|
||||
</p>
|
||||
<p>
|
||||
It is recommended that, to avoid confusion, you first compose all of the patterns you need for a phrase, and only then bring up the phrase editor.
|
||||
</p>
|
||||
<p>
|
||||
Editing operations are the same as those for the Pattern Editor.
|
||||
</p>
|
||||
<h2 id="n:2.3.">2.3. The Sequence Editor</h2>
|
||||
<p>
|
||||
The Sequence Editor defines the sequence of playback. The interface is a list of phrases, to be played sequentially, beginning from bar 1. It is not necessary to include all existing phrases in the playlist. Phrases can be moved up and down the playlist, inserted and deleted. The editor displays the start bar of each phrase in addition to its number and name.
|
||||
</p>
|
||||
<p>
|
||||
This sequence->phrase->pattern hierarchy allows for logical, expressive compositions--without the labor intensive copy<i>paste</i>duplicate work-flow imposed by other sequencers.
|
||||
</p>
|
||||
<p>
|
||||
For example, suppose you have a song with a 12 bar progression that repeats 4 times. This 12 bar sequence is composed of many patterns, each a few measures in length and roughly corresponding to the chords in the progression.
|
||||
</p>
|
||||
<p>
|
||||
In another sequencer you would be required to use clumsy copy/paste operations to destructively extend the 12 bar sequence. Then if you wanted to change a part of that subsequence later, you would have to go edit each instance of it on the 'timeline' view. This is absurdly inefficient for the operator.
|
||||
</p>
|
||||
<p>
|
||||
In Non you simply create your patterns, assemble them into logical phrases, and then assemble these phrases into a sequence that determines the entire song. This approach is similar to the bottom-up approach of factored languages such as Forth.
|
||||
</p>
|
||||
<h2 id="n:2.4.">2.4. Pattern Triggers</h2>
|
||||
<center><div class="fig image"><table border=1>
|
||||
<tr><td><img src="non-pattern-triggers.png" alt="fig. "></td></tr>
|
||||
</table></div></center>
|
||||
<p>
|
||||
Next to the sequence playlist is an array of pattern triggers. Here one can monitor the progress of multiple patterns during playback and cause them to be muted etc.
|
||||
</p>
|
||||
<p>
|
||||
The left mouse button toggles muting, the middle button toggles soloing, and the right button brings up the given pattern in the pattern editor.
|
||||
</p>
|
||||
<p>
|
||||
Playing patterns appear green, the solo pattern appears red, and muted patterns appear gray,
|
||||
</p>
|
||||
<h1 id="n:3.">3. MIDI</h1>
|
||||
<h2 id="n:3.1.">3.1. IO</h2>
|
||||
<p>
|
||||
Non utilizes the Jack MIDI transport. Jack MIDI is an emerging MIDI transport for Linux. Since Jack already provides similar routing as the ALSA Sequencer interface, little is lost--besides compatibility with existing programs. (Jack has an aseq bridge capability, but in order to benefit from Jack MIDI, both sequencer and synth must use Jack). The Jack MIDI API is extremely limited in comparison to the very capable ALSA API, but this is a problem for the programmer, not the user.
|
||||
</p>
|
||||
<p>
|
||||
At the time of writing, Non is one of only two sequencers to use Jack MIDI natively.
|
||||
</p>
|
||||
<h2 id="n:3.2.">3.2. Non Files</h2>
|
||||
<p>
|
||||
The format of <tt>.non</tt> files is a variation of SMF-2. In an SMF-2 file, each track chunk represents a pattern. Because Non groups patterns into <i>phrases</i>, this usage of SMF-2 is probably not compatible with other implementations (although, the author has never actually seen another program that could play back SMF-2 anyway.)
|
||||
</p>
|
||||
<p>
|
||||
Each phrase is stored as a track of MIDI Cue messages, each referring to a pattern to be triggered. The sequence/playlist is stored as the first track, and consists of a list of Cue Point meta-events referring to phrases.
|
||||
</p>
|
||||
<p>
|
||||
Also in the first track is a sequencer specific meta-event (ID "Non!") containing song data that cannot be readily expressed with existing meta events, and some versioning info to aid future compatibility.
|
||||
</p>
|
||||
<p>
|
||||
In short, the author has done the utmost to save sequences in a standard format--within reason; SMF was hardly designed with a program like Non in mind--instead of some ad-hoc ASCII format (which would have been <b>far</b> easier to implement), or worse, buggy, bulky, and unmaintainable XML.
|
||||
</p>
|
||||
<h2 id="n:3.3.">3.3. Exports</h2>
|
||||
<p>
|
||||
In addition to saving and loading <tt>.non</tt> files, Non can export individual patterns as flat, SMF-0 MIDI files.
|
||||
</p>
|
||||
<h2 id="n:3.4.">3.4. Imports</h2>
|
||||
<p>
|
||||
SMF-0 files can be imported as a new pattern (all channels merged), or SMF-1 (such as those written by Seq24) and SMF-2 (ever seen one of these?) can be imported as N new patterns (selected from a track list.) All imported patterns are set to display the Chromatic scale, in order that no notes be hidden from view.
|
||||
</p>
|
||||
<p>
|
||||
This should make it easy to migrate any existing patterns that you may have over to Non, or to permit editing of Non patterns in external programs (for graphic controller tweaking perhaps?)
|
||||
</p>
|
||||
<h1 id="n:4.">4. Synchronization</h1>
|
||||
<p>
|
||||
Non's transport is driven by the Jack Transport, so in order to sync Non with a DAW like Ardour, you must set Ardour to be the Jack Timebase Master. Therefore, all tempo mapping and time signature information should be manipulated in the Timebase Master--Non will respond to these changes automatically. If there is no Timebase Master registered when Non starts, it will take over that role instead. This is useful if you simply plan to use Non as a musical instrument.
|
||||
</p>
|
||||
<h1 id="n:5.">5. Control</h1>
|
||||
<p>
|
||||
Non creates two MIDI input ports, one for <i>performance</i> data and one for <i>control</i> data. The control port is used to control Non with hardware MIDI controllers, such as the BCF2000, or other software. The performance port is used to record musical data into patterns.
|
||||
</p>
|
||||
<h1 id="n:6.">6. Playback</h1>
|
||||
<p>
|
||||
The playback mode can be toggled between Pattern, Sequence and Trigger. In Pattern mode (the default), all patterns are played simultaneously, from the beginning, and looped forever. Since patterns may differ widely in length, interesting compositions are possible. In this mode, Non makes for a very intuitive software instrument--rivaled only by the excellent program FreeWheeling (a live audio looper.)
|
||||
</p>
|
||||
<p>
|
||||
In Sequence mode, playback strictly follows the sequence list and the Jack transport, and does not loop. This mode is suitable for parallel compositions between Non and a Jack Timebase Master capable DAW.
|
||||
</p>
|
||||
<p>
|
||||
Trigger mode is very much like Pattern mode, except that all patterns begin muted and must be enabled via the trigger view.
|
||||
</p>
|
||||
<h1 id="n:7.">7. Sister Projects</h1>
|
||||
<p>
|
||||
Much of the inspiration to move forward with Non was derived from JP Mercury's highly useful and successful FreeWheeling looper. Mr. Mercury is a visionary.
|
||||
</p>
|
||||
<p>
|
||||
But the closest sister of Non has to be the amazingly capable ZynAddSubFX soft-synth by Nasca Octavian Paul. ZynAddSubFX, like Non, utilizes the FLTK GUI toolkit, and has recently begun to support Jack MIDI (albeit in a limited fashion.) This is, hands down, the best synth available for Linux, and probably one of the best period. If all you have is Non and Zyn, you have all that you require to make great music.
|
||||
</p>
|
||||
<p>
|
||||
Of course, this section can hardly go without mention of Rob Buse's Seq24. It was the author's unending frustration with the abysmal performance and absurd limitations of Seq24 that, more than any other single factor, inspired him to write Non. The most frustrating aspect was that, prior to Non, Seq24 was, in the author's opinion, the best sequencer available on Linux. Seq24, which claims to be light and free of bloat is, without comparison, the slowest, most poorly optimized sequencer the author has tried. Even the huge, snarling beast that is RoseGarden out performs Seq24 in every way but start time.
|
||||
</p>
|
||||
<p>
|
||||
Those days are over.
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,333 @@
|
|||
|
||||
! title The Non Sequencer
|
||||
! author Jonathan Moore Liles #(email,wantingwaiting@users.sf.net)
|
||||
! date Oct 13 2007
|
||||
! keywords Non Jack ALSA FLTK
|
||||
! extra #(url,http://non.tuxfamily.org,Home)
|
||||
|
||||
--
|
||||
|
||||
: Description
|
||||
|
||||
< non-new-about.png
|
||||
|
||||
:: Guiding Principles
|
||||
|
||||
+ Flexibility
|
||||
+ Efficiency
|
||||
+ Purpose
|
||||
+ Grace
|
||||
|
||||
Non has many modes and functions. Where flexibility comes at a small
|
||||
cost, we prefer to be flexible and make up the difference
|
||||
elsewhere. Where arbitrary limitations are reasonable and necessary,
|
||||
Non enforces them, but not without being forced into it. Where it is
|
||||
easier to be inefficient than efficient, but the efficiency matters,
|
||||
we prefer to put in the (small amount of) work required to be
|
||||
efficient, often resulting in thousand-fold performance gains; this
|
||||
may sound like an obvious statement, but, in fact, design for
|
||||
efficiency is a rare practice in this (Linux Audio/'Modern'
|
||||
software) arena. Although it is tempting to implement a kitchen sink
|
||||
in every program, we resist the urge. Non has the purpose of being a
|
||||
real-time sequencer and anything outside of that scope is a job for
|
||||
another day. If there is something related to the task at hand that
|
||||
a computer can do instantly and easily, but which requires labor for
|
||||
you, Non tries to do it for you so that you can continue making
|
||||
music without being bothered. Non's user interface is designed to
|
||||
combine the stark functionality and speed of hardware with the
|
||||
degrees of freedom of software.
|
||||
|
||||
: The Interface
|
||||
|
||||
The interface is quite simple and is based on the excellent FLTK
|
||||
(1.1.x) toolkit. (Versions \< 1 of Non were based on raw Xlib and a
|
||||
few Motif widgets.) The author examined many toolkits before
|
||||
beginning, and has absolutely no interest in pursuing GTK or Qt--Non
|
||||
simply doesn't require much of a toolkit, and these are incapable of
|
||||
providing less than total excess.
|
||||
|
||||
Non's GUI is highly optimized. Common operations are designed to be
|
||||
as fast as possible. Where other sequencers completely monopolize
|
||||
the CPU when scrolling, etc., Non performs smoothly--even on
|
||||
antiquated hardware. It is not technically difficult to achieve
|
||||
such speed. And, in fact, it is a shame that more developers don't
|
||||
consider good (or even just reasonable) performance a priority.
|
||||
|
||||
:: The Pattern Editor
|
||||
|
||||
< non-pattern-editor.png
|
||||
|
||||
Upon invocation, Non enters the pattern editor and loads Pattern
|
||||
1. The pattern editor presents a grid interface--the heart a step
|
||||
sequencer. You can toggle a note on the grid by entering its
|
||||
coordinates with the keyboard or clicking an intersection with the
|
||||
mouse. The length of patterns is unlimited and no special action is
|
||||
required lengthen them (simply adding notes beyond the "end" is
|
||||
enough.) Non can present grids in one of two modes, expanded and
|
||||
compacted. In the compacted view, only named rows are displayed;
|
||||
this means that only the notes the current instrument or scale will
|
||||
consume vertical space--resulting in far more efficient use of
|
||||
screen real-estate. Any notes are made invisible by the compacted
|
||||
view will be silenced.
|
||||
|
||||
You may add, remove, transpose, move, and edit notes, as well as
|
||||
trigger/mute patterns, while the transport is running.
|
||||
|
||||
The resolution of the pattern display can be adjusted (the default
|
||||
is one point per 1\/16th note), and, additionally, the canvas can be
|
||||
zoomed horizontally and vertically as necessary. However, it is
|
||||
highly recommended that you avoid creating 'vertical' compositions,
|
||||
that is, one should place each part in a separate pattern and avoid
|
||||
the need to scroll about looking for notes.
|
||||
|
||||
Tonic patterns have a choice of scale and key, which limits the
|
||||
display to only valid notes. This /row-compaction/ can be turned
|
||||
off, if desired, so that all 128 notes are visible. Or simply choose
|
||||
the /chromatic/ mapping if you are not creating scale based music.
|
||||
|
||||
Percussion, or other sample-based patterns can be assigned an
|
||||
/instrument/ mapping, which again limits the display to only those
|
||||
notes for which names and volumes have been provided. The instrument
|
||||
definition format is simple ASCII file containing one name, note and
|
||||
volume percentage per line.
|
||||
|
||||
Individual patterns may be soloed or muted right from the pattern
|
||||
editor.
|
||||
|
||||
Each pattern has a setting for output MIDI channel and sequencer
|
||||
port--and these may also be changed while the transport is running.
|
||||
|
||||
::: The Notes
|
||||
|
||||
The type (duration) of note to be inserted can be adjusted in the
|
||||
pattern editor (control+mouse-wheel). The velocity of individual
|
||||
notes may be adjusted (mouse-wheel), and is the current value is
|
||||
reflected in the color of the note. Ranages may also be /inserted/
|
||||
and /deleted/, a commonly required operation during composition, but
|
||||
one that is, sadly, missing from many sequencers.
|
||||
|
||||
< non-cursors.png
|
||||
|
||||
::: Recording
|
||||
|
||||
A pattern can be recorded via MIDI in one of four modes:
|
||||
|
||||
= Merge (the most familiar/least useful)
|
||||
= In this mode recorded events are merged into the pattern on each pass
|
||||
= through the loop. This is how most sequencers work, but it usually just
|
||||
= results in a jumble of notes that require much manual cleaning up.
|
||||
= Overwrite (each pass [with input] replaces the previous contents of the pattern)
|
||||
= This is like merge mode, except that the pattern is cleared before
|
||||
= the recorded events are input. If note notes have been played during
|
||||
= a loop, the pattern remains unchanged. This is a great way to just get
|
||||
= a part down without having to remove your hands from the instrument.
|
||||
= Layer (each pass [with input] goes into a new pattern)
|
||||
= This is just like overwrite mode, except that the pattern actually
|
||||
= overwritten is a duplicate. Use this mode to record several loops of
|
||||
= the same length without removing your hands from the instrument.
|
||||
= New
|
||||
= In this mode, all recorded events are placed into a new pattern (of
|
||||
= whatever length) when recording is stopped.
|
||||
|
||||
# It is especially useful if you bind Record to a MIDI footswitch.
|
||||
|
||||
::: The Event Editor
|
||||
|
||||
< non-event-editor-notes.png
|
||||
|
||||
For situations requiring close inspection, fine-adjustments or
|
||||
entering of non-note data, the Event Editor allows one to edit the
|
||||
raw MIDI event list of a pattern. A common use is to insert program
|
||||
or control change events.
|
||||
|
||||
Like everything else in Non, the Event Editor is real-time--change a
|
||||
note and you'll see and hear the result as the pattern plays.
|
||||
|
||||
:: The Phrase Editor
|
||||
|
||||
Phrases are to patterns as patterns are to notes. Switching to the
|
||||
Phrase Editor brings up Phrase 1, where each row corresponds to an
|
||||
existing /pattern/. The grid of the Phrase Editor is fixed at one
|
||||
column-per-beat. This view is somewhat similar to a timeline view in
|
||||
other sequencers, but do not be deceived--Phrases may be many in
|
||||
number and are triggered just like patterns.
|
||||
|
||||
When a node on the Phrase Editor grid is activated, the length of
|
||||
the cue event inserted will be the same as that of the pattern being
|
||||
triggered. Adjusting the duration of this event will cause the
|
||||
pattern be cut short or looped. If the length of a referenced
|
||||
pattern is changed, this will *not* be reflected in the Phrase
|
||||
display. You must either re-insert or adjust the length of the
|
||||
reference.
|
||||
|
||||
It is recommended that, to avoid confusion, you first compose all of
|
||||
the patterns you need for a phrase, and only then bring up the
|
||||
phrase editor.
|
||||
|
||||
Editing operations are the same as those for the Pattern Editor.
|
||||
|
||||
:: The Sequence Editor
|
||||
|
||||
The Sequence Editor defines the sequence of playback. The interface
|
||||
is a list of phrases, to be played sequentially, beginning from bar
|
||||
1. It is not necessary to include all existing phrases in the
|
||||
playlist. Phrases can be moved up and down the playlist, inserted
|
||||
and deleted. The editor displays the start bar of each phrase in
|
||||
addition to its number and name.
|
||||
|
||||
This sequence->phrase->pattern hierarchy allows for logical,
|
||||
expressive compositions--without the labor intensive
|
||||
copy/paste/duplicate work-flow imposed by other sequencers.
|
||||
|
||||
For example, suppose you have a song with a 12 bar progression that
|
||||
repeats 4 times. This 12 bar sequence is composed of many patterns,
|
||||
each a few measures in length and roughly corresponding to the
|
||||
chords in the progression.
|
||||
|
||||
In another sequencer you would be required to use clumsy copy\/paste
|
||||
operations to destructively extend the 12 bar sequence. Then if you
|
||||
wanted to change a part of that subsequence later, you would have to
|
||||
go edit each instance of it on the 'timeline' view. This is absurdly
|
||||
inefficient for the operator.
|
||||
|
||||
In Non you simply create your patterns, assemble them into logical
|
||||
phrases, and then assemble these phrases into a sequence that
|
||||
determines the entire song. This approach is similar to the
|
||||
bottom-up approach of factored languages such as Forth.
|
||||
|
||||
|
||||
:: Pattern Triggers
|
||||
|
||||
< non-pattern-triggers.png
|
||||
|
||||
Next to the sequence playlist is an array of pattern triggers. Here
|
||||
one can monitor the progress of multiple patterns during playback
|
||||
and cause them to be muted etc.
|
||||
|
||||
The left mouse button toggles muting, the middle button toggles
|
||||
soloing, and the right button brings up the given pattern in the
|
||||
pattern editor.
|
||||
|
||||
Playing patterns appear green, the solo pattern appears red, and
|
||||
muted patterns appear gray,
|
||||
|
||||
: MIDI
|
||||
|
||||
:: IO
|
||||
|
||||
Non utilizes the Jack MIDI transport. Jack MIDI is an emerging MIDI
|
||||
transport for Linux. Since Jack already provides similar routing as
|
||||
the ALSA Sequencer interface, little is lost--besides compatibility
|
||||
with existing programs. (Jack has an aseq bridge capability, but in
|
||||
order to benefit from Jack MIDI, both sequencer and synth must use
|
||||
Jack). The Jack MIDI API is extremely limited in comparison to the
|
||||
very capable ALSA API, but this is a problem for the programmer, not
|
||||
the user.
|
||||
|
||||
At the time of writing, Non is one of only two sequencers to use
|
||||
Jack MIDI natively.
|
||||
|
||||
:: Non Files
|
||||
|
||||
The format of `.non` files is a variation of SMF-2. In an SMF-2
|
||||
file, each track chunk represents a pattern. Because Non groups
|
||||
patterns into /phrases/, this usage of SMF-2 is probably not
|
||||
compatible with other implementations (although, the author has
|
||||
never actually seen another program that could play back SMF-2
|
||||
anyway.)
|
||||
|
||||
Each phrase is stored as a track of MIDI Cue messages, each
|
||||
referring to a pattern to be triggered. The sequence\/playlist is
|
||||
stored as the first track, and consists of a list of Cue Point
|
||||
meta-events referring to phrases.
|
||||
|
||||
Also in the first track is a sequencer specific meta-event (ID
|
||||
"Non!") containing song data that cannot be readily expressed with
|
||||
existing meta events, and some versioning info to aid future
|
||||
compatibility.
|
||||
|
||||
In short, the author has done the utmost to save sequences in a
|
||||
standard format--within reason; SMF was hardly designed with a
|
||||
program like Non in mind--instead of some ad-hoc ASCII format (which
|
||||
would have been *far* easier to implement), or worse, buggy, bulky,
|
||||
and unmaintainable XML.
|
||||
|
||||
:: Exports
|
||||
|
||||
In addition to saving and loading `.non` files, Non can export
|
||||
individual patterns as flat, SMF-0 MIDI files.
|
||||
|
||||
:: Imports
|
||||
|
||||
SMF-0 files can be imported as a new pattern (all channels merged),
|
||||
or SMF-1 (such as those written by Seq24) and SMF-2 (ever seen one
|
||||
of these?) can be imported as N new patterns (selected from a track
|
||||
list.) All imported patterns are set to display the Chromatic scale,
|
||||
in order that no notes be hidden from view.
|
||||
|
||||
This should make it easy to migrate any existing patterns that you
|
||||
may have over to Non, or to permit editing of Non patterns in
|
||||
external programs (for graphic controller tweaking perhaps?)
|
||||
|
||||
: Synchronization
|
||||
|
||||
Non's transport is driven by the Jack Transport, so in order to sync
|
||||
Non with a DAW like Ardour, you must set Ardour to be the Jack
|
||||
Timebase Master. Therefore, all tempo mapping and time signature
|
||||
information should be manipulated in the Timebase Master--Non will
|
||||
respond to these changes automatically. If there is no Timebase
|
||||
Master registered when Non starts, it will take over that role
|
||||
instead. This is useful if you simply plan to use Non as a musical
|
||||
instrument.
|
||||
|
||||
: Control
|
||||
|
||||
Non creates two MIDI input ports, one for /performance/ data and one
|
||||
for /control/ data. The control port is used to control Non with
|
||||
hardware MIDI controllers, such as the BCF2000, or other software.
|
||||
The performance port is used to record musical data into patterns.
|
||||
|
||||
: Playback
|
||||
|
||||
The playback mode can be toggled between Pattern, Sequence and
|
||||
Trigger. In Pattern mode (the default), all patterns are played
|
||||
simultaneously, from the beginning, and looped forever. Since
|
||||
patterns may differ widely in length, interesting compositions are
|
||||
possible. In this mode, Non makes for a very intuitive software
|
||||
instrument--rivaled only by the excellent program FreeWheeling (a
|
||||
live audio looper.)
|
||||
|
||||
In Sequence mode, playback strictly follows the sequence list and
|
||||
the Jack transport, and does not loop. This mode is suitable for
|
||||
parallel compositions between Non and a Jack Timebase Master capable
|
||||
DAW.
|
||||
|
||||
Trigger mode is very much like Pattern mode, except that all
|
||||
patterns begin muted and must be enabled via the trigger view.
|
||||
|
||||
: Sister Projects
|
||||
|
||||
Much of the inspiration to move forward with Non was derived from JP
|
||||
Mercury's highly useful and successful FreeWheeling
|
||||
looper. Mr. Mercury is a visionary.
|
||||
|
||||
But the closest sister of Non has to be the amazingly capable
|
||||
ZynAddSubFX soft-synth by Nasca Octavian Paul. ZynAddSubFX, like
|
||||
Non, utilizes the FLTK GUI toolkit, and has recently begun to
|
||||
support Jack MIDI (albeit in a limited fashion.) This is, hands
|
||||
down, the best synth available for Linux, and probably one of the
|
||||
best period. If all you have is Non and Zyn, you have all that you
|
||||
require to make great music.
|
||||
|
||||
Of course, this section can hardly go without mention of Rob Buse's
|
||||
Seq24. It was the author's unending frustration with the abysmal
|
||||
performance and absurd limitations of Seq24 that, more than any
|
||||
other single factor, inspired him to write Non. The most
|
||||
frustrating aspect was that, prior to Non, Seq24 was, in the
|
||||
author's opinion, the best sequencer available on Linux. Seq24,
|
||||
which claims to be light and free of bloat is, without comparison,
|
||||
the slowest, most poorly optimized sequencer the author has
|
||||
tried. Even the huge, snarling beast that is RoseGarden out performs
|
||||
Seq24 in every way but start time.
|
||||
|
||||
Those days are over.
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
|
||||
SRCS=OVERVIEW.mu KEYS.mu MANUAL.mu
|
||||
OBJS=$(SRCS:.mu=.html)
|
||||
|
||||
%.html: %.mu
|
||||
mup html < $< > $@
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: $(OBJS)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS)
|
|
@ -0,0 +1,57 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head>
|
||||
<meta name="generator" content="Generated by MUP v3.5">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link type="text/css" rel="stylesheet" href="mup.css">
|
||||
<title>The Non Sequencer</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id=cover>
|
||||
<h1>The Non Sequencer</h1>
|
||||
<h3></h3>
|
||||
<address>
|
||||
Jonathan Moore Liles <a href="mailto:wantingwaiting@users.sf.net"><wantingwaiting@users.sf.net></a><br>
|
||||
<br>
|
||||
|
||||
</address><a class=ext href="http://non.tuxfamily.org">Home</a> <img src="logo.png" alt="logo"><hr></div>
|
||||
<div id=body>
|
||||
<hr width=50%>
|
||||
<h1 id="u:1.">Description</h1>
|
||||
<p>
|
||||
The Non Sequencer is a powerful real-time, pattern-based MIDI sequencer for Linux--released under the GPL. Filling the void left by countless DAWs, piano-roll editors, and other purely performance based solutions, it is a compositional tool--one that transforms MIDI music-making on Linux from a complex nightmare into a pleasurable, efficient, and streamlined process.
|
||||
</p>
|
||||
<p>
|
||||
Please see the <a class=ext href="MANUAL.html">manual</a> for more information.
|
||||
</p>
|
||||
<h1 id="u:2.">What it is not</h1>
|
||||
<p>
|
||||
Non is <b>not</b> a plain MIDI recorder, tracker, software synthesizer, notation editor or AI system. There are other programs available to do those things. Non is intended to be one tool among many in your Linux audio toolbox.
|
||||
</p>
|
||||
<p>
|
||||
Everything in Non happens <i>on-line</i>, in realtime. Music is composed live, while the transport is running.
|
||||
</p>
|
||||
<h1 id="u:3.">Distribution</h1>
|
||||
<p>
|
||||
Development of the Non Sequencer can be followed with Git:
|
||||
</p>
|
||||
<div class="fig example"><table width=100%><tr><td><pre>
|
||||
git clone git://git.tuxfamily.net/gitroot/non/sequencer.git
|
||||
</pre></td></tr>
|
||||
</table></div>
|
||||
<p>
|
||||
There are no pre-compiled binaries available.
|
||||
</p>
|
||||
<h1 id="u:4.">Requirements</h1>
|
||||
<p>
|
||||
The following libraries are required to build Non.
|
||||
</p>
|
||||
<ul><li><span>FLTK 1.1.x</span>
|
||||
<li><span>JACK >= 0.103.0</span>
|
||||
<li><span>sigc++ 2.0</span>
|
||||
</ul><p>
|
||||
The following are optional:
|
||||
</p>
|
||||
<ul><li><span>LASH >= 0.5.4</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,49 @@
|
|||
|
||||
! title The Non Sequencer
|
||||
! author Jonathan Moore Liles #(email,wantingwaiting@users.sf.net)
|
||||
! extra #(url,http://non.tuxfamily.org,Home) #(image,logo,logo.png)
|
||||
|
||||
--
|
||||
|
||||
; Description
|
||||
|
||||
The Non Sequencer is a powerful real-time, pattern-based MIDI sequencer for
|
||||
Linux--released under the GPL. Filling the void left by countless DAWs,
|
||||
piano-roll editors, and other purely performance based solutions, it is a
|
||||
compositional tool--one that transforms MIDI music-making on Linux from a
|
||||
complex nightmare into a pleasurable, efficient, and streamlined process.
|
||||
|
||||
Please see the #(url,MANUAL.html,manual) for more information.
|
||||
|
||||
; What it is not
|
||||
|
||||
Non is *not* a plain MIDI recorder, tracker, software synthesizer, notation
|
||||
editor or AI system. There are other programs available to do those things.
|
||||
Non is intended to be one tool among many in your Linux audio toolbox.
|
||||
|
||||
Everything in Non happens /on-line/, in realtime. Music is composed live,
|
||||
while the transport is running.
|
||||
|
||||
; Distribution
|
||||
|
||||
Development of the Non Sequencer can be followed with Git:
|
||||
|
||||
> git clone git://git.tuxfamily.net/gitroot/non/sequencer.git
|
||||
|
||||
# or
|
||||
#
|
||||
# > git clone git://repo.or.gz/src/git/non.git
|
||||
|
||||
There are no pre-compiled binaries available.
|
||||
|
||||
; Requirements
|
||||
|
||||
The following libraries are required to build Non.
|
||||
|
||||
* FLTK 1.1.x
|
||||
* JACK >= 0.103.0
|
||||
* sigc++ 2.0
|
||||
|
||||
The following are optional:
|
||||
|
||||
* LASH >= 0.5.4
|
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
Binary file not shown.
After Width: | Height: | Size: 107 KiB |
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
Binary file not shown.
After Width: | Height: | Size: 102 KiB |
Binary file not shown.
After Width: | Height: | Size: 94 KiB |
|
@ -0,0 +1,144 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007-2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
/* Higher level event interface, supporting doublely-linked list,
|
||||
marking, selection, and linking of note pairs. */
|
||||
|
||||
#include "event.H"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
void
|
||||
event::_init ( void )
|
||||
{
|
||||
_link = _next = _prev = NULL;
|
||||
_selected = 0;
|
||||
}
|
||||
|
||||
event::event ( void )
|
||||
{
|
||||
_init();
|
||||
}
|
||||
|
||||
event::~event ( void )
|
||||
{
|
||||
_link = _next = _prev = NULL;
|
||||
}
|
||||
|
||||
/* copy constructor */
|
||||
event::event ( const event &e )
|
||||
{
|
||||
*this = e;
|
||||
_link = _next = _prev = NULL;
|
||||
}
|
||||
|
||||
event::event ( const midievent &e ) : midievent( e )
|
||||
{
|
||||
_init();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
event::link ( event *event )
|
||||
{
|
||||
if ( event == NULL )
|
||||
{
|
||||
if ( _link )
|
||||
{
|
||||
_link->_link = NULL;
|
||||
_link = NULL;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
_link = event;
|
||||
_link->_link = this;
|
||||
}
|
||||
|
||||
event *
|
||||
event::link ( void ) const
|
||||
{
|
||||
return _link;
|
||||
}
|
||||
|
||||
bool
|
||||
event::linked ( void ) const
|
||||
{
|
||||
return _link != NULL;
|
||||
}
|
||||
|
||||
void
|
||||
event::select ( void )
|
||||
{
|
||||
_selected = 1;
|
||||
|
||||
if ( _link )
|
||||
_link->_selected = 1;
|
||||
}
|
||||
|
||||
void
|
||||
event::deselect ( void )
|
||||
{
|
||||
_selected = 0;
|
||||
|
||||
if ( _link )
|
||||
_link->_selected = 0;
|
||||
}
|
||||
|
||||
bool
|
||||
event::selected ( int n ) const
|
||||
{
|
||||
return _selected == n;
|
||||
}
|
||||
|
||||
bool
|
||||
event::selected ( void ) const
|
||||
{
|
||||
return _selected == 1;
|
||||
}
|
||||
|
||||
/* override this so we can update linked event */
|
||||
void
|
||||
event::note ( char note )
|
||||
{
|
||||
midievent::note( note );
|
||||
|
||||
if ( _link )
|
||||
_link->midievent::note( note );
|
||||
}
|
||||
|
||||
/* stupid C++ makes us override the all polymorphic functions... */
|
||||
unsigned char
|
||||
event::note ( void ) const
|
||||
{
|
||||
return midievent::note();
|
||||
}
|
||||
|
||||
tick_t
|
||||
event::note_duration ( void ) const
|
||||
{
|
||||
return _link ? _link->timestamp() - timestamp() : 0;
|
||||
}
|
||||
|
||||
void
|
||||
event::note_duration ( tick_t l )
|
||||
{
|
||||
if ( _link )
|
||||
_link->timestamp( timestamp() + l );
|
||||
}
|
|
@ -0,0 +1,83 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007-2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "midievent.H"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
class event_list;
|
||||
|
||||
class event : public midievent
|
||||
{
|
||||
|
||||
protected:
|
||||
|
||||
/* these are only to be used by event_list class! */
|
||||
event *_next;
|
||||
event *_prev;
|
||||
|
||||
private:
|
||||
|
||||
event *_link; /* other event in pair */
|
||||
|
||||
byte_t _selected;
|
||||
|
||||
void _init ( void );
|
||||
|
||||
public:
|
||||
|
||||
event();
|
||||
~event();
|
||||
event ( const event &e );
|
||||
event ( const midievent &e );
|
||||
|
||||
event * next ( void ) const;
|
||||
event * prev ( void ) const;
|
||||
|
||||
void link ( event *event );
|
||||
event * link ( void ) const;
|
||||
bool linked ( void ) const;
|
||||
void select ( void );
|
||||
void deselect ( void );
|
||||
bool selected ( int n ) const;
|
||||
bool selected ( void ) const;
|
||||
void note ( char note );
|
||||
unsigned char note ( void ) const;
|
||||
tick_t note_duration ( void ) const;
|
||||
void note_duration ( tick_t l );
|
||||
|
||||
|
||||
friend class event_list;
|
||||
|
||||
};
|
||||
|
||||
inline event *
|
||||
event::next ( void ) const
|
||||
{
|
||||
return _next;
|
||||
}
|
||||
|
||||
inline event *
|
||||
event::prev ( void ) const
|
||||
{
|
||||
return _prev;
|
||||
}
|
|
@ -0,0 +1,587 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#include "event_list.H"
|
||||
|
||||
/* The operations we perform on event lists are clumsy with STL lists
|
||||
and iterators so we have a custom doubly-linked list implementation
|
||||
here for complete control */
|
||||
|
||||
#define RFOR_ALL( it ) for ( event *next, * it = _tail; it && ((next = it ->_prev), true) ; it = next )
|
||||
#define FOR_ALL( it ) for ( event *next, * it = _head; it && ((next = it ->_next), true) ; it = next )
|
||||
// #define FOR_ALL( e ) for ( event * e = _head; e; e = e ->_next )
|
||||
#define FOR_SELECTED( e ) FOR_ALL( e ) if ( e ->selected() )
|
||||
#define RFOR_SELECTED( e ) RFOR_ALL( e ) if ( e ->selected() )
|
||||
|
||||
|
||||
event_list::event_list ( void )
|
||||
{
|
||||
_head = NULL;
|
||||
_tail = NULL;
|
||||
_size = 0;
|
||||
}
|
||||
|
||||
event_list::~event_list ( void )
|
||||
{
|
||||
clear();
|
||||
}
|
||||
|
||||
/* copy constructor */
|
||||
event_list::event_list ( const event_list &el )
|
||||
{
|
||||
_copy( &el );
|
||||
}
|
||||
|
||||
event_list &
|
||||
event_list::operator= ( const event_list &rhs )
|
||||
{
|
||||
if ( this != &rhs )
|
||||
{
|
||||
clear();
|
||||
|
||||
_copy( &rhs );
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
event_list &
|
||||
event_list::operator= ( const list <midievent> &rhs )
|
||||
{
|
||||
clear();
|
||||
|
||||
for ( list <midievent>::const_iterator me = rhs.begin(); me != rhs.end(); me++ )
|
||||
{
|
||||
event *e = new event( *me );
|
||||
|
||||
_insert( NULL, e );
|
||||
}
|
||||
|
||||
relink();
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
/** allow indexing */
|
||||
event *
|
||||
event_list::operator[] ( unsigned int index )
|
||||
{
|
||||
unsigned int i = 0;
|
||||
for ( event *e = _head; e; (e = e->_next), ++i )
|
||||
if ( i == index )
|
||||
return e;
|
||||
|
||||
// all else fails.
|
||||
return _tail;
|
||||
}
|
||||
|
||||
void
|
||||
event_list::_copy ( const event_list *el )
|
||||
{
|
||||
if ( ! el->_head )
|
||||
{
|
||||
_head = _tail = NULL;
|
||||
_size = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
_head = new event( *(el->_head) );
|
||||
_head->_prev = NULL;
|
||||
|
||||
event *p = _head;
|
||||
|
||||
for ( event *e = el->_head->_next; e; e = e->_next )
|
||||
{
|
||||
event *n = new event( *e );
|
||||
|
||||
n->_next = NULL;
|
||||
p->_next = n;
|
||||
n->_prev = p;
|
||||
|
||||
p = n;
|
||||
}
|
||||
|
||||
_tail = p;
|
||||
|
||||
_size = el->_size;
|
||||
|
||||
relink();
|
||||
}
|
||||
|
||||
/** insert event /n/ before event /o/ */
|
||||
void
|
||||
event_list::_insert ( event *o, event *n )
|
||||
{
|
||||
++_size;
|
||||
|
||||
if ( ! o )
|
||||
{
|
||||
n->_next = NULL;
|
||||
n->_prev = _tail;
|
||||
|
||||
if ( _tail )
|
||||
_tail->_next = n;
|
||||
|
||||
_tail = n;
|
||||
if ( ! _head )
|
||||
_head = n;
|
||||
return;
|
||||
}
|
||||
|
||||
event *t = o->_prev;
|
||||
|
||||
o->_prev = n;
|
||||
n->_next = o;
|
||||
n->_prev = t;
|
||||
|
||||
if ( ! t )
|
||||
_head = n;
|
||||
else
|
||||
t->_next = n;
|
||||
}
|
||||
|
||||
void
|
||||
event_list::unlink ( event *e )
|
||||
{
|
||||
if ( e->_next )
|
||||
e->_next->_prev = e->_prev;
|
||||
else
|
||||
_tail = e->_prev;
|
||||
|
||||
if ( e->_prev )
|
||||
e->_prev->_next = e->_next;
|
||||
else
|
||||
_head = e->_next;
|
||||
|
||||
--_size;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void
|
||||
event_list::clear ( void )
|
||||
{
|
||||
for ( event *e = _head; e ; )
|
||||
{
|
||||
event *n = e->_next;
|
||||
delete e;
|
||||
e = n;
|
||||
}
|
||||
|
||||
_head = NULL;
|
||||
_tail = NULL;
|
||||
_size = 0;
|
||||
}
|
||||
|
||||
void
|
||||
event_list::mix ( event *ne )
|
||||
{
|
||||
FOR_ALL( e )
|
||||
if ( *e == *ne )
|
||||
{
|
||||
/* already have an event like this, drop it */
|
||||
|
||||
if ( ne->linked() )
|
||||
delete ne->link();
|
||||
|
||||
delete ne;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
insert( ne );
|
||||
if ( ne->linked() )
|
||||
insert( ne->link() );
|
||||
|
||||
}
|
||||
|
||||
/** remove elements from list /el/ to this list */
|
||||
void
|
||||
event_list::merge ( event_list *el )
|
||||
{
|
||||
event *n;
|
||||
for ( event *e = el->_head; e; e = n )
|
||||
{
|
||||
n = e->_next;
|
||||
|
||||
el->unlink( e );
|
||||
|
||||
insert( e );
|
||||
}
|
||||
}
|
||||
|
||||
/** unlink event e */
|
||||
void
|
||||
event_list::remove ( event *e )
|
||||
{
|
||||
unlink( e );
|
||||
delete e;
|
||||
}
|
||||
|
||||
/** sorted insert /e/ */
|
||||
void
|
||||
event_list::insert ( event *e )
|
||||
{
|
||||
/* find the place to insert */
|
||||
RFOR_ALL( i )
|
||||
if ( *e >= *i )
|
||||
{
|
||||
_insert( i->_next, e );
|
||||
return;
|
||||
}
|
||||
|
||||
_insert( _head, e );
|
||||
}
|
||||
|
||||
/** just append event without sorting */
|
||||
void
|
||||
event_list::append ( event *e )
|
||||
{
|
||||
_insert( NULL, e );
|
||||
}
|
||||
|
||||
event *
|
||||
event_list::first ( void ) const
|
||||
{
|
||||
return _head;
|
||||
}
|
||||
|
||||
event *
|
||||
event_list::last ( void ) const
|
||||
{
|
||||
return _tail;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*************/
|
||||
/* Selection */
|
||||
/*************/
|
||||
|
||||
/** select all events from /start/ to /end/ inclusive */
|
||||
void
|
||||
event_list::select ( tick_t start, tick_t end )
|
||||
{
|
||||
FOR_ALL( e )
|
||||
{
|
||||
tick_t ts = e->timestamp();
|
||||
|
||||
/* don't count note offs exactly on start */
|
||||
if ( ts == start && e->is_note_off() )
|
||||
continue;
|
||||
|
||||
if ( ts >= start && ts < end )
|
||||
e->select();
|
||||
}
|
||||
}
|
||||
|
||||
/** select ALL events */
|
||||
void
|
||||
event_list::select_all ( void )
|
||||
{
|
||||
FOR_ALL( e )
|
||||
e->select();
|
||||
}
|
||||
|
||||
void
|
||||
event_list::select_none ( void )
|
||||
{
|
||||
FOR_ALL( e )
|
||||
e->deselect();
|
||||
}
|
||||
|
||||
/** remove all selected events */
|
||||
void
|
||||
event_list::remove_selected ( void )
|
||||
{
|
||||
FOR_SELECTED( e )
|
||||
{
|
||||
remove( e );
|
||||
}
|
||||
}
|
||||
|
||||
/** transpose selected notes (ignoring other event types) by /n/ tones
|
||||
* (may span octaves) */
|
||||
void
|
||||
event_list::transpose_selected ( int n )
|
||||
{
|
||||
FOR_SELECTED( e )
|
||||
{
|
||||
if ( e->is_note_on() )
|
||||
e->note( e->note() + n );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/** change all notes of value /from/ to /to/ */
|
||||
void
|
||||
event_list::rewrite_selected ( int from, int to )
|
||||
{
|
||||
FOR_SELECTED( e )
|
||||
{
|
||||
if ( e->is_note_on() && e->note() == from )
|
||||
e->note( to );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** get timestamp of earliest selected event */
|
||||
tick_t
|
||||
event_list::selection_min ( void )
|
||||
{
|
||||
FOR_SELECTED( e )
|
||||
return e->timestamp();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
tick_t
|
||||
event_list::selection_max ( void )
|
||||
{
|
||||
RFOR_SELECTED( e )
|
||||
return e->timestamp();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/** move selected events by offset /o/ */
|
||||
void
|
||||
event_list::move_selected ( long o )
|
||||
{
|
||||
if ( o < 0 )
|
||||
if ( selection_min() < (tick_t)( 0 - o ) )
|
||||
return;
|
||||
|
||||
if ( o < 0 )
|
||||
{
|
||||
FOR_SELECTED( e )
|
||||
move( e, o );
|
||||
}
|
||||
else
|
||||
{
|
||||
RFOR_SELECTED( e )
|
||||
move( e, o );
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
event_list::push_selection ( void )
|
||||
{
|
||||
FOR_ALL( e )
|
||||
if ( e->_selected )
|
||||
++e->_selected;
|
||||
}
|
||||
|
||||
void
|
||||
event_list::pop_selection ( void )
|
||||
{
|
||||
FOR_ALL( e )
|
||||
if ( e->_selected )
|
||||
--e->_selected;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** verify that all note ons are linked to note offs */
|
||||
bool
|
||||
event_list::verify ( void ) const
|
||||
{
|
||||
FOR_ALL( e )
|
||||
if ( e->is_note_on() && ! e->linked() )
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/** link /e/ (a note on) with the next corresponding note off */
|
||||
void
|
||||
event_list::link ( event *on )
|
||||
{
|
||||
if ( ! on->is_note_on() )
|
||||
return;
|
||||
|
||||
for ( event *off = on->_next; off; off = off->_next )
|
||||
{
|
||||
if ( off->linked() )
|
||||
continue;
|
||||
|
||||
if ( off->is_note_off() &&
|
||||
off->channel() == on->channel() &&
|
||||
off->note() == on->note() )
|
||||
{
|
||||
on->link( off );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
WARNING( "no corresponding note_off found for note on, repairing" );
|
||||
|
||||
event *off = new event( *on );
|
||||
|
||||
off->opcode( event::NOTE_OFF );
|
||||
|
||||
on->link( off );
|
||||
|
||||
insert( off );
|
||||
}
|
||||
|
||||
/** insert /l/ ticks of time at /start/ */
|
||||
void
|
||||
event_list::insert_time ( tick_t start, tick_t l )
|
||||
{
|
||||
FOR_ALL( e )
|
||||
{
|
||||
tick_t ts = e->timestamp();
|
||||
|
||||
if ( e->is_note_off() )
|
||||
continue;
|
||||
|
||||
if ( ts >= start )
|
||||
if ( e->is_note_on() )
|
||||
{
|
||||
/* only notes ENTIRELY WITHIN the range will be moved */
|
||||
e->timestamp( ts + l );
|
||||
e->link()->timestamp( e->link()->timestamp() + l );
|
||||
}
|
||||
else
|
||||
e->timestamp( e->timestamp() + l );
|
||||
}
|
||||
}
|
||||
|
||||
/** delete events in range and close the gap */
|
||||
void
|
||||
event_list::delete_time ( tick_t start, tick_t end )
|
||||
{
|
||||
tick_t l = end - start;
|
||||
|
||||
push_selection();
|
||||
|
||||
select( start, end );
|
||||
|
||||
remove_selected();
|
||||
|
||||
pop_selection();
|
||||
|
||||
/* cut out the slack */
|
||||
FOR_ALL( e )
|
||||
{
|
||||
tick_t ts = e->timestamp();
|
||||
|
||||
if ( ts >= end )
|
||||
e->timestamp( ts - l );
|
||||
}
|
||||
}
|
||||
|
||||
/** link all note ons to subsequent note offs */
|
||||
void
|
||||
event_list::relink ( void )
|
||||
{
|
||||
/* clear links */
|
||||
FOR_ALL( e )
|
||||
e->link( NULL );
|
||||
|
||||
/* link */
|
||||
FOR_ALL( on )
|
||||
link( on );
|
||||
|
||||
if ( ! verify() )
|
||||
ASSERTION( "event list failed verification" );
|
||||
}
|
||||
|
||||
/** resort event /e/ */
|
||||
void
|
||||
event_list::sort ( event *e )
|
||||
{
|
||||
unlink( e );
|
||||
|
||||
insert( e );
|
||||
}
|
||||
|
||||
/** resort entire list */
|
||||
void
|
||||
event_list::sort ( void )
|
||||
{
|
||||
event_list *temp = new event_list( *this );
|
||||
|
||||
_head = temp->_head;
|
||||
_tail = temp->_tail;
|
||||
|
||||
temp->_head = NULL;
|
||||
|
||||
delete temp;
|
||||
}
|
||||
|
||||
/** move event /e/ by /o/ ticks */
|
||||
void
|
||||
event_list::move ( event *e, long o )
|
||||
{
|
||||
e->timestamp( e->timestamp() + o );
|
||||
|
||||
sort( e );
|
||||
}
|
||||
|
||||
bool
|
||||
event_list::empty ( void ) const
|
||||
{
|
||||
return _head == NULL;
|
||||
}
|
||||
|
||||
size_t
|
||||
event_list::size ( void ) const
|
||||
{
|
||||
return _size;
|
||||
}
|
||||
|
||||
void
|
||||
event_list::_hi_lo ( bool sel, int *hi, int *lo ) const
|
||||
{
|
||||
*hi = 0;
|
||||
*lo = 127;
|
||||
|
||||
FOR_ALL( e )
|
||||
{
|
||||
if ( sel && ! e->selected() )
|
||||
continue;
|
||||
|
||||
if ( ! e->is_note_on() )
|
||||
continue;
|
||||
|
||||
int n = e->note();
|
||||
|
||||
if ( n > *hi )
|
||||
*hi = n;
|
||||
|
||||
if ( n < *lo )
|
||||
*lo = n;
|
||||
}
|
||||
}
|
||||
|
||||
/** set /hi/ and /lo/ to the lowest and highest pitched note events in
|
||||
* this list, respectively */
|
||||
void
|
||||
event_list::hi_lo_note ( int *hi, int *lo ) const
|
||||
{
|
||||
_hi_lo( false, hi, lo );
|
||||
}
|
||||
|
||||
void
|
||||
event_list::selected_hi_lo_note ( int *hi, int *lo ) const
|
||||
{
|
||||
_hi_lo( true, hi, lo );
|
||||
}
|
|
@ -0,0 +1,86 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "event.H"
|
||||
|
||||
#include <list>
|
||||
using std::list;
|
||||
|
||||
class midievent;
|
||||
|
||||
class event_list {
|
||||
|
||||
event * _head;
|
||||
event * _tail;
|
||||
|
||||
size_t _size;
|
||||
|
||||
void _insert ( event *o, event *n );
|
||||
void _copy ( const event_list *el );
|
||||
void _hi_lo ( bool sel, int *hi, int *lo ) const;
|
||||
|
||||
public:
|
||||
|
||||
event_list ( void );
|
||||
~event_list ( void );
|
||||
event_list ( const event_list &el );
|
||||
|
||||
void clear ( void );
|
||||
void merge ( event_list *el );
|
||||
void unlink ( event *e );
|
||||
void remove ( event *e );
|
||||
void insert ( event *e );
|
||||
event * first ( void ) const;
|
||||
event * last ( void ) const;
|
||||
void select ( tick_t start, tick_t end );
|
||||
void select_all ( void );
|
||||
void select_none ( void );
|
||||
|
||||
void remove_selected ( void );
|
||||
void transpose_selected ( int n );
|
||||
tick_t selection_min ( void );
|
||||
tick_t selection_max ( void );
|
||||
void move_selected ( long o );
|
||||
void push_selection ( void );
|
||||
void pop_selection ( void );
|
||||
bool verify ( void ) const;
|
||||
void link ( event *on );
|
||||
void insert_time ( tick_t start, tick_t l );
|
||||
void delete_time ( tick_t start, tick_t end );
|
||||
void relink ( void );
|
||||
void sort ( event *e );
|
||||
void sort ( void );
|
||||
void move ( event *e, long o );
|
||||
bool empty ( void ) const;
|
||||
size_t size ( void ) const;
|
||||
void append ( event *e );
|
||||
void mix ( event *ne );
|
||||
void hi_lo_note ( int *hi, int *lo ) const;
|
||||
void rewrite_selected ( int from, int to );
|
||||
void selected_hi_lo_note ( int *hi, int *lo ) const;
|
||||
|
||||
|
||||
event_list & operator= ( const event_list &rhs );
|
||||
event_list & operator= ( const list <midievent> &rhs );
|
||||
event *operator[] ( unsigned int index );
|
||||
|
||||
// friend class event;
|
||||
};
|
|
@ -0,0 +1,850 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007-2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#include "grid.H"
|
||||
#include "common.h"
|
||||
#include "canvas.H"
|
||||
|
||||
#include "non.H"
|
||||
|
||||
#include "smf.H"
|
||||
|
||||
#define RD ( _locked ? ASSERTION( "invalid read" ) : _rd )
|
||||
#define WR ( ! locked ? ASSERTION( "invalid write" ) : _wr )
|
||||
|
||||
Grid::Grid ( void )
|
||||
{
|
||||
_name = NULL;
|
||||
_notes = NULL;
|
||||
_number = 0;
|
||||
_height = 0;
|
||||
|
||||
_rd = new data;
|
||||
_rw = NULL;
|
||||
|
||||
// we need to initialize it here.
|
||||
data *d = (data *)_rd;
|
||||
|
||||
_mode = 0;
|
||||
_locked = 0;
|
||||
|
||||
d->length = 0;
|
||||
|
||||
_bpb = 4;
|
||||
_ppqn = 1;
|
||||
|
||||
viewport.h = 32;
|
||||
viewport.w = 32;
|
||||
viewport.x = 0;
|
||||
viewport.y = 0;
|
||||
|
||||
_start = _end = _index = 0;
|
||||
}
|
||||
|
||||
Grid::~Grid ( void )
|
||||
{
|
||||
DEBUG( "deleting grid" );
|
||||
|
||||
if ( _name )
|
||||
free( _name );
|
||||
if ( _notes )
|
||||
free( _notes );
|
||||
|
||||
if ( _rw )
|
||||
delete _rw;
|
||||
if ( _rd )
|
||||
delete _rd;
|
||||
|
||||
}
|
||||
|
||||
/* copy constructor */
|
||||
Grid::Grid ( const Grid &rhs )
|
||||
{
|
||||
_rd = new data( *rhs._rd );
|
||||
_rw = NULL;
|
||||
|
||||
_name = rhs._name ? strdup( rhs._name ) : NULL;
|
||||
_notes = rhs._notes ? strdup( rhs._notes ) : NULL;
|
||||
_number = rhs._number;
|
||||
_height = rhs._height;
|
||||
_draw_shape = rhs._draw_shape;
|
||||
|
||||
_mode = 0;
|
||||
_locked = 0;
|
||||
_playing = false;
|
||||
_index = 0;
|
||||
_start = 0;
|
||||
_end = 0;
|
||||
|
||||
_bpb = rhs._bpb;
|
||||
_ppqn = rhs._ppqn;
|
||||
|
||||
viewport = rhs.viewport;
|
||||
}
|
||||
|
||||
#if 0
|
||||
const data *
|
||||
Grid::rd ( void )
|
||||
{
|
||||
if ( _locked )
|
||||
ASSERTION( "invalid read" );
|
||||
|
||||
return _rd;
|
||||
}
|
||||
|
||||
data *
|
||||
Grid::wr ( void )
|
||||
{
|
||||
if ( ! _locked )
|
||||
ASSERTION( "invalid write" );
|
||||
|
||||
return _rw;
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
Grid::lock ( void )
|
||||
{
|
||||
if ( ! _locked++ )
|
||||
_rw = new data( *_rd );
|
||||
}
|
||||
|
||||
void
|
||||
Grid::unlock ( void )
|
||||
{
|
||||
if ( 0 == --_locked )
|
||||
{
|
||||
_history.push_back( const_cast<data *>( _rd ) );
|
||||
|
||||
if ( _history.size() > MAX_UNDO + 1 )
|
||||
{
|
||||
data *d = _history.front();
|
||||
|
||||
if ( d == _rw || d == _rd )
|
||||
ASSERTION( "something bad has happend." );
|
||||
|
||||
delete d;
|
||||
|
||||
_history.pop_front();
|
||||
}
|
||||
|
||||
// swap the copy back in (atomically).
|
||||
_rd = (const data *)_rw;
|
||||
|
||||
_rw = NULL;
|
||||
|
||||
signal_events_change();
|
||||
}
|
||||
}
|
||||
|
||||
event *
|
||||
Grid::_event ( int x, int y, bool write ) const
|
||||
{
|
||||
const data *d = const_cast< data * >(_rd);
|
||||
|
||||
const event_list *r = write ? &_rw->events : &d->events;
|
||||
|
||||
if ( r->empty() || x_to_ts( x ) > _rd->length )
|
||||
return NULL;
|
||||
|
||||
int note = y_to_note( y );
|
||||
tick_t xt = x_to_ts( x );
|
||||
|
||||
for ( event *e = r->first(); e; e = e->next() )
|
||||
{
|
||||
if ( ! e->is_note_on() )
|
||||
continue;
|
||||
|
||||
if ( e->note() != note )
|
||||
continue;
|
||||
|
||||
unsigned long ts = e->timestamp();
|
||||
unsigned long l = 0;
|
||||
|
||||
if ( e->linked() )
|
||||
l = e->link()->timestamp() - ts;
|
||||
else
|
||||
WARNING( "found unlinked event... event list is corrupt." );
|
||||
|
||||
if ( xt >= ts && xt < ts + l )
|
||||
// this is a little nasty
|
||||
return const_cast<event *>(e);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool
|
||||
Grid::_delete ( int x, int y )
|
||||
{
|
||||
event *e = _event ( x, y, true );
|
||||
|
||||
if ( e )
|
||||
{
|
||||
if ( e->linked() )
|
||||
_rw->events.remove( e->link() );
|
||||
|
||||
_rw->events.remove( e );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
Grid::_get ( struct dash *d, int x, int y ) const
|
||||
{
|
||||
event *e = _event ( x, y, false );
|
||||
|
||||
if ( e )
|
||||
{
|
||||
tick_t ts = e->timestamp();
|
||||
tick_t l = 0;
|
||||
|
||||
if ( e->linked() )
|
||||
l = e->link()->timestamp() - ts;
|
||||
else
|
||||
WARNING( "Found unlinked note on" );
|
||||
|
||||
d->timestamp = ts_to_x( ts );
|
||||
d->length = ts_to_x( l );
|
||||
d->color = e->note_velocity();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Grid::clear ( void )
|
||||
{
|
||||
lock();
|
||||
|
||||
_rw->events.clear();
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
Grid::get ( struct dash *d, int x, int y ) const
|
||||
{
|
||||
return _get( d, x, y );
|
||||
}
|
||||
|
||||
void
|
||||
Grid::del ( int x, int y )
|
||||
{
|
||||
lock();
|
||||
|
||||
_delete( x, y );
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
int
|
||||
Grid::next_note_x ( int x ) const
|
||||
{
|
||||
for ( const event *e = _rd->events.first(); e; e = e->next() )
|
||||
if ( e->is_note_on() && (ts_to_x( e->timestamp() ) > (uint)x ) )
|
||||
return ts_to_x( e->timestamp() );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
Grid::prev_note_x ( int x ) const
|
||||
{
|
||||
for ( const event *e = _rd->events.last(); e; e = e->prev() )
|
||||
if ( e->is_note_on() && (ts_to_x( e->timestamp() ) < (uint)x) )
|
||||
return ts_to_x( e->timestamp() );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Grid::_fix_length ( void )
|
||||
{
|
||||
tick_t beats = (_rw->length / PPQN);
|
||||
tick_t rem = _rw->length % PPQN;
|
||||
|
||||
_rw->length = (rem ? (beats + 1) : beats) * PPQN;
|
||||
}
|
||||
|
||||
/** Trim the length of the grid to the last event */
|
||||
void
|
||||
Grid::trim ( void )
|
||||
{
|
||||
lock();
|
||||
|
||||
event *e = _rw->events.last();
|
||||
|
||||
if ( e )
|
||||
{
|
||||
tick_t ts = e->timestamp();
|
||||
|
||||
_rw->length = ts;
|
||||
|
||||
_fix_length();
|
||||
}
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
void
|
||||
Grid::fit ( void )
|
||||
{
|
||||
int hi, lo;
|
||||
|
||||
_rd->events.hi_lo_note( &hi, &lo );
|
||||
|
||||
viewport.h = abs( hi - lo ) + 1;
|
||||
|
||||
viewport.y = note_to_y( hi );
|
||||
}
|
||||
|
||||
/** Expand the length of the grid to the last event */
|
||||
void
|
||||
Grid::expand ( void )
|
||||
{
|
||||
lock();
|
||||
|
||||
event *e = _rw->events.last();
|
||||
|
||||
if ( e )
|
||||
{
|
||||
tick_t ts = e->timestamp();
|
||||
|
||||
_rw->length = ts > _rw->length ? ts : _rw->length;
|
||||
|
||||
_fix_length();
|
||||
}
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
void
|
||||
Grid::put ( int x, int y, tick_t l )
|
||||
{
|
||||
|
||||
int xl = ts_to_x( l );
|
||||
tick_t ts = x_to_ts( x );
|
||||
|
||||
event *on = new event;
|
||||
event *off = new event;
|
||||
|
||||
struct dash d;
|
||||
|
||||
// Don't allow overlap (Why not?)
|
||||
if ( get( &d, x, y ) || get( &d, x + xl - 1, y ) )
|
||||
return;
|
||||
|
||||
DEBUG( "put %d,%d", x, y );
|
||||
|
||||
lock();
|
||||
|
||||
int note = y_to_note( y );
|
||||
|
||||
on->status( event::NOTE_ON );
|
||||
on->note( note );
|
||||
on->timestamp( ts );
|
||||
on->note_velocity( 64 );
|
||||
on->link( off );
|
||||
|
||||
off->status( event::NOTE_OFF );
|
||||
off->note( note );
|
||||
off->timestamp( ts + l );
|
||||
off->note_velocity( 64 );
|
||||
off->link( on );
|
||||
|
||||
_rw->events.insert( on );
|
||||
_rw->events.insert( off );
|
||||
|
||||
expand();
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
|
||||
// void
|
||||
// pattern::move ( int x, int y, int nx )
|
||||
// {
|
||||
// event *e = _event( x, y, false );
|
||||
|
||||
// if ( e )
|
||||
// e->timestamp( nx );
|
||||
// }
|
||||
|
||||
|
||||
void
|
||||
Grid::move ( int x, int y, int nx, int ny )
|
||||
{
|
||||
lock();
|
||||
|
||||
event *e = _event( x, y, true );
|
||||
|
||||
if ( e )
|
||||
{
|
||||
DEBUG( "moving note" );
|
||||
|
||||
event *on = e,
|
||||
*off = e->link();
|
||||
|
||||
_rw->events.unlink( on );
|
||||
_rw->events.unlink( off );
|
||||
|
||||
on->note( y_to_note( ny ) );
|
||||
|
||||
tick_t l = on->note_duration();
|
||||
on->timestamp( x_to_ts( ny ) );
|
||||
on->note_duration( l );
|
||||
|
||||
_rw->events.insert( off );
|
||||
_rw->events.insert( on );
|
||||
}
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Grid::adj_velocity ( int x, int y, int n )
|
||||
{
|
||||
lock();
|
||||
|
||||
event *e = _event( x, y, true );
|
||||
|
||||
if ( e )
|
||||
{
|
||||
DEBUG( "adjusting velocity" );
|
||||
|
||||
{
|
||||
int v = e->note_velocity();
|
||||
|
||||
v += n;
|
||||
|
||||
if ( v > 127 )
|
||||
v = 127;
|
||||
|
||||
e->note_velocity( v > 0 ? v : 1 );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
unlock();
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
Grid::adj_duration ( int x, int y, int l )
|
||||
{
|
||||
lock();
|
||||
|
||||
event *e = _event( x, y, true );
|
||||
|
||||
if ( e )
|
||||
{
|
||||
DEBUG( "adjusting duration" );
|
||||
|
||||
{
|
||||
int v = ts_to_x( e->note_duration() );
|
||||
|
||||
v += l;
|
||||
|
||||
e->note_duration( x_to_ts( v > 0 ? v : 1 ) );
|
||||
|
||||
_rw->events.sort( e->link() );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
unlock();
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
Grid::select ( int x, int y, bool b )
|
||||
{
|
||||
lock();
|
||||
|
||||
event *e = _event( x, y, true );
|
||||
|
||||
if ( e )
|
||||
if ( b )
|
||||
e->select();
|
||||
else
|
||||
e->deselect();
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
|
||||
/** insert /l/ ticks of time after /x/ */
|
||||
void
|
||||
Grid::insert_time ( int l, int r )
|
||||
{
|
||||
tick_t start = x_to_ts( l );
|
||||
tick_t end = x_to_ts( r );
|
||||
|
||||
lock();
|
||||
|
||||
_rw->events.insert_time( start, end - start );
|
||||
|
||||
expand();
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
/** select all events in range (notes straddling the border will also be selected */
|
||||
void
|
||||
Grid::select ( int l, int r )
|
||||
{
|
||||
tick_t start = x_to_ts( l );
|
||||
tick_t end = x_to_ts( r );
|
||||
|
||||
lock();
|
||||
|
||||
_rw->events.select( start, end );
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
/** delete events from /x/ to /l/, compressing time. */
|
||||
void
|
||||
Grid::delete_time ( int l, int r )
|
||||
{
|
||||
tick_t start = x_to_ts( l );
|
||||
tick_t end = x_to_ts( r );
|
||||
|
||||
lock();
|
||||
|
||||
_rw->events.delete_time( start, end );
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
void
|
||||
Grid::select_none ( void )
|
||||
{
|
||||
lock();
|
||||
|
||||
_rw->events.select_none();
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
void
|
||||
Grid::delete_selected ( void )
|
||||
{
|
||||
lock();
|
||||
|
||||
_rw->events.remove_selected();
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
void
|
||||
Grid::move_selected ( int l )
|
||||
{
|
||||
|
||||
long o = x_to_ts( abs( l ) );
|
||||
|
||||
if ( l < 0 )
|
||||
o = 0 - o;
|
||||
|
||||
lock();
|
||||
|
||||
// MESSAGE( "moving by %ld", o );
|
||||
|
||||
_rw->events.move_selected( o );
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
void
|
||||
Grid::crop ( int l, int r )
|
||||
{
|
||||
lock();
|
||||
|
||||
if ( (uint)r < ts_to_x( _rw->length ) )
|
||||
delete_time( r, ts_to_x( _rw->length ) );
|
||||
if ( l > 0 )
|
||||
delete_time( 0, l );
|
||||
|
||||
trim();
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Grid::_relink ( void )
|
||||
{
|
||||
_rw->events.relink();
|
||||
}
|
||||
|
||||
void
|
||||
Grid::record_event ( event *e )
|
||||
{
|
||||
WARNING( "unimplemented" );
|
||||
/* lock(); */
|
||||
|
||||
/* _rw->events.push_back( *e ); */
|
||||
/* _rw->events.sort(); */
|
||||
|
||||
/* unlock(); */
|
||||
}
|
||||
|
||||
/* Dump the event list -- used by pattern / phrase dumppers */
|
||||
void
|
||||
Grid::dump ( smf *f, int channel, bool translate ) const
|
||||
{
|
||||
data *d = const_cast<data *>(_rd);
|
||||
|
||||
midievent me;
|
||||
|
||||
for ( event *e = d->events.first(); e; e = e->next() )
|
||||
{
|
||||
// e->print();
|
||||
me = *e;
|
||||
me.channel( channel );
|
||||
|
||||
/* if ( me.is_note_on() || me.is_note_off() ) */
|
||||
/* if ( translate ) */
|
||||
/* d->mapping.translate( &me ); */
|
||||
|
||||
f->write_event( &me );
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Grid::print ( void ) const
|
||||
{
|
||||
data *d = const_cast<data *>(_rd);
|
||||
|
||||
for ( event *e = d->events.first(); e; e = e->next() )
|
||||
e->print();
|
||||
}
|
||||
|
||||
void
|
||||
Grid::draw ( Canvas *c, int bx, int by, int bw, int bh )
|
||||
{
|
||||
c->clear();
|
||||
|
||||
tick_t start = x_to_ts( bx );
|
||||
tick_t end = x_to_ts( bx + bw );
|
||||
|
||||
data *d = const_cast< data *>( _rd );
|
||||
|
||||
for ( event *e = d->events.first(); e; e = e->next() )
|
||||
{
|
||||
if ( ! e->is_note_on() )
|
||||
continue;
|
||||
|
||||
|
||||
tick_t ts = e->timestamp();
|
||||
if ( ! e->link() )
|
||||
ASSERTION( "wtf. note is not linked!" );
|
||||
|
||||
tick_t tse = e->link()->timestamp();
|
||||
|
||||
// if ( ts >= start && ts <= end )
|
||||
if ( tse >= start && ts <= end )
|
||||
c->draw_dash( ts_to_x( ts ), note_to_y( e->note() ), ts_to_x( tse - ts ),
|
||||
_draw_shape, e->note_velocity(), e->selected() );
|
||||
}
|
||||
|
||||
c->flip();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************/
|
||||
/* Generic accessors -- boy C++ is verbose */
|
||||
/*******************************************/
|
||||
|
||||
/** Returns the index (playhead) for this grid */
|
||||
tick_t
|
||||
Grid::index ( void ) const
|
||||
{
|
||||
/* FIXME: considering the type of tick_t, we really need some kind
|
||||
of locking here to insure that this thread doesn't read _index
|
||||
while the RT thread is writing it. */
|
||||
return _index;
|
||||
}
|
||||
|
||||
bool
|
||||
Grid::playing ( void ) const
|
||||
{
|
||||
return _playing;
|
||||
}
|
||||
|
||||
int
|
||||
Grid::height ( void ) const
|
||||
{
|
||||
return _height;
|
||||
}
|
||||
|
||||
void
|
||||
Grid::height ( int h )
|
||||
{
|
||||
_height = h;
|
||||
}
|
||||
|
||||
tick_t
|
||||
Grid::length ( void ) const
|
||||
{
|
||||
return _rd->length;
|
||||
}
|
||||
|
||||
void
|
||||
Grid::length ( tick_t l )
|
||||
{
|
||||
lock();
|
||||
|
||||
_rw->length = l;
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
int
|
||||
Grid::bars ( void ) const
|
||||
{
|
||||
return ts_to_x( _rd->length ) / (_ppqn * _bpb);
|
||||
}
|
||||
|
||||
int
|
||||
Grid::beats ( void ) const
|
||||
{
|
||||
return ts_to_x( _rd->length ) / _ppqn;
|
||||
}
|
||||
|
||||
int
|
||||
Grid::division ( void ) const
|
||||
{
|
||||
return _bpb * _ppqn;
|
||||
}
|
||||
|
||||
int
|
||||
Grid::subdivision ( void ) const
|
||||
{
|
||||
return _ppqn;
|
||||
}
|
||||
|
||||
int
|
||||
Grid::ppqn ( void ) const
|
||||
{
|
||||
return _ppqn;
|
||||
}
|
||||
|
||||
/** set grid resolution to /n/, where 0 is 1/4 note, 1 is 1/8 note 2 is 1/16 note, etc. */
|
||||
void
|
||||
Grid::resolution ( unsigned int n )
|
||||
{
|
||||
if ( n < 4 )
|
||||
ASSERTION( "bad resolution: %d", n );
|
||||
|
||||
_ppqn = n / 4;
|
||||
DEBUG( "%d setting resolution to %d", n, _ppqn );
|
||||
|
||||
signal_events_change();
|
||||
}
|
||||
|
||||
int
|
||||
Grid::resolution ( void ) const
|
||||
{
|
||||
return _ppqn * 4;
|
||||
}
|
||||
|
||||
int
|
||||
Grid::number ( void ) const
|
||||
{
|
||||
return _number;
|
||||
}
|
||||
|
||||
void
|
||||
Grid::name ( char *s )
|
||||
{
|
||||
if ( _name ) free ( _name );
|
||||
|
||||
_name = s;
|
||||
}
|
||||
|
||||
const char *
|
||||
Grid::name ( void ) const
|
||||
{
|
||||
return _name;
|
||||
}
|
||||
|
||||
void
|
||||
Grid::notes ( char *s )
|
||||
{
|
||||
if ( _notes ) free ( _notes );
|
||||
|
||||
_notes = s;
|
||||
}
|
||||
|
||||
char *
|
||||
Grid::notes ( void ) const
|
||||
{
|
||||
return _notes;
|
||||
}
|
||||
|
||||
void
|
||||
Grid::mode ( int m )
|
||||
{
|
||||
_mode = m;
|
||||
|
||||
signal_settings_change();
|
||||
}
|
||||
|
||||
int
|
||||
Grid::mode ( void ) const
|
||||
{
|
||||
return _mode;
|
||||
}
|
||||
|
||||
int
|
||||
Grid::draw_shape ( void ) const
|
||||
{
|
||||
return _draw_shape;
|
||||
}
|
||||
|
||||
/** return a pointer to a copy of grid's event list in raw form */
|
||||
event_list *
|
||||
Grid::events ( void ) const
|
||||
{
|
||||
data * d = const_cast< data * >( _rd );
|
||||
|
||||
return new event_list( d->events );
|
||||
}
|
||||
|
||||
/** replace event list with a copy of /el/ */
|
||||
void
|
||||
Grid::events ( const event_list * el )
|
||||
{
|
||||
lock();
|
||||
|
||||
_rw->events = *el;
|
||||
|
||||
unlock();
|
||||
}
|
|
@ -0,0 +1,261 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007-2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "event.H"
|
||||
#include "event_list.H"
|
||||
#include "dash.H"
|
||||
#include "const.h"
|
||||
#include "instrument.H"
|
||||
|
||||
class smf;
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
const int MAX_UNDO = 10;
|
||||
|
||||
#include <list>
|
||||
|
||||
#include <sigc++/sigc++.h>
|
||||
using namespace sigc;
|
||||
|
||||
using std::list;
|
||||
|
||||
/* patterns and phrases use this structure */
|
||||
|
||||
class Canvas;
|
||||
|
||||
/* everything that must be lock-free. This whole structure gets copied and swapped
|
||||
for each write method */
|
||||
struct data {
|
||||
|
||||
tick_t length;
|
||||
int state;
|
||||
event_list events;
|
||||
|
||||
data( void )
|
||||
{
|
||||
length = 0;
|
||||
state = 0;
|
||||
}
|
||||
|
||||
data( const data &rhs )
|
||||
{
|
||||
events = rhs.events;
|
||||
length = rhs.length;
|
||||
state = rhs.state;
|
||||
}
|
||||
/* data() { MESSAGE( "allocating new editable data" ); } */
|
||||
// ~data() { MESSAGE( "deleting old undo data, freeing at least %d bytes.", events.size() * sizeof ( event ) + sizeof ( list <event> )); }
|
||||
};
|
||||
|
||||
|
||||
struct Viewport {
|
||||
|
||||
#define format "%d:%d:%d:%d"
|
||||
|
||||
int x, y, w, h;
|
||||
|
||||
Viewport ( void )
|
||||
{
|
||||
x = y = w = h = 0;
|
||||
}
|
||||
|
||||
char *
|
||||
dump ( void ) const
|
||||
{
|
||||
char *s;
|
||||
|
||||
asprintf( &s, format, x, y, w, h );
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
void
|
||||
read( const char *s )
|
||||
{
|
||||
sscanf( s, format, &x, &y, &w, &h );
|
||||
}
|
||||
|
||||
#undef format
|
||||
};
|
||||
|
||||
|
||||
|
||||
class Grid : public trackable
|
||||
{
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
unsigned int _height;
|
||||
char *_notes;
|
||||
char *_name;
|
||||
int _number;
|
||||
|
||||
int _draw_shape;
|
||||
|
||||
unsigned int _bpb; /* beats per bar */
|
||||
unsigned int _ppqn; /* pulses per quarter note (beat) */
|
||||
|
||||
|
||||
/* Used by playback thread. When a pattern or phrase is triggered,
|
||||
these fields are filled in appropriately */
|
||||
mutable tick_t _start; /* absolute start tick of loop */
|
||||
mutable tick_t _end; /* absolute end tick of loop */
|
||||
volatile mutable tick_t _index; /* playhead, relative to start -- primarily used to draw the playhead */
|
||||
volatile mutable bool _playing; /* true if currently playing */
|
||||
|
||||
volatile int _mode; /* mute, solo */
|
||||
|
||||
// FIXME: shouldn't this be "volatile"?
|
||||
// const volatile data *_rd; /* read only data used by RT thread */
|
||||
const data * volatile _rd;
|
||||
data *_rw; /* temporary writable copy used by UI thread */
|
||||
|
||||
list <data *> _history;
|
||||
|
||||
void _remove_marked ( void );
|
||||
event * _event ( int x, int y, bool write ) const;
|
||||
bool _delete ( int x, int y );
|
||||
bool _get ( struct dash *d, int x, int y ) const;
|
||||
void _link ( void );
|
||||
void _relink ( void );
|
||||
void _fix_length ( void );
|
||||
|
||||
|
||||
private:
|
||||
|
||||
int _locked;
|
||||
|
||||
public:
|
||||
|
||||
signal <void> signal_events_change;
|
||||
signal <void> signal_settings_change;
|
||||
|
||||
Viewport viewport; /* used by the Canvas */
|
||||
|
||||
Grid ( void );
|
||||
// FIXME: needs to be virtual?
|
||||
~Grid ( void );
|
||||
Grid ( const Grid &rhs );
|
||||
|
||||
int y_to_note ( int y ) const;
|
||||
int note_to_y ( int n ) const;
|
||||
tick_t x_to_ts ( uint x ) const;
|
||||
uint ts_to_x ( tick_t ts ) const;
|
||||
|
||||
virtual Grid * create ( void ) = 0;
|
||||
virtual Grid * clone ( void ) = 0;
|
||||
virtual void draw_row_names ( Canvas *c ) const = 0;
|
||||
virtual const char * row_name ( int r ) const = 0;
|
||||
|
||||
virtual Grid * by_number ( int n ) const = 0;
|
||||
|
||||
virtual void put ( int x, int y, tick_t l );
|
||||
|
||||
void lock ( void );
|
||||
void unlock ( void );
|
||||
void clear ( void );
|
||||
int get ( struct dash *d, int x, int y ) const;
|
||||
void del ( int x, int y );
|
||||
void adj_velocity ( int x, int y, int n );
|
||||
void adj_duration ( int x, int y, int l );
|
||||
void move ( int x, int y, int nx, int ny );
|
||||
void record_event ( event *e );
|
||||
tick_t index ( void ) const;
|
||||
bool playing ( void ) const;
|
||||
|
||||
int height ( void ) const;
|
||||
void height ( int h );
|
||||
tick_t length ( void ) const;
|
||||
void length ( tick_t l );
|
||||
int bars ( void ) const;
|
||||
int beats ( void ) const;
|
||||
void trim ( void );
|
||||
void expand ( void );
|
||||
int division ( void ) const;
|
||||
int subdivision ( void ) const;
|
||||
int ppqn ( void ) const;
|
||||
int number ( void ) const;
|
||||
void name ( char *s );
|
||||
const char * name ( void ) const;
|
||||
void notes ( char *s );
|
||||
char * notes ( void ) const;
|
||||
virtual void mode ( int m );
|
||||
virtual int mode ( void ) const;
|
||||
int draw_shape ( void ) const;
|
||||
int next_note_x ( int x ) const;
|
||||
int prev_note_x ( int x ) const;
|
||||
|
||||
void fit ( void );
|
||||
|
||||
void delete_selected ( void );
|
||||
void move_selected ( int l );
|
||||
|
||||
void crop ( int l, int r );
|
||||
|
||||
void select ( int x, int y, bool b );
|
||||
void insert_time ( int x, int r );
|
||||
void select ( int start, int end );
|
||||
void delete_time ( int start, int end );
|
||||
void select_none ( void );
|
||||
|
||||
void resolution ( unsigned int n );
|
||||
int resolution ( void ) const;
|
||||
|
||||
void dump ( smf *f, int channel, bool translate ) const;
|
||||
void draw ( Canvas *c, int bx, int by, int bw, int bh );
|
||||
void print ( void ) const;
|
||||
|
||||
event_list * events ( void ) const;
|
||||
void events ( const event_list * el );
|
||||
|
||||
};
|
||||
|
||||
inline int
|
||||
Grid::y_to_note ( int y ) const
|
||||
{
|
||||
return 127 - y;
|
||||
}
|
||||
|
||||
inline int
|
||||
Grid::note_to_y ( int n ) const
|
||||
{
|
||||
return 127 - n;
|
||||
}
|
||||
|
||||
inline tick_t
|
||||
Grid::x_to_ts ( unsigned int x ) const
|
||||
{
|
||||
return (x * PPQN) / _ppqn;
|
||||
|
||||
// return x * (PPQN / _ppqn);
|
||||
}
|
||||
|
||||
inline unsigned int
|
||||
Grid::ts_to_x ( tick_t ts ) const
|
||||
{
|
||||
return (ts * _ppqn) / PPQN;
|
||||
|
||||
// return ts / (PPQN / _ppqn);
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
|
||||
all:
|
||||
@ make -s -C ..
|
|
@ -0,0 +1,236 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007-2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
/* This file contains ALL platform specific drawing code required by the canvas */
|
||||
|
||||
#include "ui.H"
|
||||
#include "draw.H"
|
||||
|
||||
#include "../common.h"
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "../canvas.H"
|
||||
|
||||
struct color_table {
|
||||
int state;
|
||||
unsigned char r, g, b;
|
||||
};
|
||||
|
||||
struct color_table color_defs[] = {
|
||||
{ EMPTY, 38, 38, 38 },
|
||||
{ FULL, 255, 69, 0 },
|
||||
{ PARTIAL, 0, 0, 0 },
|
||||
{ CONTINUED, 80, 80, 80 },
|
||||
{ LINE, 26, 26, 26 },
|
||||
{ HIT, 255, 255, 255 },
|
||||
{ PLAYHEAD, 10, 69, 10 },
|
||||
{ SELECTED, 255, 10, 255 },
|
||||
};
|
||||
|
||||
Fl_Color *state_colors;
|
||||
|
||||
Fl_Color velocity_colors[128];
|
||||
|
||||
void
|
||||
init_colors ( void )
|
||||
{
|
||||
unsigned int i;
|
||||
/* velocity colors */
|
||||
|
||||
for ( i = 128; i--; )
|
||||
velocity_colors[i] = fl_rgb_color( i * 2, 255 - i * 2, 32 );
|
||||
|
||||
state_colors = (Fl_Color*)malloc(sizeof( Fl_Color ) * MAX_STATE );
|
||||
|
||||
for ( i = elementsof( color_defs ); i--; )
|
||||
{
|
||||
state_colors[ color_defs[i].state ] = fl_rgb_color( color_defs[i].r,
|
||||
color_defs[i].g,
|
||||
color_defs[i].b );
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
gui_draw_ruler ( int x, int y, int w, int div_w, int div, int ofs, int p1, int p2 )
|
||||
{
|
||||
/* Across the top */
|
||||
|
||||
fl_font( FL_TIMES, ruler_height );
|
||||
|
||||
int h = ruler_height;
|
||||
|
||||
fl_color( canvas_background_color );
|
||||
|
||||
// fl_rectf( x, y, x + (div_w * w), y + h );
|
||||
fl_rectf( x, y, (div_w * w), h );
|
||||
|
||||
fl_color( FL_RED );
|
||||
|
||||
fl_line( x + div_w / 2, y, x + div_w * w, y );
|
||||
|
||||
char pat[40];
|
||||
int z = div;
|
||||
int i;
|
||||
for ( i = 0; i < w; i++ )
|
||||
if ( 0 == i % z )
|
||||
{
|
||||
int nx = x + (i * div_w) + (div_w / 2);
|
||||
|
||||
fl_color( FL_RED );
|
||||
|
||||
fl_line( nx, y, nx, y + h );
|
||||
|
||||
int k = ofs + i;
|
||||
sprintf( pat, "%i", 1 + (k / z ));
|
||||
|
||||
fl_color( FL_WHITE );
|
||||
fl_draw( pat, nx + div_w / 2, y + h + 1 / 2 );
|
||||
}
|
||||
|
||||
if ( p1 != p2 )
|
||||
{
|
||||
if ( p1 >= 0 )
|
||||
{
|
||||
if ( p1 < p2 )
|
||||
fl_color( FL_GREEN );
|
||||
else
|
||||
fl_color( FL_RED );
|
||||
|
||||
fl_rectf( x + (div_w * p1), y + h / 2, div_w, h / 2 );
|
||||
|
||||
}
|
||||
if ( p2 >= 0 )
|
||||
{
|
||||
if ( p2 < p1 )
|
||||
fl_color( FL_GREEN );
|
||||
else
|
||||
fl_color( FL_RED );
|
||||
fl_rectf( x + (div_w * p2), y + h / 2, div_w, h / 2 );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return h;
|
||||
}
|
||||
|
||||
void
|
||||
gui_clear_area ( int x, int y, int w, int h )
|
||||
{
|
||||
fl_color( canvas_background_color );
|
||||
|
||||
fl_rectf( x, y, w, h );
|
||||
}
|
||||
|
||||
int
|
||||
gui_draw_string ( int x, int y, int w, int h, int color, const char *s, bool draw )
|
||||
{
|
||||
int rw;
|
||||
|
||||
if ( ! s )
|
||||
return 0;
|
||||
|
||||
fl_font( FL_COURIER, min( h, 18 ) );
|
||||
|
||||
rw = fl_width( s );
|
||||
|
||||
if ( fl_not_clipped( x, y, rw, h ) && draw )
|
||||
{
|
||||
gui_clear_area( x, y, w, h );
|
||||
|
||||
if ( color )
|
||||
fl_color( velocity_colors[ color ] );
|
||||
else
|
||||
fl_color( FL_DARK_CYAN );
|
||||
|
||||
fl_draw( s, x, y + h / 2 + fl_descent() );
|
||||
}
|
||||
|
||||
return rw;
|
||||
}
|
||||
|
||||
void
|
||||
gui_draw_shape ( int x, int y, int w, int h, int bw, int shape, int state, int flags, int color )
|
||||
{
|
||||
/* take advantage of FLTK's clipping */
|
||||
if ( ! fl_not_clipped( x, y, w, h ) )
|
||||
return;
|
||||
|
||||
if ( flags & F_PLAYHEAD )
|
||||
state = state == FULL ? HIT : PLAYHEAD;
|
||||
else
|
||||
if ( flags & F_SELECTED )
|
||||
state = SELECTED;
|
||||
|
||||
if ( state == FULL && color )
|
||||
fl_color( velocity_colors[ color ] );
|
||||
else
|
||||
fl_color( state_colors[ state ] );
|
||||
|
||||
switch ( shape )
|
||||
{
|
||||
case CIRCLE:
|
||||
fl_pie( x + bw / 2, y + bw / 2, w - bw, h - bw, 0, 360 );
|
||||
break;
|
||||
case SQUARE:
|
||||
fl_rectf( x + bw, y + bw, w - bw * 2, h - bw * 2 );
|
||||
break;
|
||||
case HALF_CIRCLE:
|
||||
fl_pie( x + bw / 2, y + bw / 2, w - bw, h - bw, 0, 360 / 2);
|
||||
break;
|
||||
case DIAMOND:
|
||||
fl_polygon( x + w / 2, y + bw / 2, x + w - bw / 2, y + h / 2, x + w / 2, y + h - bw / 2, x + bw / 2, y + h / 2 );
|
||||
break;
|
||||
default:
|
||||
ASSERTION( "unknown shape" );
|
||||
break;
|
||||
}
|
||||
|
||||
if ( flags & F_P1 || flags & F_P2 )
|
||||
{
|
||||
if ( flags & F_P1 )
|
||||
fl_color( FL_GREEN );
|
||||
else
|
||||
fl_color( FL_RED );
|
||||
|
||||
int rw = w / 4;
|
||||
int rh = h / 4;
|
||||
|
||||
fl_rectf( x + (w / 2) - (rw / 2), y + (h / 2) - (rh / 2), rw, rh );
|
||||
}
|
||||
}
|
||||
|
||||
extern UI *ui;
|
||||
/** inform the user of something via a status bar */
|
||||
void
|
||||
gui_status ( const char *fmt, ... )
|
||||
{
|
||||
va_list args;
|
||||
|
||||
static char pat[256];
|
||||
|
||||
if ( fmt )
|
||||
{
|
||||
va_start( args, fmt );
|
||||
vsnprintf( pat, 256, fmt, args );
|
||||
va_end( args );
|
||||
}
|
||||
|
||||
ui->status->value( pat );
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
/* enum { */
|
||||
/* EMPTY, */
|
||||
/* FULL, */
|
||||
/* PARTIAL, */
|
||||
/* CONTINUED, */
|
||||
/* HIT, */
|
||||
/* RING, */
|
||||
/* SELECTED, */
|
||||
/* LINE, */
|
||||
/* PLAYHEAD */
|
||||
/* }; */
|
||||
|
||||
/* canvas node states */
|
||||
enum {
|
||||
/* real */
|
||||
EMPTY, /* nothing */
|
||||
FULL, /* dot or dash head */
|
||||
PARTIAL,
|
||||
CONTINUED, /* dash tail */
|
||||
/* virtual */
|
||||
HIT, /* playhead hit */
|
||||
LINE, /* beat line */
|
||||
PLAYHEAD,
|
||||
SELECTED,
|
||||
MAX_STATE,
|
||||
};
|
||||
|
||||
#define MAX_REAL_STATE HIT
|
||||
|
||||
#define STATE_MASK 0x0F
|
||||
#define STATE_FLAG_MASK (~ (STATE_MASK) )
|
||||
|
||||
/* flags */
|
||||
enum {
|
||||
F_PLAYHEAD = 1 << 0, /* playhead is on item */
|
||||
F_P1 = 1 << 1,
|
||||
F_P2 = 1 << 2,
|
||||
F_SELECTED = 1 << 3 /* item is selected */
|
||||
};
|
||||
|
||||
|
||||
/* shapes */
|
||||
enum {
|
||||
CIRCLE,
|
||||
HALF_CIRCLE,
|
||||
SQUARE,
|
||||
DIAMOND,
|
||||
HEXAGON
|
||||
};
|
||||
|
||||
const int ruler_height = 14;
|
||||
|
||||
void init_colors ( void );
|
||||
int gui_draw_ruler ( int x, int y, int w, int div_w, int div, int ofs, int p1, int p2 );
|
||||
int gui_draw_string ( int x, int y, int w, int h, int color, const char *s, bool draw );
|
||||
void gui_draw_shape ( int x, int y, int w, int h, int bw, int shape, int state, int flags, int color );
|
||||
void gui_clear_area ( int x, int y, int w, int h );
|
||||
void gui_status ( const char *fmt, ... );
|
|
@ -0,0 +1,564 @@
|
|||
# data file for the Fltk User Interface Designer (fluid)
|
||||
version 1.0107
|
||||
header_name {.H}
|
||||
code_name {.C}
|
||||
comment {//
|
||||
// Copyright (C) 2008 Jonathan Moore Liles
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
} {in_source in_header
|
||||
}
|
||||
|
||||
decl {\#include "../grid.H"} {}
|
||||
|
||||
decl {\#include "../scale.H"} {}
|
||||
|
||||
decl {extern Fl_Color velocity_colors[];} {}
|
||||
|
||||
decl {class Event_Widget;} {public
|
||||
}
|
||||
|
||||
class Event_Editor {open
|
||||
} {
|
||||
decl {int _h;} {}
|
||||
decl {Grid *_grid;} {}
|
||||
decl {event_list *_old;} {}
|
||||
decl {event_list *_el;} {}
|
||||
decl {int _y;} {}
|
||||
Function {make_window( Grid *g )} {open
|
||||
} {
|
||||
Fl_Window window {
|
||||
label {Event Editor}
|
||||
callback {delete _el;
|
||||
|
||||
_grid->events( _old );
|
||||
|
||||
delete _old;
|
||||
|
||||
delete window;} open
|
||||
xywh {704 82 659 803} type Double box DOWN_BOX resizable
|
||||
code0 {\#include "event_edit.H"}
|
||||
code1 {\#include "../grid.H"}
|
||||
code2 {\#include "../event_list.H"} modal size_range {0 0 659 803} visible
|
||||
} {
|
||||
Fl_Pack {} {
|
||||
label {Event List} open
|
||||
xywh {10 23 640 738} type HORIZONTAL
|
||||
} {
|
||||
Fl_Scroll scroll_w {open
|
||||
xywh {10 24 620 737} type HORIZONTAL box DOWN_BOX labeltype NO_LABEL resizable
|
||||
} {
|
||||
Fl_Pack pack {open
|
||||
xywh {10 24 620 737} when 6 resizable
|
||||
} {}
|
||||
}
|
||||
Fl_Scrollbar scroll_bar {
|
||||
user_data this user_data_type {Event_Editor*}
|
||||
callback {v->scroll( o->value() );
|
||||
v->update_widgets();}
|
||||
xywh {629 23 20 738} when 3
|
||||
}
|
||||
}
|
||||
Fl_Return_Button {} {
|
||||
label {&Save}
|
||||
callback {delete window;
|
||||
delete _el;
|
||||
delete _old;}
|
||||
xywh {489 771 76 25}
|
||||
}
|
||||
Fl_Button {} {
|
||||
label {&Discard}
|
||||
callback {window->do_callback();}
|
||||
xywh {575 771 74 25}
|
||||
}
|
||||
Fl_Button {} {
|
||||
label Del
|
||||
user_data this user_data_type {Event_Editor *}
|
||||
callback {_el->remove_selected();
|
||||
|
||||
sync();}
|
||||
xywh {10 771 74 25} shortcut 0xffff color 88
|
||||
}
|
||||
Fl_Menu_Button {} {
|
||||
label {&Insert}
|
||||
user_data this user_data_type {Event_Editor *}
|
||||
callback {if ( o->value() == 0 )
|
||||
{
|
||||
// note;
|
||||
|
||||
event *on = new event;
|
||||
event *off = new event;
|
||||
|
||||
on->status( event::NOTE_ON );
|
||||
on->note( 64 );
|
||||
on->note_velocity( 64 );
|
||||
|
||||
off->status( event::NOTE_OFF );
|
||||
off->note( 64 );
|
||||
off->timestamp( 1 );
|
||||
off->note_velocity( 64 );
|
||||
|
||||
on->link( off );
|
||||
|
||||
_el->insert( on );
|
||||
_el->insert( off );
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
event *e = new event;
|
||||
|
||||
int opcode = e->name( o->menu()[ o->value() ].text );
|
||||
|
||||
if ( opcode < 0 )
|
||||
return;
|
||||
|
||||
e->status( opcode );
|
||||
|
||||
Event_Widget *ew = v->value();
|
||||
|
||||
if ( ew && ew->ev() )
|
||||
e->timestamp( ew->ev()->timestamp() );
|
||||
|
||||
|
||||
_el->insert( e );
|
||||
}
|
||||
|
||||
sync();} open
|
||||
xywh {94 771 121 25} color 63
|
||||
} {
|
||||
MenuItem {} {
|
||||
label Note
|
||||
xywh {10 10 40 25}
|
||||
}
|
||||
MenuItem {} {
|
||||
label Aftertouch
|
||||
xywh {50 50 40 25}
|
||||
}
|
||||
MenuItem {} {
|
||||
label {Control Change}
|
||||
xywh {20 20 40 25}
|
||||
}
|
||||
MenuItem {} {
|
||||
label {Program Change}
|
||||
xywh {30 30 40 25}
|
||||
}
|
||||
MenuItem {} {
|
||||
label {Channel Pressure}
|
||||
xywh {60 60 40 25}
|
||||
}
|
||||
MenuItem {} {
|
||||
label {Pitch Wheel}
|
||||
xywh {40 40 40 25}
|
||||
}
|
||||
}
|
||||
}
|
||||
code {// keep a copy
|
||||
_old = g->events();
|
||||
_el = g->events();
|
||||
|
||||
_grid = g;
|
||||
_y = 0;
|
||||
|
||||
_h = scroll_w->h() / 24;
|
||||
|
||||
// create widgets.
|
||||
|
||||
for ( int n = _h; n--; )
|
||||
{
|
||||
Event_Widget *ew = new Event_Widget( 0, 0, pack->w(), 24, 0 );
|
||||
|
||||
ew->callback( cb_changed, (void*)this );
|
||||
ew->when( FL_WHEN_CHANGED );
|
||||
|
||||
pack->add( ew );
|
||||
}
|
||||
|
||||
pack->end();
|
||||
|
||||
// Fl_Pack has a bug--it doesn't resize children until we resize it.
|
||||
pack->resize( scroll_w->x(), scroll_w->y(), scroll_w->w(), scroll_w->h() );
|
||||
|
||||
scroll_bar->minimum( 0 );
|
||||
scroll_bar->maximum( _el->size() - _h );
|
||||
|
||||
update_widgets();} {}
|
||||
}
|
||||
Function {sync( void )} {open return_type void
|
||||
} {
|
||||
code {MESSAGE( "syncing events to grid" );
|
||||
|
||||
_grid->events( _el );
|
||||
|
||||
update_widgets();} {}
|
||||
}
|
||||
Function {update_widgets( void )} {open return_type void
|
||||
} {
|
||||
code {// draw em
|
||||
|
||||
|
||||
int i = 0;
|
||||
if ( ! _el->empty() )
|
||||
for ( event* e = (*_el)[_y]; e && i < _h; (e = e->next()), i++ )
|
||||
{
|
||||
Event_Widget *ew = (Event_Widget *)(pack->child( i ));
|
||||
|
||||
ew->ev( e );
|
||||
ew->show();
|
||||
}
|
||||
|
||||
// hide unused widgets.
|
||||
|
||||
for ( int j = i; j < _h; j++ )
|
||||
{
|
||||
Event_Widget *ew = (Event_Widget *)(pack->child( j ));
|
||||
ew->ev( NULL );
|
||||
ew->hide();
|
||||
}
|
||||
|
||||
// ajdust scrollbar
|
||||
|
||||
int sbmax = _el->size() - _h;
|
||||
|
||||
if ( sbmax > 0 )
|
||||
{
|
||||
scroll_bar->maximum( sbmax );
|
||||
scroll_bar->show();
|
||||
|
||||
scroll_w->size( scroll_w->parent()->w() - scroll_bar->w(), scroll_w->parent()->h() );
|
||||
}
|
||||
else
|
||||
{
|
||||
scroll_bar->hide();
|
||||
scroll_w->size( scroll_w->parent()->w(), scroll_w->parent()->h() );
|
||||
}} {selected
|
||||
}
|
||||
}
|
||||
Function {scroll( int y )} {open return_type void
|
||||
} {
|
||||
code {_y = y;} {}
|
||||
}
|
||||
Function {value( void )} {return_type {Event_Widget *}
|
||||
} {
|
||||
code {for ( int i = _h; i--; )
|
||||
{
|
||||
Event_Widget *w = (Event_Widget*)pack->child( i );
|
||||
if ( w->selected() )
|
||||
return w;
|
||||
}
|
||||
|
||||
return NULL;} {}
|
||||
}
|
||||
Function {cb_changed( Fl_Widget *w, void *ee )} {open return_type {static void}
|
||||
} {
|
||||
code {Event_Widget *ew = (Event_Widget*)w;
|
||||
|
||||
if ( ew->changed() )
|
||||
// sorting order changed.
|
||||
((Event_Editor*)ee)->_el->sort( ew->ev() );
|
||||
|
||||
((Event_Editor*)ee)->sync();} {}
|
||||
}
|
||||
}
|
||||
|
||||
Function {event_editor( Grid *g )} {open C return_type void
|
||||
} {
|
||||
code {Event_Editor ee;
|
||||
|
||||
|
||||
Fl_Window *w = ee.make_window( g );
|
||||
|
||||
w->modal();
|
||||
w->show();
|
||||
|
||||
while( w->shown() )
|
||||
Fl::wait();} {}
|
||||
}
|
||||
|
||||
widget_class Event_Widget {user_data_type {void *} open
|
||||
xywh {969 357 594 31} type Single
|
||||
code0 {\#include "../event.H"}
|
||||
class Fl_Group size_range {400 24 0 24} visible
|
||||
} {
|
||||
decl {static const Fl_Color note_color = FL_BLACK;} {}
|
||||
decl {static const Fl_Color control_color = FL_BLUE;} {}
|
||||
decl {static const Fl_Color prog_color = FL_RED;} {}
|
||||
decl {static const Fl_Color pressure_color = FL_YELLOW;} {}
|
||||
decl {static const Fl_Color after_color = FL_CYAN;} {}
|
||||
decl {static const Fl_Color pitch_color = FL_GREEN} {}
|
||||
decl {event *_event;} {}
|
||||
decl {Fl_Group *tab;} {}
|
||||
Function {ev( event * e )} {open return_type void
|
||||
} {
|
||||
code {if ( e && ( _event == NULL ) )
|
||||
activate();
|
||||
else
|
||||
if ( ! e )
|
||||
{
|
||||
_event = NULL;
|
||||
deactivate();
|
||||
return;
|
||||
}
|
||||
|
||||
activate();
|
||||
|
||||
_event = e;
|
||||
|
||||
name->label( e->name() );
|
||||
time->value( e->timestamp() );
|
||||
|
||||
// hide all tabs
|
||||
for ( int i = 2; i < children(); i++ )
|
||||
child( i )->hide();
|
||||
|
||||
Fl_Valuator *d1, *d2;
|
||||
|
||||
name->color( FL_BLACK );
|
||||
name->value( e->selected() );
|
||||
|
||||
// display the proper subtype
|
||||
switch ( e->opcode() )
|
||||
{
|
||||
\#define TWO d1 = (Fl_Valuator*)tab->child( 0 ); d2 = (Fl_Valuator*)tab->child( 1 )
|
||||
\#define ONE d1 = (Fl_Valuator*)tab->child( 0 ); d2 = NULL
|
||||
|
||||
case midievent::NOTE_ON:
|
||||
case midievent::NOTE_OFF:
|
||||
tab = note_tab;
|
||||
name->color( note_color );
|
||||
|
||||
note_name->label( Scale::chromatic_name( e->note() ) );
|
||||
note_name->labelcolor( velocity_colors[ e->note_velocity() ] );
|
||||
|
||||
TWO;
|
||||
break;
|
||||
case midievent::CONTROL_CHANGE:
|
||||
tab = control_tab;
|
||||
name->color( control_color );
|
||||
|
||||
TWO;
|
||||
break;
|
||||
case midievent::AFTERTOUCH:
|
||||
tab = after_tab;
|
||||
name->color( after_color );
|
||||
|
||||
TWO;
|
||||
break;
|
||||
case midievent::CHANNEL_PRESSURE:
|
||||
tab = pressure_tab;
|
||||
name->color( pressure_color );
|
||||
|
||||
ONE;
|
||||
break;
|
||||
case midievent::PROGRAM_CHANGE:
|
||||
tab = prog_tab;
|
||||
name->color( prog_color );
|
||||
|
||||
ONE;
|
||||
break;
|
||||
case midievent::PITCH_WHEEL:
|
||||
tab = pitch_tab;
|
||||
name->color( pitch_color );
|
||||
|
||||
ONE;
|
||||
d1->value( e->pitch() );
|
||||
goto pitch;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
byte_t D1, D2;
|
||||
|
||||
e->data( &D1, &D2 );
|
||||
|
||||
d1->value( D1 );
|
||||
if ( d2 )
|
||||
d2->value( D2 );
|
||||
|
||||
|
||||
pitch:
|
||||
|
||||
// show the current tab
|
||||
tab->show();
|
||||
|
||||
time->redraw();
|
||||
name->redraw();
|
||||
|
||||
// redraw();} {}
|
||||
}
|
||||
Function {ev( void )} {open return_type {event *}
|
||||
} {
|
||||
code {return _event;} {}
|
||||
}
|
||||
Fl_Value_Input time {
|
||||
callback {if ( _event->is_note_off() )
|
||||
{
|
||||
if ( o->value() < _event->link()->timestamp() )
|
||||
{
|
||||
o->value( _event->timestamp() );
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
if ( _event->is_note_on() )
|
||||
if ( o->value() > _event->link()->timestamp() )
|
||||
{
|
||||
o->value( _event->timestamp() );
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
_event->timestamp( o->value() );
|
||||
|
||||
set_changed();
|
||||
do_callback();}
|
||||
xywh {3 0 125 24} labeltype NO_LABEL align 0 when 8 maximum 0
|
||||
code1 {o->maximum( (unsigned long)-1 );}
|
||||
}
|
||||
Fl_Button name {
|
||||
label {<Event Name>} user_data_type {void*}
|
||||
callback {if ( o->value() )
|
||||
_event->select();
|
||||
else
|
||||
_event->deselect();
|
||||
|
||||
do_callback();}
|
||||
xywh {132 -1 149 25} type Toggle when 1
|
||||
}
|
||||
Fl_Group note_tab {open
|
||||
xywh {282 0 309 24} align 16
|
||||
} {
|
||||
Fl_Counter {} {
|
||||
label {Note:}
|
||||
user_data this
|
||||
callback cb_note
|
||||
xywh {359 0 76 24} type Simple align 4 minimum 0 maximum 127 step 1
|
||||
}
|
||||
Fl_Counter {} {
|
||||
label {Velocity:}
|
||||
user_data this
|
||||
callback cb_msb
|
||||
xywh {518 0 73 24} type Simple align 4 minimum 0 maximum 127 step 1
|
||||
}
|
||||
Fl_Box note_name {
|
||||
label {A\#}
|
||||
private xywh {284 1 31 24} labeltype SHADOW_LABEL labelfont 14 labelcolor 135
|
||||
}
|
||||
}
|
||||
Fl_Group after_tab {open
|
||||
xywh {317 0 277 24} align 16 hide
|
||||
} {
|
||||
Fl_Counter {} {
|
||||
label {Note:}
|
||||
user_data this
|
||||
callback cb_note
|
||||
xywh {359 0 76 24} type Simple align 4 minimum 0 maximum 127 step 1
|
||||
}
|
||||
Fl_Counter {} {
|
||||
label {Pressure:}
|
||||
user_data this
|
||||
callback cb_msb
|
||||
xywh {518 0 76 24} type Simple align 4 minimum 0 maximum 127 step 1
|
||||
}
|
||||
}
|
||||
Fl_Group control_tab {open
|
||||
xywh {358 0 238 24} align 16 hide
|
||||
} {
|
||||
Fl_Counter {} {
|
||||
label {Control:}
|
||||
user_data this
|
||||
callback cb_lsb
|
||||
xywh {360 0 76 24} type Simple align 4 minimum 0 maximum 127 step 1
|
||||
}
|
||||
Fl_Counter {} {
|
||||
label {Value:}
|
||||
user_data this
|
||||
callback cb_msb
|
||||
xywh {517 0 76 24} type Simple align 4 minimum 0 maximum 127 step 1
|
||||
}
|
||||
}
|
||||
Fl_Group prog_tab {open
|
||||
xywh {287 0 238 24} align 16 hide
|
||||
} {
|
||||
Fl_Counter {} {
|
||||
label {Program:}
|
||||
user_data this
|
||||
callback cb_lsb
|
||||
xywh {360 0 76 24} type Simple align 4 minimum 0 maximum 127 step 1
|
||||
}
|
||||
}
|
||||
Fl_Group pitch_tab {open
|
||||
xywh {306 0 290 24} align 16 hide
|
||||
} {
|
||||
Fl_Slider {} {
|
||||
label {Pitch:} user_data_type {void *}
|
||||
callback {_event->pitch( o->value() );
|
||||
do_callback();}
|
||||
xywh {358 0 238 24} type Horizontal align 4 when 4 minimum -8192 maximum 8191 step 1
|
||||
}
|
||||
}
|
||||
Fl_Group pressure_tab {open
|
||||
xywh {307 0 290 24} align 16 hide
|
||||
} {
|
||||
Fl_Slider {} {
|
||||
label {Pressure:}
|
||||
user_data this
|
||||
callback cb_lsb
|
||||
xywh {358 0 239 24} type Horizontal align 4 when 4 maximum 127 step 1
|
||||
}
|
||||
}
|
||||
Function {select( bool b )} {open return_type void
|
||||
} {
|
||||
code {/*
|
||||
_selected = b;
|
||||
|
||||
if ( b )
|
||||
name->color( FL_WHITE );
|
||||
|
||||
redraw();
|
||||
*/} {}
|
||||
}
|
||||
Function {button()} {open return_type {Fl_Button *}
|
||||
} {
|
||||
code {return name;} {}
|
||||
}
|
||||
Function {selected( void )} {open return_type bool
|
||||
} {
|
||||
code {/*
|
||||
int n = name->value();
|
||||
name->value( 0 );
|
||||
return n;
|
||||
*/
|
||||
|
||||
return name->value();} {}
|
||||
}
|
||||
Function {cb_lsb( Fl_Valuator *o, Event_Widget *w )} {open return_type {static void}
|
||||
} {
|
||||
code {w->ev()->lsb( o->value() );
|
||||
|
||||
w->do_callback();} {}
|
||||
}
|
||||
Function {cb_msb( Fl_Valuator *o, Event_Widget *w )} {open return_type {static void}
|
||||
} {
|
||||
code {w->ev()->msb( o->value() );
|
||||
w->do_callback();} {}
|
||||
}
|
||||
Function {cb_note( Fl_Valuator *o, Event_Widget *w )} {open return_type {static void}
|
||||
} {
|
||||
code {w->ev()->note( o->value() );
|
||||
w->do_callback();} {}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,292 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007-2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#include <cstring>
|
||||
|
||||
/* system */
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../non.H"
|
||||
#include "draw.H"
|
||||
#include "../common.h"
|
||||
|
||||
#include "ui.H"
|
||||
|
||||
extern UI *ui;
|
||||
|
||||
void
|
||||
async_exec ( const char *cmd )
|
||||
{
|
||||
if ( fork() )
|
||||
{
|
||||
printf( "Executed command \"%s\"\n", cmd );
|
||||
return;
|
||||
}
|
||||
|
||||
system( cmd );
|
||||
exit(0);
|
||||
}
|
||||
|
||||
int
|
||||
canvas_input_callback ( O_Canvas *widget, Canvas *c, int m )
|
||||
{
|
||||
|
||||
static int lmb_down;
|
||||
|
||||
// MESSAGE( "Hello, my name is %s", widget->parent()->label() );
|
||||
|
||||
|
||||
int ow, oh;
|
||||
|
||||
int x, y;
|
||||
int processed = 1;
|
||||
|
||||
x = Fl::event_x();
|
||||
y = Fl::event_y();
|
||||
|
||||
|
||||
ow = c->grid()->viewport.w;
|
||||
oh = c->grid()->viewport.h;
|
||||
|
||||
switch ( m )
|
||||
{
|
||||
case FL_KEYBOARD:
|
||||
{
|
||||
|
||||
/* if ( Fl::event_state() & FL_ALT || Fl::event_state() & FL_CTRL ) */
|
||||
/* // this is more than a simple keypress. */
|
||||
/* return 0; */
|
||||
|
||||
|
||||
if ( Fl::event_state() & FL_CTRL )
|
||||
{
|
||||
switch ( Fl::event_key() )
|
||||
{
|
||||
case FL_Delete:
|
||||
c->delete_time();
|
||||
break;
|
||||
case FL_Insert:
|
||||
c->insert_time();
|
||||
break;
|
||||
case FL_Right:
|
||||
c->pan( TO_NEXT_NOTE, 0 );
|
||||
break;
|
||||
case FL_Left:
|
||||
c->pan( TO_PREV_NOTE, 0 );
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
if ( Fl::event_state() & FL_ALT )
|
||||
return 0;
|
||||
|
||||
switch ( Fl::event_key() )
|
||||
{
|
||||
case FL_Left:
|
||||
c->pan( LEFT, 1 );
|
||||
break;
|
||||
case FL_Right:
|
||||
c->pan( RIGHT, 1 );
|
||||
break;
|
||||
case FL_Up:
|
||||
c->pan( UP, 1 );
|
||||
break;
|
||||
case FL_Down:
|
||||
c->pan( DOWN, 1 );
|
||||
break;
|
||||
case FL_Delete:
|
||||
if ( Fl::event_state() & FL_SHIFT )
|
||||
c->grid()->clear();
|
||||
else
|
||||
c->grid()->delete_selected();
|
||||
break;
|
||||
default:
|
||||
/* have to do this to get shifted keys */
|
||||
switch ( *Fl::event_text() )
|
||||
{
|
||||
case 'f':
|
||||
c->pan( TO_PLAYHEAD, 0 );
|
||||
break;
|
||||
case 'r':
|
||||
c->select_range();
|
||||
break;
|
||||
case 'q':
|
||||
c->grid()->select_none();
|
||||
break;
|
||||
case '1':
|
||||
c->h_zoom( 2.0f );
|
||||
break;
|
||||
case '2':
|
||||
c->h_zoom( 0.5f );
|
||||
break;
|
||||
case '3':
|
||||
c->v_zoom( 2.0f );
|
||||
break;
|
||||
case '4':
|
||||
c->v_zoom( 0.5f );
|
||||
break;
|
||||
case ' ':
|
||||
transport.toggle();
|
||||
break;
|
||||
case '[':
|
||||
{
|
||||
Grid *g = NULL;
|
||||
|
||||
#define IS_PATTERN (widget->parent() == ui->pattern_tab)
|
||||
#define IS_PHRASE (widget->parent() == ui->phrase_tab)
|
||||
#define IS_SEQUENCE (widget->parent() == ui->sequence_tab)
|
||||
|
||||
/* is there no nicer way to do this shit in c++? */
|
||||
g = c->grid()->by_number( c->grid()->number() - 1 );
|
||||
|
||||
if ( g )
|
||||
{
|
||||
c->grid( g );
|
||||
processed = 2;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ']':
|
||||
{
|
||||
Grid *g = NULL;
|
||||
|
||||
/* is there no nicer way to do this shit in c++? */
|
||||
g = c->grid()->by_number( c->grid()->number() + 1 );
|
||||
|
||||
if ( g )
|
||||
{
|
||||
c->grid( g );
|
||||
processed = 2;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case '<':
|
||||
c->move_selected( LEFT, 1 );
|
||||
break;
|
||||
case '>':
|
||||
c->move_selected( RIGHT, 1 );
|
||||
break;
|
||||
case ',':
|
||||
c->move_selected( UP, 1 );
|
||||
break;
|
||||
case '.':
|
||||
c->move_selected( DOWN, 1 );
|
||||
break;
|
||||
case 'C':
|
||||
c->crop();
|
||||
break;
|
||||
case 'c':
|
||||
{
|
||||
c->grid( c->grid()->create() );
|
||||
|
||||
ui->update_sequence_widgets();
|
||||
|
||||
break;
|
||||
}
|
||||
case 'd':
|
||||
{
|
||||
MESSAGE( "duplicating thing" );
|
||||
c->grid( c->grid()->clone() );
|
||||
|
||||
// number of phrases may have changed.
|
||||
ui->update_sequence_widgets();
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
case 'D':
|
||||
c->duplicate_range();
|
||||
break;
|
||||
case 't':
|
||||
c->grid()->trim();
|
||||
break;
|
||||
|
||||
case 'm':
|
||||
c->grid()->mode( c->grid()->mode() == MUTE ? PLAY : MUTE );
|
||||
break;
|
||||
case 's':
|
||||
c->grid()->mode( c->grid()->mode() == SOLO ? PLAY : SOLO );
|
||||
break;
|
||||
default:
|
||||
processed = 0;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case FL_PUSH:
|
||||
{
|
||||
switch ( Fl::event_button() )
|
||||
{
|
||||
case 1:
|
||||
lmb_down = true;
|
||||
if ( IS_PATTERN && Fl::event_state() & FL_CTRL )
|
||||
c->randomize_row( y );
|
||||
else
|
||||
c->set( x, y );
|
||||
break;
|
||||
case 3:
|
||||
c->unset( x, y );
|
||||
break;
|
||||
case 2:
|
||||
c->select( x, y );
|
||||
break;
|
||||
default:
|
||||
processed = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case FL_RELEASE:
|
||||
break;
|
||||
case FL_DRAG:
|
||||
break;
|
||||
/* case FL_DRAG: */
|
||||
/* { */
|
||||
/* if ( ! lmb_down ) */
|
||||
/* break; */
|
||||
|
||||
/* // c->grid()->move( x, y, nx ); */
|
||||
/* break; */
|
||||
/* } */
|
||||
case FL_MOUSEWHEEL:
|
||||
{
|
||||
if ( Fl::event_state() & FL_CTRL )
|
||||
c->adj_length( x, y, (0 - Fl::event_dy()) );
|
||||
else
|
||||
c->adj_color( x, y, (0 - Fl::event_dy()) * 5 );
|
||||
break;
|
||||
}
|
||||
default:
|
||||
processed = 0;
|
||||
}
|
||||
|
||||
int nw, nh;
|
||||
nw = c->grid()->viewport.w;
|
||||
nh = c->grid()->viewport.h;
|
||||
|
||||
// layout of canvas changed... requires clearing.
|
||||
if ( oh != nh || ow != nw )
|
||||
return 3;
|
||||
|
||||
return processed;
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "../canvas.H"
|
||||
#include "../common.h"
|
||||
|
||||
class O_Canvas;
|
||||
|
||||
void disp_message ( char *s );
|
||||
void async_exec ( const char *cmd );
|
||||
int canvas_input_callback ( O_Canvas *widget, Canvas *c, int m );
|
||||
int disp_init ( int argc, char **argv );
|
|
@ -0,0 +1,207 @@
|
|||
# data file for the Fltk User Interface Designer (fluid)
|
||||
version 1.0107
|
||||
header_name {.H}
|
||||
code_name {.C}
|
||||
comment {//
|
||||
// Copyright (C) 2008 Jonathan Moore Liles
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
} {in_source in_header
|
||||
}
|
||||
|
||||
class List_Chooser {} {
|
||||
Function {List_Chooser( const char *name, const char *action )} {open
|
||||
} {
|
||||
Fl_Window window {open
|
||||
xywh {696 57 310 524} type Single non_modal size_range {310 524 0 0} visible
|
||||
} {
|
||||
Fl_Pack {} {open
|
||||
xywh {2 10 303 501}
|
||||
code0 {o->spacing( 20 );}
|
||||
} {
|
||||
Fl_Browser browser {
|
||||
label name
|
||||
xywh {15 30 280 447} type Multi color 32 selection_color 47 align 1 textcolor 55 resizable
|
||||
code0 {o->label( name );}
|
||||
}
|
||||
Fl_Group {} {open
|
||||
xywh {17 485 278 26}
|
||||
} {
|
||||
Fl_Button {} {
|
||||
label Cancel
|
||||
callback {browser->clear();
|
||||
window->hide();}
|
||||
xywh {17 485 75 26}
|
||||
}
|
||||
Fl_Return_Button button {
|
||||
label action
|
||||
callback {window->hide();}
|
||||
xywh {105 485 190 26}
|
||||
code0 {o->label( action );}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Function {show()} {open
|
||||
} {
|
||||
code {window->show();} {}
|
||||
}
|
||||
Function {shown()} {open return_type bool
|
||||
} {
|
||||
code {return window->shown();} {}
|
||||
}
|
||||
Function {add( const char *item )} {open
|
||||
} {
|
||||
code {browser->add( item );} {}
|
||||
}
|
||||
}
|
||||
|
||||
decl {\#include "../transport.H"} {selected public
|
||||
}
|
||||
|
||||
decl {extern Fl_Color velocity_colors[];} {}
|
||||
|
||||
decl {\#include <Fl/Fl_Box.H>} {}
|
||||
|
||||
decl {\#include <stdio.h>} {}
|
||||
|
||||
decl {\#include <stdlib.h>} {}
|
||||
|
||||
widget_class Visual_Metronome {open
|
||||
xywh {201 31 1278 1003} type Single hide resizable
|
||||
code0 {_bpb = _tpb = -1; _beat = _tick = _flip = 0;}
|
||||
code1 {o->box( FL_NO_BOX );}
|
||||
code2 {o->label( 0 );}
|
||||
class Fl_Group
|
||||
} {
|
||||
Fl_Slider progress {
|
||||
private xywh {119 95 1149 23} type Horizontal box ROUND_UP_BOX color 32 selection_color 71
|
||||
code0 {o->resize( x(), (y() + h()) - (h() / 3), w(), h() / 3 );}
|
||||
code1 {o->slider_size( 0.25 );}
|
||||
code2 {o->slider( FL_ROUNDED_BOX );}
|
||||
}
|
||||
Fl_Pack pack {open
|
||||
private xywh {119 7 1149 78} type HORIZONTAL resizable
|
||||
code0 {o->resize( x(), y(), w(), h() - progress->h() );}
|
||||
} {}
|
||||
decl {int _bpb} {}
|
||||
decl {int _tpb} {}
|
||||
decl {int _beat} {}
|
||||
decl {bool _flip} {}
|
||||
decl {int _tick} {}
|
||||
Function {bpb( int b )} {open private return_type void
|
||||
} {
|
||||
code {if ( b == _bpb )
|
||||
return;
|
||||
|
||||
_bpb = b;
|
||||
|
||||
pack->clear();
|
||||
|
||||
int bw = w() / _bpb;
|
||||
|
||||
for ( int i = 1; i <= b; ++i )
|
||||
{
|
||||
Fl_Box *box = new Fl_Box( FL_ROUNDED_BOX, 0, 0, bw, 1, 0 );
|
||||
|
||||
char *pat = (char *)malloc( 4 );
|
||||
|
||||
sprintf( pat, "%d", i );
|
||||
|
||||
box->label( pat );
|
||||
box->color( fl_lighter( FL_GRAY ) );
|
||||
pack->add( box );
|
||||
}
|
||||
|
||||
|
||||
// try to clear the background.
|
||||
|
||||
parent()->parent()->damage( FL_DAMAGE_ALL, x(), y(), w(), h() );
|
||||
redraw();} {}
|
||||
}
|
||||
Function {tpb( int ticks )} {open private return_type void
|
||||
} {
|
||||
code {_tpb = ticks;
|
||||
|
||||
progress->minimum( 0 );
|
||||
progress->maximum( ticks );} {}
|
||||
}
|
||||
Function {beat( int b )} {open private return_type void
|
||||
} {
|
||||
code {if ( b == _beat || b >= _bpb )
|
||||
return;
|
||||
|
||||
|
||||
pack->child( _beat )->color( fl_lighter( FL_GRAY ) );
|
||||
pack->child( _beat )->redraw();
|
||||
|
||||
pack->child( b )->color( velocity_colors[ b * 127 / _bpb ] );
|
||||
pack->child( b )->redraw();
|
||||
|
||||
_flip = ! _flip;
|
||||
|
||||
_beat = b;} {}
|
||||
}
|
||||
Function {tick( int tick )} {open private return_type void
|
||||
} {
|
||||
code {if ( tick == _tick )
|
||||
return;
|
||||
|
||||
if ( _beat < 0 )
|
||||
return;
|
||||
|
||||
if ( _flip )
|
||||
{
|
||||
progress->selection_color( FL_RED );
|
||||
progress->value( _tpb - tick );
|
||||
}
|
||||
else
|
||||
{
|
||||
progress->selection_color( FL_GREEN );
|
||||
progress->value( tick );
|
||||
}
|
||||
|
||||
\#if 0
|
||||
Fl_Widget *c = pack->child( _beat );
|
||||
|
||||
if ( c )
|
||||
{
|
||||
c->color( velocity_colors[ tick * 127 / _tpb ] );
|
||||
c->redraw();
|
||||
}
|
||||
\#endif
|
||||
|
||||
_tick = tick;} {}
|
||||
}
|
||||
Function {resize( int X, int Y, int W, int H )} {open return_type void
|
||||
} {
|
||||
code {// pack->resize( 0, 0, W, pack->h() );
|
||||
|
||||
|
||||
Fl_Group::resize( X, Y, W, H );
|
||||
|
||||
for ( int i = pack->children(); i-- ; )
|
||||
pack->child( i )->resize( 0, 0, W / pack->children(), pack->h() );} {}
|
||||
}
|
||||
Function {update( void )} {open return_type void
|
||||
} {
|
||||
code {bpb( transport.beats_per_bar );
|
||||
tpb( transport.ticks_per_beat );
|
||||
beat( transport.beat - 1 );
|
||||
tick( transport.tick - 1 );} {}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,226 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "instrument.H"
|
||||
#include "common.h"
|
||||
#include "const.h"
|
||||
#include "config.h"
|
||||
|
||||
#include <fnmatch.h>
|
||||
#include <dirent.h>
|
||||
|
||||
|
||||
list <Instrument *> Instrument::instruments;
|
||||
|
||||
Instrument::Instrument ( const char *name )
|
||||
{
|
||||
|
||||
for ( int i = 0; i < 128; i++ )
|
||||
{
|
||||
_map[i].name = NULL;
|
||||
_map[i].velocity = 100;
|
||||
}
|
||||
|
||||
if ( name )
|
||||
{
|
||||
_name = strdup( name );
|
||||
|
||||
read( name );
|
||||
}
|
||||
else
|
||||
{
|
||||
_name = strdup( "not an instrument" );
|
||||
_height = 0;
|
||||
}
|
||||
|
||||
Instrument::instruments.push_front( this );
|
||||
}
|
||||
|
||||
Instrument *
|
||||
Instrument::open ( const char *name )
|
||||
{
|
||||
list <Instrument *>::iterator i = Instrument::instruments.begin();
|
||||
|
||||
if ( name )
|
||||
{
|
||||
for ( ; i != Instrument::instruments.end(); i++ )
|
||||
if ( 0 == strcmp( (*i)->_name, name ) )
|
||||
return *i;
|
||||
}
|
||||
|
||||
return new Instrument ( name );
|
||||
}
|
||||
|
||||
void
|
||||
Instrument::note ( int from, int to )
|
||||
{
|
||||
// _map[ from ].note = to;
|
||||
WARNING( "what should this do now?" );
|
||||
}
|
||||
|
||||
void
|
||||
Instrument::note_name ( int n, char *s )
|
||||
{
|
||||
if ( _map[ n ].name )
|
||||
free( _map[ n ].name );
|
||||
|
||||
_map[ n ].name = s;
|
||||
}
|
||||
|
||||
void
|
||||
Instrument::velocity ( int n, int v )
|
||||
{
|
||||
_map[ n ].velocity = v;
|
||||
}
|
||||
|
||||
/* Should only be passed NOTE ON/OFF events! */
|
||||
void
|
||||
Instrument::translate ( midievent *e ) const
|
||||
{
|
||||
// int n = e->note();
|
||||
|
||||
// e->note( _map[ n ].note );
|
||||
e->note_velocity( e->note_velocity() * _map[ e->note() ].velocity / 100 );
|
||||
}
|
||||
|
||||
const char *
|
||||
Instrument::note_name ( int n ) const
|
||||
{
|
||||
return _map[ n ].name;
|
||||
}
|
||||
|
||||
int
|
||||
Instrument::height ( void ) const
|
||||
{
|
||||
return _height;
|
||||
}
|
||||
|
||||
int
|
||||
Instrument::velocity ( int n ) const
|
||||
{
|
||||
return _map[ n ].velocity;
|
||||
}
|
||||
|
||||
int
|
||||
Instrument::read ( const char *s )
|
||||
{
|
||||
FILE *fp;
|
||||
|
||||
char pat[512];
|
||||
|
||||
sprintf( pat, "%s%s.inst", SYSTEM_PATH INSTRUMENT_DIR, s );
|
||||
|
||||
if ( ! ( fp = fopen( pat, "r" ) ) )
|
||||
return false;
|
||||
|
||||
struct i_map m;
|
||||
char namebuf[256];
|
||||
int note, velocity;
|
||||
|
||||
int n = 0;
|
||||
while ( 0 < fscanf( fp, "\"%[^\"]\", %d, %d\n", (char*)&namebuf, ¬e, &velocity ) ) n++;
|
||||
|
||||
rewind( fp );
|
||||
|
||||
MESSAGE( "reading %d lines from instrument file \"%s\"", n, s );
|
||||
|
||||
int i;
|
||||
for ( i = 0; i < n; i++ )
|
||||
{
|
||||
fscanf( fp, "\"%[^\"]\", %d, %d\n", (char *)&namebuf, ¬e, &velocity );
|
||||
|
||||
m.name = strdup( namebuf );
|
||||
|
||||
if ( velocity > 100 )
|
||||
{
|
||||
WARNING( "invalid volume percentage in instrument definition");
|
||||
m.velocity = 100;
|
||||
}
|
||||
else
|
||||
m.velocity = velocity;
|
||||
|
||||
DEBUG( "name: \"%s\", note: %d, velocity: %d%%", m.name, note, m.velocity );
|
||||
|
||||
// _map[ (64 + (n / 2)) - i ] = m;
|
||||
|
||||
_map[ note ] = m;
|
||||
}
|
||||
|
||||
_height = n;
|
||||
|
||||
fclose( fp );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static int
|
||||
instrument_filter ( const struct dirent *d )
|
||||
{
|
||||
char suffix[] = "*.inst";
|
||||
|
||||
return 0 == fnmatch( suffix, d->d_name, 0 );
|
||||
}
|
||||
|
||||
/* Returns a list of available instruments */
|
||||
char **
|
||||
Instrument::listing ( void )
|
||||
{
|
||||
char **sa;
|
||||
|
||||
struct dirent **names;
|
||||
int n;
|
||||
|
||||
if ( 0 > ( n = scandir( SYSTEM_PATH INSTRUMENT_DIR, &names, instrument_filter, alphasort ) ) )
|
||||
{
|
||||
WARNING( "couldn't open instrument directory" );
|
||||
return NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
sa = (char **)malloc( sizeof( char * ) * (n + 1) );
|
||||
sa[n] = NULL;
|
||||
|
||||
while (n--)
|
||||
{
|
||||
char *c = rindex( names[n]->d_name, '.' );
|
||||
|
||||
if ( c )
|
||||
*c = '\0';
|
||||
|
||||
MESSAGE( "found instrument: %s", names[n]->d_name );
|
||||
|
||||
sa[n] = strdup( names[n]->d_name );
|
||||
|
||||
free( names[n] );
|
||||
}
|
||||
free( names );
|
||||
|
||||
return sa;
|
||||
}
|
||||
}
|
||||
|
||||
const char *
|
||||
Instrument::name ( void ) const
|
||||
{
|
||||
return _name;
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <list>
|
||||
using std::list;
|
||||
|
||||
#include "event.H"
|
||||
|
||||
struct i_map {
|
||||
char *name;
|
||||
unsigned char velocity;
|
||||
};
|
||||
|
||||
class Instrument
|
||||
{
|
||||
|
||||
static list <Instrument *> instruments;
|
||||
|
||||
char *_name;
|
||||
int _height;
|
||||
|
||||
struct i_map _map[128]; /* note / velocity mappings */
|
||||
|
||||
Instrument ( const char *name );
|
||||
int read ( const char *s );
|
||||
|
||||
public:
|
||||
|
||||
static Instrument * open ( const char *name );
|
||||
static char ** listing ( void );
|
||||
|
||||
/* mutation */
|
||||
void note ( int from, int to );
|
||||
void velocity ( int n, int v );
|
||||
void note_name ( int n, char *s );
|
||||
|
||||
/* inspection */
|
||||
void translate ( midievent *e ) const;
|
||||
const char * note_name ( int n ) const;
|
||||
int height ( void ) const;
|
||||
const char * name ( void ) const;
|
||||
int velocity ( int n ) const;
|
||||
|
||||
};
|
|
@ -0,0 +1,13 @@
|
|||
"Kick", 36, 100
|
||||
"Snare", 38, 100
|
||||
"Closed Hat", 42, 80
|
||||
"Open Hat", 46, 80
|
||||
"Rim Shot", 37, 100
|
||||
"Ride", 51, 80
|
||||
"Crash", 49, 80
|
||||
"Hi Tom", 48, 100
|
||||
"Mid Tom", 45, 100
|
||||
"Low Tom", 41, 100
|
||||
"Hi Conga", 62, 80
|
||||
"Low Conga", 63, 80
|
||||
"Timbale", 65, 80
|
|
@ -0,0 +1,44 @@
|
|||
"Bass Drum 1", 36, 100
|
||||
"Side Stick", 37, 80
|
||||
"Acoustic Snare", 38, 100
|
||||
"Hand Clap", 39, 80
|
||||
"Electric Snare", 40, 100
|
||||
"Low Floor Tom", 41, 100
|
||||
"Closed Hi-Hat", 42, 80
|
||||
"High Floor Tom", 43, 100
|
||||
"Pedal Hi-Hat", 44, 80
|
||||
"Low Tom", 45, 100
|
||||
"Open Hi-Hat", 46, 64
|
||||
"Low-Mid Tom", 47, 90
|
||||
"Hi-Mid Tom", 48, 90
|
||||
"Crash Cymbal 1", 49, 80
|
||||
"High Tom", 50, 100
|
||||
"Ride Cymbal 1", 51, 75
|
||||
"Chinese Cymbal", 52, 75
|
||||
"Ride Bell", 53, 75
|
||||
"Tambourine", 54, 64
|
||||
"Splash Cymbal", 55, 64
|
||||
"Cowbell", 56, 64
|
||||
"Crash Cymbal 2", 57, 64
|
||||
"Hi Bongo", 60, 100
|
||||
"Low Bongo", 61, 100
|
||||
"Mute Hi Conga", 62, 80
|
||||
"Open Hi Conga", 63, 100
|
||||
"Low Conga", 64, 100
|
||||
"High Timbale", 65, 80
|
||||
"Low Timbale", 66, 80
|
||||
"High Agogo", 67, 64
|
||||
"Low Agogo", 68, 64
|
||||
"Cabasa", 69, 64
|
||||
"Maracas", 70, 70
|
||||
"Short Whistle", 71, 64
|
||||
"Long Whistle", 72, 64
|
||||
"Short Guiro", 73, 64
|
||||
"Long Guiro", 74, 64
|
||||
"Claves", 75, 80
|
||||
"Hi Wood Block", 76, 80
|
||||
"Low Wood Block", 77, 80
|
||||
"Mute Cuica", 78, 64
|
||||
"Open Cuica", 79, 64
|
||||
"Mute Triangle", 80, 64
|
||||
"Open Triangle", 81, 64
|
|
@ -0,0 +1,434 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007-2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <math.h>
|
||||
/* jack */
|
||||
#include <jack/jack.h>
|
||||
#include <jack/midiport.h>
|
||||
#include <jack/ringbuffer.h>
|
||||
#include <jack/thread.h>
|
||||
|
||||
#include "non.H"
|
||||
#include "transport.H"
|
||||
#include "pattern.H"
|
||||
#include "phrase.H"
|
||||
#include "event_list.H"
|
||||
|
||||
#ifdef JACK_MIDI_PROTO_API
|
||||
/* correct for prototype version of API */
|
||||
#define jack_midi_event_reserve( p, f, l ) jack_midi_event_reserve( p, f, l, nframes )
|
||||
#define jack_midi_event_get( e, b, f ) jack_midi_event_get( e, b, f, nframes )
|
||||
#define jack_midi_get_event_count( b ) jack_midi_get_event_count( b, nframes )
|
||||
#define jack_midi_clear_buffer( b ) jack_midi_clear_buffer( b, nframes )
|
||||
#define jack_midi_event_write( b, f, d, s ) jack_midi_event_write( b, f, d, s, nframes )
|
||||
#endif
|
||||
|
||||
jack_client_t *client;
|
||||
|
||||
int sample_rate;
|
||||
|
||||
const int MAX_PORT = 16;
|
||||
|
||||
/* timers for notes on all channels and ports. When a note is played,
|
||||
* the respective value in this array is set to the note duraction in
|
||||
* ticks. Decremented in each process cycle, when this value reaches
|
||||
* zero, a note off is generated--regardless of the state of the
|
||||
* transport */
|
||||
double notes_on[MAX_PORT][16][128];
|
||||
|
||||
typedef unsigned char byte_t;
|
||||
|
||||
int num_output_ports = 1;
|
||||
|
||||
event_list freelist;
|
||||
|
||||
typedef struct {
|
||||
void *buf;
|
||||
jack_ringbuffer_t *ring_buf; /* for realtime output and recording */
|
||||
event_list events; /* events to be output this cycle */
|
||||
jack_port_t *port;
|
||||
} port_t;
|
||||
|
||||
static port_t output[MAX_PORT];
|
||||
static port_t input[2]; /* control, performance */
|
||||
|
||||
jack_nframes_t nframes; /* for compatibility with older jack */
|
||||
|
||||
/** get next recorded event, if any--runs in UI thread */
|
||||
midievent *
|
||||
midi_input_event ( int port )
|
||||
{
|
||||
if ( jack_ringbuffer_read_space( input[ port ].ring_buf ) >= sizeof( midievent ) )
|
||||
{
|
||||
midievent *me = new midievent;
|
||||
|
||||
// MESSAGE( "passing midi input to non-RT thread" );
|
||||
|
||||
if ( jack_ringbuffer_read( input[ port ].ring_buf, (char *)me, sizeof( midievent ) ) )
|
||||
return me;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Queue an event for output. /tick/ is relative to the current cycle! */
|
||||
void
|
||||
midi_output_event ( int port, const midievent *e )
|
||||
{
|
||||
event *fe = freelist.first();
|
||||
|
||||
if ( ! fe )
|
||||
WARNING( "output buffer underrun" );
|
||||
else
|
||||
{
|
||||
freelist.unlink( fe );
|
||||
|
||||
*fe = *e;
|
||||
|
||||
output[ port ].events.insert( fe );
|
||||
}
|
||||
}
|
||||
|
||||
/** same as above, but only for note-on + duration */
|
||||
void
|
||||
midi_output_event ( int port, const midievent *e, tick_t duration )
|
||||
{
|
||||
if ( duration )
|
||||
{
|
||||
if ( notes_on[ port ][ e->channel() ][ e->note() ] > transport.ticks_per_period )
|
||||
WARNING( "duplicate note on?" );
|
||||
else
|
||||
{
|
||||
notes_on[ port ][ e->channel() ][ e->note() ] = (duration + 0.0001f) + (e->timestamp());
|
||||
|
||||
midi_output_event( port, e );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
/* if ( notes_on[ port ][ e->channel() ][ e->note() ] ) */
|
||||
/* WARNING( "note still on when note-off came" ); */
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
midi_write_event ( int port, const midievent *e )
|
||||
{
|
||||
byte_t *buffer;
|
||||
|
||||
// what I want here is to translate a PPQN tick into the
|
||||
// current period.
|
||||
jack_nframes_t frame = transport.frames_per_tick * e->timestamp();
|
||||
|
||||
int l = e->size();
|
||||
|
||||
buffer = jack_midi_event_reserve( output[ port ].buf, frame, l );
|
||||
|
||||
if ( ! buffer )
|
||||
{
|
||||
WARNING( "could not reserve buffer at frame %d, note event dropped!", frame );
|
||||
return;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
e->pretty_print();
|
||||
#endif
|
||||
|
||||
e->raw( buffer, l );
|
||||
}
|
||||
|
||||
|
||||
/** Call this to send an event immediately from UI thread. Timestamp is meaningless */
|
||||
void
|
||||
midi_output_immediate_event ( int port, const midievent *e )
|
||||
{
|
||||
if ( jack_ringbuffer_write( output[ port ].ring_buf, (const char *)e, sizeof( midievent ) ) != sizeof( midievent ) )
|
||||
WARNING( "output ringbuffer overrun" );
|
||||
else
|
||||
if ( e->is_note_on() )
|
||||
{
|
||||
/* use timestamp as duration */
|
||||
notes_on[ port ][ e->channel() ][ e->note() ] = e->timestamp();
|
||||
}
|
||||
}
|
||||
|
||||
/** stop all notes on all channels of all ports */
|
||||
void
|
||||
midi_all_sound_off ( void )
|
||||
{
|
||||
MESSAGE( "stopping all sound" );
|
||||
|
||||
midievent e;
|
||||
|
||||
/* all notes off */
|
||||
e.status( midievent::CONTROL_CHANGE );
|
||||
e.data( 123, 0 );
|
||||
e.timestamp( 0 );
|
||||
|
||||
for ( int p = MAX_PORT; p--; )
|
||||
for ( int c = 16; c--; )
|
||||
{
|
||||
e.channel( c );
|
||||
midi_output_immediate_event( p, &e );
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
process ( jack_nframes_t nframes, void *arg )
|
||||
{
|
||||
static tick_t oph = 0;
|
||||
static tick_t onph = 0;
|
||||
static int old_play_mode = PATTERN;
|
||||
|
||||
::nframes = nframes;
|
||||
|
||||
// init all port buffers (maybe we should only do this as needed)
|
||||
/* loop over stuff */
|
||||
|
||||
transport.nframes = nframes;
|
||||
transport.poll();
|
||||
|
||||
tick_t ph = trunc( transport.ticks );
|
||||
tick_t nph = trunc( transport.ticks + transport.ticks_per_period );
|
||||
|
||||
if ( ! transport.valid )
|
||||
goto schedule;
|
||||
|
||||
if ( ( ! transport.rolling ) || ph == oph )
|
||||
goto schedule;
|
||||
|
||||
if ( ph != onph )
|
||||
WARNING( "dropped ticks" );
|
||||
|
||||
onph = nph;
|
||||
|
||||
// MESSAGE( "tpp %f %f-%f", transport.ticks_per_period, ph, nph );
|
||||
// MESSAGE( "tpp %f %lu-%lu", transport.ticks_per_period, ph, nph );
|
||||
|
||||
switch ( old_play_mode )
|
||||
{
|
||||
case PATTERN:
|
||||
case TRIGGER:
|
||||
{
|
||||
// stop all patterns.
|
||||
for ( uint i = pattern::patterns(); i--; )
|
||||
{
|
||||
pattern *p = pattern::pattern_by_number( i + 1 );
|
||||
|
||||
p->stop();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
switch ( song.play_mode )
|
||||
{
|
||||
case SEQUENCE:
|
||||
// first handle patterns already playing
|
||||
for ( uint i = pattern::patterns(); i--; )
|
||||
{
|
||||
pattern *p = pattern::pattern_by_number( i + 1 );
|
||||
if ( p && p->playing() )
|
||||
p->play( ph, nph );
|
||||
}
|
||||
|
||||
playlist->play( ph, nph );
|
||||
break;
|
||||
case PATTERN:
|
||||
case TRIGGER:
|
||||
{
|
||||
for ( uint i = pattern::patterns(); i--; )
|
||||
{
|
||||
pattern *p = pattern::pattern_by_number( i + 1 );
|
||||
|
||||
p->trigger( 0, -1 );
|
||||
|
||||
p->play( ph, nph );
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
old_play_mode = song.play_mode;
|
||||
|
||||
oph = ph;
|
||||
|
||||
/* handle midi input */
|
||||
for ( int j = transport.recording ? 2 : 1; j--; )
|
||||
{
|
||||
static midievent e;
|
||||
|
||||
input[j].buf = jack_port_get_buffer( input[j].port, nframes );
|
||||
|
||||
jack_midi_event_t ev;
|
||||
|
||||
jack_nframes_t count = jack_midi_get_event_count( input[j].buf );
|
||||
|
||||
for ( uint i = 0; i < count; ++i )
|
||||
{
|
||||
// MESSAGE( "Got midi input!" );
|
||||
|
||||
jack_midi_event_get( &ev, input[j].buf, i );
|
||||
|
||||
/* time is frame within cycle, convert to absolute tick */
|
||||
e.timestamp( ph + (ev.time / transport.frames_per_tick) );
|
||||
e.status( ev.buffer[0] );
|
||||
e.lsb( ev.buffer[1] );
|
||||
if ( ev.size == 3 )
|
||||
e.msb( ev.buffer[2] );
|
||||
|
||||
if ( jack_ringbuffer_write( input[j].ring_buf, (char*)&e, sizeof( midievent ) ) != sizeof( midievent ) )
|
||||
WARNING( "input buffer overrun" );
|
||||
}
|
||||
}
|
||||
|
||||
schedule:
|
||||
|
||||
for ( int i = MAX_PORT; i-- ; )
|
||||
{
|
||||
/* reserve and clear buffers */
|
||||
output[ i ].buf = jack_port_get_buffer( output[ i ].port, nframes );
|
||||
jack_midi_clear_buffer( output[ i ].buf );
|
||||
|
||||
/* handle scheduled note offs */
|
||||
for ( uint j = 16; j-- ; )
|
||||
{
|
||||
register double *note = ¬es_on[ i ][ j ][ 0 ];
|
||||
|
||||
for ( register uint k = 0; k < 128; note++, k++ )
|
||||
if ( *note )
|
||||
if ( ( *note -= transport.ticks_per_period ) <= 0 )
|
||||
{
|
||||
static midievent e;
|
||||
|
||||
e.status( midievent::NOTE_OFF );
|
||||
e.channel( j );
|
||||
e.note( k );
|
||||
e.note_velocity( 64 );
|
||||
|
||||
e.timestamp( ((tick_t)transport.ticks_per_period) + *note );
|
||||
|
||||
*note = 0;
|
||||
|
||||
midi_output_event( i, &e );
|
||||
}
|
||||
}
|
||||
|
||||
static midievent e;
|
||||
/* first, write any immediate events from the UI thread */
|
||||
while ( jack_ringbuffer_read( output[ i ].ring_buf, (char *)&e, sizeof( midievent ) ) )
|
||||
{
|
||||
// MESSAGE( "sending immediate event" );
|
||||
// FIXME: could we do better?
|
||||
e.timestamp( 0 );
|
||||
|
||||
midi_output_event( i, &e );
|
||||
}
|
||||
|
||||
/* Write queued events */
|
||||
event *n;
|
||||
for ( event *e = output[ i ].events.first(); e; e = n )
|
||||
{
|
||||
n = e->next();
|
||||
|
||||
midi_write_event( i, e );
|
||||
|
||||
output[ i ].events.unlink( e );
|
||||
|
||||
freelist.append( e );
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
midi_init ( void )
|
||||
{
|
||||
MESSAGE( "Initializing Jack MIDI" );
|
||||
|
||||
if (( client = jack_client_new ( APP_NAME )) == 0 )
|
||||
return 0;
|
||||
|
||||
/* create output ports */
|
||||
for ( int i = 0; i < MAX_PORT; i++ )
|
||||
{
|
||||
char pat[40];
|
||||
|
||||
sprintf( pat, "midi_out-%d", i + 1 );
|
||||
output[i].port = jack_port_register( client, pat, JACK_DEFAULT_MIDI_TYPE, JackPortIsOutput, 0 );
|
||||
output[i].ring_buf = jack_ringbuffer_create( 16 * 16 * sizeof( midievent ) ); // why this value?
|
||||
jack_ringbuffer_reset( output[i].ring_buf );
|
||||
|
||||
}
|
||||
|
||||
/* create input ports */
|
||||
input[0].port = jack_port_register( client, "control_in", JACK_DEFAULT_MIDI_TYPE, JackPortIsInput, 0 );
|
||||
input[0].ring_buf = jack_ringbuffer_create( 128 * sizeof( midievent ) ); // why this value?
|
||||
jack_ringbuffer_reset( input[0].ring_buf );
|
||||
input[1].port = jack_port_register( client, "midi_in", JACK_DEFAULT_MIDI_TYPE, JackPortIsInput, 0 );
|
||||
input[1].ring_buf = jack_ringbuffer_create( 128 * sizeof( midievent ) ); // why this value?
|
||||
jack_ringbuffer_reset( input[1].ring_buf );
|
||||
|
||||
/* preallocate events */
|
||||
for ( int i = 32 * 16 * MAX_PORT; i-- ; )
|
||||
freelist.append( new event );
|
||||
|
||||
DEBUG( "allocated output buffer space for %lu events", freelist.size() );
|
||||
|
||||
/* clear notes */
|
||||
for ( int p = MAX_PORT; p--; )
|
||||
for ( int c = 16; c-- ; )
|
||||
for ( int n = 128; n-- ; )
|
||||
notes_on[ p ][ c ][ n ] = 0;
|
||||
|
||||
//1 jack_set_buffer_size_callback( client, bufsize, 0 );
|
||||
jack_set_process_callback( client, process, 0 );
|
||||
|
||||
jack_activate( client );
|
||||
|
||||
sample_rate = jack_get_sample_rate( client );
|
||||
|
||||
/* /\* initialize buffer size *\/ */
|
||||
/* transport_poll(); */
|
||||
/* bufsize( jack_get_buffer_size( client ), 0 ); */
|
||||
|
||||
if ( jack_set_timebase_callback( client, 1, Transport::timebase, NULL ) == 0 )
|
||||
{
|
||||
MESSAGE( "running as timebase master" );
|
||||
transport.master = true;
|
||||
}
|
||||
else
|
||||
WARNING( "could not take over as timebase master" );
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
void
|
||||
midi_shutdown ( void )
|
||||
{
|
||||
// TODO: wait for all queued events to play.
|
||||
|
||||
jack_deactivate( client );
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
#include <jack/jack.h>
|
||||
|
||||
#include "common.h"
|
||||
|
||||
enum { CONTROL, PERFORMANCE };
|
||||
|
||||
class midievent;
|
||||
|
||||
midievent * midi_input_event ( int port );
|
||||
void midi_output_event ( int port, const midievent *e );
|
||||
void midi_output_event ( int port, const midievent *e, tick_t duration );
|
||||
void midi_all_sound_off ( void );
|
||||
int midi_init ( void );
|
||||
void midi_shutdown ( void );
|
||||
void midi_output_immediate_event ( int port, const midievent *e );
|
|
@ -0,0 +1,104 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#include "lash.H"
|
||||
#include "config.h"
|
||||
#include "common.h"
|
||||
#include "non.H"
|
||||
|
||||
// TODO: produce Save_Project events...
|
||||
|
||||
#ifndef USE_LASH
|
||||
|
||||
Lash::Lash ( ) {}
|
||||
bool Lash::init ( int *argc, char ***argv ) { return true; }
|
||||
void Lash::process ( void ) {}
|
||||
|
||||
#else
|
||||
|
||||
Lash::Lash ( )
|
||||
{
|
||||
_client = NULL;
|
||||
}
|
||||
|
||||
bool
|
||||
Lash::init ( int *argc, char ***argv )
|
||||
{
|
||||
if ( ! ( _client = lash_init( lash_extract_args( argc, argv ), APP_NAME,
|
||||
LASH_Config_File, LASH_PROTOCOL( 2, 0 ) ) ) )
|
||||
return false;
|
||||
|
||||
/* register name */
|
||||
lash_jack_client_name( _client, APP_NAME );
|
||||
|
||||
lash_event_t *e = lash_event_new_with_type( LASH_Client_Name );
|
||||
lash_event_set_string( e, APP_TITLE );
|
||||
lash_send_event( _client, e );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/** process any queued events */
|
||||
void
|
||||
Lash::process ( void )
|
||||
{
|
||||
lash_event_t *e;
|
||||
|
||||
char *name;
|
||||
|
||||
while ( ( e = lash_get_event( _client ) ) )
|
||||
{
|
||||
asprintf( &name, "%s/%s", lash_event_get_string( e ), "song.non" );
|
||||
|
||||
switch ( lash_event_get_type( e ) )
|
||||
{
|
||||
case LASH_Save_File:
|
||||
{
|
||||
MESSAGE( "LASH wants us to save \"%s\"", name );
|
||||
|
||||
save_song( name );
|
||||
|
||||
lash_send_event( _client, lash_event_new_with_type( LASH_Save_File ) );
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
case LASH_Restore_File:
|
||||
{
|
||||
MESSAGE( "LASH wants us to load \"%s\"", name );
|
||||
|
||||
load_song( name );
|
||||
|
||||
lash_send_event( _client, lash_event_new_with_type( LASH_Restore_File ) );
|
||||
|
||||
break;
|
||||
}
|
||||
case LASH_Quit:
|
||||
MESSAGE( "LASH wants us to quit" );
|
||||
quit();
|
||||
break;
|
||||
default:
|
||||
WARNING( "unhandled LASH event" );
|
||||
}
|
||||
|
||||
lash_event_destroy( e );
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
|
@ -0,0 +1,40 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef USE_LASH
|
||||
#include <lash/lash.h>
|
||||
#endif
|
||||
|
||||
class Lash
|
||||
{
|
||||
|
||||
#ifdef USE_LASH
|
||||
lash_client_t *_client;
|
||||
#endif
|
||||
|
||||
public:
|
||||
Lash ( );
|
||||
bool init ( int *argc, char ***argv );
|
||||
void process ( void );
|
||||
|
||||
};
|
|
@ -0,0 +1,501 @@
|
|||
/* XPM */
|
||||
static char *logo[] = {
|
||||
/* columns rows colors chars-per-pixel */
|
||||
"250 238 257 2",
|
||||
" c #010100",
|
||||
". c #080601",
|
||||
"X c #0C0A01",
|
||||
"o c #110E02",
|
||||
"O c #151103",
|
||||
"+ c #151208",
|
||||
"@ c #1A1501",
|
||||
"# c #18150A",
|
||||
"$ c #1E1801",
|
||||
"% c #1D1909",
|
||||
"& c #231C01",
|
||||
"* c #211C0A",
|
||||
"= c #262005",
|
||||
"- c #26210B",
|
||||
"; c #2B2201",
|
||||
": c #2A240B",
|
||||
"> c #2F280D",
|
||||
", c #2C2711",
|
||||
"< c #302600",
|
||||
"1 c #322800",
|
||||
"2 c #342C0B",
|
||||
"3 c #392D00",
|
||||
"4 c #322B11",
|
||||
"5 c #3C3102",
|
||||
"6 c #3C320D",
|
||||
"7 c #3D3512",
|
||||
"8 c #38372F",
|
||||
"9 c #3D392C",
|
||||
"0 c #333332",
|
||||
"q c #383630",
|
||||
"w c #393831",
|
||||
"e c #433600",
|
||||
"r c #40350A",
|
||||
"t c #463801",
|
||||
"y c #44390C",
|
||||
"u c #4B3C00",
|
||||
"i c #4A3D0A",
|
||||
"p c #443A13",
|
||||
"a c #443B15",
|
||||
"s c #433D28",
|
||||
"d c #453F27",
|
||||
"f c #544400",
|
||||
"g c #594700",
|
||||
"h c #5C4900",
|
||||
"j c #5B4B0C",
|
||||
"k c #53450C",
|
||||
"l c #52471D",
|
||||
"z c #54491C",
|
||||
"x c #5C4E15",
|
||||
"c c #5A4D19",
|
||||
"v c #554813",
|
||||
"b c #5F5016",
|
||||
"n c #4D441F",
|
||||
"m c #464026",
|
||||
"M c #4B4223",
|
||||
"N c #49432D",
|
||||
"B c #504620",
|
||||
"V c #534B2A",
|
||||
"C c #584D24",
|
||||
"Z c #5D5228",
|
||||
"A c #5E5221",
|
||||
"S c #614D00",
|
||||
"D c #665200",
|
||||
"F c #695400",
|
||||
"G c #69570F",
|
||||
"H c #6E5801",
|
||||
"J c #6D590C",
|
||||
"K c #63520B",
|
||||
"L c #635313",
|
||||
"P c #64551B",
|
||||
"I c #685610",
|
||||
"U c #6D5B13",
|
||||
"Y c #6B5B1B",
|
||||
"T c #735C00",
|
||||
"R c #725D09",
|
||||
"E c #705D10",
|
||||
"W c #655824",
|
||||
"Q c #645829",
|
||||
"! c #6A5C23",
|
||||
"~ c #625522",
|
||||
"^ c #776005",
|
||||
"/ c #7C6301",
|
||||
"( c #7A630B",
|
||||
") c #7F690F",
|
||||
"_ c #73621D",
|
||||
"` c #7A6615",
|
||||
"' c #6F6024",
|
||||
"] c #6F6129",
|
||||
"[ c #766626",
|
||||
"{ c #776931",
|
||||
"} c #7F7031",
|
||||
"| c #806600",
|
||||
" . c #836900",
|
||||
".. c #896E01",
|
||||
"X. c #80690C",
|
||||
"o. c #826D19",
|
||||
"O. c #8D7100",
|
||||
"+. c #8D730A",
|
||||
"@. c #85701E",
|
||||
"#. c #8A7212",
|
||||
"$. c #8A741B",
|
||||
"%. c #8F781D",
|
||||
"&. c #867016",
|
||||
"*. c #927500",
|
||||
"=. c #957801",
|
||||
"-. c #9A7B00",
|
||||
";. c #967B0B",
|
||||
":. c #927B1B",
|
||||
">. c #997F19",
|
||||
",. c #917810",
|
||||
"<. c #867326",
|
||||
"1. c #84732C",
|
||||
"2. c #897520",
|
||||
"3. c #89772C",
|
||||
"4. c #8B782B",
|
||||
"5. c #8E7926",
|
||||
"6. c #867533",
|
||||
"7. c #8B7933",
|
||||
"8. c #8B7B39",
|
||||
"9. c #877738",
|
||||
"0. c #927C23",
|
||||
"q. c #917C2D",
|
||||
"w. c #917E34",
|
||||
"e. c #9A801A",
|
||||
"r. c #9C8014",
|
||||
"t. c #9D8835",
|
||||
"y. c #968337",
|
||||
"u. c #A38200",
|
||||
"i. c #A88600",
|
||||
"p. c #AD8A00",
|
||||
"a. c #A5860C",
|
||||
"s. c #A28617",
|
||||
"d. c #AC8D14",
|
||||
"f. c #A58918",
|
||||
"g. c #AE9017",
|
||||
"h. c #B18E00",
|
||||
"j. c #B59100",
|
||||
"k. c #BA9400",
|
||||
"l. c #BE9800",
|
||||
"z. c #B5930B",
|
||||
"x. c #B29214",
|
||||
"c. c #BC9A11",
|
||||
"v. c #BD9C19",
|
||||
"b. c #B79819",
|
||||
"n. c #A68D27",
|
||||
"m. c #A38C31",
|
||||
"M. c #A18C38",
|
||||
"N. c #AC9129",
|
||||
"B. c #AD9433",
|
||||
"V. c #AB953A",
|
||||
"C. c #BB9D22",
|
||||
"Z. c #B49725",
|
||||
"A. c #B29A3A",
|
||||
"S. c #BBA13B",
|
||||
"D. c #BDA235",
|
||||
"F. c #AA9542",
|
||||
"G. c #AD9948",
|
||||
"H. c #B59F43",
|
||||
"J. c #BEA543",
|
||||
"K. c #BAA44E",
|
||||
"L. c #C49C00",
|
||||
"P. c #C29E0C",
|
||||
"I. c #C09E14",
|
||||
"U. c #C6A10E",
|
||||
"Y. c #CBA300",
|
||||
"T. c #CAA40D",
|
||||
"R. c #CBA406",
|
||||
"E. c #C9A414",
|
||||
"W. c #CBA81B",
|
||||
"Q. c #C8A51A",
|
||||
"!. c #D0A700",
|
||||
"~. c #D5AA01",
|
||||
"^. c #D3AB0A",
|
||||
"/. c #D9AD00",
|
||||
"(. c #D1AD1B",
|
||||
"). c #DDB000",
|
||||
"_. c #DCB108",
|
||||
"`. c #D6B11D",
|
||||
"'. c #DBB313",
|
||||
"]. c #DEB81C",
|
||||
"[. c #DDB61A",
|
||||
"{. c #C3A426",
|
||||
"}. c #C9AA2B",
|
||||
"|. c #C6AA37",
|
||||
" X c #CFB136",
|
||||
".X c #D0AF2A",
|
||||
"XX c #D5B32A",
|
||||
"oX c #DAB626",
|
||||
"OX c #D2B235",
|
||||
"+X c #DAB832",
|
||||
"@X c #D4B538",
|
||||
"#X c #E3B500",
|
||||
"$X c #E6B802",
|
||||
"%X c #E2B80C",
|
||||
"&X c #EBBC00",
|
||||
"*X c #E3B80B",
|
||||
"=X c #E3B913",
|
||||
"-X c #E3BB1A",
|
||||
";X c #E3BD25",
|
||||
":X c #C2AA46",
|
||||
">X c #CCB245",
|
||||
",X c #CDB451",
|
||||
"<X c #D0B442",
|
||||
"1X c #D6B945",
|
||||
"2X c #D5BB52",
|
||||
"3X c #D4BC5C",
|
||||
"4X c #C3AD54",
|
||||
"5X c #EBC118",
|
||||
"6X c #F2C200",
|
||||
"7X c #F8C600",
|
||||
"8X c #FECC00",
|
||||
"9X c #FECD0B",
|
||||
"0X c #F2C30A",
|
||||
"qX c #FDCE13",
|
||||
"wX c #F5C918",
|
||||
"eX c #FED017",
|
||||
"rX c #FDD01B",
|
||||
"tX c #ECC523",
|
||||
"yX c #E8C32B",
|
||||
"uX c #E7C437",
|
||||
"iX c #F4CC2B",
|
||||
"pX c #F5CB23",
|
||||
"aX c #F5CE30",
|
||||
"sX c #FCD123",
|
||||
"dX c #FCD22B",
|
||||
"fX c #FBD433",
|
||||
"gX c #FBD53B",
|
||||
"hX c #DCC25C",
|
||||
"jX c #E7C84D",
|
||||
"kX c #EAC944",
|
||||
"lX c #EACB4C",
|
||||
"zX c #E4C343",
|
||||
"xX c #E8CB56",
|
||||
"cX c #EFD04E",
|
||||
"vX c #F0CE43",
|
||||
"bX c #F4D042",
|
||||
"nX c #F4D34B",
|
||||
"mX c #FBD643",
|
||||
"MX c #FAD648",
|
||||
"NX c #FAD84C",
|
||||
"BX c #F4D454",
|
||||
"VX c #F9D953",
|
||||
"CX c #FADA5B",
|
||||
"ZX c #F7D758",
|
||||
"AX c #F9DB63",
|
||||
"SX c #F9DC6B",
|
||||
"DX c #F4D762",
|
||||
"FX c #F9DE73",
|
||||
"GX c #F8DF79",
|
||||
"HX c #EBD062",
|
||||
"JX c #F8E07D",
|
||||
"KX c #F7E18C",
|
||||
"LX c #F8E083",
|
||||
"PX c #F8E188",
|
||||
"IX c #F7E390",
|
||||
"UX c gray100",
|
||||
"YX c None",
|
||||
/* pixels */
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX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0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 s / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | G 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 B / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / ./ ./ B 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 I .| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./ ./ / / 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / ./ ./ .L 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 s | .| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./ ./ ./ / M 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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KXKXPXSXmXsX9X8X8X8X8X8X8X8X8X8X8X8X8X8X8X_.<.w 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b b c c z l l B B M d d s s s s 8 8 0 0 0 0 0 0 0 B .| | | | | | | | | | | | / ./ h.&X8X8X8X8X8X8X8X8XsXVXFXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXPXKXKXKXKXKXKXPXKXPXKXPXPXPXPXPXPXPXLXSXmXsX9X8X8X8X8X8X8X8X8X8X8X8X8X&X@.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / | | | | | | | | | | | | | | | | | | | | | / T T R T | | | | | | | | | . ./ / .u.&X8X8X8X8X8X8X8X9XgXFXKXKXKXKXKXKXKXKXKXKXPXKXKXPXKXPXPXPXPXPXPXKXPXPXPXPXPXPXPXPXPXPXPXPXPXLXPXLXLXPXGXNXqX8X8X8X8X8X8X8X8X8X8X8X8X_.! 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | .| | | | | | | | | | | | | | | | | | | | | | | . . .| | | | | . .| | / / / =./.8X8X8X8X8X8X8XrXCXLXKXKXKXPXKXPXPXKXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXLXLXLXPXLXPXLXLXLXPXLXLXLXLXLXLXLXLXAXsX8X8X8X8X8X8X8X8X8X8X8X8XU.V 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | .| | | | | | | ./ ./ . .L.8X8X8X8X8X8X9XfXFXPXKXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXLXPXPXPXLXLXLXLXPXLXPXLXLXLXLXJXJXLXLXLXLXLXLXLXLXLXLXLXGXLXJXJXFXgX9X8X8X8X8X8X8X8X8X8X8X8Xs.8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / ./ / -.&X8X8X8X8X8X8XdXGXPXPXPXPXPXPXPXPXLXPXLXPXLXPXLXLXLXPXLXLXLXLXLXLXPXLXLXLXLXLXJXLXLXLXLXLXLXLXLXLXJXLXLXLXGXLXLXLXLXGXJXJXJXJXGXNX9X8X8X8X8X8X8X8X8X8X8X_.Z 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./ .L.8X8X8X8X8X8XqXAXPXPXLXPXLXLXLXPXLXLXLXLXLXLXLXLXLXLXLXPXLXPXLXLXLXLXPXJXJXPXJXPXLXLXLXLXJXJXJXJXJXJXJXJXJXJXGXJXJXJXJXGXJXGXGXJXJXJXFXfX8X8X8X8X8X8X8X8X8X8X8Xe.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / *.&X8X8X8X8X8X8XgXGXLXLXLXLXLXLXLXLXLXLXPXLXLXLXLXLXLXJXLXLXJXGXLXGXLXGXLXGXJXLXGXJXJXGXGXGXGXJXGXJXJXJXJXJXJXJXGXGXJXJXGXGXGXGXLXGXGXGXGXGXGXCXqX8X8X8X8X8X8X8X8X8X8X_.V 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | u.6X8X8X8X8X8XeXSXLXLXLXJXLXJXLXLXLXLXLXLXJXJXJXLXGXGXLXJXJXJXJXGXLXLXGXGXGXGXJXJXJXJXJXGXLXGXGXGXGXFXJXJXGXGXGXGXGXFXJXGXGXJXJXGXGXGXGXGXGXFXJXGXFXgX8X8X8X8X8X8X8X8X8X8X0X! 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | j.8X8X8X8X8X8XMXGXLXLXJXLXJXJXJXJXGXGXLXGXJXJXJXGXGXLXGXGXJXJXJXJXGXGXGXGXLXGXJXJXJXGXGXGXGXGXGXGXFXJXJXJXJXGXGXGXJXJXJXFXJXJXSXJXFXGXFXGXFXGXFXFXFXFXFXAXeX8X8X8X8X8X8X8X8X8X8X$.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / ./ .| .L.8X8X8X8X8X8XCXJXJXGXJXJXLXJXJXGXGXGXJXJXJXJXJXJXJXGXGXGXJXJXGXGXGXGXGXGXGXGXGXGXGXGXGXFXGXGXGXGXFXJXFXFXJXFXJXFXFXFXFXFXFXJXSXJXJXFXFXFXFXFXFXFXFXFXFXFXFXFXgX8X8X8X8X8X8X8X8X8X8Xd.0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | .| | ./ ./ .).8X8X8X8X8X8XAXJXJXJXGXGXJXGXJXGXJXJXJXGXGXJXGXGXGXGXGXGXGXGXGXFXGXGXGXGXGXGXGXGXGXFXFXGXFXFXGXFXFXGXFXJXFXFXFXFXFXJXSXJXFXFXSXJXSXSXFXFXFXFXFXFXFXFXFXFXFXFXFXSXMX8X8X8X8X8X8X8X8X8X8XU.w 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / ./ ./ ./ .).8X8X8X8X8X9XAXJXGXGXGXGXGXGXGXGXGXJXFXGXGXGXFXGXJXFXGXGXGXGXGXGXFXFXJXFXFXFXGXFXFXFXFXFXFXFXFXFXFXFXFXFXFXFXFXFXSXFXSXFXFXFXFXJXSXJXSXFXFXSXSXFXFXSXFXSXFXFXSXSXFXSXNX8X8X8X8X8X8X8X8X8X8XT.w 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./ ./ ./ .).8X8X8X8X8XqXAXGXGXGXGXGXGXFXGXGXGXFXFXJXGXFXFXJXFXFXGXFXGXFXFXFXFXFXFXFXFXFXFXFXFXFXFXFXFXFXFXFXFXFXFXFXSXFXFXSXFXFXFXFXSXFXSXSXSXSXSXSXSXFXSXFXSXSXSXSXSXSXSXSXSXSXSXSXVX8X8X8X8X8X8X8X8X8X8XT.w 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / ..).8X8X8X8X8XqXSXGXFXGXFXGXFXSXJXSXFXFXFXJXFXFXFXJXSXJXSXJXSXJXSXFXFXSXJXFXJXFXFXFXFXFXFXFXFXFXFXFXFXFXFXFXSXSXSXJXSXFXSXSXSXSXSXSXFXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXVX9X8X8X8X8X8X8X8X8X8XU.w 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / /.8X8X8X8X8XqXSXFXFXFXFXFXFXFXJXSXJXFXFXFXSXFXSXJXSXJXSXJXSXJXFXSXFXFXSXSXSXSXFXFXSXSXSXFXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXAXSXAXSXAXSXAXSXAXSXAXSXSXAXVX9X8X8X8X8X8X8X8X8X8XU.0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Y.8X8X8X8X8X8XCXFXFXFXFXFXFXFXFXSXJXSXJXFXJXSXFXSXJXSXSXSXSXSXSXSXSXFXSXJXSXSXSXSXFXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXAXSXSXSXSXAXSXSXAXSXAXAXSXAXAXSXAXAXAXAXAXAXAXAXVX8X8X8X8X8X8X8X8X8X8Xd.0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | h.8X8X8X8X8X8XfXFXFXFXSXFXFXSXFXFXJXSXSXSXSXSXSXFXSXSXSXJXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXAXSXSXAXSXAXSXAXAXSXSXAXAXSXAXAXAXAXAXAXAXAXSXAXAXAXAXSXAXAXAXAXAXAXAXAXAXAXmX8X8X8X8X8X8X8X8X8X8X@.0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./ ./ | | -.8X8X8X8X8X8XqXSXSXSXFXFXSXSXFXSXSXSXFXSXSXSXFXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXSXAXSXSXSXSXSXSXAXAXSXAXSXSXSXAXAXSXAXSXAXAXSXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXAXDXAXAXAXAXAXAXCXAXAXCXAXsX8X8X8X8X8X8X8X8X8X7XW 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./ .| O.6X8X8X8X8X8X8XCXFXFXG.3XSXSXSXSXSXSXSXSXSXSXSX4XhXSXSXSXSXSXSXSXAXSXSXSXSXAXSXSXSXAXSXDXAXSXAXAXSXHXG.8.{ Q { 9.K.HXAXAXAXAXAXAXAXAXAXAXAXAXAXAXCXAXAXDXAXAXAXAXCXAXJ.2XAXCXCXAXCXCXCXAXCXCXCX:X_.8X8X8X8X8X8X8X8X8X&XN 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./ / #X8X8X8X8X8X8XgXSX3Xd Q SXSXSXSXSXSXSXDXSXSXSX8.X { HXSXAXSXSXAXAXSXAXSXAXAXAXAXAXAXAXAXAXAXDXF.M . . X Q ,XAXAXAXAXAXAXAXAXAXAXAXAXCXAXAXCXCXCXAXCX2XM . W CXCXCXCXCXCXCXCXCXCXCX6.X / 6X8X8X8X8X8X8X8X8X^.0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / .k.8X8X8X8X8X8XeXSXG.+ X HXAXAXSXAXSXSXAXAXSXAX8. 4 hXAXAXAXAXSXAXAXAXAXAXAXAXAXAXAXAXAX,X4 . . W xXCXAXCXAXCXCXCXCXCXCXAXCXCXAXCXCXCXV.X X xXCXCXCXCXCXCXCXCXCXCX6.. . 1 #X8X8X8X8X8X8X8X8X:.0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | =.8X8X8X8X8X8X8XZX8. 8.SXAXSXAXAXAXSXAXAXAX8. . + 4XAXAXAXAXAXAXAXAXAXAXAXAXAXAXSX} . . . % K.CXCXCXCXCXCXCXCXCXCXCXCXCXCXCX3. 8.CXCXCXVXCXCXCXCXVXCX7. @ Y.8X8X8X8X8X8X8X7XV 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | .#X8X8X8X8X8X8XsXy. . * DXAXAXAXAXAXAXAXAXAX8. . + 3XCXAXAXCXAXCXCXCXAXCXAXCXAXQ t.CXAXCXCXCXCXCXCXCXCXCXCXZXy. - ZXVXZXCXCXZXVXCXVXVX7. . O ).8X8X8X8X8X8X8X_.0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | k.8X8X8X8X8X8X8XA.. G.AXCXAXAXAXAXAXCXAXw. , xXAXCXCXAXCXCXCXCXCXCXCX] M.CXCXVXCXVXVXCXCXVXVXVXH.. V.VXVXVXVXVXVXNXVXVX3. ; 6X8X8X8X8X8X8X8X>.0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *.7X8X8X8X8X8X8X5X# 7 AXAXCXCXCXCXCXAXCX8. C CXCXCXCXCXCXCXCXCXCX7. X J.VXCXCXVXVXVXVXCXVXjX+ a VXVXVXVXVXVXVXVXVX3. f 8X8X8X8X8X8X8X7XN 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | .| | | | Y.8X8X8X8X8X8X8Xx 3XAXCXCXCXCXCXCXCXw. J.ZXCXCXVXCXCXCXCX,XX . % c 1.V.:XF.{ z X % jXVXVXVXVXVXVXVXCXc . <XVXVXVXVXVXVXVXNX4.. . . k.8X8X8X8X8X8X8Xx.0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / .| | =.8X8X8X8X8X8X8Xl. ~ CXCXCXCXCXCXVXCXBX] . . - BXCXCXCXCXVXZXZX, : t.ZXCXVXVXZXCXZXVXjX} + ! VXVXVXNXZXNXVXS. Y NXNXNXNXNXNXNXVXnX' . ; 7X8X8X8X8X8X8X8X) M 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./ ./ !.8X8X8X8X8X8X8Xe . , 8. . xXCXCXCXCXVXCXCXVXCX:X+ y.ZXVXVXVXZXVX1. y.NXVXVXVXVXVXVXVXVXVXVXVXlX~ . >XNXVXVXNXVXNX7 , w. . lXNXNXNXNXNXNXMXNXMXS.o -.8X8X8X8X8X8X8X!./ / L B 9 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / ./ -.8X8X8X8X8X8X8XL. 4 xXZX- 6.ZXVXVXCXVXCXZXZXVXVX,X+ - VXVXVXVXVXBXO + S.VXVXVXVXNXVXNXVXNXVXNXNXVXNXVX3. z NXNXNXNXMX:X 2 jXNX% . 1.MXMXMXMXMXMXMXMXMXMX<XO ; 8X8X8X8X8X8X8X8X-./ ./ / R / / YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / /.8X8X8X8X8X8X8Xh : xXVXCX7. % BXVXVXVXVXVXVXVXVXCXVX|. A.VXVXNXVXt. + <XVXNXVXNXVXNXNXNXNXNXNXNXVXNXNXNXNXV.. . zXVXMXMXNXz . . - kXMXMX1.. % MXMXMXMXMXMXmXMXmXMXMXD.. j.8X8X8X8X8X8X8X/.| | | | | | | | / | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ..8X8X8X8X8X8X8X7XX . :XVXVXVXjXX V.VXVXVXVXVXVXVXNXVXVXVX3. A VXNXNXVX2 V.NXNXNXNXNXNXNXNXNXNXNXNXNXNXNXMXNXNXNXY . [ NXMXMXbXX . |.MXMXMXuXX . B.MXmXmXmXmXmXMXmXmXmXmX<.. . h 8X8X8X8X8X8X8X8XO.| | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | .L.8X8X8X8X8X8X8Xj. ! VXVXNXVXZXW 7 VXNXVXVXVXVXVXNXNXNXNXnX: + NXVXMX1X c NXNXNXNXMXMXMXNXNXMXNXMXMXNXMXmXMXMXMXMXvX= 4 MXMXMXB. ' MXmXMXmXMXP 7 MXmXmXmXmXmXmXmXmXmXgXbX: O 7X8X8X8X8X8X8X8XL.| | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | / &X8X8X8X8X8X8X8XF + lXNXNXVXVXNX<X . >XNXNXNXNXNXNXNXNXNXNXVXB. |.NXMXt. + kXMXNXMXMXMXMXMXNXNXMXMXMXMXMXMXMXmXMXMXMXMXD. zXMXMXP + kXmXmXmXmXMX X OXgXmXmXmXmXgXmXmXgXmXmXN. L.8X8X8X8X8X8X8X&X| | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | / u.8X8X8X8X8X8X8X8X3 W VXNXNXNXNXNXNXa ~ NXNXNXNXNXMXNXMXMXMXMXnX# 5.MXMXY [ MXMXMXMXMXmXMXMXMXmXmXmXmXmXMXmXMXmXmXmXmXmXMX2 . m.gXmX2 Y mXgXmXmXmXmXgX7 . P mXmXgXmXgXgXbXgXgXmXgXgXO . =.8X8X8X8X8X8X8X8Xu./ .| | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | / /.8X8X8X8X8X8X8X8XX |.NXNXMXNXNXNXNXB. . X kXMXNXMXmXMXMXMXMXMXMXMX[ P MXMX2 OXMXMXmXMXMXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXgXmXmXq. . _ mXgXX . XgXmXgXgXgXmXgXN.. X uXgXgXgXgXgXgXgXgXgXgXgXJ . D 8X8X8X8X8X8X8X8X/. ./ | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | / ./ ...8X8X8X8X8X8X8X8X). : NXNXMXMXMXMXMXMXMX- <.MXMXMXMXMXMXMXMXMXMXmX X 6 MXMXX 7 MXmXmXMXmXmXmXmXmXmXmXmXmXmXmXmXmXmXgXmXmXmXgXmXuX. p mX@X : gXmXgXgXgXmXgXgXgX* $.gXgXgXgXgXfXgXgXgXgXgXW. 3 8X8X8X8X8X8X8X8X8X ./ | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | ./ ./ u.8X8X8X8X8X8X8X8XY. z MXMXMXMXMXMXMXMXMX4. . % mXmXMXmXmXmXmXmXmXmXMXnX * mXbX Y mXmXgXmXgXgXmXgXmXmXgXmXgXmXgXmXgXmXgXgXgXmXgXgXgX- : gX{. c gXgXgXgXgXgXgXgXgX$. * gXfXgXgXfXgXgXfXfXgXfXiX & 8X8X8X8X8X8X8X8X8Xi. .| | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | Y.8X8X8X8X8X8X8X8Xl. _ MXMXMXmXmXMXmXmXmXuXo N.MXmXmXmXmXmXmXmXmXgXmX@ . + mXuX 2.gXgXmXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXp % gXZ. _ gXfXgXfXgXgXgXgXfXuXX . . N.gXfXfXfXfXgXfXfXgXfXdX@ @ 8X8X8X8X8X8X8X8X8XY./ ./ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | &X8X8X8X8X8X8X8X8Xp. 5.mXmXmXmXmXmXmXmXmXmXY . 7 mXmXmXgXmXmXgXmXgXmXmX2 . gX X n.mXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXfXL + gXN. %.fXgXgXfXfXfXfXfXfXfXL . 6 fXfXgXfXfXfXfXfXfXfXsX1 X 8X8X8X8X8X8X8X8X8X&X/ . .| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | / .| *.8X8X8X8X8X8X8X8X8Xp. 5.mXmXmXmXmXmXgXmXgXmX@X. XgXgXmXgXgXmXgXgXmXgX6 . gX|. . n.gXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgXfXfXgXfXfXgXgXY . X fXN. 0.fXfXfXfXfXfXfXfXfXfXXX .XfXfXfXfXfXfXfXfXfXsX3 . 8X8X8X8X8X8X8X8X8X8X=./ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | ./ | | | | | | | | ./ / j.8X8X8X8X8X8X8X8X8Xk.. [ gXmXgXgXmXgXgXmXgXmXgXa P gXgXgXgXgXgXgXgXgXgX% O gX+X 2.gXgXgXgXgXgXgXgXfXgXgXfXfXfXfXgXfXfXgXfXfXfXgXfXfXv @ fXZ. . . ` fXfXfXfXfXfXfXfXfXfXfXy L dXdXdXfXdXdXfXdXdXsX@ . @ 8X8X8X8X8X8X8X8X8X8Xh. .| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | . ./ .| | | | | | | | / .| Y.8X8X8X8X8X8X8X8X8XL. c gXgXgXgXgXgXgXgXgXgXgXN.. X uXgXgXgXgXgXgXgXgXfX. . * fXuX Y fXgXgXfXfXfXfXfXgXfXfXfXfXfXfXfXfXfXfXfXfXfXfXfXfX6 = fXC.. v fXfXfXfXfXfXfXfXfXfXdXb.. X yXdXfXdXfXdXdXdXdXwX. & 8X8X8X8X8X8X8X8X8X8X!.| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| / . ./ | | | | | | | | ./ | #X8X8X8X8X8X8X8X8X8X/. . 2 gXgXgXgXgXgXgXgXgXgXgXgX= . @.gXfXgXfXfXfXfXgX+X 2 fXaX. y gXfXfXfXgXfXfXfXfXfXfXfXfXfXfXfXfXfXfXfXfXfXfXfXaXX . y fXXX . 2 dXfXdXdXdXdXdXdXdXdXdXdX% . . &.dXdXdXdXdXdXdXdX'. 1 8X8X8X8X8X8X8X8X8X8X).| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX/ / ./ | | | | | | | | / ./ 7X8X8X8X8X8X8X8X8X8X7XX +XgXgXgXfXgXgXfXfXgXgXfX2. % fXfXfXgXfXgXfXfX$. x fXfX2 ;XfXfXfXfXfXfXfXfXfXfXfXfXfXfXfXfXfXdXdXfXdXfXdXC. . U dXdXX oXdXdXdXdXdXdXdXdXdXdXdX$.. % dXdXdXdXdXdXdXdX.. S 8X8X8X8X8X8X8X8X8X8X7X| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX ./ .| | | | | | | | ./ O.8X8X8X8X8X8X8X8X8X8X8X1 ` fXgXfXgXfXgXfXgXfXfXgXaXX n.fXfXfXfXfXfXfX: $.fXfXx o.dXfXfXdXfXdXfXdXfXdXfXdXdXdXfXdXdXfXdXdXdXdXdXb . e.dXdX: ) dXdXdXdXdXdXdXdXdXdXdXtXX . g.dXsXsXsXdXsXsX; O.8X8X8X8X8X8X8X8X8X8X8X..| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX/ / | | | | | | | | / .u.8X8X8X8X8X8X8X8X8X8X8XD % fXfXfXfXfXfXfXfXfXfXfXfXU . 6 fXdXfXfXfXfX{. . C.fXdXe. % dXdXdXfXdXfXdXdXdXfXdXdXdXdXdXdXdXdXdXdXdXdXoX. oXdXsXL & iXsXdXdXsXdXdXsXdXsXdXsXG 6 sXsXsXsXdXsXQ.. L.7X8X8X8X8X8X8X8X8X8X8X-. . .| | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX/ | | | | | | | | / / h.8X8X8X8X8X8X8X8X8X8X8Xp. . . :.fXfXfXfXfXfXfXfXdXfXfXXX . }.fXdXdXdXdX6 X iXdXdXyX . E dXdXdXdXdXdXdXdXdXsXdXdXdXdXdXdXdXdXdXdXsXj . & iXdXdXf. . >.dXdXsXsXsXsXsXsXsXsXsX`. . W.sXsXsXsXiX5 . X 7X8X8X8X8X8X8X8X8X8X8X8Xh.| | | | | | | | | | | | | | | | | | | | | | | | .| | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | .| ./ k.8X8X8X8X8X8X8X8X8X8X8X6X. O yXfXfXfXdXfXfXdXfXfXdXfXi L dXdXdXfX%. k dXdXdXdX2 . v.dXdXdXdXdXdXdXdXdXdXdXdXdXdXdXdXdXsXsXf.. ` sXsXsXtX. O 5XsXiXsXsXsXsXsXsXsXsXsXy K sXsXsXrX,. f 8X8X8X8X8X8X8X8X8X8X8X8Xk.| | | | | | | | | | | | | | | | | | | | | | | ./ / / | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | / ./ .L.8X8X8X8X8X8X8X8X8X8X8X8Xu y aXdXdXfXdXdXdXdXdXdXdXZ. . yXdXdXoXX . f.dXdXdXdXe. . $ yXdXsXdXsXdXsXsXsXdXsXsXsXsXsXsXsXsXW.X . `.sXsXsXsXi . . i iXrXsXrXsXrXsXsXsXsXsXx. . X 5XrXrX`.X . u.8X8X8X8X8X8X8X8X8X8X8X8XL.| | | | | | | | | | | | | | | | | | | | | | | / .G 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 I ./ ./ ./ Y.8X8X8X8X8X8X8X8X8X8X8X8Xl. . L dXdXdXdXdXdXdXdXsXdXdX= &.dXoX$ % iXdXdXdXsXiXO % W.sXsXsXsXsXsXsXsXsXsXsXsXsXsXsXv.o y sXsXrXsXsXb. . G rXsXsXsXrXrXrXrXsXrXrX= &.eX(.$ . $ 7X8X8X8X8X8X8X8X8X8X8X8X8XL./ / .| | | | | | | | | | | | | | | | | | ./ .R 8 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 0 0 I / / ./ .!.8X8X8X8X8X8X8X8X8X8X8X8X8X; j iXdXdXdXdXdXdXdXdXsX:. . % Q.O #.sXsXsXsXsXsXX. . X b.sXsXsXsXsXsXsXsXsXsXsXsXsXr.. . E.sXrXsXrXrXsX; j rXrXrXrXsXsXrXrXrXrX,.. $ E.O O.8X8X8X8X8X8X8X8X8X8X8X8X8X!. . ./ | | | | | | | | | | | | | | | | | | / .R 8 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
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YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | ./ / p.&X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X&Xh./ / ./ | . ./ | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | / . .| .p.$X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X#Xp./ .| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | ./ ./ | | / -.~.8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X/.-.| | ./ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | / ./ .| | | | / *.L.&X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X&XL.*./ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | ./ ./ | | | | / / / / =.L.&X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X&XL.=. ./ / ./ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | ./ ./ | | | -.L./.7X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X7X).L.=.| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | / ./ .| | | | | | .=.k.~.&X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X8X&X!.k.-./ .| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | ./ ./ | | | | | | | | | ./ ..=.i.k.Y./.$X&X&X7X8X8X8X8X7X7X&X&X&X).Y.k.i.=. . .| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | / ./ .| | | | | | | | | / ./ | | | | / ./ ./ / . . .| .| / ./ / | | .| .| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | ./ | | | | | | | | | | | | | | | | | | | | | | / ./ ./ .| | / ./ .| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | . .| | | | | | | | | | | | | | | | | | | | | | ./ ./ ./ | . ./ ./ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / ./ ./ ./ ./ ./ .| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./ ./ ./ ./ ./ ./ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / ./ .| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./ ./ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / .| | .| R l R | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./ | | J d 0 0 0 l / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./ ./ b s 0 0 0 0 0 0 s G | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / T l q 0 0 0 0 0 0 0 0 0 0 l | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | .| I d 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 G | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / b 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 B / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / ./ .R l 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 q L | . .| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./ G d 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 M T | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | / c 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 q L | . .| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | R B 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 q d T | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | z 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 q L .| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 d R | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 q b | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 z | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX/ / / .| | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX ./ ./ | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX/ ./ .| | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX ./ ./ ./ | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX ./ ./ .| .| | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX/ ./ ./ ./ | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX/ / ./ ./ .| | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
|
||||
"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXY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XYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX0 0 YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX"
|
||||
};
|
|
@ -0,0 +1,168 @@
|
|||
/**********************************************************************************/
|
||||
/* Copyright (C) 2007,2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ; */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software ; */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/**********************************************************************************/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include "non.H"
|
||||
// #include "gui/input.H"
|
||||
#include "gui/ui.H"
|
||||
#include "jack.H"
|
||||
#include "lash.H"
|
||||
|
||||
#include "pattern.H"
|
||||
#include "phrase.H"
|
||||
|
||||
Canvas *pattern_c, *phrase_c, *trigger_c;
|
||||
|
||||
sequence *playlist;
|
||||
|
||||
global_settings config;
|
||||
song_settings song;
|
||||
|
||||
Lash lash;
|
||||
|
||||
/* default to pattern mode */
|
||||
|
||||
UI *ui;
|
||||
|
||||
void
|
||||
quit ( void )
|
||||
{
|
||||
/* clean up, only for valgrind's sake */
|
||||
|
||||
delete ui;
|
||||
|
||||
delete pattern_c;
|
||||
delete phrase_c;
|
||||
delete trigger_c;
|
||||
|
||||
midi_all_sound_off();
|
||||
|
||||
// wait for it...
|
||||
sleep( 1 );
|
||||
|
||||
midi_shutdown();
|
||||
|
||||
MESSAGE( "Your fun is over" );
|
||||
|
||||
exit( 0 );
|
||||
}
|
||||
|
||||
void
|
||||
init_song ( void )
|
||||
{
|
||||
song.filename = NULL;
|
||||
song.dirty = false;
|
||||
|
||||
pattern_c->grid( NULL );
|
||||
phrase_c->grid( NULL );
|
||||
|
||||
playlist->reset();
|
||||
playlist->insert( 0, 1 );
|
||||
pattern_c->grid( new pattern );
|
||||
phrase_c->grid( new phrase );
|
||||
}
|
||||
|
||||
void
|
||||
handle_midi_input ( void )
|
||||
{
|
||||
midievent *e;
|
||||
while ( ( e = midi_input_event( PERFORMANCE ) ) )
|
||||
{
|
||||
pattern::record_event( e );
|
||||
delete e;
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
load_song ( const char *name )
|
||||
{
|
||||
MESSAGE( "loading song \"%s\"", name );
|
||||
|
||||
pattern_c->grid( NULL );
|
||||
phrase_c->grid( NULL );
|
||||
|
||||
if ( ! playlist->load( name ) )
|
||||
{
|
||||
WARNING( "failed to load song file" );
|
||||
return false;
|
||||
}
|
||||
|
||||
pattern_c->grid( pattern::pattern_by_number( 1 ) );
|
||||
phrase_c->grid( phrase::phrase_by_number( 1 ) );
|
||||
|
||||
song.filename = strdup( name );
|
||||
|
||||
// TODO: signal song loaded.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
save_song ( const char *name )
|
||||
{
|
||||
playlist->save( name );
|
||||
|
||||
song.filename = strdup( name );
|
||||
song.dirty = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
int
|
||||
main ( int argc, char **argv )
|
||||
{
|
||||
|
||||
config.follow_playhead = true;
|
||||
config.record_mode = MERGE;
|
||||
song.play_mode = PATTERN;
|
||||
song.random.feel = 8;
|
||||
song.random.probability = 0.33;
|
||||
|
||||
printf( "%s %s -- %s\n", APP_TITLE, VERSION, COPYRIGHT );
|
||||
|
||||
playlist = new sequence;
|
||||
|
||||
pattern_c = new Canvas;
|
||||
phrase_c = new Canvas;
|
||||
trigger_c = new Canvas;
|
||||
|
||||
init_song();
|
||||
|
||||
if ( ! lash.init( &argc, &argv ) )
|
||||
WARNING( "error initializing LASH" );
|
||||
|
||||
if ( argc > 1 )
|
||||
{
|
||||
/* maybe a filename on the commandline */
|
||||
load_song( argv[1] );
|
||||
}
|
||||
|
||||
if ( ! midi_init() )
|
||||
ASSERTION( "Could not initialize MIDI system! (is Jack running and with MIDI ports enabled?)" );
|
||||
|
||||
MESSAGE( "Initializing GUI" );
|
||||
|
||||
init_colors();
|
||||
|
||||
ui = new UI;
|
||||
|
||||
ui->run();
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,159 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#include "mapping.H"
|
||||
#include "stdlib.h"
|
||||
#include "common.h"
|
||||
|
||||
/* Is C++'s dispatching useless or what? */
|
||||
|
||||
#define IS_INSTRUMENT ( _type == INSTRUMENT )
|
||||
|
||||
Mapping::Mapping ( )
|
||||
{
|
||||
_key = 0;
|
||||
_type = NONE;
|
||||
}
|
||||
|
||||
bool
|
||||
Mapping::open ( enum map_type type, const char *name )
|
||||
{
|
||||
switch ( type )
|
||||
{
|
||||
case INSTRUMENT:
|
||||
_instrument = Instrument::open( name );
|
||||
break;
|
||||
case SCALE:
|
||||
_scale = Scale::open( name );
|
||||
break;
|
||||
default:
|
||||
ASSERTION( "invalid mapping type ");
|
||||
break;
|
||||
}
|
||||
|
||||
if ( ! _scale )
|
||||
return false;
|
||||
|
||||
_type = type;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Mapping::Mapping ( const Mapping &rhs )
|
||||
{
|
||||
_key = rhs._key;
|
||||
_type = rhs._type;
|
||||
_instrument = rhs._instrument;
|
||||
}
|
||||
|
||||
const char *
|
||||
Mapping::name ( void ) const
|
||||
{
|
||||
switch ( _type )
|
||||
{
|
||||
case INSTRUMENT:
|
||||
return _instrument->name();
|
||||
case SCALE:
|
||||
return _scale->name();
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
Mapping::height ( void ) const
|
||||
{
|
||||
if ( IS_INSTRUMENT )
|
||||
return _instrument->height();
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
Mapping::key ( int n )
|
||||
{
|
||||
if ( n > 11 || n < 0 )
|
||||
ASSERTION( "key selection out of range: %d", n );
|
||||
|
||||
_key = n;
|
||||
}
|
||||
|
||||
int
|
||||
Mapping::key ( void ) const
|
||||
{
|
||||
return _type == INSTRUMENT ? -1 : _key;
|
||||
}
|
||||
|
||||
void
|
||||
Mapping::translate ( midievent *e ) const
|
||||
{
|
||||
switch ( _type )
|
||||
{
|
||||
case INSTRUMENT:
|
||||
return _instrument->translate( e );
|
||||
case SCALE:
|
||||
return _scale->translate( _key, e );
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
Mapping::velocity ( int n ) const
|
||||
{
|
||||
switch ( _type )
|
||||
{
|
||||
case INSTRUMENT:
|
||||
return _instrument->velocity( n );
|
||||
case SCALE:
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *
|
||||
Mapping::note_name ( int n ) const
|
||||
{
|
||||
switch ( _type )
|
||||
{
|
||||
case INSTRUMENT:
|
||||
return _instrument->note_name( n );
|
||||
case SCALE:
|
||||
return _scale->note_name( _key, n );
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* For the instrument editor... */
|
||||
Instrument *
|
||||
Mapping::instrument ( void ) const
|
||||
{
|
||||
if ( IS_INSTRUMENT )
|
||||
return _instrument;
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/** return a string describing the type of this mapping */
|
||||
const char *
|
||||
Mapping::type ( void ) const
|
||||
{
|
||||
return IS_INSTRUMENT ? "Instrument" : "Scale";
|
||||
}
|
|
@ -0,0 +1,74 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "scale.H"
|
||||
#include "instrument.H"
|
||||
|
||||
/* C++'s inheritance system falls down dead for this application, so we
|
||||
have to do it backwards, using the base class (Mapping) as an interface
|
||||
to Instrument and Scale */
|
||||
|
||||
|
||||
class Mapping
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
enum map_type { NONE, INSTRUMENT, SCALE };
|
||||
|
||||
private:
|
||||
|
||||
union {
|
||||
Instrument *_instrument;
|
||||
Scale *_scale;
|
||||
};
|
||||
|
||||
int _key; /* used for scales, 0 == A */
|
||||
|
||||
int _type;
|
||||
|
||||
public:
|
||||
|
||||
Mapping ( );
|
||||
Mapping ( const Mapping &rhs );
|
||||
|
||||
bool open ( map_type type, const char *name );
|
||||
|
||||
const char * name ( void ) const;
|
||||
int height ( void ) const;
|
||||
|
||||
Instrument * instrument ( void ) const;
|
||||
|
||||
/* mutation */
|
||||
void note ( int from, int to );
|
||||
void velocity ( int n, int v );
|
||||
void note_name ( int n, char *s );
|
||||
void key ( int n );
|
||||
|
||||
/* inspection */
|
||||
void translate ( midievent *e ) const;
|
||||
const char * note_name ( int n ) const;
|
||||
int velocity ( int n ) const;
|
||||
int key ( void ) const;
|
||||
|
||||
const char * type ( void ) const;
|
||||
|
||||
};
|
|
@ -0,0 +1,211 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
/* raw MIDI events + timestamps. Some support for SysEx */
|
||||
|
||||
#include "common.h"
|
||||
#include "midievent.H"
|
||||
|
||||
static const char *opcode_names[] =
|
||||
{
|
||||
"Note Off",
|
||||
"Note On",
|
||||
"Aftertouch",
|
||||
"Control Change",
|
||||
"Program Change",
|
||||
"Channel Pressure",
|
||||
"Pitch Wheel"
|
||||
};
|
||||
|
||||
midievent::midievent ( void )
|
||||
{
|
||||
_sysex = NULL;
|
||||
_timestamp = 0;
|
||||
_data.status = NOTE_OFF;
|
||||
_data.msb = _data.lsb = 0;
|
||||
}
|
||||
|
||||
midievent::~midievent ( void )
|
||||
{
|
||||
if ( _sysex )
|
||||
delete _sysex;
|
||||
|
||||
_sysex = NULL;
|
||||
}
|
||||
|
||||
int
|
||||
midievent::pitch ( void ) const
|
||||
{
|
||||
return ((_data.msb << 7) | _data.lsb) - 0x2000;
|
||||
}
|
||||
|
||||
void
|
||||
midievent::pitch ( int n )
|
||||
{
|
||||
n += 0x2000;
|
||||
|
||||
_data.lsb = n & 0x7F;
|
||||
_data.msb = (n >> 7) & 0x7F;
|
||||
}
|
||||
|
||||
void
|
||||
midievent::data ( byte_t D1, byte_t D2 )
|
||||
{
|
||||
_data.lsb = D1 & 0x7F;
|
||||
_data.msb = D2 & 0x7F;
|
||||
}
|
||||
|
||||
void
|
||||
midievent::data ( byte_t *D1, byte_t *D2 ) const
|
||||
{
|
||||
*D1 = _data.lsb;
|
||||
*D2 = _data.msb;
|
||||
}
|
||||
|
||||
void
|
||||
midievent::raw ( byte_t *p, int l) const
|
||||
{
|
||||
memcpy( p, &_data, l );
|
||||
}
|
||||
|
||||
int
|
||||
midievent::size ( void ) const
|
||||
{
|
||||
return midievent::event_size( opcode() );
|
||||
}
|
||||
|
||||
void
|
||||
midievent::note_velocity ( int vel )
|
||||
{
|
||||
_data.msb = vel & 0x7F;
|
||||
}
|
||||
|
||||
void
|
||||
midievent::note ( char note )
|
||||
{
|
||||
_data.lsb = note & 0x7F;
|
||||
}
|
||||
|
||||
unsigned char
|
||||
midievent::note_velocity ( void ) const
|
||||
{
|
||||
return _data.msb;
|
||||
}
|
||||
|
||||
bool
|
||||
midievent::is_same_note ( midievent * e ) const
|
||||
{
|
||||
return channel() == e->channel() && note() == e->note();
|
||||
}
|
||||
|
||||
/** get name from opcode */
|
||||
const char *
|
||||
midievent::name ( void ) const
|
||||
{
|
||||
return opcode_names[ (opcode() >> 4) - 8 ];
|
||||
}
|
||||
|
||||
/** get opcode from name */
|
||||
int
|
||||
midievent::name ( const char *name ) const
|
||||
{
|
||||
for ( unsigned int i = elementsof( opcode_names ); i--; )
|
||||
if ( ! strcmp( name, opcode_names[ i ] ) )
|
||||
return (i + 8) << 4;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
/** print event in hexadecimal */
|
||||
void
|
||||
midievent::print ( void ) const
|
||||
{
|
||||
printf( "[%06ld] %02X %02X %02X\n",
|
||||
_timestamp,
|
||||
_data.status,
|
||||
_data.lsb,
|
||||
_data.msb );
|
||||
}
|
||||
|
||||
/** print event in english/decimal */
|
||||
void
|
||||
midievent::pretty_print ( void ) const
|
||||
{
|
||||
printf(
|
||||
"[%06ld] %-15s c: %2d d1: %3d d2: %3d\n",
|
||||
_timestamp,
|
||||
name(),
|
||||
channel(),
|
||||
_data.lsb,
|
||||
_data.msb );
|
||||
}
|
||||
|
||||
|
||||
/*********/
|
||||
/* Sysex */
|
||||
/*********/
|
||||
|
||||
midievent::sysex::sysex ( void )
|
||||
{
|
||||
_data = NULL;
|
||||
_size = 0;
|
||||
_alloc = 0;
|
||||
}
|
||||
|
||||
midievent::sysex::~sysex ( void )
|
||||
{
|
||||
if ( _data )
|
||||
free( _data );
|
||||
|
||||
_data = NULL;
|
||||
}
|
||||
|
||||
/** add bytes to sysex message */
|
||||
void
|
||||
midievent::sysex::append ( byte_t *data, size_t size )
|
||||
{
|
||||
if ( _size + size > _alloc )
|
||||
_data = (byte_t *)realloc( _data, _alloc += 256 );
|
||||
|
||||
memcpy( data + _size, data, size );
|
||||
|
||||
_size += size;
|
||||
}
|
||||
|
||||
/** return SysEx data */
|
||||
const byte_t *
|
||||
midievent::sysex::data ( void ) const
|
||||
{
|
||||
return _data;
|
||||
}
|
||||
|
||||
long
|
||||
midievent::sysex::size ( void ) const
|
||||
{
|
||||
return _size;
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool
|
||||
midievent::operator== ( const midievent &rhs ) const
|
||||
{
|
||||
return _timestamp == rhs._timestamp &&
|
||||
! bcmp( (void*)&_data, (void*)&rhs._data, size() );
|
||||
}
|
|
@ -0,0 +1,238 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
/* raw MIDI event + timestamp */
|
||||
class midievent
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
class sysex {
|
||||
size_t _size, _alloc;
|
||||
byte_t *_data;
|
||||
|
||||
public:
|
||||
|
||||
sysex ( void );
|
||||
~sysex ( void );
|
||||
|
||||
void append ( byte_t *data, size_t size );
|
||||
const byte_t * data ( void ) const;
|
||||
long size ( void ) const;
|
||||
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
sysex *_sysex;
|
||||
|
||||
tick_t _timestamp; /* in ticks */
|
||||
struct {
|
||||
byte_t status, /* full status byte */
|
||||
lsb, /* data 1 */
|
||||
msb; /* data 2 */
|
||||
} _data;
|
||||
|
||||
public:
|
||||
|
||||
static inline int
|
||||
event_size ( byte_t op )
|
||||
{
|
||||
switch ( op )
|
||||
{
|
||||
case NOTE_ON: case NOTE_OFF: case AFTERTOUCH:
|
||||
case CONTROL_CHANGE: case PITCH_WHEEL:
|
||||
return 3;
|
||||
case PROGRAM_CHANGE: case CHANNEL_PRESSURE:
|
||||
return 2;
|
||||
default:
|
||||
return 1;
|
||||
}
|
||||
};
|
||||
|
||||
/* define MIDI status bytes */
|
||||
enum {
|
||||
STATUS_BIT = 0x80,
|
||||
NOTE_OFF = 0x80,
|
||||
NOTE_ON = 0x90,
|
||||
AFTERTOUCH = 0xA0,
|
||||
CONTROL_CHANGE = 0xB0,
|
||||
PROGRAM_CHANGE = 0xC0,
|
||||
CHANNEL_PRESSURE = 0xD0,
|
||||
PITCH_WHEEL = 0xE0,
|
||||
CLEAR_CHAN_MASK = 0xF0,
|
||||
MIDI_CLOCK = 0xF8,
|
||||
SYSEX = 0xF0,
|
||||
SYSEX_END = 0xF7,
|
||||
META = 0xFF
|
||||
};
|
||||
|
||||
midievent ( void );
|
||||
~midievent ( void );
|
||||
|
||||
tick_t timestamp ( void ) const;
|
||||
void timestamp ( tick_t time );
|
||||
void status ( byte_t status );
|
||||
byte_t status ( void ) const;
|
||||
void channel ( byte_t channel );
|
||||
byte_t channel ( void ) const;
|
||||
byte_t opcode ( void ) const;
|
||||
void opcode ( byte_t o );
|
||||
void lsb ( byte_t n );
|
||||
void msb ( byte_t n );
|
||||
int lsb ( void ) const;
|
||||
int msb ( void ) const;
|
||||
int pitch ( void ) const;
|
||||
void pitch ( int n );
|
||||
void data ( byte_t D1, byte_t D2 );
|
||||
void data ( byte_t *D1, byte_t *D2 ) const;
|
||||
void raw ( byte_t *p, int l) const;
|
||||
int size ( void ) const;
|
||||
void note_velocity ( int vel );
|
||||
bool is_note_on ( void ) const;
|
||||
bool is_note_off ( void ) const;
|
||||
virtual unsigned char note ( void ) const;
|
||||
virtual void note ( char note );
|
||||
unsigned char note_velocity ( void ) const;
|
||||
bool is_same_note ( midievent * e ) const;
|
||||
const char * name ( void ) const;
|
||||
int name ( const char *name ) const;
|
||||
void print ( void ) const;
|
||||
void pretty_print ( void ) const;
|
||||
|
||||
bool operator< ( const midievent &rhs ) const;
|
||||
bool operator>= ( const midievent &rhs ) const;
|
||||
|
||||
bool operator== ( const midievent &rhs ) const;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**********************/
|
||||
/* Inlined accessors */
|
||||
/**********************/
|
||||
|
||||
|
||||
inline tick_t
|
||||
midievent::timestamp ( void ) const
|
||||
{
|
||||
return _timestamp;
|
||||
}
|
||||
|
||||
inline void
|
||||
midievent::timestamp ( tick_t time )
|
||||
{
|
||||
_timestamp = time;
|
||||
}
|
||||
|
||||
inline void
|
||||
midievent::status ( byte_t status )
|
||||
{
|
||||
_data.status = status;
|
||||
}
|
||||
|
||||
inline byte_t
|
||||
midievent::status ( void ) const
|
||||
{
|
||||
return _data.status;
|
||||
}
|
||||
|
||||
inline void
|
||||
midievent::channel ( byte_t channel )
|
||||
{
|
||||
_data.status = (_data.status & 0xF0) | (channel & 0x0F);
|
||||
}
|
||||
|
||||
inline byte_t
|
||||
midievent::channel ( void ) const
|
||||
{
|
||||
return _data.status & 0x0F;
|
||||
}
|
||||
|
||||
inline byte_t
|
||||
midievent::opcode ( void ) const
|
||||
{
|
||||
return _data.status & 0xF0;
|
||||
}
|
||||
|
||||
|
||||
inline void
|
||||
midievent::opcode ( byte_t opcode )
|
||||
{
|
||||
_data.status = (_data.status & 0x0F) | (opcode & 0xF0);
|
||||
}
|
||||
|
||||
inline void
|
||||
midievent::lsb ( byte_t n )
|
||||
{
|
||||
_data.lsb = n & 0x7F;
|
||||
}
|
||||
|
||||
inline void
|
||||
midievent::msb ( byte_t n )
|
||||
{
|
||||
_data.msb = n & 0x7F;
|
||||
}
|
||||
|
||||
inline int
|
||||
midievent::lsb ( void ) const
|
||||
{
|
||||
return _data.lsb;
|
||||
}
|
||||
|
||||
inline int
|
||||
midievent::msb ( void ) const
|
||||
{
|
||||
return _data.msb;
|
||||
}
|
||||
|
||||
inline bool
|
||||
midievent::is_note_on ( void ) const
|
||||
{
|
||||
return (opcode() == NOTE_ON);
|
||||
}
|
||||
|
||||
inline bool
|
||||
midievent::is_note_off ( void ) const
|
||||
{
|
||||
return (opcode() == NOTE_OFF);
|
||||
}
|
||||
|
||||
inline unsigned char
|
||||
midievent::note ( void ) const
|
||||
{
|
||||
return _data.lsb;
|
||||
}
|
||||
|
||||
inline bool
|
||||
midievent::operator< ( const midievent &rhs ) const
|
||||
{
|
||||
return _timestamp < rhs._timestamp;
|
||||
}
|
||||
|
||||
inline bool
|
||||
midievent::operator>= ( const midievent &rhs ) const
|
||||
{
|
||||
return _timestamp >= rhs._timestamp;
|
||||
}
|
|
@ -0,0 +1,94 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007,2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "pattern.H"
|
||||
#include "phrase.H"
|
||||
#include "sequence.H"
|
||||
|
||||
enum {
|
||||
PLAY,
|
||||
MUTE,
|
||||
SOLO
|
||||
};
|
||||
|
||||
class Canvas;
|
||||
class Lash;
|
||||
|
||||
extern Canvas *pattern_c, *phrase_c;
|
||||
extern sequence *playlist;
|
||||
extern Lash lash;
|
||||
|
||||
void quit ( void );
|
||||
void init_song ( void );
|
||||
void handle_midi_input ( void );
|
||||
bool load_song ( const char *name );
|
||||
bool save_song ( const char *name );
|
||||
|
||||
|
||||
#include "common.h"
|
||||
#include "const.h"
|
||||
|
||||
|
||||
enum play_mode_e {
|
||||
PATTERN,
|
||||
SEQUENCE,
|
||||
TRIGGER
|
||||
// PHRASE,
|
||||
};
|
||||
|
||||
|
||||
enum record_mode_e {
|
||||
MERGE,
|
||||
OVERWRITE,
|
||||
LAYER,
|
||||
NEW
|
||||
};
|
||||
|
||||
|
||||
/* program settings (from rc file) */
|
||||
struct global_settings {
|
||||
|
||||
enum record_mode_e record_mode;
|
||||
|
||||
bool record_filtered; /* ignore non-note events while recording */
|
||||
bool visual_metronome; /* show visual metronome */
|
||||
bool follow_playhead;
|
||||
|
||||
};
|
||||
extern global_settings config;
|
||||
|
||||
/* song settings (from song file) */
|
||||
struct song_settings
|
||||
{
|
||||
|
||||
enum play_mode_e play_mode;
|
||||
|
||||
char *filename;
|
||||
bool dirty;
|
||||
|
||||
struct {
|
||||
int feel;
|
||||
float probability;
|
||||
} random;
|
||||
|
||||
};
|
||||
extern song_settings song;
|
|
@ -0,0 +1,684 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007-2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#include "pattern.H"
|
||||
#include "non.H"
|
||||
#include "common.h"
|
||||
#include "smf.H"
|
||||
|
||||
#include "jack.H"
|
||||
#include "transport.H"
|
||||
|
||||
event_list pattern::_recorded_events;
|
||||
vector <pattern*> pattern::_patterns;
|
||||
int pattern::_solo;
|
||||
int pattern::_pattern_recording;
|
||||
|
||||
signal <void> pattern::signal_create_destroy;
|
||||
|
||||
pattern::pattern ( void )
|
||||
{
|
||||
|
||||
viewport.h = 32;
|
||||
viewport.w = 32;
|
||||
|
||||
_draw_shape = CIRCLE;
|
||||
_channel = _port = 0;
|
||||
|
||||
_ppqn = 4;
|
||||
_bpb = 4;
|
||||
_note = 8;
|
||||
int _bars = 2;
|
||||
|
||||
_triggered = false;
|
||||
|
||||
// we need to reinitalize this.
|
||||
data *d = const_cast< data * >( _rd );
|
||||
|
||||
d->length = x_to_ts( _bpb * _ppqn * _bars );
|
||||
|
||||
mapping.open( Mapping::INSTRUMENT, "Default" );
|
||||
|
||||
_add();
|
||||
|
||||
char *s;
|
||||
asprintf( &s, "Pattern %d", number() );
|
||||
|
||||
name( s );
|
||||
}
|
||||
|
||||
void
|
||||
pattern::_add ( void )
|
||||
{
|
||||
// keep track of all the patterns
|
||||
pattern::_patterns.push_back( this );
|
||||
_number = patterns();
|
||||
|
||||
signal_create_destroy();
|
||||
}
|
||||
|
||||
pattern::~pattern ( void )
|
||||
{
|
||||
DEBUG( "deleting pattern %d", number() );
|
||||
signal_create_destroy();
|
||||
}
|
||||
|
||||
/* copy constructor */
|
||||
pattern::pattern ( const pattern &rhs ) : Grid( rhs )
|
||||
{
|
||||
_note = rhs._note;
|
||||
_port = rhs._port;
|
||||
_channel = rhs._channel;
|
||||
|
||||
mapping = rhs.mapping;
|
||||
|
||||
_add();
|
||||
}
|
||||
|
||||
pattern *
|
||||
pattern::clone ( void )
|
||||
{
|
||||
return new pattern( *this );
|
||||
}
|
||||
|
||||
/******************/
|
||||
/* Static methods */
|
||||
/******************/
|
||||
|
||||
int
|
||||
pattern::solo ( void )
|
||||
{
|
||||
return pattern::_solo;
|
||||
}
|
||||
|
||||
int
|
||||
pattern::patterns ( void )
|
||||
{
|
||||
return pattern::_patterns.size();
|
||||
}
|
||||
|
||||
// this is the static one
|
||||
pattern *
|
||||
pattern::pattern_by_number ( int n )
|
||||
{
|
||||
if ( n <= patterns() && n > 0 )
|
||||
{
|
||||
return pattern::_patterns[ n - 1 ];
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/** delete all patterns in preparation for a reload */
|
||||
void
|
||||
pattern::reset ( void )
|
||||
{
|
||||
for ( int n = pattern::patterns(); n-- ; )
|
||||
{
|
||||
delete pattern::_patterns.back();
|
||||
pattern::_patterns.pop_back();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
pattern::record_event ( const midievent *me )
|
||||
{
|
||||
/* set the events aside in a dedicated list--the recording pattern
|
||||
* will decide what to do with them the next time around the
|
||||
* loop */
|
||||
|
||||
/* FIXME: how does the pattern decide when to loop? It seems
|
||||
reasonable that /merge/ and /replace/ modes should be bound to
|
||||
the previous pattern length, but what about "NEW" mode? Should it
|
||||
just use this entire list as a new pattern (of whatever length)
|
||||
when recording is halted? */
|
||||
|
||||
event *e = new event;
|
||||
|
||||
*e = *me;
|
||||
|
||||
pattern::_recorded_events.append( e );
|
||||
|
||||
record_mode_e mode = config.record_mode;
|
||||
|
||||
if ( mode == OVERWRITE || mode == LAYER )
|
||||
{
|
||||
pattern *p = pattern::recording();
|
||||
|
||||
if ( ! p->_cleared )
|
||||
{
|
||||
|
||||
if ( mode == LAYER )
|
||||
{
|
||||
p->record_stop();
|
||||
|
||||
p = p->clone();
|
||||
|
||||
p->record( 0 );
|
||||
}
|
||||
|
||||
p->clear();
|
||||
|
||||
p->_cleared = true;
|
||||
}
|
||||
|
||||
mode = MERGE;
|
||||
}
|
||||
|
||||
/* let's fill in the pattern 'live' in merge mode. looks a little
|
||||
complicated because we have to wait for a note-off before it's
|
||||
safe to insert */
|
||||
if ( mode == MERGE || mode == NEW )
|
||||
{
|
||||
|
||||
pattern *p = pattern::recording();
|
||||
|
||||
p->lock();
|
||||
|
||||
event_list *el = &pattern::_recorded_events;
|
||||
|
||||
if ( e->is_note_off() )
|
||||
{
|
||||
event *off = e;
|
||||
|
||||
for ( event *on = el->last(); on; on = on->prev() )
|
||||
{
|
||||
if ( on->is_note_on() &&
|
||||
on->is_same_note( off ) )
|
||||
// &&
|
||||
// *on < *e )
|
||||
{
|
||||
el->unlink( on );
|
||||
el->unlink( off );
|
||||
|
||||
tick_t duration = off->timestamp() - on->timestamp();
|
||||
|
||||
/* place within loop */
|
||||
on->timestamp( ( on->timestamp() - p->_start ) % p->_rw->length );
|
||||
|
||||
on->link( off );
|
||||
on->note_duration( duration );
|
||||
|
||||
p->_rw->events.mix( on );
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
if ( ! e->is_note_on() )
|
||||
{
|
||||
|
||||
// if ( ! filter )
|
||||
|
||||
e->timestamp( e->timestamp() % p->_rw->length );
|
||||
|
||||
el->unlink( e );
|
||||
p->_rw->events.insert( e );
|
||||
}
|
||||
|
||||
p->unlock();
|
||||
}
|
||||
}
|
||||
|
||||
pattern *
|
||||
pattern::recording ( void )
|
||||
{
|
||||
return pattern::pattern_by_number( pattern::_pattern_recording );
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************/
|
||||
/* Virtual Methods */
|
||||
/*******************/
|
||||
|
||||
/* allows us to create a new pattern/phrase from a base class pointer */
|
||||
pattern *
|
||||
pattern::create ( void )
|
||||
{
|
||||
return new pattern;
|
||||
}
|
||||
|
||||
pattern *
|
||||
pattern::by_number ( int n ) const
|
||||
{
|
||||
return pattern::pattern_by_number( n );
|
||||
}
|
||||
|
||||
void
|
||||
pattern::put ( int x, int y, tick_t l )
|
||||
{
|
||||
l = l ? l : PPQN * 4 / _note;
|
||||
|
||||
Grid::put( x, y, l );
|
||||
|
||||
if ( ! transport.rolling )
|
||||
{
|
||||
/* echo note */
|
||||
midievent e;
|
||||
|
||||
e.status( event::NOTE_ON );
|
||||
e.channel( _channel );
|
||||
e.timestamp( l );
|
||||
e.note( y_to_note( y ) );
|
||||
e.note_velocity( 64 );
|
||||
|
||||
midi_output_immediate_event ( _port, &e );
|
||||
}
|
||||
}
|
||||
|
||||
const char *
|
||||
pattern::row_name ( int r ) const
|
||||
{
|
||||
return mapping.note_name( y_to_note( r ) );
|
||||
}
|
||||
|
||||
void
|
||||
pattern::draw_row_names ( Canvas *c ) const
|
||||
{
|
||||
for ( int y = 128; y-- ; )
|
||||
c->draw_row_name( y, mapping.note_name( y_to_note( y ) ), mapping.velocity( y_to_note( y ) ) );
|
||||
}
|
||||
|
||||
void
|
||||
pattern::trigger ( tick_t start, tick_t end )
|
||||
{
|
||||
if ( start > end )
|
||||
ASSERTION( "programming error: invalid loop trigger! (%lu-%lu)", start, end );
|
||||
|
||||
_start = start;
|
||||
_end = end;
|
||||
_index = 0;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
pattern::stop ( void ) const
|
||||
{
|
||||
_playing = false;
|
||||
|
||||
_start = 0;
|
||||
_end = 0;
|
||||
_index = 0;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
pattern::mode ( int n )
|
||||
{
|
||||
if ( song.play_mode == TRIGGER )
|
||||
{
|
||||
switch ( n )
|
||||
{
|
||||
case PLAY:
|
||||
_triggered = true;
|
||||
break;
|
||||
case MUTE:
|
||||
_triggered = false;
|
||||
break;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if ( n == SOLO )
|
||||
{
|
||||
if ( pattern::_solo )
|
||||
((Grid*)pattern::pattern_by_number( pattern::_solo ))->mode( PLAY );
|
||||
pattern::_solo = _number;
|
||||
Grid::mode( SOLO );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( pattern::_solo == _number )
|
||||
pattern::_solo = 0;
|
||||
|
||||
Grid::mode( n );
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
pattern::mode ( void ) const
|
||||
{
|
||||
|
||||
if ( song.play_mode == TRIGGER )
|
||||
{
|
||||
if ( ! _triggered )
|
||||
return MUTE;
|
||||
else
|
||||
return PLAY;
|
||||
}
|
||||
|
||||
if ( pattern::_solo )
|
||||
{
|
||||
if ( pattern::_solo == _number )
|
||||
return SOLO;
|
||||
else
|
||||
return MUTE;
|
||||
}
|
||||
else
|
||||
return Grid::mode();
|
||||
}
|
||||
|
||||
/* WARNING: runs in the RT thread! */
|
||||
// output notes from /start/ to /end/ (absolute)
|
||||
void
|
||||
pattern::play ( tick_t start, tick_t end ) const
|
||||
{
|
||||
/* get our own copy of this pointer so UI thread can change it. */
|
||||
const data *d = const_cast< const data * >(_rd);
|
||||
|
||||
if ( start > _end )
|
||||
{
|
||||
stop();
|
||||
WARNING( "attempt to play a loop (pattern %d) that has ended (%lu, %lu)", number(), start, _end );
|
||||
return;
|
||||
}
|
||||
else
|
||||
if ( end < _start )
|
||||
// not ready yet
|
||||
return;
|
||||
|
||||
if ( start < _start )
|
||||
start = _start;
|
||||
|
||||
if ( end > _end )
|
||||
end = _end;
|
||||
|
||||
_playing = true;
|
||||
|
||||
// where we are in the absolute time
|
||||
tick_t tick = start - _start;
|
||||
int num_played = tick / d->length;
|
||||
tick_t offset = _start + (d->length * num_played);
|
||||
|
||||
const event *e;
|
||||
|
||||
_index = tick % d->length;
|
||||
|
||||
if ( _index < end - start )
|
||||
{
|
||||
DEBUG( "Triggered pattern %d at tick %lu (ls: %lu, le: %lu, o: %lu)", number(), start, _start, _end, offset );
|
||||
|
||||
_cleared = false;
|
||||
}
|
||||
|
||||
if ( mode() == MUTE )
|
||||
return;
|
||||
|
||||
try_again:
|
||||
|
||||
// pattern is empty
|
||||
if ( d->events.empty() )
|
||||
goto done;
|
||||
|
||||
for ( e = d->events.first(); e; e = e->next() )
|
||||
{
|
||||
// MESSAGE( "s[%ld] -> t[%ld] : %ld, len %ld", start, end, e->timestamp(), _length ); // (*e).print();
|
||||
|
||||
tick_t ts = e->timestamp() + offset;
|
||||
|
||||
if ( ts >= end )
|
||||
goto done;
|
||||
|
||||
if ( ts >= start )
|
||||
{
|
||||
midievent me = *e;
|
||||
|
||||
|
||||
// MESSAGE( "timestamp %d, tick %d, ts - start == %lu", e->timestamp(), start,
|
||||
// e->timestamp() - start);
|
||||
|
||||
/* set the channel */
|
||||
me.channel( _channel );
|
||||
|
||||
/* set the in-cycle timestamp */
|
||||
me.timestamp ( ts - start );
|
||||
|
||||
if ( me.is_note_on() )
|
||||
{
|
||||
mapping.translate( &me );
|
||||
midi_output_event( _port, &me, 1 + e->note_duration() );
|
||||
}
|
||||
else
|
||||
if ( me.is_note_off() )
|
||||
midi_output_event( _port, &me, 0 );
|
||||
else
|
||||
/* any other event type */
|
||||
midi_output_event( _port, &me );
|
||||
}
|
||||
}
|
||||
|
||||
// ran out of events, but there's still some loop left to play.
|
||||
offset += d->length;
|
||||
goto try_again;
|
||||
|
||||
DEBUG( "out of events, resetting to satisfy loop" );
|
||||
|
||||
done: ;
|
||||
|
||||
}
|
||||
|
||||
/* Import /track/ of /f/ as new pattern */
|
||||
pattern *
|
||||
pattern::import ( smf *f, int track )
|
||||
{
|
||||
if ( ! f->seek_track( track ) )
|
||||
return NULL;
|
||||
|
||||
pattern *p = new pattern;
|
||||
|
||||
p->lock();
|
||||
|
||||
p->load( f );
|
||||
|
||||
/* file could have any notes in it... Use Chromatic scale to
|
||||
ensure all are visible */
|
||||
p->mapping.open( Mapping::SCALE, "Chromatic" );
|
||||
|
||||
p->unlock();
|
||||
|
||||
p->fit();
|
||||
|
||||
return p;
|
||||
}
|
||||
|
||||
/** fill pattern from current track of /f/ */
|
||||
void
|
||||
pattern::load ( smf *f )
|
||||
{
|
||||
lock();
|
||||
|
||||
f->read_pattern_info( this );
|
||||
|
||||
tick_t len;
|
||||
|
||||
list <midievent> *e = f->read_track_events( &len );
|
||||
|
||||
/* set channel to channel of first event... */
|
||||
if ( e->size() )
|
||||
_channel = e->front().channel();
|
||||
|
||||
/* copy events into pattern */
|
||||
_rw->events = *e;
|
||||
delete e;
|
||||
|
||||
if ( len )
|
||||
_rw->length = len;
|
||||
|
||||
unlock();
|
||||
|
||||
// print();
|
||||
}
|
||||
|
||||
/** save (export) pattern to file /name/ */
|
||||
void
|
||||
pattern::save ( const char *name ) const
|
||||
{
|
||||
smf f;
|
||||
|
||||
/* open for writing */
|
||||
f.open( name, smf::WRITE );
|
||||
|
||||
/* writing SMF 0 track */
|
||||
f.write_header( 0 );
|
||||
|
||||
f.open_track( _name, _number );
|
||||
|
||||
Grid::dump( &f, _channel, true );
|
||||
|
||||
f.close_track( length() );
|
||||
}
|
||||
|
||||
/** dump pattern as a track in an already open MIDI file */
|
||||
void
|
||||
pattern::dump ( smf *f ) const
|
||||
{
|
||||
f->open_track( _name, _number );
|
||||
|
||||
f->write_pattern_info( this );
|
||||
|
||||
Grid::dump( f, _channel, false );
|
||||
|
||||
f->close_track( length() );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
pattern::randomize_row ( int y, int feel, float probability )
|
||||
{
|
||||
lock();
|
||||
|
||||
int l = PPQN * 4 / _note;
|
||||
|
||||
int bx = ts_to_x( _rw->length - l );
|
||||
|
||||
float *p = (float *)alloca( feel * sizeof( float ) );
|
||||
|
||||
float prob = probability;
|
||||
for ( int i = 0; i < feel; i++ )
|
||||
{
|
||||
p[i] = prob;
|
||||
// reduce probability as we move away from center
|
||||
prob *= 0.5;
|
||||
}
|
||||
|
||||
for ( int x = 0; x < bx; x++ )
|
||||
{
|
||||
float r = ((float)rand()) / RAND_MAX;
|
||||
|
||||
if ( p[ x % feel ] + r >= 1 )
|
||||
put( x, y, l );
|
||||
}
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
/*************/
|
||||
/* Recording */
|
||||
/*************/
|
||||
|
||||
void
|
||||
pattern::record ( int mode )
|
||||
{
|
||||
_recording = true;
|
||||
pattern::_pattern_recording = _number;
|
||||
}
|
||||
|
||||
void
|
||||
pattern::record_stop ( void )
|
||||
{
|
||||
if ( ! _recording )
|
||||
return;
|
||||
|
||||
_recording = false;
|
||||
|
||||
if ( config.record_mode == NEW )
|
||||
trim();
|
||||
|
||||
pattern::_recorded_events.clear();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************/
|
||||
/* Pattern specific accessors. */
|
||||
/*******************************/
|
||||
|
||||
|
||||
int
|
||||
pattern::port ( void ) const
|
||||
{
|
||||
return _port;
|
||||
}
|
||||
|
||||
void
|
||||
pattern::port ( int p )
|
||||
{
|
||||
_port = p;
|
||||
}
|
||||
|
||||
int
|
||||
pattern::channel ( void ) const
|
||||
{
|
||||
return _channel;
|
||||
}
|
||||
|
||||
void
|
||||
pattern::channel ( int c )
|
||||
{
|
||||
_channel = c;
|
||||
}
|
||||
|
||||
int
|
||||
pattern::note ( void ) const
|
||||
{
|
||||
return _note;
|
||||
}
|
||||
|
||||
void
|
||||
pattern::note ( int n )
|
||||
{
|
||||
_note = n;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
pattern::ppqn ( void ) const
|
||||
{
|
||||
return _ppqn;
|
||||
}
|
||||
|
||||
void
|
||||
pattern::ppqn ( int n )
|
||||
{
|
||||
_ppqn = n;
|
||||
}
|
||||
|
||||
int
|
||||
pattern::key ( void ) const
|
||||
{
|
||||
return mapping.key();
|
||||
}
|
||||
|
||||
void
|
||||
pattern::key ( int k )
|
||||
{
|
||||
mapping.key( k );
|
||||
}
|
|
@ -0,0 +1,115 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007-2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "grid.H"
|
||||
#include "canvas.H"
|
||||
#include "mapping.H"
|
||||
// #include "event.H"
|
||||
|
||||
typedef unsigned long tick_t;
|
||||
|
||||
#include <vector>
|
||||
using std::vector;
|
||||
|
||||
class pattern : public Grid
|
||||
{
|
||||
static event_list _recorded_events;
|
||||
static vector <pattern *> _patterns;
|
||||
static int _solo;
|
||||
static int _pattern_recording;
|
||||
|
||||
static int solo ( void );
|
||||
|
||||
int _channel, _port;
|
||||
|
||||
bool _recording;
|
||||
mutable volatile bool _cleared;
|
||||
|
||||
volatile bool _triggered;
|
||||
|
||||
// int _key;
|
||||
|
||||
int _note;
|
||||
|
||||
|
||||
void _add ( void );
|
||||
|
||||
|
||||
public:
|
||||
|
||||
static signal <void> signal_create_destroy;
|
||||
|
||||
Mapping mapping;
|
||||
|
||||
pattern ( void );
|
||||
~pattern ( void );
|
||||
pattern ( const pattern &rhs );
|
||||
|
||||
static int patterns ( void );
|
||||
static pattern * pattern_by_number ( int n );
|
||||
static void reset ( void );
|
||||
static pattern * import ( smf *f, int track );
|
||||
|
||||
static pattern * recording ( void );
|
||||
static void record_event ( const midievent *e );
|
||||
|
||||
pattern * create ( void );
|
||||
pattern * by_number ( int n ) const;
|
||||
|
||||
pattern * clone ( void );
|
||||
void put ( int x, int y, tick_t l );
|
||||
const char * row_name ( int r ) const;
|
||||
void draw_row_names ( Canvas *c ) const;
|
||||
void trigger ( tick_t start, tick_t end );
|
||||
void stop ( void ) const;
|
||||
void play ( tick_t start, tick_t end ) const;
|
||||
|
||||
void load ( smf *f );
|
||||
|
||||
void record( int mode );
|
||||
void record_stop ( void );
|
||||
|
||||
void toggle_trigger ( void );
|
||||
bool triggered ( void ) const;
|
||||
|
||||
void randomize_row ( int y, int feel, float probability );
|
||||
|
||||
int port ( void ) const;
|
||||
void port ( int p );
|
||||
int channel ( void ) const;
|
||||
void channel ( int c );
|
||||
int note ( void ) const;
|
||||
void note ( int n );
|
||||
|
||||
void mode ( int n );
|
||||
int mode ( void ) const;
|
||||
|
||||
int key ( void ) const;
|
||||
void key ( int k );
|
||||
|
||||
int load ( const char *name );
|
||||
void save ( const char *name ) const;
|
||||
void dump ( smf *f ) const;
|
||||
|
||||
int ppqn ( void ) const;
|
||||
void ppqn ( int n );
|
||||
|
||||
};
|
|
@ -0,0 +1,290 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007,2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#include "phrase.H"
|
||||
#include "gui/draw.H"
|
||||
#include "pattern.H"
|
||||
#include "smf.H"
|
||||
#include "common.h"
|
||||
|
||||
vector <phrase*> phrase::_phrases;
|
||||
signal <void> phrase::signal_create_destroy;
|
||||
|
||||
phrase::phrase ( void )
|
||||
{
|
||||
|
||||
viewport.h = 32;
|
||||
viewport.w = 32;
|
||||
|
||||
_draw_shape = SQUARE;
|
||||
|
||||
_add();
|
||||
|
||||
char *s;
|
||||
asprintf( &s, "Phrase %d", number() );
|
||||
|
||||
name( s );
|
||||
|
||||
}
|
||||
|
||||
|
||||
phrase::~phrase ( void )
|
||||
{
|
||||
MESSAGE( "deleting phrase %d", number() );
|
||||
signal_create_destroy();
|
||||
}
|
||||
|
||||
void
|
||||
phrase::_add ( void )
|
||||
{
|
||||
// keep track of all the phrases
|
||||
phrase::_phrases.push_back( this );
|
||||
_number = phrases();
|
||||
|
||||
signal_create_destroy();
|
||||
}
|
||||
|
||||
/* copy constructor */
|
||||
phrase::phrase ( const phrase &rhs ) : Grid( rhs )
|
||||
{
|
||||
_add();
|
||||
}
|
||||
|
||||
phrase *
|
||||
phrase::clone ( void )
|
||||
{
|
||||
return new phrase( *this );
|
||||
}
|
||||
|
||||
/******************/
|
||||
/* Static methods */
|
||||
/******************/
|
||||
|
||||
int
|
||||
phrase::phrases ( void )
|
||||
{
|
||||
return phrase::_phrases.size();
|
||||
}
|
||||
|
||||
phrase *
|
||||
phrase::phrase_by_number ( int n )
|
||||
{
|
||||
if ( n <= phrases() && n > 0 )
|
||||
{
|
||||
return phrase::_phrases[ n - 1 ];
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
phrase::reset ( void )
|
||||
{
|
||||
for ( int n = phrase::phrases(); n-- ; )
|
||||
{
|
||||
delete phrase::_phrases.back();
|
||||
phrase::_phrases.pop_back();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*******************/
|
||||
/* Virtual Methods */
|
||||
/*******************/
|
||||
|
||||
phrase *
|
||||
phrase::create ( void )
|
||||
{
|
||||
return new phrase;
|
||||
}
|
||||
|
||||
phrase *
|
||||
phrase::by_number ( int n ) const
|
||||
{
|
||||
return phrase::phrase_by_number( n );
|
||||
}
|
||||
|
||||
void
|
||||
phrase::put ( int x, int y, tick_t l )
|
||||
{
|
||||
// FIXME: fix insertion length to the length of the pattern
|
||||
// referred to by this row.
|
||||
|
||||
l = 4;
|
||||
|
||||
// FIXME: use translation here.
|
||||
pattern *p = pattern::pattern_by_number( y + 1 );
|
||||
|
||||
if ( ! p )
|
||||
return;
|
||||
|
||||
l = p->length();
|
||||
|
||||
Grid::put( x, y, l );
|
||||
}
|
||||
|
||||
const char *
|
||||
phrase::row_name ( int r ) const
|
||||
{
|
||||
pattern *p = pattern::pattern_by_number( r + 1 );
|
||||
|
||||
return p ? p->name() : NULL;
|
||||
}
|
||||
|
||||
void
|
||||
phrase::draw_row_names ( Canvas *c ) const
|
||||
{
|
||||
for ( int y = 128; y-- ; )
|
||||
{
|
||||
pattern *p = pattern::pattern_by_number( y + 1 );
|
||||
|
||||
if ( p && p->name() )
|
||||
c->draw_row_name( y, p->name(), 0 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
phrase::trigger ( tick_t start, tick_t end )
|
||||
{
|
||||
_start = start;
|
||||
_end = end;
|
||||
}
|
||||
|
||||
// FIXME: so much of this is copied from pattern.C, there has
|
||||
// to be a way to share more of this code.
|
||||
void
|
||||
phrase::play ( tick_t start, tick_t end )
|
||||
{
|
||||
/* get our own copy of this pointer so UI thread can change it. */
|
||||
const data *d = const_cast< const data * >(_rd);
|
||||
|
||||
if ( start > _end )
|
||||
{
|
||||
WARNING( "attempt to play a phrase that has ended (%lu, %lu)", start, _end );
|
||||
return;
|
||||
}
|
||||
else
|
||||
if ( start < _start )
|
||||
// not ready yet
|
||||
return;
|
||||
|
||||
|
||||
if ( start < _start )
|
||||
start = _start;
|
||||
|
||||
if ( end > _end )
|
||||
end = _end;
|
||||
|
||||
_playing = true;
|
||||
|
||||
// where we are in the absolute time
|
||||
tick_t tick = start - _start;
|
||||
int num_played = tick / d->length;
|
||||
tick_t offset = _start + (d->length * num_played);
|
||||
|
||||
_index = tick % d->length;
|
||||
|
||||
if ( _index < end - start )
|
||||
MESSAGE( "Triggered phrase %d at tick %lu (ls: %lu, le: %lu, o: %lu)", number(), start, _start, _end, offset );
|
||||
|
||||
try_again:
|
||||
|
||||
// pattern is empty
|
||||
if ( d->events.empty() )
|
||||
goto done;
|
||||
|
||||
for ( const event *e = d->events.first(); e; e = e->next() )
|
||||
{
|
||||
// MESSAGE( "s[%ld] -> t[%ld] : %ld, len %ld", start, end, e->timestamp(), _length ); // (*e).print();
|
||||
|
||||
tick_t ts = e->timestamp() + offset;
|
||||
|
||||
if ( ts >= end )
|
||||
goto done;
|
||||
|
||||
if ( ts >= start )
|
||||
{
|
||||
event ne = *e;
|
||||
if ( ne.is_note_on() || ne.is_note_off() )
|
||||
{
|
||||
int ev_note = e->note();
|
||||
|
||||
// d->mapping.translate( &ne );
|
||||
|
||||
pattern *p = pattern::pattern_by_number( 1 + note_to_y( ev_note ) );
|
||||
|
||||
if ( p )
|
||||
{
|
||||
if ( e->is_note_on() )
|
||||
{
|
||||
p->trigger( ts, offset + e->link()->timestamp() );
|
||||
p->play( ts, end );
|
||||
}
|
||||
else
|
||||
if ( e->is_note_off() )
|
||||
p->stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// ran out of events, but there's still some loop left to play.
|
||||
offset += d->length;
|
||||
goto try_again;
|
||||
|
||||
MESSAGE( "out of events, resetting to satisfy loop" );
|
||||
|
||||
done: ;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
phrase::load ( smf *f )
|
||||
{
|
||||
lock();
|
||||
|
||||
f->read_phrase_info( this );
|
||||
|
||||
tick_t len;
|
||||
|
||||
list <midievent> *me = f->read_track_events( &len );
|
||||
|
||||
_rw->events = *me;
|
||||
delete me;
|
||||
|
||||
if ( len )
|
||||
_rw->length = len;
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
void
|
||||
phrase::dump ( smf *f )
|
||||
{
|
||||
f->open_track( _name, -1 );
|
||||
|
||||
f->write_phrase_info( this );
|
||||
|
||||
f->cue( true );
|
||||
|
||||
Grid::dump( f, 0, false );
|
||||
|
||||
f->close_track( length() );
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2007,2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "grid.H"
|
||||
#include "canvas.H"
|
||||
|
||||
class pattern;
|
||||
|
||||
#include <vector>
|
||||
using std::vector;
|
||||
|
||||
class phrase : public Grid
|
||||
{
|
||||
|
||||
static vector <phrase*> _phrases;
|
||||
|
||||
void _add ( void );
|
||||
|
||||
public:
|
||||
|
||||
static signal <void> signal_create_destroy;
|
||||
|
||||
phrase ( void );
|
||||
~phrase ( void );
|
||||
phrase ( const phrase &rhs );
|
||||
|
||||
static int phrases ( void );
|
||||
static phrase * phrase_by_number ( int n );
|
||||
static void reset ( void );
|
||||
|
||||
phrase *create ( void );
|
||||
phrase * by_number ( int n ) const;
|
||||
|
||||
void put ( int x, int y, tick_t l );
|
||||
phrase * clone ( void );
|
||||
const char * row_name ( int r ) const;
|
||||
void draw_row_names ( Canvas *c ) const;
|
||||
void play ( tick_t start, tick_t end );
|
||||
void trigger ( tick_t start, tick_t end );
|
||||
|
||||
void load ( smf *f );
|
||||
void dump ( smf *f );
|
||||
};
|
|
@ -0,0 +1,205 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#include "scale.H"
|
||||
#include "common.h"
|
||||
|
||||
#include "stdlib.h"
|
||||
|
||||
/* Define some scales. These don't really need to be stored on
|
||||
disk. Scales don't change that often. */
|
||||
|
||||
const char *Scale::chromatic_names[] =
|
||||
/* { "A", */
|
||||
/* "A#/Bb", */
|
||||
/* "B", */
|
||||
/* "C", */
|
||||
/* "C#/Db", */
|
||||
/* "D", */
|
||||
/* "D#/Eb", */
|
||||
/* "E", */
|
||||
/* "F", */
|
||||
/* "F#/Gb", */
|
||||
/* "G", */
|
||||
/* "G#/Ab" }; */
|
||||
|
||||
/* { "C", */
|
||||
/* "C#/Db", */
|
||||
/* "D", */
|
||||
/* "D#/Eb", */
|
||||
/* "E", */
|
||||
/* "F", */
|
||||
/* "F#/Gb", */
|
||||
/* "G", */
|
||||
/* "G#/Ab", */
|
||||
/* "A", */
|
||||
/* "A#/Bb", */
|
||||
/* "B" }; */
|
||||
|
||||
|
||||
{ "C",
|
||||
"C#",
|
||||
"D",
|
||||
"D#",
|
||||
"E",
|
||||
"F",
|
||||
"F#",
|
||||
"G",
|
||||
"G#",
|
||||
"A",
|
||||
"A#",
|
||||
"B" };
|
||||
|
||||
|
||||
Scale Scale::builtin_scales[] = {
|
||||
{ "Major",
|
||||
7,
|
||||
{ 0, 2, 4, 5, 7, 9, 11 } },
|
||||
{ "Natural Minor",
|
||||
7,
|
||||
{ 0, 2, 3, 5, 7, 8, 10 } },
|
||||
{ "Harmonic Minor",
|
||||
7,
|
||||
{ 0, 2, 3, 5, 7, 8, 11 } },
|
||||
{ "Melodic Minor",
|
||||
7,
|
||||
{ 0, 2, 3, 5, 7, 9, 11 } },
|
||||
{ "Major Pentatonic",
|
||||
5,
|
||||
{ 0, 2, 4, 7, 9 } },
|
||||
{ "Minor Pentatonic",
|
||||
5,
|
||||
{ 0, 3, 5, 7, 10 } },
|
||||
{ "Chromatic",
|
||||
12,
|
||||
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 } }
|
||||
};
|
||||
|
||||
/* const Scale builtin_chords[] = { */
|
||||
/* { "Major Triad", */
|
||||
/* { 0, 4, 7, -1 } }, */
|
||||
/* { "Major Sixth", */
|
||||
/* { 0, 4, 7, 9, -1 } }, */
|
||||
/* { "Major Seventh", */
|
||||
/* { 0, 4, 7, 11, -1 } }, */
|
||||
/* { "Major Ninth", */
|
||||
/* { 0, 4, 7, 11, 14, -1 } }, */
|
||||
/* { "Major 6/9", */
|
||||
/* { 0, 4, 7, 9, 14, -1 } }, */
|
||||
/* { "Major Eleventh", */
|
||||
/* { 0, 4, 7, 11, 14, 17, -1 } }, */
|
||||
/* { "Major Thirteenth", */
|
||||
/* { 0, 4, 7, 11, 14, 17, 21, -1 } }, */
|
||||
|
||||
/* { "Minor Triad", */
|
||||
/* { 0, 3, 7, -1 } }, */
|
||||
/* { "Minor Sixth", */
|
||||
/* { 0, 3, 7, 9, -1 } }, */
|
||||
/* { "Minor Seventh", */
|
||||
/* { 0, 3, 7, 10, -1 } }, */
|
||||
/* { "Minor Ninth", */
|
||||
/* { 0, 3, 7, 10, 14, -1 } }, */
|
||||
/* { "Minor 6/9", */
|
||||
/* { 0, 3, 7, 9, 14, -1 } }, */
|
||||
/* { "Minor Eleventh", */
|
||||
/* { 0, 3, 7, 10, 14, 17, -1 } }, */
|
||||
/* { "Minor Thirteenth", */
|
||||
/* { 0, 3, 7, 10, 14, 17, 21, -1 } }, */
|
||||
|
||||
/* { "Augmented Triad", */
|
||||
/* { 0, 4, 8, -1 } }, */
|
||||
/* { "Diminished Triad", */
|
||||
/* { 0, 3, 6, -1 } } */
|
||||
/* }; */
|
||||
|
||||
|
||||
/* "Opens" a scale for compatibility with Instrument class */
|
||||
Scale *
|
||||
Scale::open ( const char *name )
|
||||
{
|
||||
for ( int i = elementsof( builtin_scales ) - 1; i >= 0; --i )
|
||||
if ( 0 == strcmp( name, builtin_scales[i]._name ) )
|
||||
return &builtin_scales[i];
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Returns a list of available scales */
|
||||
char **
|
||||
Scale::listing ( void )
|
||||
{
|
||||
char **sa;
|
||||
|
||||
int n = elementsof( builtin_scales );
|
||||
|
||||
sa = (char **)malloc( sizeof ( char * ) * ( n + 1 ) );
|
||||
sa[n] = NULL;
|
||||
|
||||
while ( n-- )
|
||||
sa[n] = strdup( builtin_scales[n]._name );
|
||||
|
||||
return sa;
|
||||
}
|
||||
|
||||
const char *
|
||||
Scale::chromatic_name ( int n )
|
||||
{
|
||||
return chromatic_names[ n % 12 ];
|
||||
}
|
||||
|
||||
int
|
||||
Scale::octave ( int n )
|
||||
{
|
||||
return n / 12;
|
||||
}
|
||||
|
||||
int
|
||||
Scale::_degree ( int k, int n ) const
|
||||
{
|
||||
return k + _degrees[ n % _notes ];
|
||||
}
|
||||
|
||||
/* translate NOTE event. Behavior is undefined for other event types */
|
||||
void
|
||||
Scale::translate ( int k, midievent *e ) const
|
||||
{
|
||||
/* does nothing now... */
|
||||
/* TODO: invalidate events that are note on/offs for notes outside the scale. */
|
||||
}
|
||||
|
||||
const char *
|
||||
Scale::note_name ( int k, int n ) const
|
||||
{
|
||||
/* all the magic is here */
|
||||
|
||||
n %= 12;
|
||||
|
||||
// FIXME: searching is not efficient!
|
||||
for ( int i = _notes; i-- ; )
|
||||
if ( n == (_degrees[ i ] + k) % 12 )
|
||||
return chromatic_names[ n ];
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const char *
|
||||
Scale::name ( void ) const
|
||||
{
|
||||
return _name;
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "event.H"
|
||||
|
||||
class Scale
|
||||
{
|
||||
|
||||
static const char *chromatic_names[];
|
||||
static Scale builtin_scales[];
|
||||
|
||||
int _degree ( int k, int n ) const;
|
||||
|
||||
public:
|
||||
const char *_name;
|
||||
int _notes;
|
||||
int _degrees[13];
|
||||
|
||||
public:
|
||||
|
||||
static Scale * open ( const char *name );
|
||||
static char ** listing ( void );
|
||||
static const char * chromatic_name ( int n );
|
||||
static int octave ( int n );
|
||||
|
||||
void translate ( int k, midievent *e ) const;
|
||||
int note ( int k, int n ) const;
|
||||
const char * note_name ( int k, int n ) const;
|
||||
const char * name ( void ) const;
|
||||
};
|
|
@ -0,0 +1,402 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#include "sequence.H"
|
||||
#include "phrase.H"
|
||||
#include "pattern.H"
|
||||
#include "smf.H"
|
||||
|
||||
#include "non.H"
|
||||
|
||||
/* #include <string> */
|
||||
|
||||
/* using std::string; */
|
||||
|
||||
sequence::sequence ( void )
|
||||
{
|
||||
_rd = new data;
|
||||
_notes = NULL;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
sequence::lock ( void )
|
||||
{
|
||||
// create a copy of the lock-free data.
|
||||
_rw = new data;
|
||||
|
||||
data *d = const_cast< data *> (_rd);
|
||||
|
||||
_rw->phrases = d->phrases;
|
||||
_rw->num = d->num;
|
||||
}
|
||||
|
||||
void
|
||||
sequence::unlock ( void )
|
||||
{
|
||||
_history.push_back( const_cast<data *>( _rd ) );
|
||||
|
||||
if ( _history.size() > MAX_UNDO + 1 )
|
||||
{
|
||||
data *d = _history.front();
|
||||
|
||||
if ( d == _rw || d == _rd )
|
||||
ASSERTION( "something bad has happend." );
|
||||
|
||||
delete d;
|
||||
|
||||
_history.pop_front();
|
||||
}
|
||||
|
||||
// swap the copy back in (atomically).
|
||||
_rd = _rw;
|
||||
|
||||
_rw = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
sequence::insert ( unsigned int n, int pn )
|
||||
{
|
||||
lock();
|
||||
|
||||
/* if ( n > _rw->phrases.size() ) */
|
||||
/* _rw->phrases.resize( n + 10 ); */
|
||||
|
||||
// MESSAGE( "inserting %d at %d", pn, n );
|
||||
|
||||
_rw->phrases.insert( _find( n ), pn );
|
||||
_rw->num++;
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
vector <int>::iterator
|
||||
sequence::_find ( int n )
|
||||
{
|
||||
// boy I hate C++/STL.. So lame.
|
||||
int i = 0;
|
||||
for ( vector <int>::iterator e = _rw->phrases.begin(); e != _rw->phrases.end(); e++ )
|
||||
{
|
||||
if ( i == n )
|
||||
return e;
|
||||
i++;
|
||||
}
|
||||
|
||||
return _rw->phrases.end();
|
||||
}
|
||||
|
||||
void
|
||||
sequence::remove ( int n )
|
||||
{
|
||||
lock();
|
||||
|
||||
_rw->phrases.erase( _find( n ) );
|
||||
_rw->num--;
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
int
|
||||
sequence::length ( void ) const
|
||||
{
|
||||
return _rd->num;
|
||||
}
|
||||
|
||||
void
|
||||
sequence::_swap ( int n1, int n2 )
|
||||
{
|
||||
int x = _rw->phrases[ n1 ];
|
||||
_rw->phrases[ n1 ] = _rw->phrases[ n2 ];
|
||||
_rw->phrases[ n2 ] = x;
|
||||
}
|
||||
|
||||
void
|
||||
sequence::move ( int n, int dir )
|
||||
{
|
||||
lock();
|
||||
|
||||
switch ( dir )
|
||||
{
|
||||
case UP:
|
||||
{
|
||||
if ( n - 1 >= 0 )
|
||||
_swap( n - 1, n );
|
||||
break;
|
||||
}
|
||||
case DOWN:
|
||||
{
|
||||
if ( n + 1 < _rw->num )
|
||||
_swap( n + 1, n );
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
/* Render sequence to a string.. suitable for display in the UI */
|
||||
char *
|
||||
sequence::dump ( void )
|
||||
{
|
||||
char *s = (char *)malloc( 256 );
|
||||
s[0] = '\0';
|
||||
size_t siz = 256;
|
||||
|
||||
int start = 1;
|
||||
for ( int i = 0; i < _rd->num; i++ )
|
||||
{
|
||||
const int len = 256;
|
||||
|
||||
char line[len];
|
||||
|
||||
int x = _rd->phrases[ i ];
|
||||
|
||||
phrase *p = phrase::phrase_by_number( x );
|
||||
|
||||
if ( ! p )
|
||||
return NULL;
|
||||
|
||||
snprintf( line, len, "%d\t%d\t%s\n", start, p->number(), p->name() );
|
||||
|
||||
start += p->bars();
|
||||
|
||||
s = (char *)realloc( s, siz += strlen( line ) + 1 );
|
||||
|
||||
strcat( s, line );
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
sequence::play ( tick_t start, tick_t end ) const
|
||||
{
|
||||
// keep our own copy.
|
||||
data *d = _rd;
|
||||
|
||||
tick_t offset = 0;
|
||||
for ( int i = 0; i < d->num; i++ )
|
||||
{
|
||||
phrase *p = phrase::phrase_by_number( d->phrases[ i ] );
|
||||
if ( p )
|
||||
{
|
||||
tick_t pstart = offset;
|
||||
tick_t pend = offset + p->length();
|
||||
|
||||
// this phrase seems to be current.
|
||||
if ( pend > start )
|
||||
{
|
||||
// FIXME: don't really need to trigger more than once!
|
||||
p->trigger( pstart, pend );
|
||||
p->play( start, end );
|
||||
break;
|
||||
}
|
||||
|
||||
offset = pend;
|
||||
}
|
||||
else
|
||||
WARNING( "programming error: no such phrase." );
|
||||
}
|
||||
}
|
||||
|
||||
/** return to a blank slate */
|
||||
void
|
||||
sequence::reset ( void )
|
||||
{
|
||||
// MESSAGE( "reseting" );
|
||||
|
||||
lock();
|
||||
|
||||
_rw->num = 0;
|
||||
|
||||
phrase::reset();
|
||||
pattern::reset();
|
||||
|
||||
unlock();
|
||||
}
|
||||
|
||||
/** load entire sequence from file, replacing everything */
|
||||
bool
|
||||
sequence::load ( const char *name )
|
||||
{
|
||||
smf f;
|
||||
|
||||
f.open( name, smf::READ );
|
||||
|
||||
f.read_header();
|
||||
|
||||
if ( f.format() != 2 )
|
||||
{
|
||||
WARNING( "not a Non song file" );
|
||||
return false;
|
||||
}
|
||||
|
||||
f.next_track();
|
||||
|
||||
MESSAGE( "reading song info" );
|
||||
|
||||
/* read song info */
|
||||
|
||||
|
||||
int mode, phrases, patterns;
|
||||
char *sname, *notes;
|
||||
|
||||
if ( ! f.read_song_info( &mode, &phrases, &patterns, &sname, ¬es ) )
|
||||
{
|
||||
WARNING( "not a Non song file" );
|
||||
return false;
|
||||
}
|
||||
|
||||
song.play_mode = (play_mode_e)mode;
|
||||
|
||||
if ( sname )
|
||||
this->name( sname );
|
||||
|
||||
if ( notes )
|
||||
this->notes( notes );
|
||||
|
||||
/* tear it down */
|
||||
reset();
|
||||
|
||||
MESSAGE( "reading playlist" );
|
||||
|
||||
// f.read_playlist( this );
|
||||
|
||||
lock();
|
||||
|
||||
char *s;
|
||||
while ( (s = f.read_cue_point() ) )
|
||||
{
|
||||
int n;
|
||||
|
||||
sscanf( s, "%d:", &n );
|
||||
|
||||
_rw->phrases.insert( _find( _rw->num++ ), n );
|
||||
}
|
||||
|
||||
/* read playlist */
|
||||
|
||||
MESSAGE( "reading phrases" );
|
||||
|
||||
while ( phrases-- && f.next_track() )
|
||||
{
|
||||
phrase *p = new phrase;
|
||||
|
||||
p->load( &f );
|
||||
}
|
||||
|
||||
MESSAGE( "reading patterns" );
|
||||
|
||||
while ( patterns-- && f.next_track() )
|
||||
{
|
||||
pattern *p = new pattern;
|
||||
|
||||
p->load( &f );
|
||||
}
|
||||
|
||||
unlock();
|
||||
|
||||
signal_new_song();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/** save entire sequence to file */
|
||||
void
|
||||
sequence::save ( const char *name ) const
|
||||
{
|
||||
smf f;
|
||||
|
||||
/* open for writing */
|
||||
f.open( name, smf::WRITE );
|
||||
|
||||
f.write_header( 2 );
|
||||
|
||||
MESSAGE( "saving playlist" );
|
||||
|
||||
f.open_track( NULL, -1 );
|
||||
|
||||
MESSAGE( "saving song info" );
|
||||
|
||||
f.write_song_info( song.play_mode, phrase::phrases(), pattern::patterns(), this->name(), notes() );
|
||||
|
||||
for ( int i = 0; i < _rd->num; ++i )
|
||||
{
|
||||
char pat[256];
|
||||
|
||||
phrase *p = phrase::phrase_by_number( _rd->phrases[ i ] );
|
||||
|
||||
snprintf( pat, 256, "%d: %s", p->number(), p->name() );
|
||||
|
||||
f.write_meta_event( smf::CUEPOINT, pat );
|
||||
}
|
||||
|
||||
f.close_track( 0 );
|
||||
|
||||
MESSAGE( "saving phrases" );
|
||||
|
||||
for ( int i = 0; i < phrase::phrases(); i++ )
|
||||
{
|
||||
phrase *p = phrase::phrase_by_number( i + 1 );
|
||||
|
||||
p->dump( &f );
|
||||
}
|
||||
|
||||
MESSAGE( "saving patterns" );
|
||||
for ( int i = 0; i < pattern::patterns(); i++ )
|
||||
{
|
||||
pattern *p = pattern::pattern_by_number( i + 1 );
|
||||
|
||||
p->dump( &f );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*************/
|
||||
/* Accessors */
|
||||
/*************/
|
||||
|
||||
char *
|
||||
sequence::name ( void ) const
|
||||
{
|
||||
return _name;
|
||||
}
|
||||
|
||||
void
|
||||
sequence::name ( const char *s )
|
||||
{
|
||||
if ( _name ) free( _name );
|
||||
|
||||
_name = strdup( s );
|
||||
}
|
||||
|
||||
char *
|
||||
sequence::notes ( void ) const
|
||||
{
|
||||
return _notes;
|
||||
}
|
||||
|
||||
void
|
||||
sequence::notes ( const char *s )
|
||||
{
|
||||
if ( _notes ) free( _notes );
|
||||
|
||||
_notes = strdup( s );
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <list>
|
||||
|
||||
#include <sigc++/sigc++.h>
|
||||
|
||||
typedef unsigned long tick_t;
|
||||
|
||||
using std::vector;
|
||||
using std::list;
|
||||
using namespace sigc;
|
||||
|
||||
class sequence : public trackable {
|
||||
|
||||
struct data {
|
||||
vector <int> phrases;
|
||||
int num;
|
||||
|
||||
data() { num = 0; }
|
||||
};
|
||||
|
||||
list <data *> _history;
|
||||
|
||||
data *_rd;
|
||||
data *_rw;
|
||||
|
||||
char * _name;
|
||||
char * _notes;
|
||||
|
||||
void lock ( void );
|
||||
void unlock ( void );
|
||||
|
||||
vector <int>::iterator _find ( int n );
|
||||
|
||||
void _swap ( int n1, int n2 );
|
||||
|
||||
public:
|
||||
|
||||
signal <void> signal_new_song;
|
||||
|
||||
sequence( void );
|
||||
|
||||
void reset ( void );
|
||||
|
||||
void insert ( unsigned int n, int pn );
|
||||
void remove ( int n );
|
||||
void move ( int n, int dir );
|
||||
int length ( void ) const;
|
||||
char * dump ( void );
|
||||
bool load ( const char *name );
|
||||
void save ( const char *name ) const;
|
||||
void play ( tick_t start, tick_t end ) const;
|
||||
|
||||
char * name ( void ) const;
|
||||
void name ( const char *s );
|
||||
char * notes ( void ) const;
|
||||
void notes ( const char *s );
|
||||
|
||||
};
|
|
@ -0,0 +1,144 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "grid.H"
|
||||
#include "event.H"
|
||||
|
||||
class pattern;
|
||||
class phrase;
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
class smf
|
||||
{
|
||||
|
||||
char * _name;
|
||||
|
||||
int _format; /* 0, 1, 2 */
|
||||
|
||||
FILE *_fp;
|
||||
|
||||
/* reader */
|
||||
long _length; /* length of the current chunk */
|
||||
long _pos; /* number of bytes read from chunk */
|
||||
int _ppqn; /* PPQN of imported files */
|
||||
|
||||
/* writer */
|
||||
unsigned int _tally; /* number of bytes written thus far */
|
||||
long _num_tracks_pos; /* where to write the number of tracks when known */
|
||||
long _length_pos; /* where to write the chunk length when known */
|
||||
int _cue; /* transform note ons to cue events for this track */
|
||||
|
||||
int _tracks; /* number of tracks */
|
||||
int _track; /* current track */
|
||||
tick_t _time; /* current timestamp in writer */
|
||||
|
||||
int _mode;
|
||||
|
||||
byte_t _status;
|
||||
|
||||
public:
|
||||
|
||||
enum { WRITE, READ };
|
||||
|
||||
unsigned long read_long ( void );
|
||||
unsigned short read_short ( void );
|
||||
unsigned long read_var ( void );
|
||||
void read_bytes ( void *p, int l );
|
||||
byte_t read_byte ( void );
|
||||
|
||||
void write_var ( long var );
|
||||
void write_long ( unsigned long x );
|
||||
void write_ascii ( const char *buf );
|
||||
void write_short ( unsigned short x );
|
||||
void write_byte ( byte_t b );
|
||||
void write_bytes ( const void *p, size_t l );
|
||||
|
||||
/* Meta Event codes */
|
||||
enum {
|
||||
SEQUENCE = 0x00,
|
||||
TEXT = 0x01,
|
||||
COPYRIGHT = 0x02,
|
||||
NAME = 0x03,
|
||||
INSTRUMENT = 0x04,
|
||||
LYRIC = 0x05,
|
||||
MARKER = 0x06,
|
||||
CUEPOINT = 0x07,
|
||||
PROGRAM = 0x08,
|
||||
DEVICE = 0x09,
|
||||
CHANNEL = 0x20,
|
||||
PORT = 0x21,
|
||||
END = 0x2F,
|
||||
TEMPO = 0x51,
|
||||
SMPTE = 0x54,
|
||||
TIMESIG = 0x58,
|
||||
KEYSIG = 0x59,
|
||||
PROPRIETARY = 0x7F
|
||||
};
|
||||
|
||||
smf( void );
|
||||
~smf( void );
|
||||
|
||||
int open ( const char *name, int mode );
|
||||
|
||||
static void print_track_listing ( const char *name );
|
||||
|
||||
void write_meta_event ( byte_t type, int n );
|
||||
void write_meta_event ( byte_t type, const char *s );
|
||||
|
||||
void write_event ( const midievent *e );
|
||||
void write_header ( int tracks );
|
||||
|
||||
void open_chunk ( const char *id );
|
||||
void close_chunk ( void );
|
||||
void open_track ( const char *name, int num );
|
||||
void close_track ( tick_t length );
|
||||
|
||||
void write_pattern_info ( const pattern *p );
|
||||
|
||||
void cue ( bool b );
|
||||
|
||||
list <midievent> * read_track_events ( tick_t *length );
|
||||
|
||||
void write_phrase_info ( const phrase *p );
|
||||
|
||||
bool read_song_info( int *mode, int *phrases, int *patterns, char **name, char **notes );
|
||||
void write_song_info( int mode, int phrases, int patterns, const char *name, const char *notes );
|
||||
|
||||
void home ( void );
|
||||
void skip ( size_t l );
|
||||
void backup ( size_t l );
|
||||
|
||||
int next_track ( void );
|
||||
bool seek_track ( int n );
|
||||
char ** track_listing ( void );
|
||||
|
||||
char * read_cue_point ( void );
|
||||
int read_header ( void );
|
||||
char * read_text ( void );
|
||||
char * read_track_name ( void );
|
||||
bool read_phrase_info ( phrase *p );
|
||||
bool read_pattern_info ( pattern *p );
|
||||
|
||||
int format ( void ) const;
|
||||
int tracks ( void ) const;
|
||||
|
||||
};
|
|
@ -0,0 +1,197 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#include <jack/jack.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "transport.H"
|
||||
#include "common.h"
|
||||
#include "const.h"
|
||||
|
||||
extern jack_client_t *client;
|
||||
|
||||
/* FIXME: use JackSyncCallback instead? (sync-callback) */
|
||||
|
||||
Transport transport;
|
||||
|
||||
static bool _done;
|
||||
|
||||
/** callback for when we're Timebase Master, mostly taken from
|
||||
* transport.c in Jack's example clients. */
|
||||
void
|
||||
Transport::timebase ( jack_transport_state_t state, jack_nframes_t nframes, jack_position_t *pos, int new_pos, void *arg )
|
||||
{
|
||||
pos->valid = JackPositionBBT;
|
||||
pos->beats_per_bar = transport._master_beats_per_bar;
|
||||
pos->ticks_per_beat = PPQN;
|
||||
|
||||
/* FIXME: WTF is this? Quarter note? */
|
||||
pos->beat_type = transport._master_beat_type;
|
||||
|
||||
pos->beats_per_minute = transport._master_beats_per_minute;
|
||||
|
||||
if ( new_pos || ! _done )
|
||||
{
|
||||
double wallclock = pos->frame / (pos->frame_rate * 60);
|
||||
|
||||
unsigned long abs_tick = wallclock * pos->beats_per_minute * pos->ticks_per_beat;
|
||||
unsigned long abs_beat = abs_tick / pos->ticks_per_beat;
|
||||
|
||||
pos->bar = abs_beat / pos->beats_per_bar;
|
||||
pos->beat = abs_beat - (pos->bar * pos->beats_per_bar) + 1;
|
||||
pos->tick = abs_tick - (abs_beat * pos->ticks_per_beat);
|
||||
pos->bar_start_tick = pos->bar * pos->beats_per_bar * pos->ticks_per_beat;
|
||||
pos->bar++;
|
||||
|
||||
_done = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
// FIXME: use ticks_per_period here?
|
||||
pos->tick += nframes * pos->ticks_per_beat * pos->beats_per_minute / (pos->frame_rate * 60);
|
||||
|
||||
while (pos->tick >= pos->ticks_per_beat) {
|
||||
pos->tick -= pos->ticks_per_beat;
|
||||
if (++pos->beat > pos->beats_per_bar) {
|
||||
pos->beat = 1;
|
||||
++pos->bar;
|
||||
pos->bar_start_tick +=
|
||||
pos->beats_per_bar
|
||||
* pos->ticks_per_beat;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Transport::Transport ( void )
|
||||
{
|
||||
_master_beats_per_bar = 4;
|
||||
_master_beat_type = 4;
|
||||
_master_beats_per_minute = 120;
|
||||
_done = false;
|
||||
}
|
||||
|
||||
void
|
||||
Transport::poll ( void )
|
||||
{
|
||||
jack_transport_state_t ts;
|
||||
jack_position_t pos;
|
||||
|
||||
ts = jack_transport_query( client, &pos );
|
||||
|
||||
rolling = ts == JackTransportRolling;
|
||||
valid = pos.valid == JackPositionBBT;
|
||||
bar = pos.bar;
|
||||
beat = pos.beat;
|
||||
tick = pos.tick;
|
||||
|
||||
/* bars and beats start at 1.. */
|
||||
pos.bar--;
|
||||
pos.beat--;
|
||||
|
||||
/* FIXME: these probably shouldn't be called from the RT
|
||||
thread... Anyway, it happens infrequently. */
|
||||
if ( pos.beats_per_minute != beats_per_minute )
|
||||
signal_tempo_change( pos.beats_per_minute );
|
||||
|
||||
if ( pos.beats_per_bar != beats_per_bar )
|
||||
signal_bpb_change( pos.beats_per_bar );
|
||||
|
||||
if ( pos.beat_type != beat_type )
|
||||
signal_beat_change( pos.beat_type );
|
||||
|
||||
ticks_per_beat = pos.ticks_per_beat;
|
||||
beats_per_bar = pos.beats_per_bar;
|
||||
beat_type = pos.beat_type;
|
||||
beats_per_minute = pos.beats_per_minute;
|
||||
|
||||
frame = pos.frame;
|
||||
frame_rate = pos.frame_rate;
|
||||
|
||||
/* FIXME: this only needs to be calculated if bpm or framerate changes */
|
||||
{
|
||||
double frames_per_beat = frame_rate * 60 / beats_per_minute;
|
||||
|
||||
frames_per_tick = frames_per_beat / (double)PPQN;
|
||||
ticks_per_period = nframes / frames_per_tick;
|
||||
}
|
||||
|
||||
tick_t abs_tick = (pos.bar * pos.beats_per_bar + pos.beat) * pos.ticks_per_beat + pos.tick;
|
||||
ticks = abs_tick * (PPQN / pos.ticks_per_beat);
|
||||
// ticks = abs_tick / (pos.ticks_per_beat / PPQN);
|
||||
|
||||
tick = tick * (PPQN / pos.ticks_per_beat);
|
||||
ticks_per_beat = PPQN;
|
||||
}
|
||||
|
||||
void
|
||||
Transport::start ( void )
|
||||
{
|
||||
MESSAGE( "Starting transport" );
|
||||
jack_transport_start( client );
|
||||
}
|
||||
|
||||
void
|
||||
Transport::stop ( void )
|
||||
{
|
||||
MESSAGE( "Stopping transport" );
|
||||
jack_transport_stop( client );
|
||||
}
|
||||
|
||||
void
|
||||
Transport::toggle ( void )
|
||||
{
|
||||
if ( rolling )
|
||||
stop();
|
||||
else
|
||||
start();
|
||||
}
|
||||
|
||||
void
|
||||
Transport::locate ( tick_t ticks )
|
||||
{
|
||||
MESSAGE( "Relocating transport" );
|
||||
jack_transport_locate( client, ticks );
|
||||
}
|
||||
|
||||
void
|
||||
Transport::set_beats_per_minute ( double n )
|
||||
{
|
||||
_master_beats_per_minute = n;
|
||||
}
|
||||
|
||||
void
|
||||
Transport::set_beats_per_bar ( int n )
|
||||
{
|
||||
if ( n < 2 )
|
||||
return;
|
||||
|
||||
_master_beats_per_bar = n;
|
||||
}
|
||||
|
||||
void
|
||||
Transport::set_beat_type ( int n )
|
||||
{
|
||||
if ( n < 4 )
|
||||
return;
|
||||
|
||||
_master_beat_type = n;
|
||||
}
|
|
@ -0,0 +1,82 @@
|
|||
|
||||
/*******************************************************************************/
|
||||
/* Copyright (C) 2008 Jonathan Moore Liles */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify it */
|
||||
/* under the terms of the GNU General Public License as published by the */
|
||||
/* Free Software Foundation; either version 2 of the License, or (at your */
|
||||
/* option) any later version. */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, but WITHOUT */
|
||||
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
|
||||
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
|
||||
/* more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License along */
|
||||
/* with This program; see the file COPYING. If not,write to the Free Software */
|
||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
/*******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <sigc++/sigc++.h>
|
||||
|
||||
#include "event.H" // just for tick_t
|
||||
|
||||
#include <jack/transport.h>
|
||||
|
||||
typedef double playhead_t;
|
||||
|
||||
class Transport : public sigc::trackable {
|
||||
|
||||
double _master_beats_per_minute;
|
||||
unsigned _master_beats_per_bar;
|
||||
unsigned _master_beat_type;
|
||||
|
||||
public:
|
||||
|
||||
sigc::signal <int, double> signal_tempo_change;
|
||||
sigc::signal <int, double> signal_bpb_change;
|
||||
sigc::signal <int, double> signal_beat_change;
|
||||
|
||||
bool master; /* are we driving the transport? */
|
||||
bool rolling;
|
||||
bool valid;
|
||||
volatile bool recording;
|
||||
|
||||
unsigned long bar;
|
||||
unsigned beat;
|
||||
unsigned tick;
|
||||
|
||||
playhead_t ticks;
|
||||
|
||||
unsigned beats_per_bar;
|
||||
unsigned ticks_per_beat;
|
||||
unsigned beat_type;
|
||||
double beats_per_minute;
|
||||
|
||||
double ticks_per_period;
|
||||
double frames_per_tick;
|
||||
|
||||
double frame_rate;
|
||||
|
||||
double frame;
|
||||
double nframes;
|
||||
|
||||
Transport ( void );
|
||||
|
||||
void poll ( void );
|
||||
void start ( void );
|
||||
void stop ( void );
|
||||
void toggle ( void );
|
||||
void locate ( tick_t ticks );
|
||||
|
||||
void set_beats_per_minute ( double n );
|
||||
void set_beats_per_bar ( int n );
|
||||
void set_beat_type ( int n );
|
||||
|
||||
static void timebase ( jack_transport_state_t state, jack_nframes_t nframes, jack_position_t *pos, int new_pos, void *arg );
|
||||
|
||||
};
|
||||
|
||||
extern Transport transport;
|
Loading…
Reference in New Issue