import qutesheet as q from Tkinter import * import tkFileDialog from math import modf, log10, fmod import sys, subprocess, shutil, os image_avail = True try: import Image, ImageTk except ImportError: image_avail = False # get rows already sorted rows_sorted = q.selection_full_rows_sorted() if sys.platform == 'win32': lilypond_exec = 'lilypond.exe' elif sys.platform == 'darwin': lilypond_exec = '/Applications/LilyPond.app/Contents/Resources/bin/lilypond' else: lilypond_exec = '/usr/bin/lilypond' # --- q_options = ["1/4", "1/8", "1/16", "1/32"] time_options = ["4/4", "3/4", "6/8", "5/4"] num_beats = [4, 3, 6, 5] # number of beats for the available time_options note_names_sharp = [ 'c', 'cis', 'd', 'dis', 'e', 'f', 'fis', 'g', 'gis', 'a', 'ais', 'b' ] note_names_flat = [ 'c', 'des', 'd', 'ees', 'e', 'f', 'ges', 'g', 'aes', 'a', 'bes', 'b'
disp += q.text() disp += "\n" disp += "selection_text() =\n" disp += q.selection_text() disp += "\n" disp += "selection_by_rows() =\n" disp += str(q.selection_by_rows()) disp += "\n" disp += "selection_full_rows() =\n" disp += str(q.selection_full_rows()) disp += "\n" disp += "selection_full_rows_sorted() =\n" disp += str(q.selection_full_rows_sorted()) disp += "\n" disp += "all_rows() =\n" disp += str(q.all_rows()) disp += "\n" disp += "all_rows_sorted() =\n" disp += str(q.all_rows_sorted()) disp += "\n" disp += "selection_by_cols() =\n" disp += str(q.selection_by_cols()) disp += "\n" disp += "selection_full_cols() =\n" disp += str(q.selection_full_cols())
import qutesheet as q from Tkinter import * import tkFileDialog from math import modf, log10, fmod import sys, subprocess, shutil, os image_avail = True try: import Image, ImageTk except ImportError: image_avail = False # get rows already sorted rows_sorted = q.selection_full_rows_sorted() if sys.platform == "win32": lilypond_exec = "lilypond.exe" elif sys.platform == "darwin": lilypond_exec = "/Applications/LilyPond.app/Contents/Resources/bin/lilypond" else: lilypond_exec = "/usr/bin/lilypond" # --- q_options = ["1/4", "1/8", "1/16", "1/32"] time_options = ["4/4", "3/4", "6/8", "5/4"] num_beats = [4, 3, 6, 5] # number of beats for the available time_options note_names_sharp = ["c", "cis", "d", "dis", "e", "f", "fis", "g", "gis", "a", "ais", "b"] note_names_flat = ["c", "des", "d", "ees", "e", "f", "ges", "g", "aes", "a", "bes", "b"] note_names = [] acc_options = ["sharps", "flats"] p4_options = ["MIDI note", "cps", "pitch class"]