Move 'synth' module
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from smnp.module import system, mic, note, iterable, sound
|
||||
from smnp.module import system, mic, note, iterable, sound, synth
|
||||
|
||||
functions = [ *system.functions, *mic.functions, *note.functions, *iterable.functions, *sound.functions ]
|
||||
methods = [ *system.methods, *mic.methods, *note.methods, *iterable.methods, *sound.methods ]
|
||||
functions = [ *system.functions, *mic.functions, *note.functions, *iterable.functions, *sound.functions, *synth.functions ]
|
||||
methods = [ *system.methods, *mic.methods, *note.methods, *iterable.methods, *sound.methods, *synth.methods ]
|
||||
@@ -1,4 +1,4 @@
|
||||
from smnp.module.note.function import tuplet, transpose, semitones, pause, octave, duration, interval
|
||||
from smnp.module.note.function import tuplet, transpose, semitones, octave, duration, interval
|
||||
|
||||
functions = [ pause.function, semitones.function, interval.function, transpose.function, tuplet.function ]
|
||||
functions = [ semitones.function, interval.function, transpose.function, tuplet.function ]
|
||||
methods = [ duration.function, octave.function ]
|
||||
4
smnp/module/synth/__init__.py
Normal file
4
smnp/module/synth/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from smnp.module.synth.function import synth, pause
|
||||
|
||||
functions = [ synth.function, pause.function ]
|
||||
methods = []
|
||||
@@ -1,6 +1,6 @@
|
||||
from smnp.library.model import Function
|
||||
from smnp.library.signature import signature, ofTypes
|
||||
from smnp.synth import player
|
||||
from smnp.module.synth.lib import player
|
||||
from smnp.type.model import Type
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from smnp.library.model import CombinedFunction, Function
|
||||
from smnp.library.signature import varargSignature, ofTypes, listOf
|
||||
from smnp.synth.player import playNotes
|
||||
from smnp.module.synth.lib.player import playNotes
|
||||
from smnp.type.model import Type
|
||||
|
||||
|
||||
0
smnp/module/synth/lib/__init__.py
Normal file
0
smnp/module/synth/lib/__init__.py
Normal file
@@ -1,7 +1,7 @@
|
||||
import time
|
||||
|
||||
from smnp.module.synth.lib.wave import sine
|
||||
from smnp.note.model import Note
|
||||
from smnp.synth.wave import sine
|
||||
|
||||
|
||||
def playNotes(notes, bpm):
|
||||
Reference in New Issue
Block a user