bar_line = abjad.BarLine("||") metro = abjad.MetronomeMark((1, 4), 60) markup1 = abjad.Markup(r"\bold { A }") markup2 = abjad.Markup(r"\bold { B }") markup3 = abjad.Markup(r"\bold { C }") markup4 = abjad.Markup(r"\bold { D }") markup5 = abjad.Markup(r"\bold { E }") markup6 = abjad.Markup(r"\bold { F }") mark1 = abjad.RehearsalMark(markup=markup1) mark2 = abjad.RehearsalMark(markup=markup2) mark3 = abjad.RehearsalMark(markup=markup3) mark4 = abjad.RehearsalMark(markup=markup4) mark5 = abjad.RehearsalMark(markup=markup5) mark6 = abjad.RehearsalMark(markup=markup6) instruments1 = cyc([abjad.Flute(), abjad.AltoSaxophone(), abjad.Cello()]) clefs1 = cyc([abjad.Clef("treble"), abjad.Clef("treble"), abjad.Clef("bass")]) abbreviations1 = cyc([ abjad.MarginMarkup(markup=abjad.Markup("fl.")), abjad.MarginMarkup(markup=abjad.Markup("sx.")), abjad.MarginMarkup(markup=abjad.Markup("vc.")), ]) names1 = cyc([ abjad.StartMarkup(markup=abjad.Markup("Flute")), abjad.StartMarkup(markup=abjad.Markup("Saxophone")), abjad.StartMarkup(markup=abjad.Markup("Violoncello")), ])
import inspect import typing import abjad import baca from abjadext import rmakers instruments = dict([ ("BassClarinet", abjad.BassClarinet()), ("Bassoon", abjad.Bassoon()), ("Cello", abjad.Cello()), ("Clarinet", abjad.ClarinetInBFlat()), ("Contrabass", abjad.Contrabass(pitch_range="[E1, D6]")), ("EnglishHorn", abjad.EnglishHorn()), ("Flute", abjad.Flute()), ("Harp", abjad.Harp()), ("Horn", abjad.FrenchHorn()), ("Oboe", abjad.Oboe()), ("Percussion", abjad.Percussion()), ("Piano", abjad.Piano()), ("Trombone", abjad.TenorTrombone()), ("Trumpet", abjad.Trumpet()), ("Tuba", abjad.Tuba()), ("Vibraphone", abjad.Vibraphone()), ("Viola", abjad.Viola()), ("Violin", abjad.Violin()), ]) def instrument(key): return baca.instrument(instruments[key])
class OoaFlute(calliope.Staff): # can also be alto flute / oboe instrument=abjad.Flute( name="Flute", short_name="fl.") midi_instrument = "flute"
class CcoFlute2(calliope.Staff): instrument=abjad.Flute( name="Flute 2", short_name="fl.2") midi_instrument = "flute"
class Flute(calliope.Staff): instrument = abjad.Flute(name="Flute", short_name="fl.")
import abjad instrument_one = abjad.Flute() instrument_one_range = instrument_one.pitch_range instrument_one_range_lowest = abjad.NumberedPitch( instrument_one_range.start_pitch) instrument_one_range_highest = abjad.NumberedPitch( instrument_one_range.stop_pitch) instruments = [instrument_one] voices = len(instruments) voice_to_name_dict = {"Voice 1": "flute"}
class CcoFlutes(calliope.Staff): instrument = abjad.Flute(name="Flute 1,2", short_name="fl.1,2")