Exemple #1
0
 def __init__(
     self,
     calculation_rate=None,
     a=1.17,
     adparam=1,
     ampdist=1,
     ampscale=0.5,
     c=0.31,
     ddparam=1,
     durdist=1,
     durscale=0.5,
     init_cps=12,
     knum=None,
     maxfrequency=660,
     minfrequency=440,
     ):
     if knum is None:
         knum = init_cps
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         a=a,
         adparam=adparam,
         ampdist=ampdist,
         ampscale=ampscale,
         c=c,
         ddparam=ddparam,
         durdist=durdist,
         durscale=durscale,
         init_cps=init_cps,
         knum=knum,
         maxfrequency=maxfrequency,
         minfrequency=minfrequency,
         )
Exemple #2
0
 def __init__(
     self,
     calculation_rate=None,
     label=None,
     source=None,
     trigger=None,
     trigger_id=-1,
     ):
     from supriya.tools import synthdeftools
     from supriya.tools import ugentools
     if label is None:
         if isinstance(source, ugentools.UGen):
             label = type(source).__name__
         elif isinstance(source, synthdeftools.OutputProxy):
             label = type(source.source).__name__
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         source=source,
         trigger=trigger,
         trigger_id=trigger_id,
         )
     label = str(label)
     self._configure_input('label', len(label))
     for character in label:
         self._configure_input('label', ord(character))
Exemple #3
0
 def __init__(
     self,
     calculation_rate=None,
     adparam=1,
     ampdist=1,
     ampscale=0.5,
     ddparam=1,
     durdist=1,
     durscale=0.5,
     init_cps=12,
     knum=None,
     maxfrequency=660,
     minfrequency=440,
 ):
     if knum is None:
         knum = init_cps
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         adparam=adparam,
         ampdist=ampdist,
         ampscale=ampscale,
         ddparam=ddparam,
         durdist=durdist,
         durscale=durscale,
         init_cps=init_cps,
         knum=knum,
         maxfrequency=maxfrequency,
         minfrequency=minfrequency,
     )
Exemple #4
0
 def __init__(
     self,
     calculation_rate=None,
     decay_scale=1,
     frequency_offset=0,
     frequency_scale=1,
     source=None,
     specifications=None,
     ):
     frequencies, amplitudes, decay_times = specifications
     assert len(frequencies)
     if not amplitudes:
         amplitudes = [1.0] * len(frequencies)
     elif not isinstance(amplitudes, collections.Sequence):
         amplitudes = [amplitudes] * len(frequencies)
     if not decay_times:
         decay_times = [1.0] * len(frequencies)
     elif not isinstance(decay_times, collections.Sequence):
         decay_times = [decay_times] * len(frequencies)
     specifications = sequencetools.zip_sequences(
         [frequencies, amplitudes, decay_times])
     specifications = sequencetools.flatten_sequence(specifications)
     specifications = tuple(specifications)
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         decay_scale=decay_scale,
         frequency_offset=frequency_offset,
         frequency_scale=frequency_scale,
         source=source,
         specifications=specifications,
         )
Exemple #5
0
 def __init__(
     self,
     calculation_rate=None,
     decay_scale=1,
     frequency_offset=0,
     frequency_scale=1,
     source=None,
     specifications=None,
 ):
     frequencies, amplitudes, decay_times = specifications
     assert len(frequencies)
     if not amplitudes:
         amplitudes = [1.0] * len(frequencies)
     elif not isinstance(amplitudes, collections.Sequence):
         amplitudes = [amplitudes] * len(frequencies)
     if not decay_times:
         decay_times = [1.0] * len(frequencies)
     elif not isinstance(decay_times, collections.Sequence):
         decay_times = [decay_times] * len(frequencies)
     specifications = sequencetools.zip_sequences(
         [frequencies, amplitudes, decay_times])
     specifications = sequencetools.flatten_sequence(specifications)
     specifications = tuple(specifications)
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         decay_scale=decay_scale,
         frequency_offset=frequency_offset,
         frequency_scale=frequency_scale,
         source=source,
         specifications=specifications,
     )
Exemple #6
0
 def __init__(
     self,
     calculation_rate=None,
     command_name='/reply',
     peak_lag=3,
     reply_id=-1,
     reply_rate=20,
     source=None,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         peak_lag=peak_lag,
         reply_id=reply_id,
         reply_rate=reply_rate,
     )
     command_name = str(command_name)
     if not isinstance(source, collections.Sequence):
         source = (source, )
     self._configure_input('source', len(source))
     for input_ in source:
         self._configure_input('source', input_)
     self._configure_input('command_name', len(command_name))
     for character in command_name:
         self._configure_input('label', ord(character))
Exemple #7
0
 def __init__(
     self,
     calculation_rate=None,
     adparam=1,
     ampdist=1,
     ampscale=0.5,
     ddparam=1,
     durdist=1,
     durscale=0.5,
     frequency=440,
     init_cps=12,
     knum=None,
     ):
     if knum is None:
         knum = init_cps
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         adparam=adparam,
         ampdist=ampdist,
         ampscale=ampscale,
         ddparam=ddparam,
         durdist=durdist,
         durscale=durscale,
         frequency=frequency,
         init_cps=init_cps,
         knum=knum,
         )
Exemple #8
0
 def __init__(
     self,
     calculation_rate=None,
     buffer_id=None,
     done_action=0,
     source=None,
     loop=1,
     offset=0,
     preexisting_level=0,
     record_level=1,
     run=1,
     trigger=1,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         buffer_id=buffer_id,
         done_action=done_action,
         source=source,
         loop=loop,
         offset=offset,
         preexisting_level=preexisting_level,
         record_level=record_level,
         run=run,
         trigger=trigger,
         )
Exemple #9
0
 def __init__(
     self,
     pv_chain=None,
     floor=0.1,
     medianspan=11,
     mingap=10,
     odftype=ODFType.RCOMPLEX,
     rawodf=0,
     relaxtime=1,
     threshold=0.5,
     whtype=1,
     ):
     UGen.__init__(
         self,
         calculation_rate=CalculationRate.CONTROL,
         pv_chain=pv_chain,
         floor=floor,
         medianspan=medianspan,
         mingap=mingap,
         odftype=odftype,
         rawodf=rawodf,
         relaxtime=relaxtime,
         threshold=threshold,
         whtype=whtype,
         )
Exemple #10
0
 def __init__(
     self,
     calculation_rate=None,
     buffer_id=None,
     done_action=0,
     source=None,
     loop=1,
     offset=0,
     preexisting_level=0,
     record_level=1,
     run=1,
     trigger=1,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         buffer_id=buffer_id,
         done_action=done_action,
         source=source,
         loop=loop,
         offset=offset,
         preexisting_level=preexisting_level,
         record_level=record_level,
         run=run,
         trigger=trigger,
     )
Exemple #11
0
 def __init__(
     self,
     calculation_rate=None,
     curve=0,
     done_action=0,
     duration=None,
     gate=1,
     level=None,
     level_bias=0,
     level_scale=1,
     reset=1,
     shape=1,
     time_scale=1,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         curve=curve,
         done_action=done_action,
         duration=duration,
         gate=gate,
         level=level,
         level_bias=level_bias,
         level_scale=level_scale,
         reset=reset,
         shape=shape,
         time_scale=time_scale,
         )
Exemple #12
0
 def __init__(
     self,
     pv_chain=None,
     floor=0.1,
     medianspan=11,
     mingap=10,
     odftype=ODFType.RCOMPLEX,
     rawodf=0,
     relaxtime=1,
     threshold=0.5,
     whtype=1,
 ):
     UGen.__init__(
         self,
         calculation_rate=CalculationRate.CONTROL,
         pv_chain=pv_chain,
         floor=floor,
         medianspan=medianspan,
         mingap=mingap,
         odftype=odftype,
         rawodf=rawodf,
         relaxtime=relaxtime,
         threshold=threshold,
         whtype=whtype,
     )
Exemple #13
0
 def __init__(
     self,
     calculation_rate=None,
     command_name='/reply',
     peak_lag=3,
     reply_id=-1,
     reply_rate=20,
     source=None,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         peak_lag=peak_lag,
         reply_id=reply_id,
         reply_rate=reply_rate,
         )
     command_name = str(command_name)
     if not isinstance(source, collections.Sequence):
         source = (source,)
     self._configure_input('source', len(source))
     for input_ in source:
         self._configure_input('source', input_)
     self._configure_input('command_name', len(command_name))
     for character in command_name:
         self._configure_input('label', ord(character))
Exemple #14
0
 def __init__(
     self,
     calculation_rate=None,
     label=None,
     source=None,
     trigger=None,
     trigger_id=-1,
 ):
     from supriya.tools import synthdeftools
     from supriya.tools import ugentools
     if label is None:
         if isinstance(source, ugentools.UGen):
             label = type(source).__name__
         elif isinstance(source, synthdeftools.OutputProxy):
             label = type(source.source).__name__
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         source=source,
         trigger=trigger,
         trigger_id=trigger_id,
     )
     label = str(label)
     self._configure_input('label', len(label))
     for character in label:
         self._configure_input('label', ord(character))
Exemple #15
0
 def __init__(
     self,
     calculation_rate=None,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         )
Exemple #16
0
 def __init__(
     self,
     calculation_rate=None,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
     )
Exemple #17
0
 def __init__(self, calculation_rate=None, freqoffset=0, freqscale=1, specifications_array_ref=None):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         freqoffset=freqoffset,
         freqscale=freqscale,
         specifications_array_ref=specifications_array_ref,
     )
Exemple #18
0
 def __init__(
     self,
     pv_chain=None,
 ):
     UGen.__init__(
         self,
         calculation_rate=CalculationRate.CONTROL,
         pv_chain=pv_chain,
     )
 def __init__(
     self,
     pv_chain=None,
     ):
     UGen.__init__(
         self,
         calculation_rate=CalculationRate.CONTROL,
         pv_chain=pv_chain,
         )
Exemple #20
0
 def __init__(self, calculation_rate=None, done_action=0, duration=1, level=1, reset=0):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         done_action=done_action,
         duration=duration,
         level=level,
         reset=reset,
     )
Exemple #21
0
 def __init__(
     self,
     **kwargs
     ):
     UGen.__init__(
         self,
         calculation_rate=CalculationRate.DEMAND,
         **kwargs
         )
Exemple #22
0
 def __init__(
     self,
     calculation_rate=None,
     trigger=None,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         trigger=trigger,
     )
Exemple #23
0
 def __init__(
     self,
     calculation_rate=None,
     source=0,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         source=source,
         )
Exemple #24
0
 def __init__(
     self,
     calculation_rate=None,
     density=0.,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         density=density,
     )
Exemple #25
0
 def __init__(
     self,
     calculation_rate=None,
     source=0,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         source=source,
     )
Exemple #26
0
 def __init__(
     self,
     calculation_rate=None,
     trigger=0,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         trigger=trigger,
         )
Exemple #27
0
 def __init__(
     self,
     calculation_rate=None,
     chaos_parameter=1.5,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         chaos_parameter=chaos_parameter,
         )
Exemple #28
0
 def __init__(
     self,
     calculation_rate=None,
     frequency=500,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         frequency=frequency,
         )
Exemple #29
0
 def __init__(
     self,
     calculation_rate=None,
     density=0.,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         density=density,
         )
Exemple #30
0
 def __init__(
     self,
     calculation_rate=None,
     frequency=500,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         frequency=frequency,
     )
Exemple #31
0
 def __init__(
     self,
     calculation_rate=None,
     chaos_parameter=1.5,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         chaos_parameter=chaos_parameter,
     )
Exemple #32
0
 def __init__(
     self,
     maximum=0,
 ):
     from supriya.tools import synthdeftools
     maximum = float(maximum)
     calculation_rate = synthdeftools.CalculationRate.SCALAR
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         maximum=maximum,
     )
Exemple #33
0
 def __init__(
     self,
     calculation_rate=None,
     minimum=0.,
     maximum=1.,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         minimum=minimum,
         maximum=maximum,
     )
Exemple #34
0
 def __init__(
     self,
     calculation_rate=None,
     diff=0.01,
     source=None,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         diff=diff,
         source=source,
         )
Exemple #35
0
 def __init__(
     self,
     calculation_rate=None,
     minimum=0.,
     maximum=1.,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         minimum=minimum,
         maximum=maximum,
         )
Exemple #36
0
 def __init__(
     self,
     calculation_rate=None,
     source=None,
     ):
     if not isinstance(source, collections.Sequence):
         source = (source,)
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         source=source,
         )
Exemple #37
0
 def __init__(
     self,
     calculation_rate=None,
     array=None,
     which=None,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         array=array,
         which=which,
         )
Exemple #38
0
 def __init__(
     self,
     calculation_rate=None,
     frequency=440,
     harmonic_count=200,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         frequency=frequency,
         harmonic_count=harmonic_count,
     )
Exemple #39
0
 def __init__(
     self,
     calculation_rate=None,
     probability=None,
     trigger=None,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         probability=probability,
         trigger=trigger,
     )
Exemple #40
0
 def __init__(
     self,
     calculation_rate=None,
     envelope=None,
     index=None,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         envelope=envelope,
         index=index,
     )
Exemple #41
0
 def __init__(
     self,
     calculation_rate=None,
     duration=0.1,
     source=None,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         duration=duration,
         source=source,
         )
Exemple #42
0
 def __init__(
     self,
     calculation_rate=None,
     a=0,
     b=0,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         a=a,
         b=b,
         )
Exemple #43
0
 def __init__(
     self,
     calculation_rate=None,
     envelope=None,
     index=None,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         envelope=envelope,
         index=index,
         )
Exemple #44
0
 def __init__(
     self,
     calculation_rate=None,
     buffer_id=None,
     source=None,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         buffer_id=buffer_id,
         source=source,
     )
Exemple #45
0
 def __init__(
     self,
     calculation_rate=None,
     array=None,
     which=None,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         array=array,
         which=which,
         )
Exemple #46
0
 def __init__(
     self,
     calculation_rate=None,
     source=None,
 ):
     if not (hasattr(source, 'has_done_flag') and source.has_done_flag):
         raise ValueError(repr(source))
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         source=source,
     )
Exemple #47
0
 def __init__(
     self,
     calculation_rate=None,
     a=0,
     b=0,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         a=a,
         b=b,
     )
Exemple #48
0
 def __init__(
     self,
     calculation_rate=None,
     duration=0.1,
     source=None,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         duration=duration,
         source=source,
     )
Exemple #49
0
 def __init__(
     self,
     calculation_rate=None,
     buffer_id=0,
     input_array=None,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         buffer_id=buffer_id,
         input_array=input_array,
         )
Exemple #50
0
 def __init__(
     self,
     calculation_rate=None,
     frequency=440,
     width=0.5,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         frequency=frequency,
         width=width,
     )
Exemple #51
0
 def __init__(
     self,
     calculation_rate=None,
     source=None,
 ):
     if not isinstance(source, collections.Sequence):
         source = (source, )
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         source=source,
     )
Exemple #52
0
 def __init__(
     self,
     calculation_rate=None,
     source=None,
     ):
     if not (hasattr(source, 'has_done_flag') and source.has_done_flag):
         raise ValueError(repr(source))
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         source=source,
         )
Exemple #53
0
 def __init__(
     self,
     calculation_rate=None,
     reset=0,
     trigger=0,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         reset=reset,
         trigger=trigger,
     )
Exemple #54
0
 def __init__(
     self,
     calculation_rate=None,
     decay=0.999,
     source=None,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         decay=decay,
         source=source,
     )
Exemple #55
0
 def __init__(
     self,
     calculation_rate=None,
     decay=0.999,
     source=None,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         decay=decay,
         source=source,
         )
Exemple #56
0
 def __init__(
     self,
     calculation_rate=None,
     trigger=None,
     node_id=None,
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         trigger=trigger,
         node_id=node_id,
         )
Exemple #57
0
 def __init__(
     self,
     calculation_rate=None,
     numsamp=40,
     source=None,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         numsamp=numsamp,
         source=source,
     )
Exemple #58
0
 def __init__(
     self,
     calculation_rate=None,
     special_index=0,
     **kwargs
     ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         special_index=special_index,
         **kwargs
         )
Exemple #59
0
 def __init__(
     self,
     calculation_rate=None,
     diff=0.01,
     source=None,
 ):
     UGen.__init__(
         self,
         calculation_rate=calculation_rate,
         diff=diff,
         source=source,
     )