21 lines
No EOL
545 B
Python
21 lines
No EOL
545 B
Python
from core.room import Room
|
|
from core.prorgam import Program
|
|
from core.soundnode import SoundNode
|
|
from core.nodes.sinenode import SineNode
|
|
import math
|
|
|
|
R = Room()
|
|
R.left_sink.start_location = (-1, 0, 0)
|
|
R.right_sink.start_location = (2, 0, 0)
|
|
|
|
sn = SineNode([440, 440*2, 440*3, 440*4, 220], R)
|
|
sn2 = SineNode([523.25, 523.25*2, 523.25*3, 523.25*4, 220], R)
|
|
|
|
sn.add_air_output(R.left_sink)
|
|
sn.add_air_output(R.right_sink)
|
|
sn2.add_air_output(R.left_sink)
|
|
sn2.add_air_output(R.right_sink)
|
|
sn2.start_location = (1, 0, 0)
|
|
|
|
|
|
R.record('test6.wav', 0, 2) |