Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dist/dist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: dist.py
# Purpose: Distribution and uploading script
Expand Down
1 change: 0 additions & 1 deletion documentation/docbuild/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
__all__ = ['documenters', 'iterators', 'writers']

from . import documenters
Expand Down
1 change: 0 additions & 1 deletion documentation/docbuild/documenters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: documentation/library/documenters.py
# Purpose: music21 documentation helper classes for proper formatting
Expand Down
1 change: 0 additions & 1 deletion documentation/docbuild/extensions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Name: extensions.py
# Purpose: Sphinx extension for hiding and showing lines in docs
Expand Down
1 change: 0 additions & 1 deletion documentation/docbuild/iterators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: docbuild/iterators.py
# Purpose: music21 documentation iterators, including Jupyter notebook to ReST converter
Expand Down
1 change: 0 additions & 1 deletion documentation/docbuild/make.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: documentation/make.py
# Purpose: music21 documentation script, v. 2.0
Expand Down
1 change: 0 additions & 1 deletion documentation/docbuild/upload.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: upload.py
# Purpose: music21 documentation upload utility
Expand Down
5 changes: 2 additions & 3 deletions documentation/docbuild/writers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: docbuild/writers.py
# Purpose: music21 documentation writer to rst
Expand Down Expand Up @@ -361,11 +360,11 @@ def convertOneNotebook(self, jupyterNotebookFilePath):
self.runNBConvert(jupyterNotebookFilePath)
# uses this convoluted way of reading because 'encoding' was an invalid keyword argument
# for the built-in 'open' in old python, and never upgraded.
with rstFilePath.open('r', encoding='utf8') as f:
with rstFilePath.open('r', encoding='utf-8') as f:
oldLines = f.read().splitlines()

lines = self.cleanConvertedNotebook(oldLines, jupyterNotebookFilePath)
with rstFilePath.open('w', encoding='utf8') as f:
with rstFilePath.open('w', encoding='utf-8') as f:
f.write('\n'.join(lines))

return True
Expand Down
1 change: 0 additions & 1 deletion documentation/nbvalNotebook.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
'''
Run tests of notebooks using nbval -- called from testDocumentation

Expand Down
1 change: 0 additions & 1 deletion documentation/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# music21 documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 14 16:48:40 2013.
Expand Down
1 change: 0 additions & 1 deletion documentation/testDocumentation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: testDocumentation.py
# Purpose: tests from or derived from the Documentation
Expand Down
1 change: 0 additions & 1 deletion music21/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
'''
The music21 Framework is Copyright © 2006-2026 Michael Scott Asato Cuthbert.

Expand Down
2 changes: 1 addition & 1 deletion music21/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-

'''
This file contains Music21's version number information.

Expand Down
1 change: 0 additions & 1 deletion music21/abcFormat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: abc/__init__.py
# Purpose: parses ABC Notation
Expand Down
1 change: 0 additions & 1 deletion music21/abcFormat/testFiles.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: testFiles.py
# Purpose: ABC test files
Expand Down
1 change: 0 additions & 1 deletion music21/abcFormat/translate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Name: abcFormat.translate.py
# Purpose: Translate ABC and music21 objects
Expand Down
1 change: 0 additions & 1 deletion music21/alpha/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Name: alpha/__init__.py
# Purpose: music21 modules not fully ready for prime-time
Expand Down
1 change: 0 additions & 1 deletion music21/alpha/analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import annotations

__all__ = [
Expand Down
1 change: 0 additions & 1 deletion music21/alpha/analysis/aligner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: alpha/analysis/aligner.py
# Purpose: A general aligner that tries its best to align two streams
Expand Down
1 change: 0 additions & 1 deletion music21/alpha/analysis/fixer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: alpha/analysis/fixer.py
# Purpose: Fixes two streams given a list of changes between them
Expand Down
1 change: 0 additions & 1 deletion music21/alpha/analysis/hasher.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: alpha/analysis/hasher.py
# Purpose: Hash musical notation
Expand Down
1 change: 0 additions & 1 deletion music21/alpha/analysis/ornamentRecognizer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: alpha/analysis/ornamentRecognizer.py
# Purpose: Identifies expanded ornaments
Expand Down
1 change: 0 additions & 1 deletion music21/alpha/analysis/search.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: search.py
# Purpose: Tools for searching analysis
Expand Down
1 change: 0 additions & 1 deletion music21/alpha/analysis/testFiles.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: alpha/analysis/testFiles.py
# Purpose: consolidated testFiles
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import annotations

__all__ = [
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/correlate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: correlate.py
# Purpose: Stream analyzer designed to correlate and graph two properties
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/discrete.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: discrete.py
# Purpose: Framework for modular, windowed analysis
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/elements.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: analysis/elements.py
# Purpose: Tools for analyzing general elements
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/enharmonics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: enharmonics.py
# Purpose: Tools for returning best enharmonics
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/floatingKey.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: analysis/floatingKey.py
# Purpose: Framework for floating key analysis
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/harmonicFunction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: harmonicFunction.py
# Purpose: Mapping between Roman numeral figures and harmonic function labels
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/metrical.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: metrical.py
# Purpose: Tools for metrical analysis
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/neoRiemannian.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: analysis/neoRiemannian.py
# Purpose: Neo-Riemannian Chord Transformations
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/patel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: patel.py
# Purpose: Tools for testing Aniruddh D. Patel's analysis theories
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/pitchAnalysis.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: analysis/pitchAnalysis.py
# Purpose: Tools for analyzing pitches
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/reduceChords.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Name: reduceChords.py
# Purpose: Tools for eliminating passing chords, etc.
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/reduceChordsOld.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: reduceChords.py
# Purpose: Tools for eliminating passing chords, etc.
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/reduction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: reduction.py
# Purpose: Tools for creating a score reduction.
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/segmentByRests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: segmentByRests.py
# Purpose: Break up a part into its contiguous melodies.
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/transposition.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: transposition.py
# Purpose: Tools for checking distinct transposition
Expand Down
1 change: 0 additions & 1 deletion music21/analysis/windowed.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: windowed.py
# Purpose: Framework for modular, windowed analysis
Expand Down
1 change: 0 additions & 1 deletion music21/articulations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: articulations.py
# Purpose: music21 classes for representing articulations
Expand Down
1 change: 0 additions & 1 deletion music21/audioSearch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Name: audioSearch.py
# Purpose: base subroutines for all audioSearching and score following
Expand Down
1 change: 0 additions & 1 deletion music21/audioSearch/recording.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: audioSearch.recording.py
# Purpose: routines for making recordings from microphone input
Expand Down
1 change: 0 additions & 1 deletion music21/audioSearch/scoreFollower.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Name: audioSearch.scoreFollower.py
# Purpose: Detection of the position in the score in real time
Expand Down
1 change: 0 additions & 1 deletion music21/audioSearch/transcriber.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: audioSearch.transcriber.py
# Purpose: Automatically transcribe melodies from a microphone or
Expand Down
1 change: 0 additions & 1 deletion music21/bar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: bar.py
# Purpose: music21 classes for representing bars, repeats, and related
Expand Down
1 change: 0 additions & 1 deletion music21/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Name: base.py
# Purpose: Music21 base classes and important utilities
Expand Down
1 change: 0 additions & 1 deletion music21/beam.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Name: beam.py
# Purpose: music21 classes for representing beams and beam groups
Expand Down
1 change: 0 additions & 1 deletion music21/braille/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import annotations

__all__ = [
Expand Down
1 change: 0 additions & 1 deletion music21/braille/basic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: basic.py
# Purpose: music21 class which allows transcription of music21Object instances to braille.
Expand Down
1 change: 0 additions & 1 deletion music21/braille/examples.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: examples.py
# Purpose: Transcribing popular music into braille music using music21.
Expand Down
1 change: 0 additions & 1 deletion music21/braille/lookup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------------
# Name: lookup.py
# Purpose: music21 class which contains lookup tables between print and braille
Expand Down
1 change: 0 additions & 1 deletion music21/braille/noteGrouping.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: noteGrouping.py
# Purpose: Transcribes note groupings into Braille
Expand Down
1 change: 0 additions & 1 deletion music21/braille/objects.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: object.py
# Purpose: music21 classes for indicating Braille formatting, etc.
Expand Down
1 change: 0 additions & 1 deletion music21/braille/runAllBrailleTests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: braille/runAllBrailleTests.py
# Purpose: Test runner for Bo-Cheng Jhan and others who would prefer
Expand Down
1 change: 0 additions & 1 deletion music21/braille/segment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: segment.py
# Purpose: Division of stream.Part into segments for individual handling
Expand Down
1 change: 0 additions & 1 deletion music21/braille/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: test.py
# Purpose: Examples from "Introduction to Braille Music Transcription"
Expand Down
1 change: 0 additions & 1 deletion music21/braille/text.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: text.py
# Purpose: music21 class which allows for accurate formatting of braille transcription
Expand Down
1 change: 0 additions & 1 deletion music21/braille/translate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Name: translate.py
# Purpose: music21 class which allows transcription of music21 data to braille
Expand Down
1 change: 0 additions & 1 deletion music21/capella/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: capella/__init__.py
# Purpose: parses Capella music Notation
Expand Down
1 change: 0 additions & 1 deletion music21/capella/fromCapellaXML.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: fromCapellaXML.py
# Purpose: Module for importing capellaXML (.capx) files.
Expand Down
1 change: 0 additions & 1 deletion music21/chord/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: chord.py
# Purpose: Chord representation and utilities
Expand Down
1 change: 0 additions & 1 deletion music21/chord/tables.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: chord.tables.py
# Purpose: data and tables for chord and set class processing.
Expand Down
1 change: 0 additions & 1 deletion music21/chord/tools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: chord/tools.py
# Purpose: Chord utilities too obscure to go on the Chord object
Expand Down
1 change: 0 additions & 1 deletion music21/clef.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: clef.py
# Purpose: Objects for representing clefs
Expand Down
1 change: 0 additions & 1 deletion music21/common/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: common.py
# Purpose: Basic Utilities
Expand Down
1 change: 0 additions & 1 deletion music21/common/classTools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: common/classTools.py
# Purpose: Utilities for classes
Expand Down
1 change: 0 additions & 1 deletion music21/common/decorators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: common/decorators.py
# Purpose: Decorators for functions
Expand Down
1 change: 0 additions & 1 deletion music21/common/enums.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Name: common/enums.py
# Purpose: Music21 Enumerations
Expand Down
Loading