コード例 #1
0
from src.arp import Arpy
from src.arp.Arpy import Arpy
from src.arp.ArpNote import ArpNote
from src.arp.ArpNote import Note
from src.arp.Arpy import Progression

# from src.gui import ArpGui

key = ArpNote()
key.pitch = Note.C
key.volume = 100
arp = Arpy(key, Progression.major)
bars = arp.genBars(32)
コード例 #2
0
ファイル: ArpGui.py プロジェクト: neobonzi/Arpy
# Initialize gui elements
# Header
var = StringVar()
label = Label( root, textvariable=var, relief=RAISED )
var.set("Arpy the Midi Arpeggiator!")
label.pack()

StartBtn = Button( root, text="Start", command=startArp)

StartBtn.pack()

key = ArpNote()
key.pitch = Note.C
key.volume = 100
arp = Arpy(key, Progression.minor)
bars = arp.genBars(4)

# Radios
# key = IntVar()
# R1 = Radiobutton(root, text="C", variable=key, value=1)
# R1.pack( side = LEFT )

# R2 = Radiobutton(root, text="Db", variable=key, value=2)
# R2.pack( side = LEFT )
# A
# R3 = Radiobutton(root, text="D", variable=key, value=3)
# R3.pack( side = LEFT )

# R4 = Radiobutton(root, text="Eb", variable=key, value=4)
# R4.pack( side = LEFT )
コード例 #3
0
ファイル: ArpGui.py プロジェクト: neobonzi/Arpy
# Initialize gui elements
# Header
var = StringVar()
label = Label(root, textvariable=var, relief=RAISED)
var.set("Arpy the Midi Arpeggiator!")
label.pack()

StartBtn = Button(root, text="Start", command=startArp)

StartBtn.pack()

key = ArpNote()
key.pitch = Note.C
key.volume = 100
arp = Arpy(key, Progression.minor)
bars = arp.genBars(4)

# Radios
# key = IntVar()
# R1 = Radiobutton(root, text="C", variable=key, value=1)
# R1.pack( side = LEFT )

# R2 = Radiobutton(root, text="Db", variable=key, value=2)
# R2.pack( side = LEFT )
# A
# R3 = Radiobutton(root, text="D", variable=key, value=3)
# R3.pack( side = LEFT )

# R4 = Radiobutton(root, text="Eb", variable=key, value=4)
# R4.pack( side = LEFT )