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)
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)
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)
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))
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))
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)
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)
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)
def run(self): chan = self.new_channel(self.vol) self.sched_agent(play.RepeatSound('environ/rain-thin.aiff'), 0, chan)
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)
def run(self): ag = manager.VolumeModulate(play.RepeatSound('environ/wind-far.aiff'), self.vol, self.delta) self.sched_agent(ag)