39 lines
805 B
Python
39 lines
805 B
Python
|
|
#!/usr/bin/env python3
|
|
|
|
# getter e setter delle variabili sonore
|
|
|
|
class stuttura():
|
|
nota = 0
|
|
accordo = []
|
|
waveform = []
|
|
tempo = 0
|
|
volume = 0
|
|
scala = []
|
|
|
|
def get_nota():
|
|
return nota
|
|
def get_accordo():
|
|
return accordo
|
|
def get_tempo():
|
|
return tempo
|
|
def get_waveform():
|
|
return waveform
|
|
def get_volume():
|
|
return volume
|
|
def get_scala():
|
|
return scala
|
|
|
|
def set_nota(self, nota):
|
|
return nota
|
|
def set_accordo(self, accordo):
|
|
return accordo
|
|
def set_tempo(self, tempo):
|
|
self.tempo = tempo
|
|
def set_waveform(self, waveform):
|
|
self.waveform = waveform
|
|
def set_volume(self, volume):
|
|
self.volume = volume
|
|
def set_scala( scala):
|
|
self.scala = scala
|