isedit package¶
Submodules¶
isedit.Base module¶
- class isedit.Base.Piece(tempo, time_signature='4/4')¶
Bases:
objectPiece that can be played and displayed
- addVoice(voice, nl=None, instrument=1)¶
_summary_
- Parameters:
voice (string) – lilypond style string for a given voice
nl (int, optional) – default length, if any, defaults to None
instrument (int, optional) – midi code for instrument for the given voice, defaults to 1 (piano)
- getScore()¶
Returns an image of the score
- Returns:
image of the score
- Return type:
Ipython.display.Image
- getScoreObject()¶
Gets an editable object of the score
- Returns:
an object with a widget for the score and text entry to change notes
- Return type:
widgets.VBox
- play()¶
plays the midi file for the piece
- stop()¶
stops the playing of the piece’s midi file
- isedit.Base.convertNotes(voices)¶
Return lists of keys, frequencies and durations from voices
- Parameters:
voices (list) – List of voices, where each voice is a string in lilypond formatting
- Returns:
List of keys, frequencies and durations
- Return type:
(list, list, list)
- isedit.Base.displayNotes(voices, time_signature)¶
Return an image of the score
- Parameters:
voices (list) – List of voices, where each voice is a string in lilypond formatting
time_signature (string) – the time signature
- Returns:
Image of the source
- Return type:
IPython.display.image
- isedit.Base.playNotes(voice_frequencies)¶
Plays the notes with the given frequencies, and returns
- Parameters:
voice_frequencies (list) – List of frequencies to play
- Returns:
sound array played, sound array of the last voice
- Return type:
tuple
Deprecated since version 0.0.0: Use the midi output to play notes instead
Module contents¶
isedit¶
- Provides
A piece object with display, edit and midi functionality