コード例 #1
0
 def source(out_stream):
     return source_list_to_stream(source_list, out_stream)
コード例 #2
0
 def source(out_stream):
     return source_list_to_stream(range(10), out_stream)
コード例 #3
0
 def source_0(s):
     return source_list_to_stream(range(5), s)
コード例 #4
0
 def source_1(s):
     return source_list_to_stream(range(10, 20), s)
コード例 #5
0
 def source(s):
     # returns a thread that puts elements of range(10) into
     # stream s at intervals of 0.05 seconds
     return source_list_to_stream(range(10), s, time_interval=0.05)
コード例 #6
0
ファイル: reverberation.py プロジェクト: yongkyunlee/IoTPy
 def generate_original_sound(original_sound):
     return source_list_to_stream(
         in_list=original_sound_list,
         out_stream=original_sound,
         time_interval=0)
コード例 #7
0
 def generate_sound_stream(self, original_sound_stream):
     return source_list_to_stream(
         in_list=self.original_sound_list,
         out_stream=original_sound_stream,
         time_interval=0)
コード例 #8
0
 def source(out_stream):
     return source_list_to_stream(source_list,
                                  out_stream,
                                  time_interval=0.2)
コード例 #9
0
ファイル: simple_examples.py プロジェクト: yongkyunlee/IoTPy
 def source(out_stream):
     return source_list_to_stream(in_list=source_list,
                                  out_stream=out_stream)