Esempio n. 1
0
	def run(self):
		chan = self.new_channel(self.vol*1)
		self.sched_agent(play.RepeatSound('environ/rain-med.aiff'), 0, chan)
		chan = self.new_channel(self.vol*0.7)
		self.sched_agent(play.RepeatSound('environ/rain-splatter.aiff'), 0, chan)
		chan = self.new_channel(self.vol*0.6)
		self.sched_agent(play.RepeatSound('environ/rain-on-leaves.aiff'), 0, chan)
Esempio n. 2
0
	def run(self):
		chan = self.new_channel(self.vol*0.8)
		self.sched_agent(play.RepeatSound('environ/rain-heavy.aiff'), 0, chan)
		chan = self.new_channel(self.vol*1)
		self.sched_agent(play.RepeatSound('environ/rain-on-leaves.aiff'), 0, chan)
		#chan = self.new_channel(self.vol*0.9)
		#self.sched_agent(play.RepeatSound('environ/rain-splashy.aiff'), 0, chan)
		chan = self.new_channel(self.vol*0.9)
		self.sched_agent(play.RepeatSound('environ/rain-splatter.aiff'), 0, chan)
Esempio n. 3
0
 def run(self):
     self.numreps = self.numreps - 1
     if (self.numreps < 0):
         self.newsound()
     dur = random.uniform(10, 20)
     ag = FadeInOutAgent(play.RepeatSound(self.snd), dur, 4)
     self.sched_agent(ag)
     self.resched(dur + 4)
Esempio n. 4
0
	def run(self):
		ag = play.RepeatSound('animal/frog-cheep.aiff')
		ag2 = manager.VolumeModulate(ag, self.vol, self.vol*0.1, 3, 10, 20, 45)
		self.sched_agent(ag2)
		ag = play.IntermittentSoundsPanOpts(3, 8, 0.8, 1.2, 0, self.vol, 0.9, frogsounds)
		self.sched_agent(ag, random.uniform(3, 10))
		ag = play.IntermittentSoundsPanOpts(6, 12, 0.8, 1.2, 0, 2*self.vol, 0.9, frogsounds)
		self.sched_agent(ag, random.uniform(3, 10))
Esempio n. 5
0
	def run(self):
		ag = play.RepeatSound('insect/melodious_ground_cricket.aiff')
		ag2 = manager.VolumeModulate(ag, self.vol, self.vol, 3, 10, 20, 45)
		self.sched_agent(ag2, 0.00)

		ag = play.RepeatSound('insect/everglades_conehead.aiff')
		ag2 = manager.VolumeModulate(ag, self.vol, self.vol, 3, 10, 20, 45)
		self.sched_agent(ag2, 0.05)

		ag = play.RepeatSound('insect/pine_tree_cricket.aiff')
		ag2 = manager.VolumeModulate(ag, self.vol*0.75, self.vol*0.75, 3, 10, 20, 45)
		self.sched_agent(ag2, 0.10)

		ag = play.RepeatSound('insect/vocal_field_cricket.aiff')
		ag2 = manager.VolumeModulate(ag, self.vol, self.vol*0.5, 3, 10, 20, 45)
		self.sched_agent(ag2, 0.15)

		ag = play.IntermittentSoundsPanOpts(10, 20, 0.8, 1.2, 0, 0.1, 0.9, insectsounds)
		self.sched_agent(ag, random.uniform(3, 20))
		ag = play.IntermittentSoundsPanOpts(20, 40, 0.8, 1.2, 0, 0.2, 0.9, insectsounds)
		self.sched_agent(ag, random.uniform(3, 20))
Esempio n. 6
0
 def run(self):
     chan = self.new_channel(0.25)
     self.sched_agent(play.RepeatSound('insect/texas_meadow_katydid.aiff'),
                      0, chan)
     chan = self.new_channel(1)
     self.sched_agent(OccasionallyVaryingChirps(), 3, chan)
Esempio n. 7
0
 def run(self):
     snd = random.choice(short_sounds)
     dur = random.uniform(20, 40)
     ag = FadeInOutAgent(play.RepeatSound(snd), dur, 4)
     self.sched_agent(ag)
     self.resched((dur + 8) / 2)
Esempio n. 8
0
 def run(self):
     snd = random.choice(long_sounds)
     dur = random.uniform(30, 60)
     ag = FadeInOutAgent(play.RepeatSound(snd), dur, 8)
     self.sched_agent(ag)
     self.resched(dur + 8)
Esempio n. 9
0
	def run(self):
		chan = self.new_channel(self.vol)
		self.sched_agent(play.RepeatSound('environ/rain-thin.aiff'), 0, chan)
Esempio n. 10
0
	def run(self):
		ag = play.RepeatSound('environ/water-rushing.aiff')
		ag2 = manager.VolumeModulate(ag, self.vol, self.vol, 3, 10, 20, 45)
		self.sched_agent(ag2)
Esempio n. 11
0
	def run(self):
		ag = manager.VolumeModulate(play.RepeatSound('environ/wind-far.aiff'),
			self.vol, self.delta)
		self.sched_agent(ag)