Revision 4:a98a66b43882
| MIDIComposition.h | ||
|---|---|---|
| 1 | 1 |
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
| 2 | 2 |
|
| 3 | 3 |
/* |
| 4 |
This is a modified version of a source file from the |
|
| 5 |
Rosegarden MIDI and audio sequencer and notation editor. |
|
| 6 |
This file copyright 2000-2006 Richard Bown and Chris Cannam. |
|
| 4 |
This is a modified version of a source file from the |
|
| 5 |
Rosegarden MIDI and audio sequencer and notation editor. |
|
| 6 |
This file copyright 2000-2010 Richard Bown and Chris Cannam. |
|
| 7 |
|
|
| 8 |
Permission is hereby granted, free of charge, to any person |
|
| 9 |
obtaining a copy of this software and associated documentation |
|
| 10 |
files (the "Software"), to deal in the Software without |
|
| 11 |
restriction, including without limitation the rights to use, copy, |
|
| 12 |
modify, merge, publish, distribute, sublicense, and/or sell copies |
|
| 13 |
of the Software, and to permit persons to whom the Software is |
|
| 14 |
furnished to do so, subject to the following conditions: |
|
| 15 |
|
|
| 16 |
The above copyright notice and this permission notice shall be |
|
| 17 |
included in all copies or substantial portions of the Software. |
|
| 18 |
|
|
| 19 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
| 20 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
| 21 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
| 22 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR |
|
| 23 |
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
|
| 24 |
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
|
| 25 |
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
| 26 |
|
|
| 27 |
Except as contained in this notice, the names of the authors |
|
| 28 |
shall not be used in advertising or otherwise to promote the sale, |
|
| 29 |
use or other dealings in this Software without prior written |
|
| 30 |
authorization. |
|
| 7 | 31 |
*/ |
| 8 | 32 |
|
| 9 | 33 |
#ifndef _MIDI_COMPOSITION_H_ |
| MIDIEvent.h | ||
|---|---|---|
| 1 | 1 |
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
| 2 | 2 |
|
| 3 | 3 |
/* |
| 4 |
This is a modified version of a source file from the |
|
| 5 |
Rosegarden MIDI and audio sequencer and notation editor. |
|
| 6 |
This file copyright 2000-2006 Richard Bown and Chris Cannam. |
|
| 4 |
This is a modified version of a source file from the |
|
| 5 |
Rosegarden MIDI and audio sequencer and notation editor. |
|
| 6 |
This file copyright 2000-2010 Richard Bown and Chris Cannam. |
|
| 7 |
|
|
| 8 |
Permission is hereby granted, free of charge, to any person |
|
| 9 |
obtaining a copy of this software and associated documentation |
|
| 10 |
files (the "Software"), to deal in the Software without |
|
| 11 |
restriction, including without limitation the rights to use, copy, |
|
| 12 |
modify, merge, publish, distribute, sublicense, and/or sell copies |
|
| 13 |
of the Software, and to permit persons to whom the Software is |
|
| 14 |
furnished to do so, subject to the following conditions: |
|
| 15 |
|
|
| 16 |
The above copyright notice and this permission notice shall be |
|
| 17 |
included in all copies or substantial portions of the Software. |
|
| 18 |
|
|
| 19 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
| 20 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
| 21 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
| 22 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR |
|
| 23 |
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
|
| 24 |
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
|
| 25 |
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
| 26 |
|
|
| 27 |
Except as contained in this notice, the names of the authors |
|
| 28 |
shall not be used in advertising or otherwise to promote the sale, |
|
| 29 |
use or other dealings in this Software without prior written |
|
| 30 |
authorization. |
|
| 7 | 31 |
*/ |
| 8 | 32 |
|
| 9 | 33 |
#ifndef _MIDI_EVENT_H_ |
| MIDIFileReader.cpp | ||
|---|---|---|
| 1 | 1 |
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
| 2 | 2 |
|
| 3 | 3 |
/* |
| 4 |
This is a modified version of a source file from the |
|
| 5 |
Rosegarden MIDI and audio sequencer and notation editor. |
|
| 6 |
This file copyright 2000-2006 Richard Bown and Chris Cannam. |
|
| 4 |
This is a modified version of a source file from the |
|
| 5 |
Rosegarden MIDI and audio sequencer and notation editor. |
|
| 6 |
This file copyright 2000-2010 Richard Bown and Chris Cannam. |
|
| 7 |
|
|
| 8 |
Permission is hereby granted, free of charge, to any person |
|
| 9 |
obtaining a copy of this software and associated documentation |
|
| 10 |
files (the "Software"), to deal in the Software without |
|
| 11 |
restriction, including without limitation the rights to use, copy, |
|
| 12 |
modify, merge, publish, distribute, sublicense, and/or sell copies |
|
| 13 |
of the Software, and to permit persons to whom the Software is |
|
| 14 |
furnished to do so, subject to the following conditions: |
|
| 15 |
|
|
| 16 |
The above copyright notice and this permission notice shall be |
|
| 17 |
included in all copies or substantial portions of the Software. |
|
| 18 |
|
|
| 19 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
| 20 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
| 21 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
| 22 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR |
|
| 23 |
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
|
| 24 |
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
|
| 25 |
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
| 26 |
|
|
| 27 |
Except as contained in this notice, the names of the authors |
|
| 28 |
shall not be used in advertising or otherwise to promote the sale, |
|
| 29 |
use or other dealings in this Software without prior written |
|
| 30 |
authorization. |
|
| 7 | 31 |
*/ |
| 8 | 32 |
|
| 9 | 33 |
|
| MIDIFileReader.h | ||
|---|---|---|
| 1 | 1 |
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
| 2 | 2 |
|
| 3 | 3 |
/* |
| 4 |
This is a modified version of a source file from the |
|
| 5 |
Rosegarden MIDI and audio sequencer and notation editor. |
|
| 6 |
This file copyright 2000-2006 Richard Bown and Chris Cannam. |
|
| 4 |
This is a modified version of a source file from the |
|
| 5 |
Rosegarden MIDI and audio sequencer and notation editor. |
|
| 6 |
This file copyright 2000-2010 Richard Bown and Chris Cannam. |
|
| 7 |
|
|
| 8 |
Permission is hereby granted, free of charge, to any person |
|
| 9 |
obtaining a copy of this software and associated documentation |
|
| 10 |
files (the "Software"), to deal in the Software without |
|
| 11 |
restriction, including without limitation the rights to use, copy, |
|
| 12 |
modify, merge, publish, distribute, sublicense, and/or sell copies |
|
| 13 |
of the Software, and to permit persons to whom the Software is |
|
| 14 |
furnished to do so, subject to the following conditions: |
|
| 15 |
|
|
| 16 |
The above copyright notice and this permission notice shall be |
|
| 17 |
included in all copies or substantial portions of the Software. |
|
| 18 |
|
|
| 19 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
| 20 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
| 21 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
| 22 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR |
|
| 23 |
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
|
| 24 |
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
|
| 25 |
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
| 26 |
|
|
| 27 |
Except as contained in this notice, the names of the authors |
|
| 28 |
shall not be used in advertising or otherwise to promote the sale, |
|
| 29 |
use or other dealings in this Software without prior written |
|
| 30 |
authorization. |
|
| 7 | 31 |
*/ |
| 8 | 32 |
|
| 9 | 33 |
#ifndef _MIDI_FILE_READER_H_ |
| main.cpp | ||
|---|---|---|
| 1 |
/* |
|
| 2 |
This file copyright 2010 Chris Cannam. |
|
| 3 |
|
|
| 4 |
Permission is hereby granted, free of charge, to any person |
|
| 5 |
obtaining a copy of this software and associated documentation |
|
| 6 |
files (the "Software"), to deal in the Software without |
|
| 7 |
restriction, including without limitation the rights to use, copy, |
|
| 8 |
modify, merge, publish, distribute, sublicense, and/or sell copies |
|
| 9 |
of the Software, and to permit persons to whom the Software is |
|
| 10 |
furnished to do so, subject to the following conditions: |
|
| 11 |
|
|
| 12 |
The above copyright notice and this permission notice shall be |
|
| 13 |
included in all copies or substantial portions of the Software. |
|
| 14 |
|
|
| 15 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
| 16 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
| 17 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
| 18 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR |
|
| 19 |
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
|
| 20 |
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
|
| 21 |
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
| 22 |
|
|
| 23 |
Except as contained in this notice, the names of the authors |
|
| 24 |
shall not be used in advertising or otherwise to promote the sale, |
|
| 25 |
use or other dealings in this Software without prior written |
|
| 26 |
authorization. |
|
| 27 |
*/ |
|
| 1 | 28 |
|
| 2 | 29 |
#include "MIDIFileReader.h" |
| 3 | 30 |
|
| midisort.pl | ||
|---|---|---|
| 1 |
|
|
| 2 |
# This file copyright 2010 Chris Cannam. |
|
| 3 |
# |
|
| 4 |
# Permission is hereby granted, free of charge, to any person |
|
| 5 |
# obtaining a copy of this software and associated documentation |
|
| 6 |
# files (the "Software"), to deal in the Software without |
|
| 7 |
# restriction, including without limitation the rights to use, copy, |
|
| 8 |
# modify, merge, publish, distribute, sublicense, and/or sell copies |
|
| 9 |
# of the Software, and to permit persons to whom the Software is |
|
| 10 |
# furnished to do so, subject to the following conditions: |
|
| 11 |
# |
|
| 12 |
# The above copyright notice and this permission notice shall be |
|
| 13 |
# included in all copies or substantial portions of the Software. |
|
| 14 |
# |
|
| 15 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
| 16 |
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
| 17 |
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
| 18 |
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR |
|
| 19 |
# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
|
| 20 |
# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
|
| 21 |
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
| 22 |
# |
|
| 23 |
# Except as contained in this notice, the names of the authors |
|
| 24 |
# shall not be used in advertising or otherwise to promote the sale, |
|
| 25 |
# use or other dealings in this Software without prior written |
|
| 26 |
# authorization. |
|
| 27 |
|
|
| 1 | 28 |
use strict; |
| 2 | 29 |
|
| 3 | 30 |
# read the output from midifile, sort it into "note column" groups |
Also available in: Unified diff